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 an xargs Replace String as a Command Word in Every Run-Time Word Reader of the Write Guard #3387
Found by the local review of the change closing #3307, which reads a command word holding an xargs replace string as a run-time command word in the config-change scans. Develop's guard shares the cases below, and they were read from the code at the sites named.
The Replace String as a Command Word Is Read in One Reader Only
_runs_run_time_word now counts a command word holding the replace string, as in xargs -I{} {} config .... Only the two config scans read that predicate. The other readers of a run-time command word still read {} as a literal command, since it is no $, backtick, or brace word:
echo git | xargs -I{} {} push origin develop is not read as a push by _rewritten_git_words, and the push targets are empty.
echo gh | xargs -I{} {} pr merge 5 -R stranger/example is not read as a gh write by _gh_invocations.
Possible Direction
One predicate for a word the shell or xargs may rewrite into any command, read by every site that reads a run-time command word, so the class closes everywhere at once.
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.