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
Void the Inert xargs Input Exception for xargs -o in the Write Guard #3397
agentsAgents instructionsgateA rule with no mechanical check, or a check that misses a shapepre-existingReview finding classed pre-existing per local-strict-review Disposing of Findings
The write guard's inert-input exception for a gh write under xargs does not account for xargs -o (--open-tty), which reopens xargs's stdin as the terminal instead of reading the literal pipe. Constructed case: printf x | xargs -o gh pr comment 5 --body hi is allowed, though the words xargs appends are read from the terminal and may name a foreign target.
origin/main allows the same command, so this is not a change of verdict from the promotion carrying #3390: the exception narrows the old allow, and this shape stays allowed as before.
Fix direction: void the inert-input exception when xargs is given -o or --open-tty (including inside a cluster), at both predicate sites, and add a deny case beside the other input-source controls.
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.
agentsAgents instructionsgateA rule with no mechanical check, or a check that misses a shapepre-existingReview finding classed pre-existing per local-strict-review Disposing of Findings
Activity
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.