Skip to content

Function: evaluateFsQuotaTripwire() ​

ts
function evaluateFsQuotaTripwire(
   node, 
   input, 
   _ctx
): QuotaTripwireEvaluationResult;

Defined in: fs/src/executors/fs-check-tripwire-and-telemetry.ts:69

Evaluates an FsQuotaTripwireNode (fs:quota-tripwire) after tool execution (SPEC.md §4.3).

Trips when the total count of distinct mutated file paths across accumulatedEffects and newEffects exceeds node.maxFilesMutated.

Parameters ​

ParameterTypeDescription
nodeFsQuotaTripwireNodeQuota tripwire AST node.
inputQuotaTripwireEvaluationInputAccumulated and newly recorded tool effects.
_ctxStepExecutionContext<unknown>Step execution context.

Returns ​

QuotaTripwireEvaluationResult

Tripwire result indicating whether the quota was exceeded.

Released under the MIT License.