Skip to content

Interface: PolicyViolation ​

Defined in: ast/policy-violation.ts:10

Aggregated policy violation descriptor passed to .onViolation(...) mappers when a guard clause rejects a tool call or batch.

Groups all blocked tool calls and their unleased violating effects for a single guard clause so the violation mapper can format an in-band error message or construct an interrupt payload.

Properties ​

PropertyModifierTypeDescriptionDefined in
blockedCallsreadonlyreadonly PendingPreFlightCall[]Blocked tool call descriptors sharing the violated guard clause.ast/policy-violation.ts:12
violatedEffectsreadonlyreadonly ToolEffect[]Flattened list of ToolEffect items that violated the guard and lacked an active lease.ast/policy-violation.ts:14
violationSummaryreadonlystringHuman- and model-readable summary of the policy violation.ast/policy-violation.ts:16

Released under the MIT License.