Skip to content

Function: evaluateFsBoundaryGuard() ​

ts
function evaluateFsBoundaryGuard(
   node, 
   input, 
   _ctx
): PolicyGuardEvaluationResult;

Defined in: fs/src/executors/fs-path-guard-executors.ts:29

Evaluates an FsBoundaryGuardNode (fs:boundary-guard) against proposed tool effects (SPEC.md §4.3).

Blocks any write effect matching a partition's boundaryGlobs unless covered by input.activeLeases, projecting violatedEffects strictly to the violating boundary file paths.

Parameters ​

ParameterTypeDescription
nodeFsBoundaryGuardNodeBoundary guard AST node.
inputPolicyGuardEvaluationInputTool name, proposed effects, and active leases.
_ctxStepExecutionContext<unknown>Step execution context.

Returns ​

PolicyGuardEvaluationResult

Guard evaluation result and projected violatedEffects.

Released under the MIT License.