Permission Modes¶
The side chat's agent and caliper-mcp's clients each run in a saved mode, Ask, Accept edits, Read only or Allow all, that decides which commands wait for the person's approval.
| Field | Value |
|---|---|
| ID | AGT-06 |
| Status | Shipped |
| Scope | Core |
| Pillar | Agents and Automation |
| Sprint | None |
| Depends On | Side Chat (AGT-03) |
| Unblocks | Approval Expiry for API Origins (AGT-11)Held Launches ( AGT-12)Approval Cards ( AGT-17)Finer Agent Permissions ( AGT-30) |
| Docs | Side Chat, Modes |
| Branches | None |
| Design | ACP integration, Approvals and diffs for every agent |
Coverage Ledger¶
- Branch
sprint3-int-cards, 0 commits that main lacks (188 ahead of the merge base). Work on approval cards in the ACP integration, which reached main through a pull request (patch ids and subjects match). - Branch
sprint3-int-fix-app, 0 commits that main lacks. Work on treating an approval reissued for changed content as no outcome, which reached main through a pull request (patch ids and subjects match). - Branch
sprint3-int-fix-approvals, 2 commits, dbd859dd 6dee779a. An approval card for an undo or redo from an origin under review, added in dbd859dd and reverted in 6dee779a because history.undo and history.redo are refused to agents instead. - design/acp-integration.md, under Turns, permission prompts and spec diffs. Two kinds of approval show a change the same way: the agent's own permission requests as cards in the chat, and command approvals from the command layer.
- design/acp-integration.md, under Approvals and diffs for every agent. Approval of destructive commands from the agent, mcp and api origins, held for up to 120 seconds, with no self-approval.
- design/acp-integration.md, under Approvals and diffs for every agent. Agent permissions Ask, Accept edits, Read only and Allow all, each saved, with card answers that allow a command for the session or always.
- design/acp-integration.md, under Approvals and diffs for every agent. Diff previews and review of spec edits in the command layer, with conflict handling, on by default for agent and mcp.
- design/acp-integration.md, under The side chat in the app. The chat header shows the session mode; Shift-Tab cycles Ask, Accept edits and Read only; Allow all has a banner; APPLIED rows can be undone; saved rules are revoked in the settings.
- design/acp-integration.md, under The side chat in the app. Tests caliper_chat_pane and caliper_side_chat_app, including a mode walk-through.
- design/acp-integration.md, under Decisions. Decisions of the side chat: version 1 first, declined capabilities, chat events through the client's queue, any agent on any model, four detected agents plus custom, one card per change, the chat starts the API visibly, the origin is the token's, and a per-agent local-model mark.
- design/applet-builder.md, under How the ACP client would work. Caliper spawns the chosen agent, calls initialize and session/new with caliper mcp --connect <port>; the pane shows messages, tool calls and permission requests; the agent keeps its own login.
- design/applet-builder.md, under Safety in every option. Control port on localhost with a session token, read-only SQL, approvals for deleting or overwriting commands.
- design/builder-overview.md, under What is built. Review of spec edits for every agent: with review on, agent and mcp edits wait for approval with a diff and warnings.
- design/builder-overview.md, under What is built. The app shows each pending approval as a card above the jobs tray.
- design/builder-overview.md, under The integration order after sprint 2. Item 3: the review of spec edits and the approval cards, done.
- design/builder-session.md, under What is built and what is planned. Planned: the approval cards, so the person sees and decides what an agent's command waits for.
- design/builder-session.md, under Review of spec edits. The session's policy holds an edit of the open spec from a reviewed origin (agent and mcp by default) with a diff card and runs it only as it was shown.
- design/builder-session.md, under Limits. The app has no approval UI yet, so an agent's command that needs approval waits for its caller's time limit.
- design/byok-agent.md, under Approval and spec diffs. The general role asks with session/request_permission for destructive commands and previewable edits, after a dry-run diff, unless Caliper reviews them itself.
- design/command-layer.md, under What is built and what is planned. Agent permissions as data (effect), modes, rules and allowed_by in the journal.
- design/command-layer.md, under review. review.status tells a caller which of its commands wait for the person.
- design/command-layer.md, under Undo, redo and approval. Undo and redo are the person's tools: agents and mcp may not run them, and the history asks the approval policy about destructive commands in the step it would undo.
- design/command-layer.md, under Approval. The approval policy allows, denies or asks; destructive commands from agent, mcp and api ask, and the session adds rules for Python runs, applet overwrites, replacing an unsaved spec and review of spec edits, with approvals bound to content.
- design/command-layer.md, under Approval. Only the app's own UI calls approve and deny: no command or endpoint approves, sets a mode or adds a rule.
- design/command-layer.md, under Agent permissions. The person chooses how much the side chat's agent and outside agents may do without asking; the command layer applies it.
- design/command-layer.md, under Who they govern. Modes govern the side chat's agent (origin agent with client chat) and caliper-mcp's clients; the widget agent keeps its preview with Accept.
- design/command-layer.md, under Modes. Ask, Accept edits, Read only and Allow all, for the side chat's agent and for caliper-mcp's clients.
- design/command-layer.md, under Allow All. Allow all as a saved mode of each principal, set only from the person's own UI, with the approvals that still ask and the limit of the settings file.
- design/command-layer.md, under Rules. Allow once, Allow always for this session and Always allow a command, saved in agent-permissions.json owner-only.
- design/command-layer.md, under What no mode or rule changes. Only the person's UI sets a mode or rule; ceilings such as the viewer's read-only origin, the refusal of undo to agents and content-bound approvals stand in every mode.
- design/command-layer.md, under Pending approvals and the end of a session. A mode change leaves waiting approvals waiting, and the end of the chat's agent ends its session rules and leaves its saved mode.
- design/command-layer.md, under What each command does. The effect of every command, read, edit or change, is data in the table and decides what each mode allows.
- design/command-layer.md, under Which origin a call has. The origin belongs to the token, not the request, so a request cannot raise its own rights.
- design/command-layer.md, under Open items. Open from agent permissions: deny rules and finer scopes, and a session for mcp whose rule lasts until the app quits.
- design/command-layer.md, under Open items. Holding a launch of a workspace spec applet as one command under review, so it waits on a card like other held commands.
- design/gpu-programs.md, under Intervention Effect. The commands that set or clear an intervention have the effect run, with its card and rules.
- design/hosted-runs.md, under Review Card. A start or a fork of a managed run always waits for a review card, in every mode.
- design/instruments.md, under Run Effect Class. The effect class run marks the commands that change a running script.
- design/instruments.md, under Approval Card. A run command shows an approval card to the person before it takes effect.
- design/loaders.md, under Approval. LoaderStore::run refuses a Python loader without RunOptions::allow_python and the command layer sets it only after the person approved, so an agent's run of a script asks.
- design/mcp-server.md, under Approval. A destructive command or a reviewed spec edit waits in the app for up to 120 seconds; there is no tool that approves; modes Ask, Accept edits and Read only apply to the mcp origin.
- HTTP API, Command Origin. The session token and the token for outside agents differ in what waits for approval.
- MCP Server, Tools. One tool per agent-permitted command, with schema checks and permission modes.
- Side Chat, Modes. The modes Ask, Accept edits, Read only and Allow all.
- Pull request #17. Review findings deferred in pull request 17: how Accept treats preview.commit, edge cases in the life cycle of the API the chat starts, approvals from the API that never expire, and a command joining another origin's undo step through its group.
- Pull request #20. Pull request 20 (merged) delivers sprint 3.1: tests isolated from the person's data, permission modes for the side chat and caliper-mcp clients, metrics in the Sources list grouped by run, and removal of a panel.
- Pull request #20. Not done in pull request 20: deny rules, a guard for the browser tests and the sidecar's default API file, one saved-rule key shared by all custom agents, and the x on a panel strip covering the end of its stats text.
- Orchestrators' notes,
_notes/HANDOFF-sprint3.md. A launch carries the caller's origin and answers PENDING_APPROVAL; the design for holding a launch as one approval command is an open item and was not built, by decision. - Orchestrators' notes,
_notes/HANDOFF-sprint3.md. Sprint 3.1 was merged (PR 19 for the third sprint 3 PR, then sprint3.1 at beff1624): test data isolation with a guard, agent permission modes, metrics grouped by run in Sources and the ways to remove a panel. - Orchestrators' notes,
sprint3-integration/PR.md. Behaviour changes: api.json holds an mcp token, the origin comes from the token, and mcp and agent tokens watch only on the stream. - Orchestrators' notes,
sprint3-integration/PR3.md. A launch carries the caller's origin; an agent's launch over unsaved changes is held and answers PENDING_APPROVAL. - Orchestrators' notes,
sprint3-integration/PR3.md. The side chat's agent never falls back to api.json, and a permission card is labelled with the agent's own title. - Orchestrators' notes,
sprint3-integration/PR31.md. Agent permission modes Ask, Accept edits, Read only and Allow all, the card's three answers and saved rules with Revoke in settings.