Skip to content

fix(roadmap): Detect obsolete spec requirements on command rename - #3961

Merged
dan-petty merged 8 commits into
mainfrom
fix/3287-detect-obsolete-spec-requirements-on-command
Nov 7, 2026
Merged

dan-petty merged 8 commits into
mainfrom
fix/3287-detect-obsolete-spec-requirements-on-command

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Issue #3287 reports that the stage planner adds a requirement that a removed CLI command MUST NOT exist and leaves the base requirements that name the old command unchanged, so the archive writes a contradictory living spec. No check stops the next rename.

Closes #3287

Change: openspec/changes/archive/2026-11-07-3287-detect-obsolete-spec-requirements-on-command/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 7, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/3287-detect-obsolete-spec-requirements-on-command branch 2 times, most recently from 389cdeb to f1e4ce4 Compare November 7, 2026 12:25
@devops-cli-service devops-cli-service Bot changed the title docs(openspec): plan #3287 Refuse a plan that keeps a removed command fix(roadmap): Detect obsolete spec requirements on command rename Nov 7, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 1091466/7917 pytest on base: tests/roadmap/stage/test_roadmap_stage_specs.py
group 2 done 1 2288430/17622 pytest on base: tests/roadmap/stage/test_roadmap_stage_content.py
group 3 done 1 3133003/11479 pytest on base: tests/roadmap/stage/test_roadmap_stage_plan.py
group 4 done 1 1106232/5368 pytest on base: tests/roadmap/stage/test_roadmap_stage_prompt_rules.py
group 5 done 1 924071/5231 pytest on base: tests/roadmap/stage/test_roadmap_stage_tools.py
  • scoped check pre-push: passed, 8 s
  • scoped check static: passed, 22 s
  • scoped check tests: passed, 62 s
  • scoped check tests: the changed files select more than 30 test modules, so only the changed test modules ran. The required checks of CI run the others
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.roadmap.stage.test_roadmap_stage_specs::test_a_spec_with_no_purpose_or_requirement_gives_empty_values, tests.roadmap.stage.test_roadmap_stage_specs::test_a_spec_gives_the_statement_of_each_requirement_with_its_name.
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.roadmap.stage.test_roadmap_stage_content::test_a_base_requirement_modified_without_the_command_is_accepted, tests.roadmap.stage.test_roadmap_stage_content::test_an_added_requirement_that_removes_an_option_is_refused, tests.roadmap.stage.test_roadmap_stage_content::test_a_modified_requirement_that_keeps_the_command_is_refused, tests.roadmap.stage.test_roadmap_stage_content::test_the_plan_that_adds_the_stale_command_rule_accepts_its_own_plan, tests.roadmap.stage.test_roadmap_stage_content::test_a_base_requirement_that_names_a_removed_command_is_refused.
  • fail-to-pass of group 3: fails on the base commit. Tests that fail on the base commit: tests.roadmap.stage.test_roadmap_stage_plan::test_a_base_requirement_that_names_a_removed_command_goes_back_to_the_model.
  • fail-to-pass of group 4: fails on the base commit. Tests that fail on the base commit: tests.roadmap.stage.test_roadmap_stage_prompt_rules::test_the_stage_prompt_requires_a_modified_requirement_for_a_removed_command.
  • fail-to-pass of group 5: fails on the base commit. Tests that fail on the base commit: tests.roadmap.stage.test_roadmap_stage_tools::test_references_lists_every_file_that_holds_a_name_with_its_count, tests.roadmap.stage.test_roadmap_stage_tools::test_reference_answer_lists_a_spec_path_before_a_source_path.

@devops-cli-service devops-cli-service Bot added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them and removed type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 7, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/3287-detect-obsolete-spec-requirements-on-command branch from f1e4ce4 to fdcebb1 Compare November 7, 2026 12:47
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
fix done 1 5918857/40780 -
  • scoped check pre-push: passed, 6 s
  • scoped check static: passed, 21 s
  • scoped check tests: passed, 75 s
  • verify of group 0: uv run devops ci test tests/roadmap/stage/test_roadmap_stage_specs.py exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3287
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/roadmap/stage/test_roadmap_stage_specs.py \u2192 tests/roadmap/stage/test_roadmap_stage_specs.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /home/devops/.data/agent/worktrees/w-3287
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, hypothesis-6.168.3, asyncio-1.4.0, syrupy-6.1.1, split-0.11.0, time-machine-3.5.1, mock-3.16.0, timeout-2.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 5 items

tests/roadmap/stage/test_roadmap_stage_specs.py .....                                                                                                                                                                                              [100%]

=================================================================================================================== 5 passed in 0.22s ====================================================================================================================
Bytecode compiled 19212 files in 457ms
Bytecode compiled 19212 files in 471ms
Elapsed: 7.57s
  • verify of group 0: uv run devops ci test tests/roadmap/stage/test_roadmap_stage_content.py exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3287
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/roadmap/stage/test_roadmap_stage_content.py \u2192 tests/roadmap/stage/test_roadmap_stage_content.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /home/devops/.data/agent/worktrees/w-3287
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, hypothesis-6.168.3, asyncio-1.4.0, syrupy-6.1.1, split-0.11.0, time-machine-3.5.1, mock-3.16.0, timeout-2.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 60 items

tests/roadmap/stage/test_roadmap_stage_content.py ............................................................                                                                                                                                     [100%]

=================================================================================================================== 60 passed in 0.58s ===================================================================================================================
Bytecode compiled 19212 files in 468ms
Bytecode compiled 19212 files in 446ms
Elapsed: 7.24s
  • verify of group 0: uv run devops ci test tests/roadmap/stage/test_roadmap_stage_plan.py exits 0.
  tests/roadmap/stage/test_roadmap_stage_plan.py \u2192 tests/roadmap/stage/test_roadmap_stage_plan.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /home/devops/.data/agent/worktrees/w-3287
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, hypothesis-6.168.3, asyncio-1.4.0, syrupy-6.1.1, split-0.11.0, time-machine-3.5.1, mock-3.16.0, timeout-2.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 159 items

tests/roadmap/stage/test_roadmap_stage_plan.py ...............................................................................................................................................................                                     [100%]

---------------------------------------------------------------------------------------------------------------- snapshot report summary -----------------------------------------------------------------------------------------------------------------
1 snapshot passed.
================================================================================================================== 159 passed in 42.03s ==================================================================================================================
Bytecode compiled 19212 files in 451ms
Bytecode compiled 19212 files in 473ms
Elapsed: 49s
  • verify of group 0: uv run devops ci test tests/roadmap/stage/test_roadmap_stage_prompt_rules.py exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3287
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/roadmap/stage/test_roadmap_stage_prompt_rules.py \u2192 tests/roadmap/stage/test_roadmap_stage_prompt_rules.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /home/devops/.data/agent/worktrees/w-3287
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, hypothesis-6.168.3, asyncio-1.4.0, syrupy-6.1.1, split-0.11.0, time-machine-3.5.1, mock-3.16.0, timeout-2.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 86 items

tests/roadmap/stage/test_roadmap_stage_prompt_rules.py ......................................................................................                                                                                                      [100%]

=================================================================================================================== 86 passed in 0.90s ===================================================================================================================
Bytecode compiled 19212 files in 450ms
Bytecode compiled 19212 files in 457ms
Elapsed: 7.36s
  • verify of group 0: uv run devops ci test tests/roadmap/stage/test_roadmap_stage_tools.py exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3287
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/roadmap/stage/test_roadmap_stage_tools.py \u2192 tests/roadmap/stage/test_roadmap_stage_tools.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /home/devops/.data/agent/worktrees/w-3287
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, hypothesis-6.168.3, asyncio-1.4.0, syrupy-6.1.1, split-0.11.0, time-machine-3.5.1, mock-3.16.0, timeout-2.4.0, anyio-4.15.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 87 items

tests/roadmap/stage/test_roadmap_stage_tools.py .......................................................................................                                                                                                            [100%]

================================================================================================================== 87 passed in 10.47s ===================================================================================================================
Bytecode compiled 19212 files in 457ms
Bytecode compiled 19212 files in 448ms
Elapsed: 17s

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 7, 2026 12:53
@dan-petty

Copy link
Copy Markdown
Owner

Check results

Head commit: f5619853ff803c4b8a1ae4079b31ee119c046943

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
CodeQL success run
Plan Check skipped run
Dependency Freshness skipped run
Test Job Duration skipped run
Tests & Coverage (shard 2 of 4) success run
Tests & Coverage (shard 3 of 4) success run
Rule Pack Tests success run
Image Pins success run
Runner Image success run
Changed-Test Independence success run
Third-Party Image Scan success run
Tests & Coverage (shard 1 of 4) success run
DevContainer Image success run
Static Analysis success run
Docs Site Build success run
Tests & Coverage (shard 4 of 4) success run
Service Image success run
Analyze (python) success run
Analyze (actions) success run
Semantic PR title success run
Fail-to-Pass Check success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/42396114625/job/128473722674

Skipped check: Plan Check
Skipped check: Dependency Freshness
Skipped check: Test Job Duration

@dan-petty
dan-petty merged commit 3a172a3 into main Nov 7, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/3287-detect-obsolete-spec-requirements-on-command branch November 7, 2026 17:42
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.83.2](v0.83.1...v0.83.2)
(2026-11-07)


### Bug Fixes

* **roadmap:** Detect obsolete spec requirements on command rename
([#3961](#3961))
([3a172a3](3a172a3))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 11, 2026
A failed check of the pull request gets a fix turn only when its log
names a path of the repair scope: the paths that the plan names and the
change folder. If it names none, the job stops the item as Blocked with
no model request, and the reason names the check and the scope. Since
#3944 a turn that changes a path outside the plan stops, but only after
it spent its requests: in #3961 a failed Plan Check cost 217 requests
and 14.4 million tokens. The change reads the log only, not the check
annotations: the log holds the same paths and is already read.

Closes #4028

Change:
`openspec/changes/archive/2026-11-11-4028-confine-repair-fix-turns-to-the/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): Detect obsolete spec requirements on command rename

1 participant