Skip to content

Interface: FsRequireReadBeforeWriteGuardNode ​

Defined in: ast/domain/fs-require-read-before-write-guard-node.ts:9

Passive AST node requiring an existing file to be read in the session before it is edited or overwritten (fs.requireReadBeforeWrite).

Prevents blind file overwrites by verifying that any pre-existing target path has a prior FsToolEffect read record in the current actor session.

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
idreadonlystringLogical identifier of the guard instance.NodeDenyNetworkNode.idast/base/base-policy-guard-ast-node.ts:13
typereadonly"fs:require-read-before-write"Unique string-literal discriminant of the policy guard node.BasePolicyGuardASTNode.typeast/base/base-policy-guard-ast-node.ts:11

Released under the MIT License.