Skip to content

Read a Coproc Named git as a Name in the Write Guard #3381

Closed

Description

@ptr727

Context

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.

Activity

  1. added
    bug
    pre-existing
    script
    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

    bugpre-existingscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions