Skip to content

Interface: RaiseInterruptPolicyGuardClauseNode<TPayload> ​

Defined in: ast/raise-interrupt-policy-guard-clause-node.ts:13

Guard clause node that intercepts unauthorized tool calls and raises a structured InterruptNode.

Maps the PolicyViolation into interrupt.schema via mapViolation and suspends the tool batch for adjudication.

Extends ​

Type Parameters ​

Type ParameterDefault typeDescription
TPayloadunknownInterrupt payload type produced by mapViolation.

Properties ​

PropertyModifierTypeDescriptionOverridesDefined in
guardsreadonlyreadonly PolicyGuardASTNode[]Guard AST nodes evaluated by this clause.-ast/raise-interrupt-policy-guard-clause-node.ts:19
idreadonlystringDeterministic clause identifier ("${policyId}:clause:${index}").-ast/raise-interrupt-policy-guard-clause-node.ts:17
interruptreadonlyInterruptNode<TPayload>Target InterruptNode raised when this clause is violated.-ast/raise-interrupt-policy-guard-clause-node.ts:23
mapViolationreadonly(violation) => TPayloadPure synchronous mapper projecting a PolicyViolation into interrupt.schema.-ast/raise-interrupt-policy-guard-clause-node.ts:25
modereadonly"raise-interrupt"Interrupt-raising violation mode.-ast/raise-interrupt-policy-guard-clause-node.ts:21
typereadonly"harness:policy-guard-clause"Discriminant identifying a policy guard clause AST node.ASTNode.typeast/raise-interrupt-policy-guard-clause-node.ts:15

Released under the MIT License.