Skip to content

fix(roadmap): the stage form admits a negative search verify that the implement step refuses #3263

Closed

Description

@dan-petty

Problem

The stage form accepts a verify command that starts with ! git grep (stage_form.py:28 and _valid_verify, which exists since #3189). The implement step runs a verification command only when its program is on the allowlist (IMPLEMENT_ALLOWED_PROGRAMS in implement_shell_policy.py: the shell programs and openspec, devops). The first word of ! git grep ... is !, which is on neither list.

Found by the fix agent of #3184, who reported that the step refuses a ! command. I confirmed that the allowlist holds no ! program. I did not run the step.

So a plan can pass the stage gate with a ! git grep -n <name> src/ tests/ verify that the step then refuses to run. The negative search is the form that #3189 added to check a removed name.

Proposed change

Make the two sides one table. Either let the step run the negative search form (a fixed shape: ! git grep -n <literal> <paths>, with the literal and paths checked as arguments, not a shell), or remove the form from the stage gate. Prefer the first, because it is the form for a removal. The accepted shape is defined once and read by both sides.

Acceptance criteria

  1. A test shows that every verify form that _valid_verify accepts is a command that the step policy runs (or refuses with a stated reason that the gate also states).
  2. A test shows that ! git grep -n name src/ tests/ runs in the step shell policy and its exit code means "no match found" is a pass.
  3. The shell policy refuses ! followed by any other command.

Related: #3189, #3262, #3226.

Activity

  1. added
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 2, 2026
  2. devops-cli-service commented on Nov 2, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. A valid plan form (negative search for a removed name) passes the stage gate but is refused at the implement step, blocking that workflow.
    • Value: Medium. It unblocks the negative-search verify form that #3189 added for checking removed names, but other verify forms still work.
    • Effort: Medium. Requires defining the accepted shape once, updating the allowlist or the gate, and adding tests on both sides.
    • Related: fix(roadmap): the stage renders a verify command that the implement step does not read #3262, which asks for a different change. Both address a mismatch between the stage gate and the implement step for verify commands, but #3262 fixes the step not reading the command (parsing location) while this candidate fixes the step refusing a '!'-prefixed command (allowlist).
  3. removed
    status/new
    on Nov 2, 2026
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

    effort/mediumpriority/p2-mediumscope/roadmaptype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions