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: trueenter thepending_approvalstate after validation and beforeaccepted. The world emitssafety.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(orqueuedif the concurrency group is busy and the submission chosequeue). Deny →rejectedwith reasonapproval_denied.[AWP-APR-002] - Approvals time out after
approval_timeout_ms(safety policy; default 60000) →rejectedwith reasonapproval_timeout. If the submission’s owndeadline_msexpires first, the action isrejectedwith reasondeadline_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 withdecision: "approve"andstanding: { scope: { type, predicate }, expires_at_ns }: the request’s action is approved, and untilexpires_at_ns, on the requesting session’s clock, that session’s submissions ofscope.typewhoseparamssatisfyscope.predicate(a JSON Schema; absent, anyparams) are admitted as if approved, with nopending_approvalstate and nosafety.approval_requested. A grant belongs to the requesting session and ends with it. Theaction.submitresult of an action admitted under a grant carries theapproval_idof 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 asafety.approval.respondcarryingstandingwithAWP_PARAMS_INVALID, changing nothing, if it does not declare standing approvals, ifdecisionisdeny, ifscope.typeis not the request’s type, or ifpredicateis 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, receivessafety.approval_requestedfor every session, and answers withsafety.approval.respond.expires_at_nsis on the requesting session’s clock. The world MUST answersafety.approval.respondfrom a connection it has not authorized withAWP_FORBIDDEN, and one naming anapproval_idthat is unknown or already decided — denied, approved, timed out, or ended by cancel, close, reset, or supersession — withAWP_PARAMS_INVALID; neither changes the action.[AWP-APR-007] - Approval request content is subject to the audit redaction rules (AWP-AUD-006):
paramsfields and the task text listed insafety_policy.audit.redact_pathsare redacted in the log, not in the message to the approver.[AWP-APR-006]