Changelog
All notable changes are listed here. The format follows Keep a Changelog and the project follows Semantic Versioning. Before 1.0, the manifest format, the signed request and some protocol details may change in a minor release. Each such change has an entry in docs/DECISIONS.md.
Changed
Section titled “Changed”--max-clientsis a shared cap on live OAuth clients. It used to count the clients one process had registered, so each replica allowed the full cap and a restart reset it. It now counts, in the auth store, the clients that have an active grant or were registered less than--client-graceago (new flag, default24h), so every replica on one Postgres shares one cap. Concurrent registrations cannot overshoot it (a transaction scoped advisory lock in Postgres). The hourly auth prune deletes clients older than the grace period with no active grant, also for the memory store, so clients that never link free their slot. A store error on registration answers503.auth.StoregainsRegisterClientCapped,CountLiveClientsandPrune; stores must pass the extendedauthtest.Run. See docs/DECISIONS.md, “A shared client cap from live clients”.
-
Helm value
config.clientGrace(default24h) for--client-grace. -
Distributed tracing with OpenTelemetry, off by default.
--otel, or the standardOTEL_EXPORTER_OTLP_ENDPOINT, exports spans with OTLP over HTTP: a server span for/mcpand the dev API (joining an incomingtraceparent), onegamewarden.callspan per tool call with a child per pipeline stage, a client span for the signed backend request (which carriestraceparent; the signature is unchanged) and a span for relay calls. Spans never hold arguments, results or secrets; a test enforces it. New dependencies:go.opentelemetry.io/otel,otel/sdkandotel/exporters/otlp/otlptrace/otlptracehttp(v1.47.0). The Helm chart has optionalotelvalues.examples/tracing/runs the stack with Jaeger. -
Shared link code and registration limits. With
--redis-addr, every gateway replica counts against one budget per client address, instead of one budget per replica. A limiter error fails closed with503. Without Redis nothing changes. New limiters must passlimittest.Run. -
The Unity relay client works in WebGL players. Under
UNITY_WEBGLit uses the browser’s WebSocket throughRuntime/Plugins/WebGL/RelaySocket.jslib, sends the ticket as?ticket=, and runs on the one thread a page has (noTask.Run, timers onsetTimeout). Other platforms keepClientWebSocketunchanged. The Basic sample fetches its ticket withUnityWebRequeston WebGL.examples/unity-relay-client/E2E~/unity/webgl.shbuilds it for WebGL and runs it in headless Chromium against the real gateway. -
--relay-allowed-origins(orGAMEWARDEN_RELAY_ALLOWED_ORIGINS): the browser origins allowed to open the relay socket. Other origins get403; native clients send no origin and are not affected. Empty (the default) keeps same origin only. No protocol change: see docs/DECISIONS.md, “The relay in the browser”. -
A shared replay cache for studio-signed and admin-signed requests. With
--redis-addr, every gateway replica on that Redis refuses a captured request another replica already accepted. A Redis error fails closed with503. Without Redis nothing changes. New replay stores must passreplaytest.Run. -
An Elixir pet shop backend (
examples/pet-backend-elixir) on OTP’s built-in:httpd, with no Mix dependencies. It checks calls withexamples/signing/elixir/sigverify.ex, and tutorial 3 runs it. -
An Elixir signature verifier example (
sig-elixir), Erlang/OTP only, with an ExUnit test. Tutorial 3 runs it. -
A Rust signature verifier example (
sig-rust,examples/signing/rust). Rust’s standard library has no HMAC, so it uses thehmacandsha2crates, pinned inCargo.lock. Tutorial 3 runs it. -
A Dart signature verifier example (
sig-dart,examples/signing/dart). Dart’s core libraries have no HMAC, so it usespackage:crypto, pinned inpubspec.lock, and compares in constant time itself. Tutorial 3 runs it. -
A Swift signature verifier example (
sig-swift,examples/signing/swift). CryptoKit is Apple-only, so it usesswift-crypto, pinned inPackage.resolved, and runs on Linux. Tutorial 3 runs it. -
A standalone player test for the Unity relay client:
examples/unity-relay-client/E2E~/unity/player.shbuilds the Basic sample into a macOS player with Mono or IL2CPP and runs it against the real gateway. Both pass in Unity 6000.3.23f1 with default stripping and nolink.xml. -
A C# pet shop backend (
examples/pet-backend-csharp): an ASP.NET Core minimal API on .NET 8 that compiles inexamples/signing/csharp/SigVerify.cs. Tutorial 3 runs it. -
A
k8stools container (Dockerfile targetk8s: kind, kubectl, helm) andmake k8s-shell.make k8s-tutorial-checknow creates its own kind cluster (gamewarden-t09, orKIND_CLUSTER), runs tutorial 9 against it and deletes it, with nothing but Docker on the host.
Docs and examples
Section titled “Docs and examples”- Tutorial 9 (Helm chart on kind) has been run end to end and passes on kind v0.33.0, Kubernetes v1.37.0 and Docker 29.9.3. It is verified against v0.2.0.
make licensesworks again.segmentio/asmv1.2.1 is MIT No Attribution, which go-licenses reports as unknown. The script now reads that module’s own license and accepts it only if it really is MIT-0. The page also lists the OpenTelemetry modules now.
0.2.0 - 2026-11-30
Section titled “0.2.0 - 2026-11-30”The Unity relay client becomes a package you can install from a git URL, and its sample runs in the Unity editor. Signature verifier examples now cover seven languages and pet shop backends five. No manifest, signed request or policy changes.
- A Ruby signature verifier example (
sig-ruby), and Java and PHP pet shop backends (examples/pet-backend-java,examples/pet-backend-php). Tutorial 3 runs all of them. - A Unity editor test for the relay client:
examples/unity-relay-client/E2E~/unity/run.shcreates a fresh project, installs the package and runs the Basic sample in play mode against the real gateway. It passes in Unity 6.3 (6000.3.23f1) on macOS, from a checkout and from the git URL. - Signature verifier examples in Java and PHP (
sig-java,sig-php), and a TypeScript pet shop backend (examples/pet-backend-typescript). Tutorial 3 runs all of them. - Guide: add your manifest to the gateway (startup file, upload, the seed rule).
- Tutorial 12: connect Claude Desktop to a game, written for players, with a script that plays the connector’s part.
- Local HTTPS for the compose stack: an nginx
httpsservice onhttps://gamewarden.test(port 443,GAMEWARDEN_HTTPS_PORT) with a self-signed certificate from thetls-certservice (GAMEWARDEN_TLS_DOMAIN), and a guide on the local domain, copying and trusting the certificate, and reaching it from containers.
Changed
Section titled “Changed”- Unity relay client 0.2.0: JSON moved from
System.Text.Json, which Unity does not ship, to Newtonsoft.Json (com.unity.nuget.newtonsoft-json, declared inpackage.json). Breaking:CallRequest.Argsis now aJObject, andCallResult.Success(object)serializes with Newtonsoft. Date-like argument strings stay strings. - The README opens with what an agent cannot talk its way past: attempts that count before validation, failed calls that release their caps, player confirmations, kill switches, and an audit log that keeps only a hash of the arguments.
- The MCP endpoint and
gwbridgereport the release version to MCP clients. Both said0.1.0whatever the build. - The
devimage marks/srcas a safe git directory, sogo buildcan stamp VCS info when the mounted source belongs to another user. In CI this broke six tutorial scripts. - Tutorial 6 runs its gateway and fake backend as the owner of its key files (
KEYS_UID,KEYS_GID). On Linux the gateway stopped with “permission denied” on itschmod 600keys. - Unity relay client: installed from a git URL, Unity ignored every file in the package because
none had a
.meta. The package now ships them, and moves its tests, console game and end to end script intoTests~,ConsoleGame~andE2E~so Unity skips them. The Basic sample fetches its ticket fromticketUrlinstead of throwing.
0.1.0 - 2026-11-29
Section titled “0.1.0 - 2026-11-29”First public release.
Gateway and policy
Section titled “Gateway and policy”- Call pipeline: lookup, rate limit, validation, confirmation, reserve, signed backend call, settle, audit. Rate limits count every attempt, caps reserve before the call, a failed call releases its reservation, and policy outages fail closed.
- Manifest in YAML or JSON with strict validation that reports every problem at once, and the
gwctlCLI. Tools per tier (read, safe, medium, sensitive), caps, cooldowns andconfirm. - MCP endpoint (stateless streamable HTTP) and the
gwbridgestdio bridge for desktop clients. - Redis policy store shared across replicas, with kill switches. Memory store for one process.
--max-scope coach|operatorcaps every grant at read only for a first pilot.--max-bodylimits request bodies at the front door (413 too_large), and the server sets read, write and idle timeouts.- SSRF-safe backend connector: no loopback, private or metadata addresses unless
--backend-allow-private, no redirects. pkg/agentsig, the public request signing library, with a published test vector.
Players and studios
Section titled “Players and studios”- OAuth 2.1 resource server with an embedded authorization server: PKCE, dynamic client registration, link tickets, consent with coach or operator scope, rotating refresh tokens.
- Optional OIDC sign-in at consent (
--oidc-issuer), verified with go-oidc and go-jose, tested against Dex and Keycloak (scripts/oidc-keycloak-check.sh).--oidc-public-client(Helm:oidc.publicClient) registers the gateway without a client secret, PKCE only. - Player confirmations for tools marked
confirm. - Studio APIs signed with
agentsig: grants, confirmations, activity feed (player and admin), manifest upload, list and rollback, kill switches (/v1/studio/switches), relay tickets. - Rotate the studio, admin and backend signing keys without a restart (key files and SIGHUP,
--studio-keys-only,--admin-keys-only,--backend-key-file).
Relay for client-authoritative games
Section titled “Relay for client-authoritative games”- WebSocket relay with signed tickets and routing across replicas through Redis.
- Protocol v1.1, backward compatible: limits in the hello,
deadline_ms,retry_after_ms,bye, an in-flight cap (client_busy) and a frame rate limit. examples/relayclient(Go) andexamples/unity-relay-client(C#, with a Unity package layout).
Operations
Section titled “Operations”- Metrics,
/healthzand/readyzon a separate ops listener (--ops-addr), including pgx and Redis pool and Go runtime metrics. - Helm chart, Grafana dashboard, Prometheus alert rules and a runbook.
- Optional batched audit writes (
--audit-queue), off by default. A 15 minute soak with it (AUDIT_QUEUE=1 scripts/soak.sh) dropped no event. - Load tool and a repeatable soak script. A one hour run at 100 calls per second held p99 at 6.5 ms with flat memory (see the runbook).
scripts/bench-overhead.shmeasures what the gateway adds to a call by sending the same signed request to the backend directly and through the gateway. The homepage shows the result.- Schema migrations run under a Postgres advisory lock, so replicas that start together (a rollout or autoscale event) do not race.
- The connector keeps up to 100 idle connections to the backend, so high load does not exhaust ports.
- Signed multi-arch images on GHCR, binaries for six platforms, SBOMs and build provenance.
Docs and examples
Section titled “Docs and examples”- A project site with a landing page, concepts, generated reference (manifest, flags, error codes, audit events, OpenAPI for the studio API), and eleven tutorials. CI runs the scripts of the ones that need no Kubernetes cluster. Tutorials 9 (kind) and 11 (Docker Desktop) install the Helm chart on a local cluster, and tutorial 10 connects a Unity game through the relay.
- Best practices, a cookbook, troubleshooting by result code and an FAQ.
- Signing examples in Go, Python, TypeScript and C#, and two pet-shop backends.
Known limits
Section titled “Known limits”- Before 1.0: the manifest format, the signed request and some protocol details may change in
a minor release. Every change has an entry in
docs/DECISIONS.md. - The Unity package has not been run inside Unity. The relay was tried with the C# reference client and a Go client.
- Tutorial 11 has been run on a real cluster. Tutorial 9 (kind) has not been run yet.
- OIDC has not been tried against a hosted identity provider.
- Audit retention prunes with an hourly
DELETE. Partitioning is a design note (docs/design/audit-partitioning.md), not built. - Kill switches live in Redis, so without
--redis-addrthey are per process. - No hosted offering.