Function: evaluateQuotaTripwires()
ts
function evaluateQuotaTripwires<THandle>(
policy,
input,
ctx
): Promise<QuotaTripwireEvaluationResult>;Defined in: runtime/policy/evaluate-policy-guards.ts:134
Evaluates all QuotaTripwireASTNode instances on policy after a tool execution (SPEC.md §3.5).
Returns the first tripped quota tripwire result, or { tripped: false } when all tripwires pass.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
THandle | unknown | Runtime handle type of the active isolation scope. |
Parameters
| Parameter | Type | Description |
|---|---|---|
policy | PolicyNode<THandle> | undefined | Active policy AST node. |
input | QuotaTripwireEvaluationInput | Accumulated and newly observed tool effects. |
ctx | StepExecutionContext<THandle> | Step execution context. |
Returns
Promise<QuotaTripwireEvaluationResult>
Tripwire evaluation result.