Repository navigation
Fixed
-
enforce-writes-scope.cjsnow denies a write whose payload path holds a NUL byte, asprotect-trusted-paths.cjs
has since 6.73.1. Audit SEC-11 added that deny toprotect-trusted-paths.cjsonly.enforce-writes-scope.cjskept
judging such a path by its scope like any other name, so it allowed a NUL-bearing path its scope allowed: in an
installed project with no scope and no open run,x\u0000y.md(exit 0); in PHARN's dev checkout, an in-scope path
such as.dev/features/x/PLAN.mdfollowed by a NUL. Both guards now exit 2 on every row the new table measures (a NUL
infile_path,path,notebook_path,edits[].file_path, and with no tool name, in a dev and an installed
project), with the fixed messagea path contains a NUL byte, which echoes nothing from the path. Before, the dev
checkout's scope deny named the path in its message. Node'sfsrefuses such a name, so no file was written either
way: this is parity between the two guards, not a closed hole. The deny covers write calls only: a read tool carrying
a NUL path is still allowed unread by both, as every non-write tool is. The guard andpharn/LIMITS.md§7 (its list
of input the guards deny now names "a write call whose path holds a NUL byte") were changed by the maintainer, who ran
two reviewed patch scripts.guard-pathless-write.test.cjsdrops the parity exception 7.33.1 recorded for this row:
it now holds six NUL rows, one with an in-scope path whose exit code moves in both postures, plus aReadrow with a
NUL path that both guards allow, and asserts both guards agree on every row. Against the 7.33.1 guards its two ROWS
tests and the new fixed-text test fail.Why patch: a correction to shipped guard behaviour. No contract, field or wiring changed, and
MIN_CLIis
unchanged.