Skip to content

Function: evaluateFsAllowOnlyGuard() ​

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

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

Evaluates an FsAllowOnlyGuardNode (fs:allow-only) against proposed tool effects (SPEC.md §4.3).

Rejects any write mutation whose path does not match node.globs (or input.activeLeases).

Parameters ​

ParameterTypeDescription
nodeFsAllowOnlyGuardNodeAllow-only 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.