Skip to content

Void the Inert xargs Input Exception for xargs -o in the Write Guard #3397

Closed

Description

@ptr727

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.

Found by Copilot on promotion pull request 3393.

Activity

  1. added
    agents
    gate
    pre-existing
    on Oct 23, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsgatepre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions