Skip to content

Function: evaluateFsScopedWriteGuard() ​

ts
function evaluateFsScopedWriteGuard(
   node, 
   input, 
   ctx
): PolicyGuardEvaluationResult;

Defined in: fs/src/executors/fs-write-guard-executors.ts:72

Evaluates an FsScopedWriteGuardNode (fs:scoped-write) against ctx.activePartitions (SPEC.md §4.3).

Rejects write mutations to any file path outside the union of member globs for the actor's activePartitions in node.partitionMap.

Parameters ​

ParameterTypeDescription
nodeFsScopedWriteGuardNodeScoped write guard AST node.
inputPolicyGuardEvaluationInputTool name, proposed effects, and active leases.
ctxStepExecutionContext<unknown>Step execution context providing activePartitions.

Returns ​

PolicyGuardEvaluationResult

Guard evaluation result and projected violatedEffects.

Released under the MIT License.