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 Coproc Named git as a Name in the Write Guard #3381
Found while working the export, xargs, env, and launcher allow-gap lane, which reads a named coproc's group for the config-change scan. Develop's guard shares it, and it was confirmed with a classify probe on a constructed command.
A Coproc Named git Hides the Git Command in Its Group
coproc NAME { ...; } runs the group under the name NAME. Where the name is git, the guard reads that word as a git command whose argument list takes in the whole group, so the git command inside it goes unread:
coproc git { git reset --hard; }, run in a primary checkout, is allowed.
coproc worker { git reset --hard; } there is denied.
Possible Direction
Read the word after coproc as a name, never a command, where a { or a ( follows it, in the git invocation reader as well as in _prefix_walk.
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
Close Export, Xargs, Env, and Launcher Allow Gaps in the Write Guard (#…
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.