Approvals and AI
An outline; the full description is in docs/architecture.md (the approval pipeline) and its AI section.
Every call is gated
Section titled “Every call is gated”Each operation call passes through the approval pipeline (ADR 0011, ADR 0018):
- a deterministic gate: the actor and the operation’s risk class give
auto,denyorreview, never below the deployment’s floor; - an optional policy adjudicator, which judges the simulated change against the organisation’s written policy (ADR 0204);
- a human queue for what is left, in the Approvals inbox.
A review decision dry-runs the operation, which causes no real effect, and records a pending
action with its diff; a person approves or rejects it
(ADR 0022). Every decision is audited.
What only a person does
Section titled “What only a person does”- Loosening approval policy is a human admin’s only, and auth secrets are env-only: identity and policy are not AI-configurable.
- An operation may allow only human actors (
actors: ["human"]), and a pack’s tool may behumanOnly(ADR 0512). - A tool or a field may be a person’s to approve (
personApproves): anyone else’s call waits for a person whatever the policy says (ADR 0552).
Each operation’s actors and each tool’s flags are on their reference pages.
Model roles
Section titled “Model roles”Code asks for a model role (such as review), never a model id. A deployment maps roles to
models in Settings → AI; calls go through AI Gateway.
MCP and the assistant
Section titled “MCP and the assistant”An MCP client and the in-app assistant call the same operations as the UI, through the same pipeline, with the same descriptions the reference pages show.
This guide is docs/guides/approvals-and-ai.md, written by hand beside the code.