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
12 changes: 5 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Thanks for your interest! This guide covers the conventions used across the
graycode-eco. The eco-wide standards (versioning, release tooling, repo layout)
are defined in <https://github.com/GrayCodeAI/decoder/blob/main/docs/versioning.md>.
are defined in <https://github.com/GrayCodeAI/reflect/blob/main/docs/versioning.md>.

## Quick start

Expand Down Expand Up @@ -38,8 +38,8 @@ for the full list. The most common targets:
## Commit message convention

We use [Conventional Commits](https://www.conventionalcommits.org/). This
isn't cosmetic — release-please reads commit messages to bump the `VERSION`
file and generate the CHANGELOG, so getting them right matters.
isn't cosmetic — commit messages drive the release notes and the hand-written
CHANGELOG, so getting them right matters.

```
<type>(<optional scope>): <short summary>
Expand Down Expand Up @@ -101,10 +101,8 @@ Before requesting review:

- [ ] `make ci` passes locally.
- [ ] New behaviour has tests; bug fixes have a regression test.
- [ ] `CHANGELOG.md` entries are **not** edited manually — release-please
generates them from your commit messages.
- [ ] The `VERSION` file is **not** edited manually — release-please bumps
it on release.
- [ ] `CHANGELOG.md` and `VERSION` are **not** edited in a feature PR —
the release PR updates both, then the matching `vX.Y.Z` tag is pushed.
- [ ] Public API changes have updated doc comments.
- [ ] No secrets, API keys, or PII in code, comments, tests, or fixtures.

Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,9 @@ symbols are frozen as part of the contract; see
## Quick Start

```bash
go get github.com/GrayCodeAI/relay@main
go get github.com/GrayCodeAI/relay@v1.0.1
```

Until a post-rename release is tagged, use `@main`; the existing `v0.0.1` tag
declares a different Go module path.

Requires Go 1.27.2+ and a configured provider credential. Direct dependencies:
UUID, tiktoken tokenizer, OS keyring, OpenTelemetry, pure-Go SQLite, and gRPC
(linked only into `-tags grpc` builds of `internal/grpc`).
Expand Down
9 changes: 4 additions & 5 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@

## Supported versions

We support the latest minor version on each `0.x` line, and the latest two
minor versions once `1.x` ships. Older versions receive critical-severity
fixes only on a best-effort basis.
We support the latest minor version on the current `1.x` line. Older
versions receive critical-severity fixes only on a best-effort basis.

The current canonical version is the contents of the [`VERSION`](./VERSION)
file at the repo root. See [`VERSIONING.md`](https://github.com/GrayCodeAI/decoder/blob/main/docs/versioning.md)
file at the repo root. See [the versioning standard](https://github.com/GrayCodeAI/reflect/blob/main/docs/versioning.md)
for the eco-wide versioning scheme.

## Reporting a vulnerability

**Do not open a public GitHub issue for security vulnerabilities.** Instead:

1. Open a private [GitHub Security Advisory](https://github.com/GrayCodeAI/relay/security/advisories/new), **or**
2. Email `security@decoder.ai` with the details below.
2. Email `security@graycodeai.com` with the details below.

Include in your report:

Expand Down
2 changes: 1 addition & 1 deletion catalog/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package catalog
import "errors"

// ErrCatalogCacheRequired is returned when no valid ~/.relay/model_catalog.json exists.
// Run catalog discovery (decoder models refresh / relay catalog discover) to populate the cache.
// Run catalog discovery (reflect models refresh / relay catalog discover) to populate the cache.
var ErrCatalogCacheRequired = errors.New("model catalog cache required")
2 changes: 1 addition & 1 deletion catalog/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
// RefreshCatalog fetches the published catalog, validates it, and writes the cache.
// Unlike LoadCatalog with RefreshRemote, this fails when the remote fetch fails so
// callers never treat a stale cache as a successful refresh.
func RefreshCatalog(ctx context.Context, opts LoadCatalogOptions) (*RefreshResult, error) {

Check failure on line 53 in catalog/refresh.go

View workflow job for this annotation

GitHub Actions / deadcode

unreachable func: RefreshCatalog
if opts.CachePath == "" {
opts.CachePath = DefaultCachePath()
}
Expand Down Expand Up @@ -96,7 +96,7 @@
)
}

// DiscoverReport returns a multi-line report for `decoder models refresh` / `relay catalog discover`.
// DiscoverReport returns a multi-line report for `reflect models refresh` / `relay catalog discover`.
func (r *RefreshResult) DiscoverReport() string {
if r == nil || r.Compiled == nil {
return "Catalog discovery: no data"
Expand Down
4 changes: 2 additions & 2 deletions catalog/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ func LoadCatalog(ctx context.Context, opts LoadCatalogOptions) (*CompiledCatalog
return compiled, nil
}
if opts.RequireCache {
return nil, fmt.Errorf("%w (%s missing or invalid; run: decoder models refresh)", ErrCatalogCacheRequired, opts.CachePath)
return nil, fmt.Errorf("%w (%s missing or invalid; run: reflect models refresh)", ErrCatalogCacheRequired, opts.CachePath)
}
bootstrap := BootstrapCatalog()
compiled, err := CompileCatalog(&bootstrap)
Expand All @@ -652,7 +652,7 @@ func LoadCatalog(ctx context.Context, opts LoadCatalogOptions) (*CompiledCatalog
}
compiled.Diagnostics = append(compiled.Diagnostics, CatalogDiagnostic{
Code: "bootstrap_only",
Message: "no model catalog cache; run decoder models refresh or relay catalog discover",
Message: "no model catalog cache; run reflect models refresh or relay catalog discover",
})
return compiled, nil
}
Expand Down
2 changes: 1 addition & 1 deletion config/routing_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func longcatProviderStages(deployments map[string]DeploymentConfig) []RoutingSta
return nil
}
// Single OpenAI-compatible endpoint only (longcat-direct).
// Official LongCat also documents /anthropic; decoder does not require it when OpenAI works.
// Official LongCat also documents /anthropic; Reflect does not require it when OpenAI works.
return singleDeploymentStages("longcat-direct", 1)
}

Expand Down
6 changes: 3 additions & 3 deletions docs/design/RELAY-ENTERPRISE.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ it is treated here as a multi-month effort.
("run prompt vX against models A/B/C").
5. **Canary / blue-green model testing** promoted from the existing weighted/preview routing
primitives into a named, observable production-traffic flow.
6. **A2A protocol** so decoder agents can call external agents (LangGraph, Vertex Agent Engine,
6. **A2A protocol** so Reflect agents can call external agents (LangGraph, Vertex Agent Engine,
Azure AI Foundry, Bedrock AgentCore) as tool calls through the relay proxy.
7. **Fine-tuning workflow client** that submits training data, polls jobs, and registers the
resulting model in relay's catalog.
Expand All @@ -75,7 +75,7 @@ it is treated here as a multi-month effort.
(the existing `internal/grpc/README.md` policy of not adding `google.golang.org/grpc`
speculatively is preserved).
- **No model training** — only orchestration of provider-side fine-tuning APIs.
- The browser/IDE/cloud-execution gaps belong to decoder, not this doc.
- The browser/IDE/cloud-execution gaps belong to Reflect, not this doc.

---

Expand Down Expand Up @@ -372,7 +372,7 @@ Exit: full enterprise parity with LiteLLM/Portkey gateway feature set per the co
| Redis (distributed state, priority across instances) | **Adopt opt-in** `redis/go-redis` (BSD-2) | Behind interface; not default. |
| gRPC | **Defer** — keep skeleton, do not add `google.golang.org/grpc` until demanded | Per `internal/grpc/README.md` policy. |

**Licensing:** relay is MIT (`LICENSE`, "Copyright (c) 2026 Decoder Contributors"). All proposed
**Licensing:** relay is MIT (`LICENSE`, "Copyright (c) 2026 GrayCode AI"). All proposed
default deps (SQLite, go-keyring, OTel, uuid) are already MIT/BSD/Apache-2.0 (`go.mod`). Any
opt-in adds (go-oidc Apache-2.0, pgx MIT, go-redis BSD) are MIT-compatible. **No GPL/AGPL.**
A UI build toolchain (Vite/esbuild, MIT) is a dev-time dependency only — it does not ship in the
Expand Down
3 changes: 1 addition & 2 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,5 @@ routing strategies. Internal infrastructure (`retry.go`, `ratelimit.go`,
- pkg.go.dev: https://pkg.go.dev/github.com/GrayCodeAI/relay
- CONTRIBUTING.md — development setup, commit conventions, PR process
- SECURITY.md — report privately (GitHub Security Advisory or
security@decoder.ai), never a public issue
security@graycodeai.com), never a public issue
- Example host: https://github.com/GrayCodeAI/reflect
2 changes: 1 addition & 1 deletion setup/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func DiscoverModelCatalog(ctx context.Context, creds catalog.Credentials) (*cata
return DiscoverModelCatalogWithOptions(ctx, creds, DiscoverModelCatalogOptions{})
}

// DiscoverModelCatalogWithOptions runs discover with optional force refresh (manual decoder models refresh).
// DiscoverModelCatalogWithOptions runs discover with optional force refresh (manual reflect models refresh).
func DiscoverModelCatalogWithOptions(ctx context.Context, creds catalog.Credentials, opts DiscoverModelCatalogOptions) (*catalog.RefreshResult, error) {
cachePath := catalog.DefaultCachePath()
refreshRemote := opts.ForceRefresh
Expand Down
2 changes: 1 addition & 1 deletion setup/deployment.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package setup wires catalog-backed deployment routing for decoder and relay CLIs.
// Package setup wires catalog-backed deployment routing for the Reflect and Relay CLIs.
package setup

import (
Expand Down
2 changes: 1 addition & 1 deletion setup/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func FormatStatus(report StatusReport) string {
fmt.Fprintf(&b, " cached: no (using embedded catalog: %d models)\n", report.CatalogModels)
}
if report.CatalogStale {
b.WriteString(" stale: yes — decoder refreshes automatically; use `decoder models refresh` or `/refresh-model-catalog` for a manual run\n")
b.WriteString(" stale: yes — decoder refreshes automatically; use `reflect models refresh` or `/refresh-model-catalog` for a manual run\n")
}
if report.ActiveModel != "" {
fmt.Fprintf(&b, "Active canonical model: %s\n", report.ActiveModel)
Expand Down
Loading