Skip to content

fix(roadmap): accept every Verification line of an active plan #3595

Closed

Description

@dan-petty

Problem

Acceptance criterion 3 of #3276 asks for a test over every committed active plan. It fails the plan that the step refuses. At origin/main d254410, the reader of the implement step refuses 16 Verification commands in three active plans:

#3276 fixes the -E line of #2610 only. The test is not part of #3276.

Proposed change

Acceptance criteria

  1. The test passes with every active plan in the tree.
  2. The test fails when a Verification line names a command that the step refuses.

Related: #3276, #3187, #2441, #2610.

Source: #3276

Proposed design

Problem statement

The implement step refuses 16 Verification commands in three active plans. No test can then hold every active plan to the grammar of the step. This item rewrites the refused lines of the plans of #3187, #2441 and #2610. It also adds an invariant test that reads each active tasks.md. #3276 fixes the -E line of #2610, and this item delivers the other lines and the test.

Acceptance criteria

Requirement: The three plans hold accepted commands

The Verification lines of the active plans of #3187, #2441 and #2610 SHALL hold only commands that the implement step accepts.

Scenario: The plan of #2610, task group 2

Requirement: The test passes on the repository

The test test_every_verification_line_of_an_active_plan_is_accepted_by_the_step SHALL pass on the repository's own active plans.

Scenario: The repository at the merge commit

  • WHEN the test runs against REPO_ROOT / CONST_OPENSPEC_CHANGES_DIR
  • THEN it reports no refused Verification command.

Requirement: The test reads every active plan

The test SHALL read the tasks.md of every active change folder under openspec/changes/ and MUST skip openspec/changes/archive/.

Scenario: Two active plans and one archived plan

  • WHEN the test runs over a tree with two active change folders and one folder under openspec/changes/archive/
  • THEN it reads the tasks.md of the two active folders and no file under archive/.

Requirement: A refused command fails the test

The test SHALL fail and name the plan, the line and the command when a Verification line holds a command that the step refuses.

Scenario: A negative search with word boundaries

  • WHEN a fixture plan holds the Verification line ! git grep -E '\bfoo\b'
  • THEN the test fails and its message names the plan path, the line number and the command.

Requirement: The test uses the reader of the step

The test SHALL take the refused commands from the function that the implement step calls, and MUST NOT hold a copy of the grammar.

Scenario: The reader gains an accepted form

  • WHEN the reader accepts a command form that it refused before
  • THEN the test accepts that form with no change to the test.

Existing Tool Considered

No alternatives check has run. No open, maintained tool or library covers the need: the check compares this repository's tasks.md files against the reader of the implement step, and no linter, schema tool or Markdown tool knows either grammar. pytest and markdown-it already cover the test runner and the Markdown parse in tests/invariants/test_change_folders.py. The grammar check is about 40 lines added to that file. Cost to build and keep: about 8,000 tokens to build, about 2,000 tokens a year to keep and fix, and about 30 minutes.

Key questions

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#3276

Activity

  1. added
    source/agent
    on Nov 5, 2026
  2. added
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 5, 2026
  3. dan-petty commented on Nov 5, 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: P2-Medium. Enforces a quality invariant but does not block a user-facing feature or fix a security issue.
    • Value: Medium. Prevents future plans from carrying Verification lines the step cannot read.
    • Effort: Medium. Requires rewriting three plans and adding one invariant test.
    • Possible duplicate: feat(roadmap): check every active plan against the verification policy #3579, which may ask for the same change. The model names the invariant test that reads every active tasks.md and fails on refused Verification commands, with the offending lines rewritten so the test passes as the change that both ask for. Both deliver the same invariant test over active plans and the rewrite of the refused Verification lines to make it pass. A person closes one of the two if that is so.
  4. added
    priority/p2-medium
    on Nov 5, 2026
  5. added
    status/ready
    and removed
    status/new
    on Nov 6, 2026
  6. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at bd65ef6 (see proposed design in issue body).

  7. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 6, 2026
  8. removed
    status/in-review
    on Nov 6, 2026
  9. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 18:04 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/mediumpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions