@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
| Parameter | Type |
|---|---|
reason | string |
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
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
code | readonly | | "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" | - |
evidence | readonly | RefusalEvidence[] | undefined | What the refuser saw, bounded; undefined when nothing, and in OPAQUE. |
incidentId | readonly | string | undefined | - |
reason | readonly | string | - |
scope | readonly | RefusalScope | undefined | Where 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. |