PromptReports

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.

ToolWhat it doesState
request_approvalAsk before an action, with the action key, the arguments and a reasonBuilt
get_approvalRead a request's status and final_args, with its decisionsBuilt
cancel_approval, answer_approverWithdraw a request, or answer the approver's questionBuilt
list_approvalsThe queue, by status, action, product, use case, assigned to me or requested by mePlanned
route_approvalSuggest an approver the policy already lists, or escalate to the policy's next stepPlanned
comment_on_approvalAdd a note; it changes no vote, edit or statusPlanned
subscribe_approvalsWebhooks for approval events, signed, with ids and states onlyPlanned

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_..." }