> For the complete documentation index, see [llms.txt](https://docs.metamynd.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metamynd.ai/agent-controls-agentsafe/reason-code-registry.md). Agents can also search and read this documentation through its [MCP server](https://docs.metamynd.ai/~gitbook/mcp).

# Reason Code Registry

Every reason code the gate can return: what it means, its disposition and its SAFR alias. Look up any allow, block or escalate here.

### Reason Code Registry <a href="#user-content-reason-code-registry-1" id="user-content-reason-code-registry-1"></a>

Every gate decision carries exactly one reason code from the registry below, taken from the reference implementation's registry (the same source the specification's generated Appendix A is built from). The **SAFR §30 alias** column maps each code to the canonical SAFR vocabulary where one exists — `—` marks a permit/lifecycle code or a MetaMynd-specific extension with no SAFR equivalent.

> The tables below are generated from the same registry the gate serves at `GET /magp/schema`, so every code the gate can return is listed. For automated tooling, read `GET /magp/schema` directly. To fix a refusal, see <a href="https://docs.metamynd.ai/guides/troubleshooting" target="_blank">Troubleshooting</a>. Treat this page as a readable reference, not the source of truth for automated tooling. An unknown non-permit code must always be treated as a block.

**Permit / lifecycle (no SAFR deny alias)**

| Code               | Decision | Meaning                                               | SAFR §30 alias |
| ------------------ | -------- | ----------------------------------------------------- | -------------- |
| `AUTHORIZED`       | allow    | All checks passed.                                    | —              |
| `OBSERVED`         | observe  | Permitted but flagged for monitoring (SAFR §11).      | —              |
| `STANDARD_OBSERVE` | observe  | A Standard molecule marked the action for monitoring. | —              |
| `SOP_OBSERVE`      | observe  | An SOP molecule marked the action for monitoring.     | —              |

**Request validation**

| Code                | Decision | Meaning                                                                                                                                                                                      | SAFR §30 alias |
| ------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
| `MALFORMED_REQUEST` | block    | The request body failed schema validation (a missing or invalid field, e.g. a negative amount) before any policy evaluation ran. Returned in the same verdict shape as every other decision. | —              |

**Identity (SAFR §6)**

| Code                          | Decision | Meaning                                                                                                                                                                                                                                                                        | SAFR §30 alias            |
| ----------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------- |
| `PRINCIPAL_UNVERIFIED`        | block    | The authorizing principal's authority does not currently hold: a mainnet agent beyond the limits of its principal's plan (§4.4.1). Testnet and did:key agents are never refused with it; verification is reported for a counterparty's own risk policy.                        | `IDENTITY_UNVERIFIED`     |
| `AGENT_NOT_FOUND`             | block    | Unknown agent DID.                                                                                                                                                                                                                                                             | `IDENTITY_UNVERIFIED`     |
| `AGENT_KEY_UNVERIFIED`        | block    | BYOK key not yet proven.                                                                                                                                                                                                                                                       | `IDENTITY_UNVERIFIED`     |
| `IDENTITY_ROTATED`            | block    | The request is signed as a DID its agent no longer uses: the owner rotated the agent's key (Rotate key), which issued a new DID and moved the agent's mandates to it. The old DID and key stop working at once.                                                                | `IDENTITY_REVOKED`        |
| `IDENTITY_KEY_MISMATCH`       | block    | Registered public key does not match the key embedded in the agent's own self-certifying DID.                                                                                                                                                                                  | `IDENTITY_UNVERIFIED`     |
| `MANDATE_REVOKED`             | block    | The mandate has been revoked, or a mandate it was delegated from is inactive (§5.4.10). Refuses the action at authorize (§8.5 step 1; a guard reads `revokedActions`, §6.2.6), a pending review (§10.4.2), an approval, and a claim or capture of an unclaimed hold (§8.7.15). | `IDENTITY_REVOKED`        |
| `DELEGATION_CHAIN_BROKEN`     | block    | A delegated mandate whose chain cannot be walked to its root: a parent is missing, the chain cycles, or it is deeper than the bound (§5.4.10). Fails closed at authorize, at an approval, and on a claim or capture of an unclaimed hold.                                      | `IDENTITY_REVOKED`        |
| `DELEGATION_NARROWING_FAILED` | block    | A reissue of a delegated mandate whose changed terms would not narrow its delegator's current terms (§5.4.2–§5.4.5, §5.4.11). An owner's change is refused (409, nothing changes); an identity rotation revokes the delegated mandate instead.                                 | `MANDATE_SCOPE_VIOLATION` |

**Envelope integrity (SAFR §5)**

| Code                                  | Decision | Meaning                                                                                                                                                                                                                                                                                             | SAFR §30 alias               |
| ------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| `SIGNATURE_INVALID`                   | block    | Ed25519 verification failed.                                                                                                                                                                                                                                                                        | `ENVELOPE_INTEGRITY_FAILURE` |
| `CLIENT_PROTOCOL_VERSION_UNSUPPORTED` | block    | The request verifies against an earlier canonical message shape (§8.3.7), not the current one: a valid key on an outdated client. Still blocked, but named so the client is upgraded rather than the key rotated.                                                                                   | `ENVELOPE_INTEGRITY_FAILURE` |
| `CONTEXT_SIGNATURE_INVALID`           | block    | Optional envelope signature present (Tier 1 context-claim binding, SAFR §5) but does not verify against the GovernanceEnvelope hash — the context was altered after the agent signed it, or signed with the wrong key.                                                                              | `ENVELOPE_INTEGRITY_FAILURE` |
| `PAYLOAD_BINDING_INVALID`             | block    | A payload binding (§8.3.9, §8.3.11) is present but not valid: a digest without a signature or the reverse, a malformed digest, or a signature that does not verify under the agent's key. A digest nobody signed binds nothing.                                                                     | `ENVELOPE_INTEGRITY_FAILURE` |
| `PAYLOAD_BINDING_REQUIRED`            | block    | The mandate's owner requires this action's payload to be bound (`requirePayloadBinding`, §8.3.9) and none is: at authorize, the request carries no binding; at a claim, the hold carries no digest yet. Send the payload so the agent signs its digest, or bind the hold (§8.3.11) before claiming. | `ENVELOPE_INTEGRITY_FAILURE` |
| `QUERY_NOT_BOUND`                     | block    | Executor-side (§8.7.11): a governed request carries a URL query, path parameter or fragment that the agent's signature and payload binding do not cover. Refused before anything is claimed.                                                                                                        | `ENVELOPE_INTEGRITY_FAILURE` |
| `REPLAY_DETECTED`                     | block    | Nonce already consumed.                                                                                                                                                                                                                                                                             | `ENVELOPE_INTEGRITY_FAILURE` |
| `REQUEST_EXPIRED`                     | block    | issuedAt outside the freshness window.                                                                                                                                                                                                                                                              | `ENVELOPE_INVALID`           |

**Mandate (SAFR §7)**

| Code                       | Decision | Meaning                                                                                                                                                                                                                                                             | SAFR §30 alias             |
| -------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| `NO_MANDATE`               | block    | The agent holds no mandate at all, and none was ever revoked for this action (that is MANDATE\_REVOKED).                                                                                                                                                            | `MANDATE_MISSING`          |
| `MANDATE_EXPIRED`          | block    | Outside mandate validity window.                                                                                                                                                                                                                                    | `MANDATE_EXPIRED`          |
| `MANDATE_NOT_YET_VALID`    | block    | Before the mandate validity window.                                                                                                                                                                                                                                 | `MANDATE_EXPIRED`          |
| `NO_PERMISSION_FOR_ACTION` | block    | Action not granted by the mandate.                                                                                                                                                                                                                                  | `ACTION_NOT_PERMITTED`     |
| `PROHIBITED`               | block    | A mandate prohibition fired.                                                                                                                                                                                                                                        | `REGULATORY_PROHIBITION`   |
| `CONSTRAINT_FAILED`        | block    | A mandate constraint failed.                                                                                                                                                                                                                                        | `MANDATE_SCOPE_VIOLATION`  |
| `JURISDICTION_REQUIRED`    | block    | The request has no effective jurisdiction (§8.3.12) while one is required: the mandate restricts jurisdictions for this action, or an enforced rule judges `jurisdiction-not-allowed`. An itinerary jurisdiction is ignored. A hard block: it outranks an escalate. | `EVIDENCE_MISSING`         |
| `JURISDICTION_NOT_ALLOWED` | block    | The request's signed jurisdiction (§8.3.12) is not in the mandate's allowed-jurisdictions list for this action.                                                                                                                                                     | `MANDATE_SCOPE_VIOLATION`  |
| `JURISDICTION_MISMATCH`    | block    | The request's signed jurisdiction (§8.3.12) differs from the country the owner registered for the payee, or the owner's entries for that payee name more than one country. Judged at authorize and again at an approval. A hard block: it outranks an escalate.     | `COUNTERPARTY_NOT_ALLOWED` |

**Exposure / counterparty (SAFR §22/§23)**

| Code                       | Decision                   | Meaning                                                                                                                                                                                                                                   | SAFR §30 alias                |
| -------------------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| `SPEND_LIMIT_EXCEEDED`     | block                      | Mandate budget constraint failed.                                                                                                                                                                                                         | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `CAP_EXCEEDED`             | block                      | The mandate's spend cap, enforced atomically as the hold is written (§8.5 step 16): committed spend plus this amount is over the cap. Usually a concurrent authorize took the rest of the budget. Not retryable until spend is released.  | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `CURRENCY_NOT_ALLOWED`     | block                      | The request's currency is not one a cap is denominated in (a mandate spend constraint, or an SOP or rule-pack cap scoped to a currency), so the cap cannot judge it and refuses. Request in the cap's currency, or have the owner add it. | `MANDATE_SCOPE_VIOLATION`     |
| `AMOUNT_NOT_DETERMINABLE`  | block                      | The gate could not establish how much value the action moves, so no cap could be applied to it (amount-unknown atom).                                                                                                                     | `EVIDENCE_MISSING`            |
| `MERCHANT_NOT_ALLOWED`     | block                      | Merchant outside mandate.                                                                                                                                                                                                                 | `COUNTERPARTY_NOT_ALLOWED`    |
| `COUNTERPARTY_NOT_ALLOWED` | block                      | Counterparty outside mandate.                                                                                                                                                                                                             | `COUNTERPARTY_NOT_ALLOWED`    |
| `ROUTE_NOT_ALLOWED`        | block                      | Route outside mandate.                                                                                                                                                                                                                    | `ACTION_NOT_PERMITTED`        |
| `RATE_LIMIT_EXCEEDED`      | block / escalate / observe | A time-windowed rate limit fired (rate-limit-exceeded atom).                                                                                                                                                                              | `RATE_LIMIT_EXCEEDED`         |
| `CONTROL_UNAVAILABLE`      | block / escalate           | A secondary control could not run and the deployment is configured to fail closed on them: the rate window or circuit-breaker lookup blocks; the spend-anomaly check or assurance lookup escalates to a person (§9).                      | `EVIDENCE_MISSING`            |

**Policy / SOP / standards (SAFR §8)**

| Code                                | Decision                                | Meaning                                                                                                                                                                                                                                                                                                           | SAFR §30 alias            |
| ----------------------------------- | --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| `UNAUTHENTICATED_MCP_CALL`          | block                                   | An MCP tool call arrived without an authenticated principal for the gate to attribute it to (seeded MCP default policies).                                                                                                                                                                                        | `IDENTITY_UNVERIFIED`     |
| `STANDARD_NONCOMPLIANT`             | block                                   | Missing/stale pin for an enforced Standard.                                                                                                                                                                                                                                                                       | `POLICY_VIOLATION`        |
| `STANDARD_RULE`                     | block / escalate / suspend / quarantine | A bound Standard molecule fired.                                                                                                                                                                                                                                                                                  | `POLICY_VIOLATION`        |
| `SOP_RULE`                          | block / escalate / suspend / quarantine | A bound SOP molecule fired.                                                                                                                                                                                                                                                                                       | `SOP_VIOLATION`           |
| `AUTHORIZATION_RULES_CHANGED`       | block                                   | A claim or capture of an unclaimed hold refused because the agent's current SOP or Standard rules no longer permit it (§8.7.16). The hold is voided and nothing executes; the agent asks again under the new rules.                                                                                               | `POLICY_VIOLATION`        |
| `ESCALATION_NOT_APPROVED`           | escalate                                | A claim that asked to execute only a hold a person approved (§8.7.18) — the executor's own policy judged the request as needing review — presented a hold that no approval minted. The hold is left unclaimed and unchanged; the request still needs a person, so the agent escalates and waits for the decision. | `HUMAN_REVIEW_REQUIRED`   |
| `AUTHORIZATION_CONTEXT_MISMATCH`    | block                                   | A claim or an in-process resume claim of a hold a person approved stated a context other than the one that person approved (§8.7.20, §8.7.21). Refused; the hold is left for the approved request. Resume with the arguments the escalation was raised with.                                                      | `MANDATE_SCOPE_VIOLATION` |
| `AUTHORIZATION_CONTEXT_REQUIRED`    | block                                   | A claim of a hold a person approved did not state the context it is about to execute (§8.7.20), or an in-process resume claim was signed with a message that binds no context (§8.7.21). Refused, the hold untouched. The `detail` names the executor or SDK version to upgrade to.                               | `ENVELOPE_INVALID`        |
| `AUTHORIZATION_CONTEXT_UNAVAILABLE` | block                                   | A claim of a hold a PERSON approved, whose approving review could not be found to read the approved context from (§9a.5). Refused rather than claimed unchecked; the hold is left as it was.                                                                                                                      | `POLICY_VIOLATION`        |
| `ESCALATION_REQUEST_MISMATCH`       | block                                   | The arguments given to resume an approved escalation do not reproduce the request the owner approved (§8.7.21): its amount, currency, merchant, resource, payload or context. Nothing runs; resume with the arguments the escalation was raised with.                                                             | `MANDATE_SCOPE_VIOLATION` |
| `CONTEXT_TOO_LARGE`                 | block                                   | An agent with bound SOP or Standard rules sent a rule context (its itinerary and envelope metadata) too large to record whole with the hold (§8.7.16). Refused rather than trimmed: a trimmed context could drop a field a rule reads and let the hold slip the claim-time re-check. Send a smaller context.      | `ENVELOPE_INVALID`        |
| `SANDBOX_CALLER_SHARE_EXCEEDED`     | block                                   | The shared public sandbox only: this caller (told apart by a keyed hash of its network) already holds its share of the sandbox's rolling spend budget, so one visitor cannot keep the budget drained for everyone else. The budget heals as the window rolls past; a real tenant's mandate never returns this.    | `POLICY_VIOLATION`        |

**Evidence-quality controls (SAFR §24). Author-facing codes for the evidence atoms.**

| Code                      | Decision         | Meaning                                                                                   | SAFR §30 alias         |
| ------------------------- | ---------------- | ----------------------------------------------------------------------------------------- | ---------------------- |
| `EVIDENCE_INSUFFICIENT`   | block / escalate | A required evidence type was not attested (evidence-requirement atom).                    | `EVIDENCE_MISSING`     |
| `EVIDENCE_CONFIDENCE_LOW` | block / escalate | Attested evidence confidence below the required minimum (evidence-confidence-below atom). | `EVIDENCE_QUALITY_LOW` |

**Containment / circuit breaker (SAFR §21)**

| Code                   | Decision     | Meaning                                                                                                                                                                   | SAFR §30 alias           |
| ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| `AGENT_SUSPENDED`      | suspend      | Agent contained (suspended) by a prior firing rule — reinstate to act again.                                                                                              | `CIRCUIT_BREAKER_ACTIVE` |
| `AGENT_QUARANTINED`    | quarantine   | Agent contained (quarantined) by a prior firing rule — reinstate to act again.                                                                                            | `CIRCUIT_BREAKER_ACTIVE` |
| `AGENT_DECOMMISSIONED` | decommission | Agent decommissioned (retired) by its owner — final: it is never reinstated; a new agent takes over its work. The owner's reason, if they gave one, is the record's note. | `CIRCUIT_BREAKER_ACTIVE` |
| `CIRCUIT_BREAKER_OPEN` | block        | A scoped circuit breaker (agent/tenant/tool/counterparty) is open — tripped manually or by failure rate.                                                                  | `CIRCUIT_BREAKER_ACTIVE` |

**Human review (SAFR §12)**

| Code                         | Decision | Meaning                                                                                                                                                                                                                                                                                        | SAFR §30 alias               |
| ---------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| `MODE_READ_ONLY`             | block    | READ\_ONLY operating mode denies a value-bearing action. (The owner's act of pinning that mode is recorded under the same code, as MODE\_AUTONOMOUS / MODE\_SUPERVISED / MODE\_RESTRICTED are.)                                                                                                | `ACTION_NOT_PERMITTED`       |
| `MODE_REVIEW`                | escalate | Operating-mode floor routed to human review.                                                                                                                                                                                                                                                   | `HUMAN_REVIEW_REQUIRED`      |
| `MODE_RESTRICTED_REVIEW`     | escalate | RESTRICTED mode: every value-bearing action needs a human.                                                                                                                                                                                                                                     | `HUMAN_REVIEW_REQUIRED`      |
| `MODE_SUPERVISED_REVIEW`     | escalate | SUPERVISED mode: high-consequence action needs a human.                                                                                                                                                                                                                                        | `HUMAN_REVIEW_REQUIRED`      |
| `CONTEXT_UNVERIFIABLE`       | escalate | A rule needed a context field (e.g. riskLevel) and could not get a well-formed value from a source it trusts — missing, unrecognised, or less trusted than the rule requires (spec §6.3).                                                                                                      | `HUMAN_REVIEW_REQUIRED`      |
| `REASSESSMENT_PENDING`       | escalate | A material authority change awaits owner review.                                                                                                                                                                                                                                               | `HUMAN_REVIEW_REQUIRED`      |
| `SPEND_PATTERN_ANOMALY`      | escalate | Amount is far above the agent's own recent payments for this action (a learned baseline, not a preset cap). Amounts the mandate's per-transaction cap and budget already bound closely are not re-checked.                                                                                     | `HUMAN_REVIEW_REQUIRED`      |
| `AGENT_NOT_CERTIFIED`        | escalate | The agent's latest deployment-assurance certificate is 'blocked' (a required assurance gate failed or was never assessed).                                                                                                                                                                     | `HUMAN_REVIEW_REQUIRED`      |
| `ASSURANCE_STALE`            | escalate | The agent's latest deployment-assurance certificate has passed its validUntil — the assessed facts are no longer current.                                                                                                                                                                      | `HUMAN_REVIEW_REQUIRED`      |
| `ESCALATION_PENDING`         | escalate | Held awaiting approver resolution (§9a).                                                                                                                                                                                                                                                       | `HUMAN_REVIEW_REQUIRED`      |
| `ESCALATION_EXPIRED`         | block    | Escalation TTL elapsed (§9a.4).                                                                                                                                                                                                                                                                | `HUMAN_REVIEW_TIMEOUT`       |
| `ESCALATION_CONTEXT_ALTERED` | block    | The pending escalation's stored request context no longer matches its row-integrity commitment made at escalate time (Tier 2 context-claim binding, SAFR §5) — reservation refused.                                                                                                            | `ENVELOPE_INTEGRITY_FAILURE` |
| `MANDATE_SUPERSEDED`         | block    | Approval refused: the mandate the review was raised under is no longer the agent's current mandate for the action (a newer one has been issued) — the agent asks again (§10.4.1). Also the reason a reissue closes the reviews pending under the mandate it replaced (§10.4.2).                | `MANDATE_MISSING`            |
| `APPROVAL_INPUT_UNAVAILABLE` | block    | Approval refused: an input the gate judges the request on could not be read or reconstructed at approval time (rate counter, breaker store, or the signed resource or signed jurisdiction of a review stored before it was kept) — refused, never skipped; the review stays pending (§10.4.1). | `EVIDENCE_MISSING`           |
| `ESCALATION_APPROVED`        | allow    | Approver upgraded the held request (§9a).                                                                                                                                                                                                                                                      | —                            |
| `ESCALATION_DENIED`          | block    | Approver denied the held request (§9a).                                                                                                                                                                                                                                                        | —                            |

**Decision token / capability binding (SAFR §20)**

| Code                           | Decision | Meaning                                                                                                                                                               | SAFR §30 alias           |
| ------------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| `AMOUNT_MISMATCH`              | block    | x402 amount exceeds the authorized amount (§7a).                                                                                                                      | `DECISION_TOKEN_INVALID` |
| `COMMITMENT_MISMATCH`          | block    | Executed transaction does not match the authorized commitment.                                                                                                        | `DECISION_TOKEN_INVALID` |
| `SESSION_MISMATCH`             | block    | Capability bound to a different agent↔MCP session.                                                                                                                    | `DECISION_TOKEN_INVALID` |
| `CAPABILITY_EXPIRED`           | block    | Capability past its expiry (§7.7).                                                                                                                                    | `DECISION_TOKEN_INVALID` |
| `CAPABILITY_SIGNATURE_INVALID` | block    | Capability signature invalid or wrong issuer key.                                                                                                                     | `DECISION_TOKEN_INVALID` |
| `CAPABILITY_OK`                | allow    | Capability signature + transaction/session binding verified.                                                                                                          | —                        |
| `CAPABILITY_AGENT_MISMATCH`    | block    | The capability was issued to a different agent DID than the one presenting it — or carries no agent at all (a v1 capability) while the verifier requires one (§15.3). | `DECISION_TOKEN_INVALID` |
| `CAPABILITY_SCOPE_MISMATCH`    | block    | The capability names a different mandate, action or currency than the verifier expects, or names none (a v1 capability) where one is required (§15.3).                | `DECISION_TOKEN_INVALID` |

**Evidence quality (SAFR §24)**

| Code                    | Decision | Meaning                                       | SAFR §30 alias         |
| ----------------------- | -------- | --------------------------------------------- | ---------------------- |
| `BBS_KYC_LEVEL_TOO_LOW` | block    | Disclosed KYC level below the required floor. | `EVIDENCE_QUALITY_LOW` |

**MetaMynd-specific extensions beyond the SAFR floor (no §30 alias)**

| Code                                 | Decision | Meaning                                                                                                                                                                                                                                                          | SAFR §30 alias                |
| ------------------------------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| `HOLD_VOIDED`                        | void     | Reservation expired or explicitly voided (§7a.4).                                                                                                                                                                                                                | —                             |
| `SETTLEMENT_FAILED`                  | block    | Facilitator could not verify/settle (§7a).                                                                                                                                                                                                                       | —                             |
| `AGENT_NOT_ADMITTED`                 | block    | A Service-side guard refused a validly signed request from an agent it does not admit (allowedAgents, §16.3) — before fetching its policy or claiming anything.                                                                                                  | `COUNTERPARTY_NOT_ALLOWED`    |
| `CREDENTIAL_PROFILE_NOT_PERMITTED`   | block    | The agent is admitted to the Service but not to this credential profile (a route, tool or skill that admits fewer agents, §16.3) — refused before its policy is fetched or anything claimed.                                                                     | `COUNTERPARTY_NOT_ALLOWED`    |
| `GATEWAY_OWNER_MISMATCH`             | block    | The agent's signed bundle names an owner other than the principal that owns this Service's credentials (gatewayOwnerPrincipal, §16.3), or names none — refused before any claim.                                                                                 | `COUNTERPARTY_NOT_ALLOWED`    |
| `GATE_UNREACHABLE`                   | block    | Guard fail-closed on transport error: the issuer could not be reached (a network failure, or a 5xx). A Service-side guard returns it when the policy bundle fetch fails that way; a 4xx answer is not an outage.                                                 | —                             |
| `ZK_POLICY_OK`                       | allow    | All zero-knowledge predicates verified blind.                                                                                                                                                                                                                    | —                             |
| `ZK_AMOUNT_PROOF_INVALID`            | block    | Bulletproofs range proof (amount ≤ cap) failed.                                                                                                                                                                                                                  | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `ZK_JURISDICTION_PROOF_INVALID`      | block    | Set-membership proof (jurisdiction ∈ allow-list) failed.                                                                                                                                                                                                         | `REGULATORY_PROHIBITION`      |
| `ZK_CALLER_POLICY_REJECTED`          | block    | A private-authorize request carried its own policy (`cap`, `allowedJurisdictions`). The terms are read from the agent's active mandate; a caller-chosen policy is refused (HTTP 400) rather than ignored, so an old client fails loudly (§15.1).                 | `ENVELOPE_INVALID`            |
| `ZK_TRANSACTION_COMMITMENT_REQUIRED` | block    | A private-authorize request carried no `transactionCommitment` (HTTP 400). Every allow returns a capability bound to the transaction it authorizes, so a request with no transaction to bind to is refused rather than answered with an unbound verdict (§15.1). | `ENVELOPE_INVALID`            |
| `ZK_CAP_MISMATCH`                    | block    | The range proof was built against a cap other than the agent's mandate cap, so it proves nothing about this mandate. Rebuild it against the cap in the agent's policy bundle (§15.1).                                                                            | `ENVELOPE_INVALID`            |
| `ZK_AMOUNT_PROOF_REQUIRED`           | block    | The mandate caps this action but the private-authorize request carries no amount commitment + range proof (§15.1).                                                                                                                                               | `EVIDENCE_MISSING`            |
| `ZK_JURISDICTION_PROOF_REQUIRED`     | block    | The mandate restricts jurisdictions for this action but the private-authorize request carries no jurisdiction commitment + membership proof (§15.1).                                                                                                             | `EVIDENCE_MISSING`            |
| `ZK_MANDATE_TERMS_UNSUPPORTED`       | block    | The mandate has no term the zero-knowledge path can prove for this action (no spend cap, no jurisdiction allow-list), or has one in a form it cannot prove (a non-upper-bound cap, a jurisdiction exclusion). Use /policy/mandate/authorize (§15.1).             | `MANDATE_SCOPE_VIOLATION`     |
| `ZK_CURRENCY_NOT_ALLOWED`            | block    | The private-authorize request names a currency outside the mandate cap's currencies, or names none where the cap allows several (§15.1).                                                                                                                         | `MANDATE_SCOPE_VIOLATION`     |
| `ZK_HUMAN_REVIEW_UNAVAILABLE`        | block    | The agent's operating mode (SUPERVISED/RESTRICTED) routes value-bearing actions to a human, and the zero-knowledge path can neither see the amount nor hold anything for a reviewer — so it refuses. Use /policy/mandate/authorize (§15.1).                      | `HUMAN_REVIEW_REQUIRED`       |
| `BBS_PRESENTATION_OK`                | allow    | Issuer-signed attributes verified via BBS selective disclosure.                                                                                                                                                                                                  | —                             |
| `BBS_PROOF_INVALID`                  | block    | BBS proof invalid, wrong issuer key, or nonce mismatch (replay).                                                                                                                                                                                                 | `ENVELOPE_INTEGRITY_FAILURE`  |
| `POLICY_BUNDLE_OK`                   | allow    | Policy bundle signature + freshness verified.                                                                                                                                                                                                                    | —                             |
| `POLICY_BUNDLE_STALE`                | block    | Bundle older than maxStaleness — fails closed for any action under a pinned key, else for a value-bearing one.                                                                                                                                                   | `POLICY_VIOLATION`            |
| `POLICY_BUNDLE_UNSIGNED`             | block    | Bundle carries no signature — fails closed for any action under a pinned key, else for a value-bearing one.                                                                                                                                                      | `POLICY_VIOLATION`            |
| `POLICY_BUNDLE_SIGNATURE_INVALID`    | block    | Bundle signature invalid or tampered (any tier).                                                                                                                                                                                                                 | `ENVELOPE_INTEGRITY_FAILURE`  |
| `POLICY_BUNDLE_UNVERIFIED`           | block    | No pinned policy key and the bundle came over plain http — nothing authenticates it, so a value-bearing action fails closed.                                                                                                                                     | `ENVELOPE_INTEGRITY_FAILURE`  |

**Action Passport (MetaMynd Governed Execution scope, Module E/F)**

| Code                        | Decision | Meaning                                                                                   | SAFR §30 alias           |
| --------------------------- | -------- | ----------------------------------------------------------------------------------------- | ------------------------ |
| `PASSPORT_EXPIRED`          | block    | The Action Passport bound to this authorization has passed its expiry — capture refused.  | `MANDATE_EXPIRED`        |
| `PASSPORT_ALREADY_CONSUMED` | block    | The Action Passport was already consumed by a prior capture — single-use, replay refused. | `DECISION_TOKEN_INVALID` |
| `PASSPORT_REVOKED`          | block    | The Action Passport was revoked (its hold was voided) before capture.                     | `DECISION_TOKEN_INVALID` |

**Platform rule packs**

| Code                         | Decision | Meaning                                                                                                                                     | SAFR §30 alias                |
| ---------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| `SOP_SPEND_CAP`              | block    | A starter SOP or rule pack's per-transaction cap: the amount is over the cap in the cap's currency.                                         | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `SOP_BUDGET_CAP`             | block    | A rule pack's total budget: committed spend plus this amount is over the budget.                                                            | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `RISK_REVIEW`                | escalate | A starter SOP or rule pack's risk review: the effective risk level is at or above the pack's threshold.                                     | `HUMAN_REVIEW_REQUIRED`       |
| `PII_REVIEW`                 | escalate | A rule pack sends a request that says it carries personal data to a human.                                                                  | `HUMAN_REVIEW_REQUIRED`       |
| `DECLARED_RISK_REVIEW`       | escalate | The owner's risk-assessment declaration rates this action Medium or High risk, so a person reviews it, whatever risk level the agent sends. | `HUMAN_REVIEW_REQUIRED`       |
| `RISK_UNDECLARED`            | escalate | The agent has a risk-assessment declaration, and this action is not in it: every action must be assessed, so a person reviews it.           | `HUMAN_REVIEW_REQUIRED`       |
| `WRITTEN_LAW_CONTRAVENTION`  | block    | The owner's risk-assessment declaration names this operation as contravening a written law (the rule names the statute).                    | `MANDATE_SCOPE_VIOLATION`     |
| `CONTENT_REVIEW`             | escalate | A rule pack's starter term list matched the request text (a STARTER list, meant to be replaced with the owner's own).                       | `HUMAN_REVIEW_REQUIRED`       |
| `JURISDICTION_BLOCKED`       | block    | A rule pack's jurisdiction list does not include the request's jurisdiction.                                                                | `MANDATE_SCOPE_VIOLATION`     |
| `DATA_RESIDENCY_REVIEW`      | escalate | A rule pack's data-residency list does not include the request's data region.                                                               | `HUMAN_REVIEW_REQUIRED`       |
| `EVIDENCE_INCOMPLETE`        | escalate | A rule pack requires evidence types the request did not carry.                                                                              | `EVIDENCE_MISSING`            |
| `EVIDENCE_CONFIDENCE_REVIEW` | escalate | The request's evidence confidence is below a rule pack's minimum.                                                                           | `HUMAN_REVIEW_REQUIRED`       |
| `COUNTERPARTY_TRUST_REVIEW`  | escalate | The counterparty's trust score is below a rule pack's review threshold.                                                                     | `HUMAN_REVIEW_REQUIRED`       |
| `RATE_LIMIT_REVIEW`          | escalate | The agent's call count in its rate-limit window passed a rule pack's early-review mark (before the hard RATE\_LIMIT\_EXCEEDED ceiling).     | `HUMAN_REVIEW_REQUIRED`       |

**Automated containment (MetaMynd Governed Execution scope, Module H)**

| Code                                | Decision             | Meaning                                                                                                                                                                                          | SAFR §30 alias           |
| ----------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------ |
| `REPEATED_DENIALS_CONTAINED`        | quarantine           | Automated containment: this agent crossed the repeated-denial threshold within the rolling window set by the deployment and was quarantined.                                                     | `CIRCUIT_BREAKER_ACTIVE` |
| `MANUAL_CONTAINMENT`                | suspend / quarantine | The agent was contained (suspended or quarantined) by its owner or an operator from the dashboard or API. The owner's reason, if they gave one, is the record's note. Reinstate it to act again. | `CIRCUIT_BREAKER_ACTIVE` |
| `REINSTATED_AFTER_REGRESSION_CHECK` | allow                | The agent's owner reinstated it after its current policy passed every Scenario Bank set that applies to it (the sets checked are on the record); it may act again.                               | —                        |

**Claim, resume and settlement (an executor's or SDK's refusal)**

| Code                              | Decision | Meaning                                                                                                                                                                                                                                                                                   | SAFR §30 alias               |
| --------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| `AUTHORIZATION_REQUIRED`          | block    | The executor requires an authorization (an authorizationId from an allow or an approval) and the request carried none.                                                                                                                                                                    | `DECISION_TOKEN_INVALID`     |
| `AUTHORIZATION_NOT_FOUND`         | block    | No hold exists for the authorizationId presented.                                                                                                                                                                                                                                         | `DECISION_TOKEN_INVALID`     |
| `AUTHORIZATION_EXPIRED`           | block    | The hold was not claimed within its time-to-live; ask again.                                                                                                                                                                                                                              | `MANDATE_EXPIRED`            |
| `AUTHORIZATION_VOIDED`            | block    | The hold was released before this claim or resume — by its agent, its owner, a revoke, a containment or a rule change. Nothing can run under it, and its owner must approve the request again.                                                                                            | `DECISION_TOKEN_INVALID`     |
| `AUTHORIZATION_ALREADY_CLAIMED`   | block    | Another executor (or an earlier attempt) already claimed this single-use hold.                                                                                                                                                                                                            | `DECISION_TOKEN_INVALID`     |
| `AUTHORIZATION_ALREADY_USED`      | block    | A resume of an approval that is already finished with: its hold was settled, claimed by a gateway, or expired, so the tool is not run again (§8.7.21).                                                                                                                                    | `DECISION_TOKEN_INVALID`     |
| `AUTHORIZATION_IN_USE`            | block    | The one resume of this approval is already taken and may still be running — by a concurrent resume in this process or another one (§9a.6); its authorization has not settled yet. Exactly one runs.                                                                                       | `DECISION_TOKEN_INVALID`     |
| `AUTHORIZATION_AGENT_MISMATCH`    | block    | The hold belongs to another agent than the one whose request presents it (§8.7.19).                                                                                                                                                                                                       | `IDENTITY_UNVERIFIED`        |
| `AUTHORIZATION_ACTION_MISMATCH`   | block    | The hold authorizes another action than the request's (§8.7.19).                                                                                                                                                                                                                          | `MANDATE_SCOPE_VIOLATION`    |
| `AUTHORIZATION_AMOUNT_MISMATCH`   | block    | The hold authorizes another amount than the request's (§8.7.19).                                                                                                                                                                                                                          | `MANDATE_SCOPE_VIOLATION`    |
| `AUTHORIZATION_CURRENCY_MISMATCH` | block    | The hold authorizes another currency than the request's (§8.7.19).                                                                                                                                                                                                                        | `MANDATE_SCOPE_VIOLATION`    |
| `AUTHORIZATION_MERCHANT_MISMATCH` | block    | The hold authorizes another merchant than the request's (§8.7.19).                                                                                                                                                                                                                        | `COUNTERPARTY_NOT_ALLOWED`   |
| `AUTHORIZATION_CLAIM_UNREACHABLE` | block    | The executor could not reach the issuer to claim the hold, so it did not execute (fail closed).                                                                                                                                                                                           | —                            |
| `COUNTERPARTY_AUTH_REQUIRED`      | block    | A claim or settlement of a hold was not signed by the agent or by a counterparty the owner registered: an authorizationId alone settles nothing.                                                                                                                                          | `IDENTITY_UNVERIFIED`        |
| `COUNTERPARTY_MISMATCH`           | block    | Only the counterparty that claimed the hold may settle it lower, void it or mark it unknown.                                                                                                                                                                                              | `COUNTERPARTY_NOT_ALLOWED`   |
| `PAYLOAD_DIGEST_INVALID`          | block    | The payload digest presented is not a well-formed sha256 digest.                                                                                                                                                                                                                          | `ENVELOPE_INVALID`           |
| `PAYLOAD_DIGEST_MISMATCH`         | block    | What the executor is about to run is not the payload the agent signed (payload binding, §8.3.9).                                                                                                                                                                                          | `ENVELOPE_INTEGRITY_FAILURE` |
| `PAYLOAD_NOT_BOUND`               | block    | The executor requires the agent to bind its payload (§8.3.9) and the request bound none.                                                                                                                                                                                                  | `ENVELOPE_INVALID`           |
| `PAYLOAD_NOT_CANONICALIZABLE`     | block    | The payload cannot be canonicalised (a value JSON cannot carry, too deep or too large), so it cannot be bound or compared.                                                                                                                                                                | `ENVELOPE_INVALID`           |
| `ARGUMENT_NOT_ALLOWED`            | block    | The tool call carries an argument outside the paths its mandate's argument policy allows (`Permission.arguments.allow`); the refusal names the JSON Pointer `path`. Raised by the guard that executes the call, before any hold is claimed. Remove the field, or have the owner allow it. | `MANDATE_SCOPE_VIOLATION`    |
| `ARGUMENTS_UNCHECKABLE`           | block    | The mandate sets an argument policy for this tool and the guard cannot check the call against it: the arguments are not a single JSON object (or are too deep or too large), the guard was not given them, or the policy itself is malformed. Refused rather than run unchecked.          | `ENVELOPE_INVALID`           |
| `SENSITIVE_ARGUMENT_UNPROTECTED`  | block    | The mandate's argument policy says a value must leave keyed-hashed (`sensitive: hmac`) and the guard has no key to hash it with (`argumentKey`, `AGENTSAFE_ARGUMENT_KEY`), so the call is refused rather than sent in the clear. Configure the key on the Service.                        | —                            |
| `PAYLOAD_ALREADY_BOUND`           | block    | A late payload binding (§8.3.11) was refused: the hold is already bound to another payload.                                                                                                                                                                                               | `ENVELOPE_INTEGRITY_FAILURE` |
| `PAYLOAD_BINDING_UNSUPPORTED`     | block    | Raised by the SDK: its key provider cannot sign a payload binding, so the request is not sent unbound.                                                                                                                                                                                    | —                            |
| `PAYLOAD_BINDING_NOT_CONFIRMED`   | block    | Raised by the SDK: the issuer answered a late binding without confirming the digest (it predates §8.3.11), so the hold is treated as unbound.                                                                                                                                             | —                            |
| `HOLD_UNDER_RECONCILIATION`       | block    | The hold is being reconciled (its outcome is unknown) and cannot be claimed or settled until that resolves.                                                                                                                                                                               | —                            |
| `EFFECT_TRANSITION_CONTENDED`     | block    | An overlapping attempt on the same hold is in progress; retry the same request (not a refusal of it).                                                                                                                                                                                     | —                            |
| `AMOUNT_CHARGED_REQUIRED`         | block    | A settlement must state the amount actually charged.                                                                                                                                                                                                                                      | —                            |
| `REFUND_AMOUNT_INVALID`           | block    | A refund must be a positive amount no greater than what was captured.                                                                                                                                                                                                                     | —                            |
| `SETTLEMENT_REUSED`               | block    | A settlement proof (x402 payment) was already used for another authorization.                                                                                                                                                                                                             | `DECISION_TOKEN_INVALID`     |
| `ESCALATION_MODIFIED_APPROVED`    | allow    | A reviewer MODIFIED the escalated action and the modified action passed the gate: a hold was minted on the reviewer's values.                                                                                                                                                             | —                            |

**Fail-closed executor and guard errors**

| Code                        | Decision | Meaning                                                                                            | SAFR §30 alias               |
| --------------------------- | -------- | -------------------------------------------------------------------------------------------------- | ---------------------------- |
| `GUARD_ERROR`               | block    | The executor guard failed while verifying the request (not an issuer outage); nothing executed.    | —                            |
| `LOCAL_EVAL_ERROR`          | block    | The agent's guard failed while evaluating its cached rules locally; nothing ran.                   | —                            |
| `ISSUER_UNREACHABLE`        | block    | The executor could not reach the issuer it needs (bundle, claim or status), so it did not execute. | —                            |
| `ISSUER_API_REQUIRED`       | block    | The executor is configured to claim or settle but was given no issuer API to do it with.           | —                            |
| `NO_ISSUER`                 | block    | No issuer is configured for an operation that needs one.                                           | —                            |
| `BUNDLE_SUBJECT_MISMATCH`   | block    | The policy bundle fetched is for another agent than the request's.                                 | `ENVELOPE_INTEGRITY_FAILURE` |
| `MAGP_ENVELOPE_MISSING`     | block    | An A2A task arrived without the MAGP extension envelope (the signed request).                      | `ENVELOPE_INVALID`           |
| `CAPABILITY_REQUIRED`       | block    | The tool requires a capability credential the request did not present.                             | `DECISION_TOKEN_INVALID`     |
| `CAPABILITY_CHECK_ERROR`    | block    | The capability credential could not be checked, so the call was refused.                           | —                            |
| `SERVICE_IDENTITY_REQUIRED` | block    | The executor has no service identity (serviceDid / key) for an operation that must be signed.      | —                            |
| `SERVICE_SIGNING_FAILED`    | block    | The executor could not sign with its service key.                                                  | —                            |
| `NO_SERVED_AGENT`           | block    | The executor was asked to act for an agent it does not serve.                                      | `IDENTITY_UNVERIFIED`        |
| `NO_FACILITATOR`            | block    | An x402 payment needs a facilitator and none is configured.                                        | —                            |
| `REPORT_OUTCOME_INVALID`    | block    | An executor's outcome report was malformed and was not sent.                                       | —                            |
| `REPORT_UNREACHABLE`        | block    | An executor's outcome report could not be delivered (it is kept and re-sent).                      | —                            |

**Rules MetaMynd writes for you: the Controlled Testing plans and the SOP compiler's drafts**

| Code                              | Decision | Meaning                                                                                                                                                        | SAFR §30 alias                |
| --------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| `SANDBOX_PER_TXN_CAP`             | block    | Controlled Testing baseline plan: an amount over its per-transaction cap.                                                                                      | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `SANDBOX_CUMULATIVE_CAP`          | block    | Controlled Testing baseline plan: committed spend over its cumulative cap.                                                                                     | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `SANDBOX_RISK_REVIEW`             | escalate | Controlled Testing baseline plan: a high-risk action sent for review.                                                                                          | `HUMAN_REVIEW_REQUIRED`       |
| `SANDBOX_JURISDICTION`            | block    | Controlled Testing baseline plan: a jurisdiction outside the plan's list.                                                                                      | `MANDATE_SCOPE_VIOLATION`     |
| `SANDBOX_TOOL_NOT_ALLOWED`        | block    | Controlled Testing baseline plan: a tool outside the plan's allow-list.                                                                                        | `ACTION_NOT_PERMITTED`        |
| `SANDBOX_PII_DISCLOSURE`          | block    | Controlled Testing baseline plan: a request that discloses personal data.                                                                                      | `POLICY_VIOLATION`            |
| `SANDBOX_EVIDENCE_CONFIDENCE`     | escalate | Controlled Testing baseline plan: evidence confidence below the plan's minimum.                                                                                | `EVIDENCE_QUALITY_LOW`        |
| `SANDBOX_RATE_EXCURSION`          | observe  | Controlled Testing baseline plan: call rate above the plan's watch mark (flagged, not refused).                                                                | —                             |
| `PROBE_CAP`                       | block    | Governance Respect Probes: the over-cap probe was refused, as the probe expects (the agent must then stop).                                                    | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `PROBE_ESCALATE`                  | escalate | Governance Respect Probes: the high-risk probe was escalated, as the probe expects (the agent must then wait).                                                 | `HUMAN_REVIEW_REQUIRED`       |
| `AMOUNT_ABOVE_LIMIT`              | block    | A rule the SOP compiler drafted from "no payment may exceed X": the amount is over X.                                                                          | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `AMOUNT_NEEDS_APPROVAL`           | escalate | A rule the SOP compiler drafted from "payments over X need approval": the amount is over X.                                                                    | `HUMAN_REVIEW_REQUIRED`       |
| `BUDGET_EXCEEDED`                 | block    | A rule the SOP compiler drafted from a total budget: committed spend plus this amount is over it.                                                              | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `BUDGET_NEEDS_APPROVAL`           | escalate | A rule the SOP compiler drafted from a total budget that needs approval beyond it.                                                                             | `HUMAN_REVIEW_REQUIRED`       |
| `NO_FINANCIAL_AUTHORITY`          | block    | A rule drafted from "the agent has no financial authority": any request with a positive amount is refused (one with no amount is not).                         | `ACTION_NOT_PERMITTED`        |
| `CONSENT_MISSING`                 | block    | A rule the SOP compiler drafted from a consent requirement: the request says consent was not given.                                                            | `POLICY_VIOLATION`            |
| `PII_PRESENT`                     | block    | A rule the SOP compiler drafted from "personal data must not be shared": the request carries personal data.                                                    | `POLICY_VIOLATION`            |
| `PII_NEEDS_REVIEW`                | escalate | A rule the SOP compiler drafted that sends a request carrying personal data to a human.                                                                        | `HUMAN_REVIEW_REQUIRED`       |
| `PROHIBITED_TERM`                 | block    | A rule the SOP compiler drafted from a list of banned words: the request text contains one.                                                                    | `POLICY_VIOLATION`            |
| `PROHIBITED_CONTENT`              | block    | A rule the SOP compiler drafted from a prohibited-content requirement: the request text matched.                                                               | `POLICY_VIOLATION`            |
| `PROHIBITED_CONTENT_NEEDS_REVIEW` | escalate | A rule the SOP compiler drafted that sends prohibited or abusive content to a human.                                                                           | `HUMAN_REVIEW_REQUIRED`       |
| `RISK_TOO_HIGH`                   | block    | A rule the SOP compiler drafted that refuses actions at or above a risk level.                                                                                 | `POLICY_VIOLATION`            |
| `RISK_NEEDS_REVIEW`               | escalate | A rule the SOP compiler drafted that sends actions at or above a risk level to a human.                                                                        | `HUMAN_REVIEW_REQUIRED`       |
| `OPERATION_NEEDS_APPROVAL`        | escalate | An owner-keyed operation rule: the request context names an operation (e.g. op=delete-all) the owner sends to a human, whatever risk level the agent declared. | `HUMAN_REVIEW_REQUIRED`       |
| `OPERATION_NOT_ALLOWED`           | block    | An owner-keyed operation rule: the request context names an operation the owner does not allow, or omits a field the rule requires.                            | `ACTION_NOT_PERMITTED`        |
| `SCENARIO_PER_TXN_CEILING`        | block    | A Scenario Bank set's per-transaction ceiling: the amount is over it. Remedy: lower the amount, or change the owner's cap the set checks.                      | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `SCENARIO_CUMULATIVE_CEILING`     | block    | A Scenario Bank set's cumulative ceiling: committed spend plus this amount is over it.                                                                         | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `SCENARIO_RATE_CEILING`           | block    | A Scenario Bank set's rate ceiling: the agent's calls in the window are over it.                                                                               | `RATE_LIMIT_EXCEEDED`         |
| `SCENARIO_CONSENT_MISSING`        | block    | A Scenario Bank set: the request says consent was not given for the data it uses.                                                                              | `POLICY_VIOLATION`            |
| `SCENARIO_SOURCE_NOT_APPROVED`    | block    | A Scenario Bank set: the request's data source is not on the approved list.                                                                                    | `POLICY_VIOLATION`            |
| `SCENARIO_DATA_RESIDENCY`         | block    | A Scenario Bank set: the request's data region is outside the allowed regions.                                                                                 | `REGULATORY_PROHIBITION`      |
| `SCENARIO_TOOL_NOT_ALLOWED`       | block    | A Scenario Bank set: the tool is not on the set's allow-list.                                                                                                  | `ACTION_NOT_PERMITTED`        |
| `SCENARIO_MODEL_NOT_ALLOWED`      | block    | A Scenario Bank set: the model is not on the set's allow-list.                                                                                                 | `ACTION_NOT_PERMITTED`        |
| `SCENARIO_HIGH_RISK_REVIEW`       | escalate | A Scenario Bank set: a high-risk action is sent to a human.                                                                                                    | `HUMAN_REVIEW_REQUIRED`       |

**MCP tool-call policies (the built-in policy catalog)**

| Code                       | Decision | Meaning                                                                                                                                                                               | SAFR §30 alias           |
| -------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| `APPROVED`                 | allow    | An MCP tool-call policy governs this action and none of its rules refused it: the call may run.                                                                                       | —                        |
| `NO_POLICY`                | allow    | No active MCP tool-call policy governs this action (the verdict's standardRef is UNGOVERNED): the call is allowed ungoverned. Remedy: attach a policy if the tool should be governed. | —                        |
| `DATA_SOURCE_NOT_APPROVED` | block    | A catalog policy: the tool call's data source is not on the policy's approved list.                                                                                                   | `POLICY_VIOLATION`       |
| `RISK_THRESHOLD`           | escalate | A catalog policy: a high-risk tool call is sent to a human.                                                                                                                           | `HUMAN_REVIEW_REQUIRED`  |
| `PROHIBITED_CLAIM`         | block    | A catalog policy: the text makes a prohibited financial claim (e.g. "guaranteed returns", "risk-free").                                                                               | `REGULATORY_PROHIBITION` |
| `SENSITIVE_ADVICE`         | escalate | A catalog policy: the text reads as medical or legal advice, so a human reviews it.                                                                                                   | `HUMAN_REVIEW_REQUIRED`  |

**HTTP gateway refusals (agentsafe-http-gateway)**

| Code                           | Decision | Meaning                                                                                                                                                                                                                                                                                                                                                                                                                                    | SAFR §30 alias            |
| ------------------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------- |
| `MISSING_GOVERNANCE`           | block    | HTTP 401: a governed route was called without a signed MAGP request (by default the `x-magp-request` header). Remedy: sign the call with the agent's guard (buildSignedRequest) and send it in that header, or in whatever the gateway's `extractGovernance` reads.                                                                                                                                                                        | `ENVELOPE_INVALID`        |
| `GATEWAY_ACTION_MISMATCH`      | block    | HTTP 403: the signed request names a different action than the one this gateway route serves. Nothing is claimed and no nonce is consumed. Sign the call with the route's action, or call the route that serves the action you signed.                                                                                                                                                                                                     | `ACTION_NOT_PERMITTED`    |
| `PAYLOAD_UNBINDABLE`           | block    | HTTP 403: the JSON body carries none of the governed fields (amount, currency, merchant) at its top level — nested, renamed, differently cased or an array — so the gateway cannot show the signature covers it. Remedy: put the governed fields at the body's top level, or give the route its own `bind`.                                                                                                                                | `ENVELOPE_INVALID`        |
| `BIND_ERROR`                   | block    | HTTP 502: the route's payload binder threw reading the body, so the gateway cannot show the signature covers it (fail closed). Remedy: fix the route's `bind` function or the body it is given.                                                                                                                                                                                                                                            | —                         |
| `GOVERNANCE_ERROR`             | block    | HTTP 502: verifying the request threw inside the gateway — the guard failed, or the route's trustedContext deriver threw or returned nothing usable (fail closed). The `error` says which. Remedy: fix the deriver or the guard's configuration; it is not a policy verdict.                                                                                                                                                               | —                         |
| `CREDENTIAL_UNAVAILABLE`       | block    | HTTP 502: the gateway's credential vault released no credential for this route, so the call was not forwarded and the hold it claimed was released. Remedy: configure the credential, or mark a route that needs none `credential: false`.                                                                                                                                                                                                 | —                         |
| `UPSTREAM_UNREACHABLE`         | block    | HTTP 502: the permitted call could not be forwarded because no connection to the upstream was made, so nothing executed. The claimed hold was released and the body says `executed: false`. A retry is safe once the upstream is reachable.                                                                                                                                                                                                | —                         |
| `ACCESS_PRINCIPAL_UNAVAILABLE` | block    | HTTP 502: the route checks what its upstream returns against the tenant and user the request is served for (`route.access`), and the operator's resolver named neither, so the call was not forwarded and the claimed hold was released (`executed: false`). Remedy: fix the resolver, or the fixed principal the route names.                                                                                                             | —                         |
| `ACCESS_CONTEXT_MISMATCH`      | block    | HTTP 502: the upstream ran, but a tenant or user field in its answer (`path`) names someone other than the principal the request is served for, so the whole answer was withheld (`executed: true`). The value is never returned. Investigate the upstream query or filter that returned another principal's record.                                                                                                                       | `MANDATE_SCOPE_VIOLATION` |
| `ACCESS_CONTEXT_UNCHECKABLE`   | block    | HTTP 502: the upstream ran, but its answer could not be checked against the request's principal: not strict JSON, too many fields, or a tenant or user field the route names is missing or not a string or number (`path`, `detail`). It was withheld rather than released unchecked (`executed: true`). Remedy: correct `route.access` to the upstream's response shape.                                                                  | —                         |
| `OUTPUT_FORBIDDEN_WORD`        | block    | HTTP 403: what the call would send (its body after any argument rewrite, its query string, its path, or a header the route names) contains one of the operator's forbidden words (`route.output`, or the MCP guard's `output`), so nothing was sent and the claimed hold was released (`executed: false`). `path` says where (`?` for the query string, `@path` for the path, `@headers/<name>` for a header); the word is never returned. | `POLICY_VIOLATION`        |
| `OUTPUT_UNCHECKABLE`           | block    | HTTP 403: what the call would send could not be checked for forbidden words (a body that is not UTF-8, JSON that is not strict, a form or query string that does not decode, or a value that is not plain data), so it was refused rather than sent unchecked (`executed: false`). `detail` says why.                                                                                                                                      | —                         |
| `GATEWAY_ERROR`                | block    | HTTP 502: the gateway's HTTP server caught an unexpected error handling the call (fail closed). Check the gateway's log; the request may be retried.                                                                                                                                                                                                                                                                                       | —                         |
| `BLOCKED`                      | block    | HTTP 403: the guard refused the call without naming a code (an older or custom guard). Treated as a block (§13.3).                                                                                                                                                                                                                                                                                                                         | —                         |
| `EXECUTED`                     | allow    | An outcome report's code: the gateway forwarded the permitted call and the upstream answered (the report's httpStatus says how).                                                                                                                                                                                                                                                                                                           | —                         |
| `UPSTREAM_ERROR`               | allow    | An outcome report's code, and the reason a claimed hold is marked unknown: the permitted call was forwarded and the upstream failed without an HTTP answer, so whether it took effect is unknown until reconciled.                                                                                                                                                                                                                         | —                         |
| `RESPONSE_LOST`                | allow    | The reason recorded when a claimed hold's effect is marked unknown (`effect/unknown`), as `RESPONSE_LOST` or `RESPONSE_LOST:<executor's reason>`: the call was forwarded and its outcome could not be established. The hold stays committed until it is reconciled (§8.7.12).                                                                                                                                                              | —                         |
| `SETTLEMENT_THREW`             | block    | The gateway's settlement call to the issuer (capture, void or mark-unknown) threw. It is retried as transient; after the last attempt it is logged and the claimed hold stays committed to the cap until it is reconciled.                                                                                                                                                                                                                 | —                         |

**Guard and SDK fail-closed refusals**

| Code                               | Decision | Meaning                                                                                                                                                                                                                                        | SAFR §30 alias           |
| ---------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| `CONTEXT_SIGNATURE_REQUIRED`       | block    | A service-side guard run with `requireContextSignature` received a request whose context carries no envelope signature (or had it stripped). Remedy: have the agent sign its context (the SDKs do by default; do not pass signContext: false). | `ENVELOPE_INVALID`       |
| `CONTEXT_SIGNING_UNSUPPORTED`      | block    | Raised by the SDK: its key provider (or the agentsafe-signer daemon) cannot sign the request's context, so the request is not sent unsigned. Remedy: upgrade the signer, or pass signContext: false.                                           | —                        |
| `JURISDICTION_SIGNING_UNSUPPORTED` | block    | Raised by the SDK: the agentsafe-signer daemon predates signed jurisdictions (signer 0.18.0), so the request is not sent. Remedy: upgrade the signer, or omit `jurisdiction`.                                                                  | —                        |
| `SIGNER_UNREACHABLE`               | block    | Raised by the SDK: the agentsafe-signer daemon holding the agent's key could not be reached or failed, so nothing was signed or sent (not a gate outage). Remedy: start the daemon or fix its socket path.                                     | —                        |
| `CAPABILITY_INVALID`               | block    | The MCP guard's capability verifier rejected the capability credential the call presented, without naming a more specific code.                                                                                                                | `DECISION_TOKEN_INVALID` |
| `NOT_APPLIED`                      | block    | A service-side guard's settlement call (capture, void, refund or mark-unknown) was refused by the issuer without a reasonCode; nothing changed on the hold. The HTTP status and the issuer's message ride along.                               | —                        |
| `REFUSED`                          | block    | Raised by the Python client: a settlement or late payload-binding call was refused and the issuer's answer carried no reasonCode or message.                                                                                                   | —                        |
| `UNKNOWN`                          | block    | Raised by the Python client: the gate's answer carried no reasonCode (an older or non-MAGP endpoint). Read per §13.3: a non-allow decision without a known code is a block.                                                                    | —                        |

**Claim payload and x402 settlement binding**

| Code                             | Decision | Meaning                                                                                                                                                                                                                                             | SAFR §30 alias           |
| -------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| `PAYLOAD_DIGEST_REQUIRED`        | block    | A claim of a hold whose authorization bound a payload digest presented none: an executor cannot skip the binding by omission (§8.3.9). Nothing is claimed. Remedy: the executor states the digest of what it is about to run (guard payloadDigest). | `ENVELOPE_INVALID`       |
| `PAYLOAD_NOT_BOUND_AT_AUTHORIZE` | block    | A claim presented a payload digest for a hold whose authorization bound none: the executor believes the payload is bound and it is not (§8.3.9). Nothing is claimed. Remedy: the agent binds its payload when it asks (or binds it late, §8.3.11).  | `ENVELOPE_INVALID`       |
| `MISSING_BINDING`                | block    | x402: the payment requirements carry no MAGP authorization (`extra.magpAuthorizationId`), so the payment cannot be tied to a hold (§7a.2).                                                                                                          | `DECISION_TOKEN_INVALID` |
| `AUTHORIZATION_MISMATCH`         | block    | x402: the payment is bound to another authorization than the one being settled (§7a.2).                                                                                                                                                             | `DECISION_TOKEN_INVALID` |
| `AMOUNT_INVALID`                 | block    | An amount that is not a usable number: an x402 paid amount that is not a non-negative integer of minor units (§7a.2), a capture whose amountCharged is negative or not a number, or a refund that is not positive.                                  | —                        |
| `BINDING_OK`                     | allow    | x402: the payment is bound to this authorization and pays no more than it authorized (§7a.2).                                                                                                                                                       | —                        |

**Capture, release and refund of a hold**

| Code                             | Decision | Meaning                                                                                                                                                                                                                                  | SAFR §30 alias                |
| -------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| `AMOUNT_EXCEEDS_AUTHORIZED`      | block    | A capture whose amountCharged is over the authorized hold. Nothing is captured; an overspend goes through reconciliation, not capture.                                                                                                   | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `AGENT_SETTLE_SIGNATURE_INVALID` | block    | The agent's signature on a settlement of its own unclaimed hold does not verify over MAGP-SETTLE-v1 for this call.                                                                                                                       | `ENVELOPE_INTEGRITY_FAILURE`  |
| `PAYEE_NOT_REGISTERED`           | block    | A settlement below the hold named an account paid that is not one the owner registered for this merchant (payee directory), so the lower amount is not accepted.                                                                         | `COUNTERPARTY_NOT_ALLOWED`    |
| `PAYEE_NOT_VERIFIED`             | block    | The payee directory could not be read to confirm the account paid. Remedy: settle at the full authorized amount, or retry.                                                                                                               | —                             |
| `SETTLEMENT_NOT_CONFIRMED`       | block    | The remote system could not confirm a lower settled amount, or (on a release after a claim) that nothing was settled. Remedy: settle at the authorized amount, mark the effect unknown for reconciliation, or retry once it can confirm. | —                             |
| `SETTLEMENT_AMOUNT_MISMATCH`     | block    | The remote system reports a different settled amount than the settlement states.                                                                                                                                                         | —                             |
| `SETTLEMENT_NOT_FOUND`           | block    | The remote system reports no settlement for this authorization, so a lower settled amount cannot be confirmed.                                                                                                                           | —                             |
| `EFFECT_NOT_CAPTURABLE`          | block    | The hold's effect is in a state that cannot be captured (unknown, reconciling, ...): reconcile it first.                                                                                                                                 | —                             |
| `EFFECT_NOT_VOIDABLE`            | block    | The hold's effect is in a state that cannot be released (unknown, reconciling, ...): reconcile it first.                                                                                                                                 | —                             |
| `INVALID_EFFECT_TRANSITION`      | block    | The requested move of the hold's effect (e.g. to reconciling or compensating) is not allowed from its current state; read its state and act on that.                                                                                     | —                             |
| `HOLD_STATE_CHANGED`             | block    | The hold was claimed, settled or voided by another caller while this capture or refund ran; nothing was applied. Read its current state and retry.                                                                                       | —                             |
| `NOT_CAPTURED`                   | block    | Only a captured (settled) authorization can be refunded; this one is not.                                                                                                                                                                | —                             |
| `ALREADY_REFUNDED`               | block    | Nothing remains to refund: the capture was already refunded in full.                                                                                                                                                                     | —                             |
| `AMOUNT_EXCEEDS_REFUNDABLE`      | block    | The refund is more than what remains to refund of the capture.                                                                                                                                                                           | —                             |
| `CLAIM_EXPECTATION_INVALID`      | block    | HTTP 400: a claim's expectation (the action, amount, currency or merchant the executor expects the hold to authorize) is malformed.                                                                                                      | `ENVELOPE_INVALID`            |
| `IDEMPOTENCY_KEY_INVALID`        | block    | HTTP 400: the Idempotency-Key on a hold operation is malformed.                                                                                                                                                                          | —                             |
| `MANDATE_BLOCK`                  | block    | An approved escalation, re-judged against the mandate and rules as they stand at reservation, no longer passes and no more specific code was produced. Nothing is reserved; ask again.                                                   | `POLICY_VIOLATION`            |
| `MODIFIED_APPROVED`              | allow    | A reviewer-modified action, re-judged against the rules as they stand, passed every check (the hold is then minted as ESCALATION\_MODIFIED\_APPROVED).                                                                                   | —                             |
| `COMPENSATION`                   | allow    | The separately authorized $0 effect opened to compensate (reverse) an earlier one; its booking reference names the effect it compensates.                                                                                                | —                             |

**Counterparty authentication (a claim, settlement or outcome report signed by an executor)**

| Code                                    | Decision | Meaning                                                                                                                                                                                                                                  | SAFR §30 alias               |
| --------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| `COUNTERPARTY_AUTH_MALFORMED`           | block    | The executor's counterparty signature headers are incomplete or malformed (nonce, issuedAt or signature missing or out of range).                                                                                                        | `ENVELOPE_INVALID`           |
| `COUNTERPARTY_DID_UNSUPPORTED`          | block    | The executor's service DID is not one whose key the issuer can resolve (use did:key).                                                                                                                                                    | `IDENTITY_UNVERIFIED`        |
| `COUNTERPARTY_REQUEST_EXPIRED`          | block    | The executor's signed request is outside the freshness window (too old, or issued too far in the future). Check the executor's clock.                                                                                                    | `ENVELOPE_INVALID`           |
| `COUNTERPARTY_SIGNATURE_INVALID`        | block    | The executor's counterparty signature does not verify against its service DID.                                                                                                                                                           | `ENVELOPE_INTEGRITY_FAILURE` |
| `COUNTERPARTY_REPLAY_DETECTED`          | block    | The executor's signed request reuses a nonce already seen: a replay is refused.                                                                                                                                                          | `ENVELOPE_INTEGRITY_FAILURE` |
| `FACT_MALFORMED`                        | block    | HTTP 400: an environment fact was malformed (subject, fact name, a scalar value, observedAt or a whole-second validFor) and was not recorded.                                                                                            | `ENVELOPE_INVALID`           |
| `FACT_FROM_THE_FUTURE`                  | block    | HTTP 422: an environment fact's observedAt is ahead of the issuer's clock by more than the allowed skew. Check the observer's clock.                                                                                                     | `ENVELOPE_INVALID`           |
| `FACT_EXPIRED`                          | block    | HTTP 422: an environment fact had already expired (observedAt + validFor) when it arrived, so it was not recorded.                                                                                                                       | `ENVELOPE_INVALID`           |
| `FACT_VALIDITY_TOO_LONG`                | block    | An environment fact (or an observation scope) asks to be relied on for longer than the platform's 10 minutes or the observer's own cap.                                                                                                  | `ENVELOPE_INVALID`           |
| `FACT_OUT_OF_SCOPE`                     | block    | HTTP 403: the observer is registered, but no owner granted it this fact about this target.                                                                                                                                               | `ACTION_NOT_PERMITTED`       |
| `OBSERVER_NOT_REGISTERED`               | block    | The signing DID is not an active, proof-verified counterparty of any owner, so it cannot attest facts (or be given an observation scope).                                                                                                | `IDENTITY_UNVERIFIED`        |
| `DECLARATION_INVALID`                   | block    | HTTP 400: a risk-assessment declaration was refused: an action the agent holds a mandate for is missing, a test or harm limb is unanswered, a law limb names no statute, or the owner did not confirm it. The response lists each issue. | `ENVELOPE_INVALID`           |
| `OBSERVER_IS_AGENT`                     | block    | HTTP 409: an observation scope was refused because the DID is one of the owner's own agents: an agent never attests the facts it is judged on.                                                                                           | `ACTION_NOT_PERMITTED`       |
| `FACT_NAME_INVALID`                     | block    | HTTP 400: an observation scope names a fact that is not a plain name (a lower-case first letter, then letters, digits, \_ or -).                                                                                                         | —                            |
| `SUBJECTS_REQUIRED`                     | block    | HTTP 400: an observation scope names facts but no targets they may be about.                                                                                                                                                             | —                            |
| `FACT_RECORD_FAILED`                    | block    | HTTP 500: the issuer could not record an environment fact. Resend it: the same nonce is recorded once.                                                                                                                                   | —                            |
| `OBSERVATION_FAILED`                    | block    | HTTP 500: the issuer could not change an observation scope. Nothing was changed.                                                                                                                                                         | —                            |
| `COUNTERPARTY_NOT_REGISTERED`           | block    | The executor's service DID is not an active counterparty the agent's owner registered (or not a trusted entry where a proof of control is required).                                                                                     | `COUNTERPARTY_NOT_ALLOWED`   |
| `COUNTERPARTY_NOT_ALLOWED_FOR_MERCHANT` | block    | The registered counterparty is scoped to other merchants than this hold's.                                                                                                                                                               | `COUNTERPARTY_NOT_ALLOWED`   |
| `COUNTERPARTY_PROOF_REQUIRED`           | block    | Registering the counterparty needs a proof of control of its DID (a signed challenge) and none was given.                                                                                                                                | `IDENTITY_UNVERIFIED`        |
| `COUNTERPARTY_PROOF_INVALID`            | block    | The proof of control of the counterparty DID is malformed or does not verify.                                                                                                                                                            | `IDENTITY_UNVERIFIED`        |
| `COUNTERPARTY_PROOF_EXPIRED`            | block    | The challenge the proof of control signs has expired; fetch a new one.                                                                                                                                                                   | `IDENTITY_UNVERIFIED`        |
| `REPORT_CALLER_UNVERIFIED`              | block    | HTTP 400: an 'executed' outcome report must carry a caller request that verifies; this one does not.                                                                                                                                     | `ENVELOPE_INTEGRITY_FAILURE` |
| `REPORT_OCCURRENCES_INVALID`            | block    | HTTP 400: an 'executed' outcome report counts exactly one occurrence (only refusals are aggregated).                                                                                                                                     | `ENVELOPE_INVALID`           |
| `REPORT_RATE_LIMITED`                   | block    | HTTP 429: the executor sent outcome reports faster than the issuer accepts them; retry later (the guard keeps and re-sends them).                                                                                                        | `RATE_LIMIT_EXCEEDED`        |

**Effect reconciliation and compensation**

| Code                             | Decision | Meaning                                                                                                                                                                 | SAFR §30 alias                |
| -------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| `NOT_RECONCILABLE`               | block    | HTTP 409: the effect is neither unknown nor reconciling, so there is nothing to reconcile; its current effectState is returned.                                         | —                             |
| `NOT_RECONCILING`                | block    | An operator resolution needs the effect to be reconciling; it is not.                                                                                                   | —                             |
| `NOT_COMPENSABLE`                | block    | Compensation can begin only for an effect in compensation\_required; this one is not.                                                                                   | —                             |
| `NOT_COMPENSATING`               | block    | Compensation can be completed only for an effect that is compensating; this one is not.                                                                                 | —                             |
| `RECONCILE_COOLDOWN`             | block    | HTTP 429: this effect was probed moments ago; retry after the time in `detail`.                                                                                         | `RATE_LIMIT_EXCEEDED`         |
| `RECONCILE_NOT_PERMITTED`        | block    | HTTP 403: the caller is not one that may resolve this hold (its claimer, or a signed-in user who may manage it).                                                        | —                             |
| `NEEDS_HUMAN`                    | escalate | Reconciliation could not decide what happened (no reconciler for this effect, or the remote was inconclusive): the effect stays reconciling for an operator to resolve. | `HUMAN_REVIEW_REQUIRED`       |
| `RECONCILED_SUCCEEDED`           | allow    | Reconciliation found the effect happened: the hold is captured at the amount the remote system (or the operator) says was settled.                                      | —                             |
| `RECONCILED_FAILED`              | block    | Reconciliation found the effect did not happen: the hold is released and the effect is failed\_final.                                                                   | —                             |
| `COMPENSATION_REQUIRED`          | escalate | The effect happened but must be reversed (it violates a postcondition or policy): it waits for a compensating action.                                                   | `HUMAN_REVIEW_REQUIRED`       |
| `SETTLED_OVER_AUTHORIZED`        | escalate | Reconciliation found more settled than was authorized: the cap counts the real amount and the effect waits for compensation.                                            | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `COMPENSATION_STARTED`           | escalate | A separately authorized compensating effect was opened for this one, which is now compensating.                                                                         | —                             |
| `COMPENSATED`                    | allow    | The compensating action succeeded: the original effect is compensated.                                                                                                  | —                             |
| `COMPENSATION_FAILED`            | block    | The compensating action failed: the original effect is compensation\_failed and needs a person.                                                                         | —                             |
| `EFFECT_RECONCILE_NO_HANDLER`    | escalate | Evidence row: no reconciler can probe this effect, so it waits for an operator (the answer is NEEDS\_HUMAN).                                                            | `HUMAN_REVIEW_REQUIRED`       |
| `EFFECT_RECONCILE_UNRESOLVED`    | escalate | Evidence row: the reconciler could not decide what happened, so it waits for an operator (the answer is NEEDS\_HUMAN).                                                  | `HUMAN_REVIEW_REQUIRED`       |
| `EFFECT_RECONCILED_SUCCEEDED`    | allow    | Evidence row of RECONCILED\_SUCCEEDED.                                                                                                                                  | —                             |
| `EFFECT_RECONCILED_FAILED`       | block    | Evidence row of RECONCILED\_FAILED.                                                                                                                                     | —                             |
| `EFFECT_COMPENSATION_REQUIRED`   | escalate | Evidence row of COMPENSATION\_REQUIRED.                                                                                                                                 | `HUMAN_REVIEW_REQUIRED`       |
| `EFFECT_SETTLED_OVER_AUTHORIZED` | escalate | Evidence row of SETTLED\_OVER\_AUTHORIZED.                                                                                                                              | `EXPOSURE_THRESHOLD_EXCEEDED` |

**Owner actions on the evidence trail**

| Code                      | Decision | Meaning                                                                                                                    | SAFR §30 alias          |
| ------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
| `MODE_AUTONOMOUS`         | allow    | The owner pinned the agent's operating mode to autonomous.                                                                 | —                       |
| `MODE_SUPERVISED`         | allow    | The owner pinned the agent's operating mode to supervised.                                                                 | —                       |
| `MODE_RESTRICTED`         | allow    | The owner pinned the agent's operating mode to restricted.                                                                 | —                       |
| `MODE_PIN_CLEARED`        | allow    | The owner cleared the agent's operating-mode pin; the derived mode applies again.                                          | —                       |
| `REASSESSMENT_REQUIRED`   | escalate | The owner recorded a change to the agent that needs its assurance reassessed before it is trusted as before.               | `HUMAN_REVIEW_REQUIRED` |
| `REASSESSED`              | allow    | The owner cleared a pending reassessment of the agent.                                                                     | —                       |
| `REGRESSION_CHECK_PASSED` | allow    | The agent version's current policy passed every Scenario Bank set that applies to it (the sets checked are on the record). | —                       |
| `TRANSCRIPT`              | allow    | An agent-chat session transcript was anchored as evidence (hashed on-chain, encrypted off-chain).                          | —                       |

**The `SIGNATURE_INVALID` hint**

`SIGNATURE_INVALID` is the one code whose cause is invisible from the outside, so the gate attaches a non-normative diagnostic `hint` to it (as `data.hint`, outside the digested decision content). It names the three usual causes: a DER PKCS#8 key read as a raw seed, an amount stringified differently from ECMAScript `String(n)` (`150.0` must sign as `"150"`, `0.00005` as `"0.00005"`), and an `issuedAt` formatted twice. See <a href="https://docs.metamynd.ai/agent-protocol/request-signing-and-message-format" target="_blank">Request Signing & Message Format</a>.

**Related, non-authorize-time codes**

* `CONSTRAINT_WIDENED` / `CONSTRAINT_DROPPED` — issuance-time rejections when a delegation attempts to *widen* rather than narrow authority, including lowering or dropping a parent's `riskTier` or dropping `requirePayloadBinding` (see <a href="https://docs.metamynd.ai/core-concepts/mandates-and-delegated-authority" target="_blank">Mandates & Delegated Authority</a>).
* `EXPIRY_INVALID`: an owner-console answer (`400`), never a gate decision. A mandate expiry (`expiresAt`) that is not an ISO 8601 date-time or is not in the future, sent to onboarding (`POST /onboarding/agent`, `POST /onboarding/agents/{ref}/rules`) or to `POST /policy/agents/{ref}/mandate-expiry`. Nothing is created or changed.
* `EXPIRY_EXCEEDS_DELEGATOR`: an owner-console answer (`409`, in `data.reasonCode`), never a gate decision. An expiry change to a delegated mandate would let it outlast the mandate it was delegated from, which the response names in `data.delegatorExpiresAt`. Nothing is changed (see <a href="https://docs.metamynd.ai/core-concepts/mandates-and-delegated-authority" target="_blank">Mandates & Delegated Authority</a>).
* `JURISDICTION_SIGNING_UNSUPPORTED`: a **client-side** refusal from `@metamynd/agentsafe-guard` ≥ 0.16.0 and `metamynd-client` ≥ 0.6.0. The configured signer daemon did not echo the jurisdiction, which means it is older than `@metamynd/agentsafe-signer` 0.18.0 and would sign v1 for a v2 request. Nothing is sent, and the gate never returns this code.
* `ZK_PROOF_INVALID` — a controller fallback default for the zero-knowledge endpoint when a claim fails without a more specific code attached.

There's also a companion **atom catalog** (16 pure predicates: `amount-over`, `amount-unknown`, `cumulative-over`, `risk-at-or-above`, `data-source-not-approved`, `consent-missing`, `text-matches`, `jurisdiction-not-allowed`, `data-residency-violation`, `model-not-allowed`, `tool-not-allowed`, `pii-present`, `rate-limit-exceeded`, `hol-trust-below-review`, `evidence-requirement`, `evidence-confidence-below`) served at `GET /magp/schema` and `GET /standards/atoms` — see <a href="https://docs.metamynd.ai/core-concepts/policy-standards-and-sops" target="_blank">Policy: Standards & SOPs</a> for how these compose into the rules that actually produce `STANDARD_RULE`/`SOP_RULE` verdicts.

***

### Settlement-surface codes <a href="#user-content-settlement-surface-codes" id="user-content-settlement-surface-codes"></a>

{% hint style="warning" %} **This section adds the HTTP status each endpoint answers with.** Most of these codes are also in the registry above and in `GET /magp/schema`; a few are endpoint-only answers that never appear on a gate decision (for example `ALREADY_VOTED`, `NOT_HELD`, `CLAIMED`). They are returned by the claim, settlement, counterparty and payee endpoints — the calls a service makes *after* the gate has permitted an action — and by the SDK guards on the client side. The HTTP status is part of the contract: a service should branch on status and `reasonCode` (in `message`, or in `data.reasonCode`), never on message wording. {% endhint %}

The endpoints themselves are described in <a href="https://docs.metamynd.ai/agent-protocol/settlement-and-settlement-evidence" target="_blank">Settlement & Settlement Evidence</a> and <a href="https://docs.metamynd.ai/agent-protocol/api-endpoints" target="_blank">API Endpoints</a>.

**Claim — `POST /policy/mandate/authorize/{id}/effect/dispatching`**

| Code                                    | HTTP | Meaning                                                                                                                                                                                                            |
| --------------------------------------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `AUTHORIZATION_NOT_FOUND`               | 404  | No such hold.                                                                                                                                                                                                      |
| `AUTHORIZATION_ALREADY_CLAIMED`         | 409  | The hold has already been claimed (or dispatched, marked unknown or settled). The one stable answer for every loser, replay or late claim; carries no claim token. Read `GET …/effect` to learn what became of it. |
| `EFFECT_TRANSITION_CONTENDED`           | 409  | The claim lost for an unexplained reason and left the hold claimable, or overlapped your own earlier attempt still being recorded. Retry once.                                                                     |
| `AUTHORIZATION_VOIDED`                  | 409  | The hold was voided (released, or its mandate revoked before anyone claimed it).                                                                                                                                   |
| `AUTHORIZATION_EXPIRED`                 | 409  | The hold was never claimed and its hold window has passed.                                                                                                                                                         |
| `IDEMPOTENCY_KEY_INVALID`               | 400  | The `Idempotency-Key` is not 32–128 characters of `[A-Za-z0-9._:~-]`, or contains the authorization id.                                                                                                            |
| `PAYLOAD_DIGEST_INVALID`                | 400  | The `x-magp-payload-digest` header is not `sha256:` + 64 lower-case hex.                                                                                                                                           |
| `PAYLOAD_DIGEST_MISMATCH`               | 403  | The digest of what the claimant is about to run differs from the digest the agent signed. The hold stays unclaimed.                                                                                                |
| `PAYLOAD_DIGEST_REQUIRED`               | 403  | The hold is payload-bound and the claimant stated no digest.                                                                                                                                                       |
| `PAYLOAD_NOT_BOUND_AT_AUTHORIZE`        | 403  | The claimant stated a digest, but the agent never bound one to this hold.                                                                                                                                          |
| `PAYLOAD_BINDING_REQUIRED`              | 409  | The hold carries no digest and its mandate requires binding (e.g. after a reviewer's MODIFY). Claimable once the agent binds it.                                                                                   |
| `COUNTERPARTY_AUTH_REQUIRED`            | 403  | An anonymous claim where a signed service identity is required (the owner's registry is enforced, or the deployment requires authenticated claimers).                                                              |
| `COUNTERPARTY_NOT_REGISTERED`           | 403  | The signing service is not an active entry in the mandate owner's trusted-counterparty registry.                                                                                                                   |
| `COUNTERPARTY_NOT_ALLOWED_FOR_MERCHANT` | 403  | The registry entry is scoped to merchants and this hold's merchant is not one of them.                                                                                                                             |

**Service signature — any settlement call carrying `x-magp-service-*` headers**

| Code                             | HTTP | Meaning                                                                                                                |
| -------------------------------- | ---- | ---------------------------------------------------------------------------------------------------------------------- |
| `COUNTERPARTY_AUTH_MALFORMED`    | 401  | A service header is missing, or the nonce is not 8–128 characters.                                                     |
| `COUNTERPARTY_DID_UNSUPPORTED`   | 401  | The DID is not a self-certifying `did:key` or `did:hedera`.                                                            |
| `COUNTERPARTY_REQUEST_EXPIRED`   | 401  | `issuedAt` is unparseable, more than 5 minutes old, or more than 30 seconds in the future.                             |
| `COUNTERPARTY_SIGNATURE_INVALID` | 401  | The `MAGP-SERVICE-v1` signature does not verify under the DID's key.                                                   |
| `COUNTERPARTY_REPLAY_DETECTED`   | 401  | The service nonce was already used.                                                                                    |
| `COUNTERPARTY_MISMATCH`          | 403  | A settlement call (e.g. `effect/unknown`, `refund`) from someone who is not the claimer, the hold's owner or an admin. |

**Counterparty registry — `POST /policy/counterparties`**

| Code                               | HTTP | Meaning                                                                                                                            |
| ---------------------------------- | ---- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `ENFORCEMENT_CHANGE_NOT_CONFIRMED` | 409  | The owner's first registration switches every one of their holds to registered-only; resend with `confirmEnforcementChange: true`. |

**Capture, void and refund — `POST …/capture`, `POST …/void`, `POST …/refund`**

| Code                                                                  | HTTP                         | Meaning                                                                                                                                                                                                                                                                                                                                                                                         |
| --------------------------------------------------------------------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `AUTHORIZATION_NOT_FOUND`                                             | 404                          | No hold under this id — on capture, void and refund alike, as on the claim and `effect/*` routes.                                                                                                                                                                                                                                                                                               |
| `SETTLEMENT_NOT_CONFIRMED`                                            | 400                          | A lowered capture (or the release of a claimed hold) the settlement observer could not confirm — unreachable, still pending, or no stated amount. Settle at the full amount, retry later, or mark the effect unknown. With a facilitator configured, a claimer's void of a claimed x402-bound hold is **always** refused this way (fail-closed by design): capture, or mark the effect unknown. |
| `SETTLEMENT_AMOUNT_MISMATCH`                                          | 400                          | The observer reports a different settled amount than the one claimed.                                                                                                                                                                                                                                                                                                                           |
| `SETTLEMENT_NOT_FOUND`                                                | 400                          | The observer reports no settlement for this authorization, so a lower figure cannot be confirmed.                                                                                                                                                                                                                                                                                               |
| `PAYEE_NOT_REGISTERED`                                                | 400                          | A lowered capture whose `payTo` is not one of the accounts the owner registered for this merchant.                                                                                                                                                                                                                                                                                              |
| `PAYEE_NOT_VERIFIED`                                                  | 400                          | The payee directory could not be read, so a lowered capture is refused rather than unchecked.                                                                                                                                                                                                                                                                                                   |
| `HOLD_UNDER_RECONCILIATION`                                           | 409                          | The owner forced the hold into reconciliation; no caller-side capture or void applies.                                                                                                                                                                                                                                                                                                          |
| `EFFECT_NOT_VOIDABLE`                                                 | 409                          | Void refused: the effect is `dispatched` or `unknown`, so it may have happened. Reconcile it instead.                                                                                                                                                                                                                                                                                           |
| `EFFECT_NOT_CAPTURABLE`                                               | 409                          | Capture refused: the effect is `unknown` (or already resolved), so it must be reconciled, not captured on faith.                                                                                                                                                                                                                                                                                |
| `COUNTERPARTY_MISMATCH`                                               | 403                          | The hold is claimed and the caller is not its claimer: a void, or a capture **below** the authorized amount; a refund by someone other than the claimer, the hold's owner or an admin.                                                                                                                                                                                                          |
| `CLAIMED`                                                             | 409                          | Void refused: a claim landed while the void was in flight.                                                                                                                                                                                                                                                                                                                                      |
| `NOT_HELD`                                                            | 409 on capture · 200 on void | The hold is already settled or released. On **capture** a refusal (was `400 "Authorization already settled"`); on **void** `200 { voided: false }`, not an error. Usually the first call landed: read `GET …/effect`.                                                                                                                                                                           |
| `AUTHORIZATION_EXPIRED`                                               | 409                          | Capture of an unclaimed hold past its window: its budget already went back to the cap. Re-authorize. (The code a claim of it gets.)                                                                                                                                                                                                                                                             |
| `AMOUNT_EXCEEDS_AUTHORIZED`                                           | 400                          | `amountCharged` is more than the hold. Refused, never absorbed (a larger settlement *observed* by reconciliation is `SETTLED_OVER_AUTHORIZED`, below).                                                                                                                                                                                                                                          |
| `AMOUNT_INVALID`                                                      | 400                          | An amount that is not a finite number in range (only reachable past the schema; a malformed body is `MALFORMED_REQUEST`).                                                                                                                                                                                                                                                                       |
| `PASSPORT_EXPIRED` · `PASSPORT_ALREADY_CONSUMED` · `PASSPORT_REVOKED` | 400                          | Capture refused: the hold's Action Passport is no longer usable. Only a counterparty's capture is checked; reconciliation settles regardless.                                                                                                                                                                                                                                                   |
| `HOLD_STATE_CHANGED`                                                  | 409                          | Capture or refund lost a race: the hold was claimed, settled, voided or refunded by another caller between the read and the write. Nothing was applied; read `GET …/effect` and decide.                                                                                                                                                                                                         |
| `NOT_CAPTURED`                                                        | 409                          | Refund of a hold that is not captured.                                                                                                                                                                                                                                                                                                                                                          |
| `ALREADY_REFUNDED`                                                    | 409                          | Refund of a hold already fully refunded.                                                                                                                                                                                                                                                                                                                                                        |
| `AMOUNT_EXCEEDS_REFUNDABLE`                                           | 400                          | A partial refund larger than what remains captured.                                                                                                                                                                                                                                                                                                                                             |
| `MALFORMED_REQUEST`                                                   | 400                          | The authorization id is not a UUID, or the body failed validation (the validation issues are in `data.issues`). Same on the `effect/*` routes.                                                                                                                                                                                                                                                  |

**One refusal shape for all three.** A refused capture, void or refund carries the bare code as the `message` and `data: { captured | voided | refunded: false, authorizationId, reasonCode, detail }`, where `detail` is a sentence for people — branch on the code, never on `detail`. Every refusal has a code: the status comes from the code alone, the same on all three calls. Capture and void are not idempotent: read `GET …/effect` before retrying either.

**Effects and reconciliation**

| Code                                                       | HTTP | Meaning                                                                                                                |
| ---------------------------------------------------------- | ---- | ---------------------------------------------------------------------------------------------------------------------- |
| `RECONCILE_NOT_PERMITTED`                                  | 403  | `effect/reconcile` from someone who is not the claimer, the hold's owner or an admin.                                  |
| `RECONCILE_COOLDOWN`                                       | 429  | The same authorization was probed less than 5 seconds ago; honour `Retry-After`.                                       |
| `NOT_RECONCILABLE`                                         | 409  | Reconciliation asked for an effect that is not `unknown` or `reconciling`.                                             |
| `NEEDS_HUMAN`                                              | 200  | Reconciliation could not decide; the effect stays `reconciling` for an operator.                                       |
| `SETTLED_OVER_AUTHORIZED`                                  | 200  | The observed settlement exceeds the authorization; the effect moves to `compensation_required` for a person to decide. |
| `INVALID_EFFECT_TRANSITION`                                | 409  | The requested lifecycle transition is not legal from the current state.                                                |
| `SEQUENCE_GAP` · `CHAIN_LINK_BROKEN` · `DIGEST_MISMATCH`   | —    | Effect-chain verification failures (the hash-chained effect ledger does not verify).                                   |
| `NOT_CLAIMED` · `NOT_HELD`                                 | 409  | `effect/force-reconcile` on a hold nobody has claimed (void it instead) or that is already settled.                    |
| `ALREADY_FORCED` · `OWNER_FORCED_RECONCILE`                | 200  | Force-reconcile succeeded (or had already been applied).                                                               |
| `NOT_RECONCILING` · `NOT_COMPENSABLE` · `NOT_COMPENSATING` | 409  | Operator resolution or compensation asked for an effect in the wrong state.                                            |

**The same shape on the `effect/*` routes.** A refused claim (`effect/dispatching`), `effect/dispatched`, `effect/unknown`, `effect/reconcile`, `effect/force-reconcile` or outcome lookup (`GET …/effect`) carries the bare code as `message` and `data: { …, authorizationId, reasonCode, detail }` — the settlement body less the `captured | voided | refunded` flag. An unknown authorization id is `404 AUTHORIZATION_NOT_FOUND` on every one of them. If reconciliation, or an operator's resolution, settles the hold and the capture is refused (an unusable Action Passport, say), the route answers `409` with that capture code instead of a `500`.

**Late payload binding — `POST …/payload-binding`**

| Code                            | HTTP | Meaning                                      |
| ------------------------------- | ---- | -------------------------------------------- |
| `AUTHORIZATION_AGENT_MISMATCH`  | 403  | The hold was issued to another agent.        |
| `AUTHORIZATION_ACTION_MISMATCH` | 403  | The hold was issued for another action.      |
| `PAYLOAD_ALREADY_BOUND`         | 409  | The hold already carries a different digest. |

(The full refusal table for this endpoint is on <a href="https://docs.metamynd.ai/agent-protocol/request-signing-and-message-format#late-binding-a-hold-that-already-exists" target="_blank">Request Signing & Message Format</a>.)

**Escalation review — `POST /policy/escalations/{id}/resolve` and `GET …/status`**

| Code                                 | HTTP         | Meaning                                                                                                  |
| ------------------------------------ | ------------ | -------------------------------------------------------------------------------------------------------- |
| `MODIFY_REQUIRES_SINGLE_APPROVER`    | 409          | MODIFY is refused on an escalation that needs more than one approver.                                    |
| `INVALID_MODIFICATION`               | 400          | The reviewer's `modifiedAction` is not a valid change.                                                   |
| `INSUFFICIENT_AUTHORITY`             | 403          | The approver lacks the role or authority level the escalation requires.                                  |
| `ALREADY_VOTED` · `ALREADY_RESOLVED` | 409          | This approver already voted, or the review is already closed.                                            |
| `ESCALATION_MODIFIED_APPROVED`       | 200 (status) | A reviewer's MODIFY was re-evaluated and permitted; a fresh hold — with no payload digest — is attached. |
| `ESCALATION_MODIFIED_REESCALATED`    | 200 (status) | The modified action opened a new review; poll `nextEscalationId`.                                        |
| `ESCALATION_MODIFIED_BLOCKED`        | 200 (status) | The modified action was blocked when it re-entered the gate.                                             |

**x402 settlement store and binding — `/magp/settlement/*`**

| Code                     | HTTP                             | Meaning                                                                   |
| ------------------------ | -------------------------------- | ------------------------------------------------------------------------- |
| `SETTLEMENT_RESERVED`    | 200                              | The authorization was reserved for settlement.                            |
| `SETTLEMENT_REUSED`      | 409                              | The authorization was already reserved or settled.                        |
| `NOT_RESERVED`           | 409 on finalize · 200 on release | Nothing was reserved under this authorization.                            |
| `MISSING_BINDING`        | —                                | The x402 `PaymentRequirements` carry no `extra.magpAuthorizationId`.      |
| `AUTHORIZATION_MISMATCH` | —                                | The payment is bound to a different authorization than the one presented. |

**Client-side (SDK guards and the Python client)**

| Code                                                                                                                                                                       | Meaning                                                                                                                                                                                                                                                              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `PAYLOAD_BINDING_NOT_CONFIRMED`                                                                                                                                            | The agent sent a payload digest but the permit did not echo it; the permit is refused and the hold released.                                                                                                                                                         |
| `PAYLOAD_NOT_CANONICALIZABLE`                                                                                                                                              | The payload cannot be canonicalised (e.g. `NaN`, a function, a lone surrogate), so it is refused rather than sent unbound.                                                                                                                                           |
| `PAYLOAD_NOT_BOUND`                                                                                                                                                        | A gateway received a body for a payload-bound request and cannot show it is that payload.                                                                                                                                                                            |
| `QUERY_NOT_BOUND`                                                                                                                                                          | The HTTP gateway (≥ 0.17.1) refused a governed request carrying a URL query string, or a query, path parameter or fragment encoded into its path, that the signature does not cover. Nothing is claimed. A route may list keys it forwards unbound (`allowedQuery`). |
| `AUTHORIZATION_AGENT_MISMATCH` · `AUTHORIZATION_AMOUNT_MISMATCH` · `AUTHORIZATION_CURRENCY_MISMATCH` · `AUTHORIZATION_MERCHANT_MISMATCH` · `AUTHORIZATION_ACTION_MISMATCH` | The service guard compared the claim grant with the request it was handed, and a field differs: a legitimately-obtained authorization for one transaction was presented to unlock another.                                                                           |

**Platform rule packs**

The starter SOP and the Launchpad rule packs are SOP rules MetaMynd writes, so their codes are registered here. They are reported exactly as a customer SOP's own code would be: as the firing molecule's code.

| Code                         | Decision | Meaning                                                                                            | SAFR §30 alias                |
| ---------------------------- | -------- | -------------------------------------------------------------------------------------------------- | ----------------------------- |
| `SOP_SPEND_CAP`              | block    | Per-transaction cap: the amount is over the cap in the cap's currency.                             | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `SOP_BUDGET_CAP`             | block    | Total budget: committed spend plus this amount is over the budget.                                 | `EXPOSURE_THRESHOLD_EXCEEDED` |
| `RISK_REVIEW`                | escalate | The effective risk level is at or above the pack's threshold.                                      | `HUMAN_REVIEW_REQUIRED`       |
| `PII_REVIEW`                 | escalate | The request says it carries personal data.                                                         | `HUMAN_REVIEW_REQUIRED`       |
| `CONTENT_REVIEW`             | escalate | The pack's starter term list matched the request text.                                             | `HUMAN_REVIEW_REQUIRED`       |
| `JURISDICTION_BLOCKED`       | block    | The pack's jurisdiction list does not include the request's jurisdiction.                          | `MANDATE_SCOPE_VIOLATION`     |
| `DATA_RESIDENCY_REVIEW`      | escalate | The pack's data-residency list does not include the request's data region.                         | `HUMAN_REVIEW_REQUIRED`       |
| `EVIDENCE_INCOMPLETE`        | escalate | The request did not carry the evidence types the pack requires.                                    | `EVIDENCE_MISSING`            |
| `EVIDENCE_CONFIDENCE_REVIEW` | escalate | Evidence confidence is below the pack's minimum.                                                   | `HUMAN_REVIEW_REQUIRED`       |
| `COUNTERPARTY_TRUST_REVIEW`  | escalate | The counterparty's trust score is below the pack's review threshold.                               | `HUMAN_REVIEW_REQUIRED`       |
| `RATE_LIMIT_REVIEW`          | escalate | The call count passed the pack's early-review mark, before the hard `RATE_LIMIT_EXCEEDED` ceiling. | `HUMAN_REVIEW_REQUIRED`       |

### Which code a missing or malformed input gets <a href="#user-content-which-code-a-missing-or-malformed-input-gets" id="user-content-which-code-a-missing-or-malformed-input-gets"></a>

A request can be refused for an input it left out, or one it sent in the wrong shape, at several points. Which code answers depends on **where** the gap is first seen. The order of checks is on <a href="https://docs.metamynd.ai/agent-protocol/the-authorize-gate-16-ordered-checks" target="_blank">The Authorize Gate — 16 Ordered Checks</a>. For integration tests, expect these:

| What the request does                                                                                                                                                       | Code                       | Decision                  |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- | ------------------------- |
| Sends a body that fails schema validation: `itinerary` (context) as `null` or not an object, an empty or non-two-letter `jurisdiction`, a negative amount, unparseable JSON | `MALFORMED_REQUEST`        | block (HTTP 400)          |
| Omits a context field a rule needs, such as `riskLevel` for a `risk-at-or-above` rule                                                                                       | `CONTEXT_UNVERIFIABLE`     | **escalate**, never block |
| Omits the signed `jurisdiction` where the mandate restricts jurisdictions, or an enforced SOP/Standard rule judges `jurisdiction-not-allowed`, and no earlier rule refused  | `JURISDICTION_REQUIRED`    | block                     |
| Signs a jurisdiction outside the mandate's allow-list                                                                                                                       | `JURISDICTION_NOT_ALLOWED` | block                     |
| Is refused by an SOP or Standard rule that fires when its field is absent                                                                                                   | that rule's own code       | the rule's decision       |

The last row is why an absent jurisdiction can come back with something other than `JURISDICTION_REQUIRED`. Suppose an SOP rule is written so that it fires when the jurisdiction is not the one it allows, for example a `none` rule over a jurisdiction condition. That rule fires on an absent value too, and the gate reports **its** code, because a rule-layer block is reported before the `JURISDICTION_REQUIRED` check (check 12). The request is refused either way; only the code differs.

Treat `decision` as the outcome and `reasonCode` as the explanation. A test that asserts a code should assert the one its own policy produces at the first check that refuses.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.metamynd.ai/agent-controls-agentsafe/reason-code-registry.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
