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
| Parameter | Type | Description |
|---|---|---|
node | FsScopedWriteGuardNode | Scoped write guard AST node. |
input | PolicyGuardEvaluationInput | Tool name, proposed effects, and active leases. |
ctx | StepExecutionContext<unknown> | Step execution context providing activePartitions. |
Returns
Guard evaluation result and projected violatedEffects.