Docs / Reference
Decisions and errors
Decision values, reason codes, error format and fail-closed behavior.
Decisions
| Decision | Execute? | What to do |
|---|---|---|
ALLOW | Yes | Execute, then report the result |
DENY | No | Surface human_message. Do not retry unchanged |
REQUIRE_APPROVAL | No | Wait and resend |
MONITOR | Not by default | Returned by observe-only integrations |
UNAVAILABLE | No | Retry or abort |
Reason codes
| Code | Meaning |
|---|---|
POLICY_DENIED | A rule denied the action |
APPROVAL_REQUIRED | A rule or platform control needs a person |
RESOURCE_OUT_OF_SCOPE | Unknown resource, or not declared for this version or delegation |
BUDGET_EXCEEDED | A budget limit was reached |
RUNTIME_SUSPENDED | Identity suspended or a risk intervention applies |
RUNTIME_IDENTITY_INACTIVE | Identity revoked or inactive |
AGENT_VERSION_INELIGIBLE | System, agent or version not eligible to run |
DATA_ACCESS_DENIED | A requested field is denied |
RAI_UNAVAILABLE | No decision could be made |
HTTP errors
{
"detail": {
"error": "AUTHENTICATION_FAILED",
"message": "Invalid runtime credential",
"retryable": false,
"correlation_id": null,
"details": {}
}
}| Status | `error` |
|---|---|
| 400 | INVALID_REQUEST |
| 401 | AUTHENTICATION_FAILED |
| 403 | Eligibility and policy errors |
| 404 | SESSION_NOT_FOUND, INTEGRATION_NOT_FOUND, DECISION_NOT_FOUND |
| 422 | CONTENT_DENIED, or a request that fails validation |
| 429 | RATE_LIMITED |
| 503 | RAI_UNAVAILABLE |
Fail closed
- Execute only when a decision says
allowed. - Treat timeouts, network errors and unreadable responses as a refusal.
- Do not loop on a denial or a pending approval.
- Keep the integration's
fail_closedsetting on for consequential actions.