Skip to main content
Approval sits between admission and permission in the action lifecycle: the world acknowledges the submission immediately with state: "pending_approval", then waits for a decision before the action becomes accepted. The admission bound (AWP-LIF-002) applies to the acknowledgement, not to the decision.
  • Action types marked requires_approval: true enter the pending_approval state after validation and before accepted. The world emits safety.approval_requested (approval id, action id, type, params, requester, expiry, and the current task when one is set) to its approver connections (AWP-APR-007). [AWP-APR-001]
  • The approver responds via safety.approval.respond (approve | deny). Approve → accepted (or queued if the concurrency group is busy and the submission chose queue). Deny → rejected with reason approval_denied. [AWP-APR-002]
  • Approvals time out after approval_timeout_ms (safety policy; default 60000) → rejected with reason approval_timeout. If the submission’s own deadline_ms expires first, the action is rejected with reason deadline_exceeded (AWP-LIF-008). [AWP-APR-003]
  • Standing approvals. Approvals are per-action. A world MAY support scoped standing approvals and declares that it does with safety_policy.standing_approvals: true. An approver grants one by answering a request with decision: "approve" and standing: { scope: { type, predicate }, expires_at_ns }: the request’s action is approved, and until expires_at_ns, on the requesting session’s clock, that session’s submissions of scope.type whose params satisfy scope.predicate (a JSON Schema; absent, any params) are admitted as if approved, with no pending_approval state and no safety.approval_requested. A grant belongs to the requesting session and ends with it. The action.submit result of an action admitted under a grant carries the approval_id of the request the grant answered, and the grant, like every approval, is recorded in the requesting session’s audit log (AWP-AUD-001). A world MUST answer a safety.approval.respond carrying standing with AWP_PARAMS_INVALID, changing nothing, if it does not declare standing approvals, if decision is deny, if scope.type is not the request’s type, or if predicate is not a valid JSON Schema. [AWP-APR-004]
  • Who may approve is deployment configuration, out of protocol scope; the protocol only defines the messages and states. [AWP-APR-005]
  • Approver connections. An approver is a control connection the deployment authorizes, for example by its bearer credential (AWP-SEC-005); it completes initialize, needs no session, receives safety.approval_requested for every session, and answers with safety.approval.respond. expires_at_ns is on the requesting session’s clock. The world MUST answer safety.approval.respond from a connection it has not authorized with AWP_FORBIDDEN, and one naming an approval_id that is unknown or already decided — denied, approved, timed out, or ended by cancel, close, reset, or supersession — with AWP_PARAMS_INVALID; neither changes the action. [AWP-APR-007]
  • Approval request content is subject to the audit redaction rules (AWP-AUD-006): params fields and the task text listed in safety_policy.audit.redact_paths are redacted in the log, not in the message to the approver. [AWP-APR-006]