You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read a trap Action String as a Command in the Write Guard #3352
Found by the local review of the backslash-newline narrowing (branch feature/guard-backslash-newline-quoting), confirmed with a classify probe on develop using constructed commands and offline seams.
Gap
The string a trap runs is not read as a command, so a write in it is not seen. Develop allows each of these:
trap 'gh pr merge 5 --admin' EXIT
trap 'git push --no-verify origin feature/x' EXIT
The shell runs the string when the trap fires, which for EXIT is when the command ends. _opaque_cd already names trap as something that may change the directory, so the word is known to the guard.
Possible Direction
Read a trap action string as a shell body, as sh -c and eval bodies are read.
Closed as out of the write guard's scope under the maintainer's decision (ptr727, 2026-10-23) on #3391, item 1. The guard bounds a good-faith agent's mistake rather than an adversary, so a parse gap reached only by a command shape no agent plausibly types in a coding session is closed rather than fixed, and the guard's own growth is a cost each later review pays again. The scope statement lands in the guard's docstring and README under #3391. Reopen only with a command a session actually produced.
Activity
Read a Backslash-Newline by Its Quoting in the Write Guard (#3357)
ptr727 commentedon Oct 23, 2026
Closed as out of the write guard's scope under the maintainer's decision (ptr727, 2026-10-23) on #3391, item 1. The guard bounds a good-faith agent's mistake rather than an adversary, so a parse gap reached only by a command shape no agent plausibly types in a coding session is closed rather than fixed, and the guard's own growth is a cost each later review pays again. The scope statement lands in the guard's docstring and README under #3391. Reopen only with a command a session actually produced.