Skip to content
Mandate

Deny codes

Every reason the Warden can say no

Every denied call gets a 403 and a JSON body with exactly one stable reason code, a human-readable message, and what the Warden understood the call to be. Codes never change meaning, so an agent can branch on them.

{
  "decision": "deny",
  "reason": "RECIPIENT_NOT_ALLOWED",
  "message": "Target main is not one of the allowed: agent/work.",
  "action": "contents.write",
  "resource": "github:dicethedev/mandate-demo",
  "recipient": "main",
  "mandateId": "0x0d9f…adb3",
  "delegationPath": ["0x4f1b…5ae4", "0x818c…2a90"],
  "note": null
}
CodeWhat happenedWhat to do
NO_MANDATENo mandate grants this agent this action on this resourceGrant one, or check the agent's address
ACTION_NOT_ALLOWEDThe agent's mandate covers a different actionGrant a mandate for this action
RESOURCE_NOT_ALLOWEDThe agent's mandate covers a different repository or resourceGrant a mandate for this resource
RECIPIENT_NOT_ALLOWEDThe target isn't allowed: a branch outside allowedRecipients, or a model the agent wasn't givenUse an allowed branch or model
EXPIREDA mandate in the chain has expiredGrant a new one
REVOKEDThe agent's own mandate was revokedStop: the owner took authority back
ANCESTOR_REVOKEDA mandate above the agent's was revokedStop: the whole branch was cut off
UNTRUSTED_ROOTThe chain doesn't start with the Warden's ownerSomeone tried to grant themselves authority
INVALID_DELEGATIONA link in the chain escalates authority or is brokenTreat as an attack or a bug
INVALID_SIGNATUREA mandate has a bad signatureTreat as an attack
AMOUNT_EXCEEDEDOver a mandate's numeric limitNot used by the GitHub or Ollama classifiers today

mandateId is the mandate that came closest to authorizing the call, and delegationPath the chain behind it. note is set when the Warden did something extra, such as restoring the agent Sprite after a denied write.

Not a decision

These mean the Warden never got as far as checking a mandate. The call wasn't forwarded.

StatusCodeMeaning
401MISSING_AUTHA signing header is missing
401BAD_TIMESTAMPThe timestamp isn't a number
401STALE_REQUESTMore than 60 seconds of clock skew
401BAD_SIGNATUREThe signature doesn't parse or verify
401SIGNER_MISMATCHThe signature is valid but from a different key than x-mandate-agent
401REPLAYED_REQUESTThis exact signature was already used
413BODY_TOO_LARGEThe body is over 5 MiB
502UPSTREAM_ERRORAllowed, but the connector call failed
503NO_CONNECTORNo connector or credential is configured for that provider