Skip to content

fix(roadmap): count a command as removed only when MUST NOT governs it #4954

Closed

Description

@dan-petty

Problem Description

The stale-command check of devops roadmap stage (#3287) reads an ADDED requirement as the removal of a command when the text holds MUST NOT or SHALL NOT anywhere. It then counts every code span that starts with devops or -- in that text as removed. A requirement that keeps a command and forbids one thing that the command does becomes a removal of the command.

The plan of #2530 added this requirement:

The command devops pr check-readiness SHALL read the changed files of a pull request from the compare endpoint of the base branch's tip and the head commit, and MUST NOT request the pulls files list for them.

The check read it as "devops pr check-readiness must not exist" and refused the plan with two stale-command problems: one for each base requirement of pr-merge-readiness that names the command. The stage job refused #2530 again on 2026-11-12 at 06:34Z (stage gate returns: ... item=#2530 returns=3 result=refused version=0.116.2).

Cause: src/devops_cli/roadmap/stage/stage_change.py, _removed_names (about line 768) tests any(words in text for words in _REMOVAL_WORDS) on the full text and returns every devops /-- code span.

Reproduction Steps

  1. Build a StageProposal whose spec delta adds the fix(github): Fix check-readiness base and monitor merged state #2530 requirement above to the capability pr-merge-readiness.
  2. Call check_proposal with requirement_texts that hold a base requirement of pr-merge-readiness that names devops pr check-readiness.
  3. See the stale-command problem for devops pr check-readiness.

Expected vs Actual Behavior

Expected: the check counts a command or an option as removed only when MUST NOT or SHALL NOT governs it: the code span is the subject of the clause, and the clause says that it must not exist or be available (for example "The devops roadmap intake-eval command MUST NOT exist."). The #2530 requirement gives no problem.

Actual: the check returns ('devops pr check-readiness',) as removed and refuses the plan.

Environment Diagnostics

devops-cli 0.116.2 (Service), origin/main 6c8e1bd (0.117.0) still has the same code.

Logs, Traces, or Terminal Output

stage gate returns: ... item=#2530 returns=3 result=refused version=0.116.2 (2026-11-12 06:34Z). A replay of the #2530 reply on main gives _removed_names(text) == ('devops pr check-readiness',).

Pre-Submission Checklist

  • I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
  • I have checked existing issues and pull requests to ensure this is not a duplicate.

Activity

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    on Nov 12, 2026
  2. added
    effort/low
    on Nov 12, 2026
  3. devops-cli-service commented on Nov 12, 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.

    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The defect refuses valid plans in the stage job, but it occurs only when the text holds 'MUST NOT' or 'SHALL NOT'.
    • Value: Medium. The fix stops false stale-command refusals and lets valid plans pass the stage gate.
    • Effort: Low. The change is local to '_removed_names' in 'stage_change.py' and needs new unit tests.
    • Related: fix(roadmap): Detect obsolete spec requirements on command rename #3287, which asks for a different change. Both items touch the stale-command check of 'stage_change.py', but #3287 adds the detection and this item narrows when a command counts as removed.
  4. removed
    priority/p2-medium
    on Nov 12, 2026
  5. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    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: P1-High. The bug actively refuses valid plans at the stage gate, blocking roadmap progress.
    • Value: Medium. It removes a false refusal that blocks legitimate spec deltas from being accepted.
    • Effort: Low. The fix targets one function to scope MUST NOT to the clause subject rather than the full text.
    • Related: fix(roadmap): Detect obsolete spec requirements on command rename #3287, which asks for a different change. Both items work on the stale-command check in stage_change.py; #3287 added the check, this candidate fixes its false-positive logic.
  6. added
    priority/p1-high
    owner/agent
    status/in-progress
    status/in-review
    and removed
    priority/p2-medium
    status/new
    status/in-progress
    on Nov 12, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  8. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 15:46 UTC

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/lowpriority/p1-highscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions