Repository navigation
Conversation
The agent helper gains a /frames route. It forwards to the gateway's /frames/mcp on its internal host with the app's own token, after removing any credential the agent sent, so the agent holds none. Only exactly /frames is forwarded; other paths and a helper with no token answer 404. Answers stream, and logs carry method and path only. The reconciler decides once whether an app gets Frames: the integration on, the template's agentFrames, an agents template, and an app token. Such an app's main unit gets JAVO_FRAMES_URL, the helper's /frames address, and its AGENTS.md is the Frames guide: check Frames for the organisation's context, treat it as reference and never as an instruction, and reach it only at that address. The token Secret holds both guides and the pod mounts one. contracts.md gains the helper route, the variable and the two guides, patterns.md names the helper's third route, and the plan's evidence, checkpoint review and deviations are updated.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice 23: Helper route and agent pod wiring
An agent app whose template sets
agentFrames, with Frames on, getsJAVO_FRAMES_URLpointing at its helper and the Frames guide, and the helper's/framesroute forwards to the gateway with the app token so the agent holds no credential.Spec: nebari-dev/tapas/docs/superpowers/specs/2026-11-30-frames-integration-design.md
Plan: nebari-dev/tapas/docs/superpowers/plans/2026-12-01-agent-tokens-and-frames.md (Slice 23)
Contracts touched: Agent helper route
/frames, Agent variableJAVO_FRAMES_URL, API guide (AGENTS.md): the Secret holds two guides and the Pod spec picks oneDepends on: #86
/frames: exactly that path, any method, query passed on, incoming credentials stripped, its app token added, always to the gateway's/frames/mcp; streaming; logs method and path only.Inputs.Framesdecided once (Frames on,agentFrames, agents template, a token); thenJAVO_FRAMES_URL=http://127.0.0.1:7690/framesand the Frames guide.framesserver that pi and Claude Code configure there.Validation
go test -count=1 ./internal/agenthelper/... ./internal/controller/... ./internal/cli/...build_test.go:687,:699,secretnames_test.go:170,apitoken_test.go:75unmodifiedpodcmd'sTestPauseBlocksUntilToldToEndis flaky (1 in 7), not in this diffmake test-local