Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/project.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Kagenti Project Automation
name: Rossoctl Project Automation

on:
issues:
Expand All @@ -11,14 +11,14 @@ permissions:

jobs:
add:
name: Add item to Kagenti Project
name: Add item to Rossoctl Project

permissions:
issues: write
pull-requests: write
contents: read

# Pinned to @main intentionally: org-internal workflows propagate updates automatically.
uses: kagenti/.github/.github/workflows/add-to-project.yml@main
uses: rossoctl/.github/.github/workflows/add-to-project.yml@main
secrets: inherit

8 changes: 4 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CLAUDE.md

Guidance for working in `context-guru` (repo dir `lab-context-engineering`), a Kagenti
Guidance for working in `context-guru` (repo dir `lab-context-engineering`), a Rossoctl
platform component.

## What this repo is
Expand All @@ -14,16 +14,16 @@ reference — port its *logic*, re-implement its transport in Go.

## Hard boundaries

- **No AuthBridge / kagenti-extensions code lives here.** That plugin is built in
`kagenti-extensions` and depends on this repo. Keep the public API (`components`,
- **No AuthBridge / cortex code lives here.** That plugin is built in
`cortex` and depends on this repo. Keep the public API (`components`,
`apply`, `schema`, `config`) clean and importable; never reach into another repo.
- **Fail open, always.** Any component error/panic reverts that component only; the
original request is always forwarded as a valid fallback. Every lossy Offload must be
reversible (a `<<cg:HASH>>` marker + the stashed original in the Store).

## Conventions

- Go 1.26, module `github.com/kagenti/context-guru`. Build needs `CGO_ENABLED=1` (tree-sitter).
- Go 1.26, module `github.com/rossoctl/context-guru`. Build needs `CGO_ENABLED=1` (tree-sitter).
- Match the surrounding code's style; keep packages small and single-purpose.
- **Commits: DCO sign-off is mandatory** — `git commit -s`. Author as the repo owner.
AI attribution uses `Assisted-By:` — never `Co-Authored-By`, never a "Generated with"
Expand Down
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Code of Conduct

This project adheres to the Kagenti community Code of Conduct, which is based on the
This project adheres to the Rossoctl community Code of Conduct, which is based on the
[Contributor Covenant](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).

By participating, you are expected to uphold this code. Please report unacceptable
behavior to the maintainers listed in [MAINTAINERS.md](MAINTAINERS.md) or via the process
described in the main [Kagenti](https://github.com/kagenti/kagenti) repository.
described in the main [Rossoctl](https://github.com/rossoctl/rossoctl) repository.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributing

Thanks for your interest in `lab-context-engineering`, a component of the
[Kagenti](https://github.com/kagenti/kagenti) platform.
[Rossoctl](https://github.com/rossoctl/rossoctl) platform.

## Developer Certificate of Origin (DCO)

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ WORKDIR /src/lab-context-engineering
ARG VERSION=dev
ARG COMMIT=none
RUN CGO_ENABLED=1 go build \
-ldflags "-s -w -X github.com/kagenti/context-guru/internal/buildinfo.Version=${VERSION} -X github.com/kagenti/context-guru/internal/buildinfo.Commit=${COMMIT}" \
-ldflags "-s -w -X github.com/rossoctl/context-guru/internal/buildinfo.Version=${VERSION} -X github.com/rossoctl/context-guru/internal/buildinfo.Commit=${COMMIT}" \
-o /out/context-guru-proxy ./cmd/context-guru-proxy

FROM debian:bookworm-slim
Expand Down
4 changes: 2 additions & 2 deletions GOVERNANCE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Governance

`lab-context-engineering` is a component of the
[Kagenti](https://github.com/kagenti/kagenti) platform and follows Kagenti's project
governance. See the Kagenti community
[Rossoctl](https://github.com/rossoctl/rossoctl) platform and follows Rossoctl's project
governance. See the Rossoctl community
[GOVERNANCE](https://github.com/i-am-bee/community/blob/main/GOVERNANCE.md) document for
the roles, decision-making process, and the path to becoming a maintainer.

Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A repository maintainer is a committer with the additional privilege of merging

## Current Maintainers

This repository is part of the [Kagenti](https://github.com/kagenti/kagenti) platform and shares the platform's maintainers. You can find the full list in the main repository's [MAINTAINERS.md](https://github.com/kagenti/kagenti/blob/main/MAINTAINERS.md) file.
This repository is part of the [Rossoctl](https://github.com/rossoctl/rossoctl) platform and shares the platform's maintainers. You can find the full list in the main repository's [MAINTAINERS.md](https://github.com/rossoctl/rossoctl/blob/main/MAINTAINERS.md) file.

## Becoming a Maintainer

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BINARY := context-guru-proxy
PKG := github.com/kagenti/context-guru
PKG := github.com/rossoctl/context-guru
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo none)
LDFLAGS := -s -w \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ skips the pipeline.
| Option | What | Where |
|---|---|---|
| **Proxy / gateway** | `context-guru-proxy` in front of the provider; the eval-containers gateway image | `proxy/`, `cmd/context-guru-proxy/` |
| **In-process plugin** | AuthBridge (Kagenti sidecar) plugin importing this module, running the same pipeline on `pctx.Body` | plugin lives in `kagenti-extensions`; reuses `apply.Body` + `expand/` |
| **In-process plugin** | AuthBridge (Rossoctl sidecar) plugin importing this module, running the same pipeline on `pctx.Body` | plugin lives in `cortex`; reuses `apply.Body` + `expand/` |
| _(also)_ **bifrost LLMPlugin** | run the pipeline as a `PreRequestHook` inside any bifrost deployment | `adapters/bifrost/` |

Details in [docs/integrations.md](docs/integrations.md).
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Please report security vulnerabilities privately. Do **not** open a public GitHu

Use GitHub's private vulnerability reporting ("Report a vulnerability" under the
repository's Security tab), or follow the disclosure process described in the main
[Kagenti](https://github.com/kagenti/kagenti/blob/main/SECURITY.md) repository.
[Rossoctl](https://github.com/rossoctl/rossoctl/blob/main/SECURITY.md) repository.

We will acknowledge your report and work with you on a coordinated disclosure.

Expand Down
8 changes: 4 additions & 4 deletions adapters/bifrost/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
package bifrost

import (
"github.com/kagenti/context-guru/components"
"github.com/kagenti/context-guru/schema"
"github.com/kagenti/context-guru/session"
"github.com/kagenti/context-guru/store"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/session"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

Expand Down
8 changes: 4 additions & 4 deletions adapters/bifrost/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"testing"
"time"

_ "github.com/kagenti/context-guru/components/all"
"github.com/kagenti/context-guru/config"
"github.com/kagenti/context-guru/schema"
"github.com/kagenti/context-guru/store"
_ "github.com/rossoctl/context-guru/components/all"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

Expand Down
8 changes: 4 additions & 4 deletions apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
"strconv"
"strings"

"github.com/kagenti/context-guru/components"
"github.com/kagenti/context-guru/schema"
"github.com/kagenti/context-guru/session"
"github.com/kagenti/context-guru/store"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/session"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/tidwall/gjson"
"github.com/tidwall/sjson"
Expand Down
10 changes: 5 additions & 5 deletions apply/apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"strings"
"testing"

"github.com/kagenti/context-guru/apply"
"github.com/kagenti/context-guru/components"
_ "github.com/kagenti/context-guru/components/all"
"github.com/kagenti/context-guru/config"
"github.com/kagenti/context-guru/store"
"github.com/rossoctl/context-guru/apply"
"github.com/rossoctl/context-guru/components"
_ "github.com/rossoctl/context-guru/components/all"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
"github.com/tidwall/gjson"
)
Expand Down
12 changes: 6 additions & 6 deletions cmd/context-guru-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"os"
"strings"

"github.com/kagenti/context-guru/components"
_ "github.com/kagenti/context-guru/components/all"
"github.com/kagenti/context-guru/config"
"github.com/kagenti/context-guru/internal/cheapmodel"
"github.com/kagenti/context-guru/metrics"
"github.com/kagenti/context-guru/proxy"
"github.com/rossoctl/context-guru/components"
_ "github.com/rossoctl/context-guru/components/all"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/internal/cheapmodel"
"github.com/rossoctl/context-guru/metrics"
"github.com/rossoctl/context-guru/proxy"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions components/all/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
// import this package for its side effects, then build a pipeline by name from
// config. Import it for effect:
//
// import _ "github.com/kagenti/context-guru/components/all"
// import _ "github.com/rossoctl/context-guru/components/all"
package all

import (
_ "github.com/kagenti/context-guru/components/offload"
_ "github.com/kagenti/context-guru/components/reformat"
_ "github.com/rossoctl/context-guru/components/offload"
_ "github.com/rossoctl/context-guru/components/reformat"
)
12 changes: 6 additions & 6 deletions components/all/all_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"strings"
"testing"

"github.com/kagenti/context-guru/components"
_ "github.com/kagenti/context-guru/components/all"
"github.com/kagenti/context-guru/config"
"github.com/kagenti/context-guru/expand"
"github.com/kagenti/context-guru/schema"
"github.com/kagenti/context-guru/store"
"github.com/rossoctl/context-guru/components"
_ "github.com/rossoctl/context-guru/components/all"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
"github.com/maximhq/bifrost/core/schemas"
)

Expand Down
6 changes: 3 additions & 3 deletions components/all/llm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"strings"
"testing"

"github.com/kagenti/context-guru/components"
"github.com/kagenti/context-guru/schema"
"github.com/kagenti/context-guru/store"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

Expand Down
10 changes: 5 additions & 5 deletions components/all/markermode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strings"
"testing"

"github.com/kagenti/context-guru/apply"
"github.com/kagenti/context-guru/config"
"github.com/kagenti/context-guru/expand"
"github.com/kagenti/context-guru/schema"
"github.com/kagenti/context-guru/store"
"github.com/rossoctl/context-guru/apply"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
"github.com/maximhq/bifrost/core/schemas"
"github.com/tidwall/gjson"
)
Expand Down
12 changes: 6 additions & 6 deletions components/all/more_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"strings"
"testing"

"github.com/kagenti/context-guru/components"
_ "github.com/kagenti/context-guru/components/all"
"github.com/kagenti/context-guru/config"
"github.com/kagenti/context-guru/expand"
"github.com/kagenti/context-guru/schema"
"github.com/kagenti/context-guru/store"
"github.com/rossoctl/context-guru/components"
_ "github.com/rossoctl/context-guru/components/all"
"github.com/rossoctl/context-guru/config"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
"github.com/maximhq/bifrost/core/schemas"
)

Expand Down
4 changes: 2 additions & 2 deletions components/all/p4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"
"testing"

"github.com/kagenti/context-guru/expand"
"github.com/kagenti/context-guru/schema"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

Expand Down
6 changes: 3 additions & 3 deletions components/all/reuse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"sync"
"testing"

"github.com/kagenti/context-guru/components"
"github.com/kagenti/context-guru/schema"
"github.com/kagenti/context-guru/store"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/rossoctl/context-guru/store"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

Expand Down
4 changes: 2 additions & 2 deletions components/all/skeleton_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"strings"
"testing"

"github.com/kagenti/context-guru/expand"
"github.com/kagenti/context-guru/schema"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
)

Expand Down
2 changes: 1 addition & 1 deletion components/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"context"
"time"

"github.com/kagenti/context-guru/store"
"github.com/rossoctl/context-guru/store"
"github.com/maximhq/bifrost/core/schemas"
)

Expand Down
8 changes: 4 additions & 4 deletions components/offload/cmdfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"encoding/hex"
"strings"

"github.com/kagenti/context-guru/components"
"github.com/kagenti/context-guru/components/dsl"
"github.com/kagenti/context-guru/expand"
"github.com/kagenti/context-guru/schema"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/components/dsl"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)
Expand Down
6 changes: 3 additions & 3 deletions components/offload/collapse.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"strings"

"github.com/kagenti/context-guru/components"
"github.com/kagenti/context-guru/expand"
"github.com/kagenti/context-guru/schema"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion components/offload/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package offload
import (
"strings"

"github.com/kagenti/context-guru/schema"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
)

Expand Down
4 changes: 2 additions & 2 deletions components/offload/dedup.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package offload

import (
"github.com/kagenti/context-guru/components"
"github.com/kagenti/context-guru/schema"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/schema"
"github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)
Expand Down
8 changes: 4 additions & 4 deletions components/offload/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"strings"
"time"

"github.com/kagenti/context-guru/components"
"github.com/kagenti/context-guru/expand"
"github.com/kagenti/context-guru/internal/extract"
"github.com/kagenti/context-guru/schema"
"github.com/rossoctl/context-guru/components"
"github.com/rossoctl/context-guru/expand"
"github.com/rossoctl/context-guru/internal/extract"
"github.com/rossoctl/context-guru/schema"
bschemas "github.com/maximhq/bifrost/core/schemas"
"gopkg.in/yaml.v3"
)
Expand Down
Loading
Loading