Skip to content

@intutic/gate / core / IntuticGateRefusal

Class: IntuticGateRefusal ​

Raised when a tool call must not run.

The structured fields (reason, code, incidentId) carry the machine-readable version of the refusal; .message carries the human-readable, prefix-recognisable one.

Extends ​

Extended by ​

Constructors ​

Constructor ​

ts
new IntuticGateRefusal(
   reason, 
   code, 
   incidentId?, 
   detail?
): IntuticGateRefusal;

Parameters ​

ParameterType
reasonstring
code| "GOVERNANCE_UNAVAILABLE" | "INSUFFICIENT_SCOPE" | "DECIDE_REFUSED" | "DECIDE_ESCALATED" | "PREREQUISITE_UNMET" | "OUT_OF_SCOPE" | "OFF_PLAN" | "PLAN_NOT_APPROVED" | "COMMAND_NOT_ALLOWED" | "SSO_GROUP" | "SNAPSHOT" | "HELD" | "SERVER_BLOCKED" | "SERVER_HELD" | "SERVER_NOT_APPROVED" | "TOOL_DISABLED" | "SERVER_NOT_ALLOWED" | "POLICY_SNAPSHOT_UNVERIFIED" | "SOP_RULE" | "HOOK_GATE" | "COMMAND_TOO_LARGE" | "CHAOS_FAULT" | "E_UNPINNED_LATEST" | "E_UNPINNED_TAG" | "E_UNKNOWN_REGISTRY" | "E_UNKNOWN_IMAGE" | "E_DIGEST_MISMATCH" | "E_MANIFEST_UNPARSEABLE" | "WORKFLOW_SANDBOX" | "NO_GATE"
incidentId?string
detail?{ evidence?: RefusalEvidence[]; scope?: RefusalScope; }
detail.evidence?RefusalEvidence[]
detail.scope?RefusalScope

Returns ​

IntuticGateRefusal

Overrides ​

GateError.constructor

Properties ​

PropertyModifierTypeDescription
codereadonly| "GOVERNANCE_UNAVAILABLE" | "INSUFFICIENT_SCOPE" | "DECIDE_REFUSED" | "DECIDE_ESCALATED" | "PREREQUISITE_UNMET" | "OUT_OF_SCOPE" | "OFF_PLAN" | "PLAN_NOT_APPROVED" | "COMMAND_NOT_ALLOWED" | "SSO_GROUP" | "SNAPSHOT" | "HELD" | "SERVER_BLOCKED" | "SERVER_HELD" | "SERVER_NOT_APPROVED" | "TOOL_DISABLED" | "SERVER_NOT_ALLOWED" | "POLICY_SNAPSHOT_UNVERIFIED" | "SOP_RULE" | "HOOK_GATE" | "COMMAND_TOO_LARGE" | "CHAOS_FAULT" | "E_UNPINNED_LATEST" | "E_UNPINNED_TAG" | "E_UNKNOWN_REGISTRY" | "E_UNKNOWN_IMAGE" | "E_DIGEST_MISMATCH" | "E_MANIFEST_UNPARSEABLE" | "WORKFLOW_SANDBOX" | "NO_GATE"-
evidencereadonlyRefusalEvidence[] | undefinedWhat the refuser saw, bounded; undefined when nothing, and in OPAQUE.
incidentIdreadonlystring | undefined-
reasonreadonlystring-
scopereadonlyRefusalScope | undefinedWhere the refusal applies, so a retry can stay out of it (paths, tools, step, detector, rule), bounded as refusalDetail.ts says. Undefined when the refusal names none, and always in an OPAQUE workspace.

The circuit breaker for AI agents