Skip to content

Frames config, agentFrames and the Frames cap - #84

Open
dcmcand wants to merge 1 commit into
slice/agent-tokens-19-docsfrom
slice/frames-20-config-caps
Open

dcmcand wants to merge 1 commit into
slice/agent-tokens-19-docsfrom
slice/frames-20-config-caps

Conversation

@dcmcand

@dcmcand dcmcand commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Slice 20: Frames config, template flag and Frames cap

An admin can turn Frames on in config (refused at load without a usable agentTokens entry), a template can opt its apps into Frames, and such an app's token counts as a coding agent's for the broker.

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 20)
Contracts touched: Config section frames, Template setting agentFrames, authn.AgentCaps gains Frames, and authn.ViaFramesToken, authn.AgentRequest counts Frames among coding-agent caps
Depends on: #83

  • frames section: off by default, refused by the local build, refused at load without agentTokens on and a Frames service entry at minTokenScope: read; frames.url errors print no value.
  • agentFrames template flag (needs apiToken, private maxSharing), the Frames cap (read per request, not narrowed by scope), ViaFramesToken.
  • AgentRequest admits Frames-only agents; contracts.md records that each consumer checks its own cap first.

Validation

Step Command / action Expected Result
unit go test -count=1 ./internal/config/... ./internal/model/... ./internal/gateway/apps/... ./internal/gateway/authn/... ./internal/cli/... ok ok
local make test-local ok (frames.enabled refused by the local build) exit 0

A frames config section turns the Frames integration on. It is off by
default and refused by the local build, and it is refused at load
without agentTokens on and an agentTokens entry for the Frames service
whose minTokenScope is read. frames.url errors name the setting and
never print the value.

A template's agentFrames flag gives its apps the Frames cap. It needs
apiToken and a private maxSharing, as agentModel does. The cap is read
per request like the others and is not narrowed by token scope, and
ViaFramesToken tells a handler whether a request came with such an
app's token. AgentRequest now counts Frames among a coding agent's caps.

contracts.md gains the frames section and agentFrames, and its
AgentRequest and RequireAgentToken entries now say that a consumer checks
its own cap before calling AgentRequest. The plan's evidence, checkpoint
review and deviations are updated.

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