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
fix(roadmap): the stage form admits a negative search verify that the implement step refuses #3263
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
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).
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.
The shell policy refuses ! followed by any other command.
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).
Activity
devops-cli-service commentedon Nov 2, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.A valid plan form (negative search for a removed name) passes the stage gate but is refused at the implement step, blocking that workflow.It unblocks the negative-search verify form that #3189 added for checking removed names, but other verify forms still work.Requires defining the accepted shape once, updating the allowlist or the gate, and adding tests on both sides.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).fix(roadmap): tell the agent the step runs a bang command (#3275)
fix(roadmap): name a refused verification command safely (#3293)
fix(roadmap): use the renamed limit in the code that main added
fix(roadmap): keep the class of a refused command (#3359)