Skip to content

Helper /frames route and agent pod wiring - #87

Open
dcmcand wants to merge 1 commit into
slice/frames-22-mountfrom
slice/frames-23-helper-pod
Open

dcmcand wants to merge 1 commit into
slice/frames-22-mountfrom
slice/frames-23-helper-pod

Conversation

@dcmcand

@dcmcand dcmcand commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Slice 23: Helper route and agent pod wiring

An agent app whose template sets agentFrames, with Frames on, gets JAVO_FRAMES_URL pointing at its helper and the Frames guide, and the helper's /frames route 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 variable JAVO_FRAMES_URL, API guide (AGENTS.md): the Secret holds two guides and the Pod spec picks one
Depends on: #86

  • Helper /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.Frames decided once (Frames on, agentFrames, agents template, a token); then JAVO_FRAMES_URL=http://127.0.0.1:7690/frames and the Frames guide.
  • Ships with Slice 24: the guide names the frames server that pi and Claude Code configure there.

Validation

Step Command / action Expected Result
unit go test -count=1 ./internal/agenthelper/... ./internal/controller/... ./internal/cli/... ok, build_test.go:687, :699, secretnames_test.go:170, apitoken_test.go:75 unmodified ok (envtest 1.37.0); those files unmodified. podcmd's TestPauseBlocksUntilToldToEnd is flaky (1 in 7), not in this diff
local make test-local ok exit 0

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.
@dcmcand
dcmcand added this pull request to stack #40 December 3, 2026 09:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant