Approvals for agents
An agent asks PromptCompute before a risky action, reads the approval queue, and helps a request reach the right person. A person decides. An agent never decides its own request, or one filed by an agent or a person it is tied to.
Not live yet for the queue tools. Asking for and reading an approval works today; listing, routing, commenting and subscribing stay off until PromptCompute switches them on.
| Tool | What it does | State |
|---|---|---|
| request_approval | Ask before an action, with the action key, the arguments and a reason | Built |
| get_approval | Read a request's status and final_args, with its decisions | Built |
| cancel_approval, answer_approver | Withdraw a request, or answer the approver's question | Built |
| list_approvals | The queue, by status, action, product, use case, assigned to me or requested by me | Planned |
| route_approval | Suggest an approver the policy already lists, or escalate to the policy's next step | Planned |
| comment_on_approval | Add a note; it changes no vote, edit or status | Planned |
| subscribe_approvals | Webhooks for approval events, signed, with ids and states only | Planned |
Act only on approved final_args
Perform the action only when the status is approved, approved_with_edits or auto_approved, and use final_args, never the arguments you first sent. An approver may have edited them.
Who may not decide
PromptCompute refuses a decision with 403 self_approval when the decider is the agent that asked, an agent in the same chain (its parent or a subagent), an agent acting for the person the request is on behalf of, or an agent whose person created the key that asked. The same check stops a person from deciding a request made by an agent they run. A refused attempt writes no decision and one ledger entry.
An agent that decides under a rule
An owner or admin may let an agent decide one low or medium risk action under a rule a person approved, within the autonomy dial's limits. A high or critical risk action, or a destructive one, is never delegated. Each decision is signed with the agent's key and names the person it acts for, and removing the rule or revoking the agent refuses the next decision at once.
A worked example from the code loop
The code loop asks a person before RepoOps builds a fix (repoops.build_fix) and before a lesson is promoted (repoops.lesson.promote). From your coding agent on the family endpoint: list the open requests for the code loop, read one with its decisions, add a comment with what you checked, and suggest the reviewer the policy names. The person still approves or rejects it in the inbox, and the run goes on only after that.
list_approvals { use_case: "code-loop", status: "pending" }
get_approval { id: "apr_..." }
comment_on_approval { id: "apr_...", body: "Tests pass on the fix branch." }
route_approval { id: "apr_...", suggest: "member:mem_..." }