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
- 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.
- The runtime carries itThe agent's runtime puts the token in
context.approvalon that one call. The model never sees it. - 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: trueand who approved. - 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
- A signed-in person. The approver is the session's name, never one sent in the request.
- Not the agent's owner: four eyes.
- Not the
automationaccount: an approval is a person's.
Issue one by API
{ "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
| Reason | Means |
|---|---|
expired | past its time |
reused | already used once |
bound_elsewhere | for another agent, action, record or person: an approval given in Ana's session is refused in Ben's |
bad_signature, malformed | not one Caroline issued |
issued_before_restart | issued before the PDP last started; a restart can never reopen a used one |
not_configured, busy | the 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.