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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
blockedCalls | readonly | readonly PendingPreFlightCall[] | Blocked tool call descriptors sharing the violated guard clause. | ast/policy-violation.ts:12 |
violatedEffects | readonly | readonly ToolEffect[] | Flattened list of ToolEffect items that violated the guard and lacked an active lease. | ast/policy-violation.ts:14 |
violationSummary | readonly | string | Human- and model-readable summary of the policy violation. | ast/policy-violation.ts:16 |