Skip to content

Approvals and AI

An outline; the full description is in docs/architecture.md (the approval pipeline) and its AI section.

Each operation call passes through the approval pipeline (ADR 0011, ADR 0018):

  1. a deterministic gate: the actor and the operation’s risk class give auto, deny or review, never below the deployment’s floor;
  2. an optional policy adjudicator, which judges the simulated change against the organisation’s written policy (ADR 0204);
  3. 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.

  • 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 be humanOnly (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.

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.

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.