Skip to content

v7.33.2

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 14:33
d360d88

Fixed

  • enforce-writes-scope.cjs now denies a write whose payload path holds a NUL byte, as protect-trusted-paths.cjs
    has since 6.73.1.
    Audit SEC-11 added that deny to protect-trusted-paths.cjs only. enforce-writes-scope.cjs kept
    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.md followed by a NUL. Both guards now exit 2 on every row the new table measures (a NUL
    in file_path, path, notebook_path, edits[].file_path, and with no tool name, in a dev and an installed
    project), with the fixed message a 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's fs refuses 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 and pharn/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.cjs drops 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 a Read row 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_CLI is
    unchanged.