Function: evaluateFsProtectGuard()
ts
function evaluateFsProtectGuard(
node,
input,
_ctx
): PolicyGuardEvaluationResult;Defined in: fs/src/executors/fs-path-guard-executors.ts:48
Evaluates an FsProtectGuardNode (fs:protect) against proposed tool effects (SPEC.md §4.3).
Rejects write mutations targeting paths matching node.globs unless covered by input.activeLeases.
Parameters
| Parameter | Type | Description |
|---|---|---|
node | FsProtectGuardNode | Protect guard AST node. |
input | PolicyGuardEvaluationInput | Tool name, proposed effects, and active leases. |
_ctx | StepExecutionContext<unknown> | Step execution context. |
Returns
Guard evaluation result and projected violatedEffects.