Orkena
▸ Browse docs — Reference

▸ SECTION D · Reference

Error codes

Last updated: 2026-08-16

Errors follow a consistent shape across API and CLI:

{"error": {"code": "OrkenaError.POLICY_DENIED", "message": "...", "seq": 417}}

Policy and authorization

CodeMeaningFix
OrkenaError.POLICY_DENIEDAn action was denied by policyReview the verdict reason and the policy pack
OrkenaError.POLICY_NO_MATCHNo rule matched the actionAdd an explicit permit or forbid rule
OrkenaError.GATE_BLOCKED_SELF_APPROVALThe initiator tried to approve their own requestUse a different approver
OrkenaError.GATE_SAME_TEAMApprover blocked by the same-team ruleRoute to a different team
OrkenaError.GATE_QUORUM_NOT_METThe gate is still waiting for approvalsWait, or escalate
OrkenaError.CREDENTIAL_SCOPECredential use outside its scopeFix the credential scope binding

Runtime and runs

CodeMeaningFix
OrkenaError.RUN_NOT_FOUNDUnknown run idCheck the id
OrkenaError.RUN_TERMINALOperation on a finished runReplay or fork instead
OrkenaError.CHECKPOINT_NOT_FOUNDFork requested from an unknown checkpointUse a listed checkpoint
OrkenaError.TOOL_FAILEDA tool call failedCheck the tool logs
OrkenaError.TOOL_TAINTEDA tool call was denied due to tainted inputRoute through a gate or sanitize

Graph and versioning

CodeMeaningFix
OrkenaError.GRAPH_INVALIDThe graph definition is invalidValidate with orkena graph validate
OrkenaError.VERSION_IMMUTABLEAttempt to edit a published versionCreate a draft
OrkenaError.EVAL_FAILEDThe eval gate did not passImprove the version or the suite
OrkenaError.PACK_SYNTAXThe policy pack has a syntax errorFix per the grammar

Ledger and bundles

CodeMeaningFix
OrkenaError.BUNDLE_VERIFY_FAILEDVerification failed — hash mismatch at seqThe archive was altered; re-export
OrkenaError.ANCHOR_INVALIDAn anchor signature is invalidContact support; this is serious
OrkenaError.EXPORT_SCOPE_EMPTYThe export scope has no eventsWiden the scope

Kill switch

CodeMeaningFix
OrkenaError.KILL_REASON_REQUIREDA kill needs a reasonPass --reason
OrkenaError.KILL_ALREADY_ACTIVEA kill is already in effect at this levelCheck the incident state

Every error that touches the record is itself a ledger event. Gate errors are explained alongside the setup flow in HITL gates and four-eyes; bundle errors alongside Evidence bundles; the full endpoint list is in the API reference.

Was this helpful?