Repository navigation
Description
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:
- refactor(roadmap): group the job modules in subpackages #3187: three
! git grep -Elines with regex alternation and word boundaries, andtest -zlines. The fixed grammar of the negative search cannot express the boundaries, so the plan needs a rewrite by its owner. - fix(k8s): name the Loki deployment mode Monolithic #2441: a
helm templateline and a prose code span (loki-memcached). - perf(k8s): use tag_digest HEAD for image pins #2610, task group 2: prose code spans (
tagged_image,nginx:1.27,resolve_image,docker buildx) that the step reads as commands.
#3276 fixes the -E line of #2610 only. The test is not part of #3276.
Proposed change
- Rewrite the Verification lines of the plans of refactor(roadmap): group the job modules in subpackages #3187, fix(k8s): name the Loki deployment mode Monolithic #2441 and perf(k8s): use tag_digest HEAD for image pins #2610 so that the step accepts each one, with the owner of each plan deciding the form.
- Add the test
test_every_verification_line_of_an_active_plan_is_accepted_by_the_steptotests/invariants/test_change_folders.py. It reads each activetasks.mdand fails on each Verification command that the step refuses.
Acceptance criteria
- The test passes with every active plan in the tree.
- 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
- WHEN the test reads the
tasks.mdof perf(k8s): use tag_digest HEAD for image pins #2610 - THEN it reports no refused command for that plan.
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.mdof the two active folders and no file underarchive/.
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
- Where does the test take the list of commands that the step refuses?: From the function that the implement step calls, imported from
devops_cli.roadmap.tests/invariants/test_change_folders.pyimportsrecorded_testsandweakened_checksfromdevops_cli.roadmap.plan_readin the same way. The test holds no copy of the grammar. [sources: tests/invariants/test_change_folders.py, src/devops_cli/roadmap/plan_read.py] - Which plans does the test read?: Every change folder under
openspec/changes/exceptopenspec/changes/archive/.tree_problemsintests/invariants/test_change_folders.pyreads the same set. [sources: tests/invariants/test_change_folders.py] - Which form does a rewritten Verification line take?: One command that the reader of the implement step accepts. The reader has a fixed grammar: the body reports that it refuses
! git grep -Ewith word boundaries,test -z,helm templateand prose code spans. The rewrite keeps the check that the line makes, and the owner of the plan reviews it in the pull request. (best practice) [sources: openspec/changes/2610-devops-k8s-image-pins-resolves-with/tasks.md]- Chosen: One command in the grammar of the reader. The step runs one command for each Verification line, and the grammar is fixed.
- Rejected: A wider grammar in the reader. feat(roadmap): let a negative search verify check more than one name #3276 owns the
-Ecase, and a wider grammar weakens the guard for every plan. - Rejected: No command, only prose. The plan loses a check that its tasks rely on.
- What replaces the prose code spans of perf(k8s): use tag_digest HEAD for image pins #2610 task group 2?: Plain prose with no backticks. The step reads each code span of the task as a command, so the backticks make
tagged_image,nginx:1.27,resolve_imageanddocker buildxcommands that it refuses. The command span stays as the only code span of the task. (best practice) [sources: openspec/changes/2610-devops-k8s-image-pins-resolves-with/tasks.md]- Chosen: Plain prose with no backticks. The step reads code spans as commands, and plain prose is no command.
- Rejected: Move the prose to a separate task. It splits the explanation from the check for no gain.
- Rejected: Keep the backticks. The step refuses the task and the test fails.
- Does this item wait for feat(roadmap): let a negative search verify check more than one name #3276?: Yes. feat(roadmap): let a negative search verify check more than one name #3276 fixes the
-Eline of perf(k8s): use tag_digest HEAD for image pins #2610, so this item depends on feat(roadmap): let a negative search verify check more than one name #3276 and does not edit that line. The test cannot pass before feat(roadmap): let a negative search verify check more than one name #3276 merges. (best practice) [sources: openspec/changes/2610-devops-k8s-image-pins-resolves-with/tasks.md]- Chosen: Wait for feat(roadmap): let a negative search verify check more than one name #3276. The body assigns the
-Eline to feat(roadmap): let a negative search verify check more than one name #3276, and two items that edit one line conflict. - Rejected: Fix the
-Eline here. It duplicates feat(roadmap): let a negative search verify check more than one name #3276 and puts the same change in two pull requests.
- Chosen: Wait for feat(roadmap): let a negative search verify check more than one name #3276. The body assigns the
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 5, 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.Enforces a quality invariant but does not block a user-facing feature or fix a security issue.Prevents future plans from carrying Verification lines the step cannot read.Requires rewriting three plans and adding one invariant test.the invariant test that reads every active tasks.md and fails on refused Verification commands, with the offending lines rewritten so the test passesas 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.devops-cli-service commentedon Nov 6, 2026
Status set to Ready at bd65ef6 (see proposed design in issue body).
devops-cli-service commentedon Nov 6, 2026
Released in v0.70.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.70.1
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 18:04 UTC