CarolineDocs

Govern AI agents / A person's approval

A person's approval

Some steps need a person to say yes first: a refund over a limit, a payment. Caroline issues that yes as a signed token for one step, which the agent cannot forge, reuse or carry to another step.

Not a countersign: an approval lets one agent make one call; a countersign is a second person agreeing to a change to Caroline itself, such as a rule or a record from a suggestion, or a connection's mode.

How it works

  1. A person approves one stepOn the AI Agents page, Approve a step: the agent, the action, the record. Caroline signs a token bound to exactly that, and to the person the agent acts for.
  2. The runtime carries itThe agent's runtime puts the token in context.approval on that one call. The model never sees it.
  3. The PDP checks itSignature, expiry, the binding to this agent, action, record and person, and that it was never used. Only then does the engine see approval_verified: true and who approved.
  4. The rules decideA rule that needs approval reads approval_verified. Limits still bind: an approved refund over the agent's ceiling is still refused.

Who may approve

Issue one by API

POST/api/agents/approvalsauthor
{ "agent_id": "a_support_bot", "action": "issue", "resource_id": "r_refund_mid",
  "on_behalf_of": "u_rep_ana", "ttl_s": 300 }

ttl_s is 1 to 600 seconds, 300 by default. The answer holds the token and the approval's id. The issue is recorded in the ledger (approval_issued) before the token leaves Caroline; when the ledger cannot record it, no approval is issued.

Why one is refused

ReasonMeans
expiredpast its time
reusedalready used once
bound_elsewherefor another agent, action, record or person: an approval given in Ana's session is refused in Ben's
bad_signature, malformednot one Caroline issued
issued_before_restartissued before the PDP last started; a restart can never reopen a used one
not_configured, busythe installation cannot verify approvals right now

A caller's own approval_verified or approved_by is dropped before the engine, and counted. Sending "approval_verified": true yourself does nothing.

In the record

The decision's ledger record carries approved_by and approval_id, never the token. Decisions shows "approved by ..." or why an approval was rejected. A forged, reused or misplaced approval raises the agent's signal to investigate.

Limits

Each approval is single-use within one PDP. An installation running several PDPs needs a shared store for used approvals, which is not built: run one PDP.

Caroline DocsAuthZEN 1.0 · OPA