Skip to content

fix(roadmap): Refuse a class claim the staged source lacks - #5834

Merged
dan-petty merged 8 commits into
mainfrom
fix/3407-check-a-class-claim-against-the
Nov 16, 2026
Merged

dan-petty merged 8 commits into
mainfrom
fix/3407-check-a-class-claim-against-the

Conversation

@devops-cli-service

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

Copy link
Copy Markdown
Contributor

A stage plan can build on a false claim about an internal class and pass every check. The plan of #3350 said in its design that StagedTree holds the file text of the staged commit, and the class keeps the tracked paths only, so an implementation step would have failed on text that does not exist. check_proposal tests the paths, the spec delta, the criteria, the form and the content of a plan, and no rule compares a claim about a class with the staged source (#3407).

Closes #3407

Change: openspec/changes/archive/2026-11-16-3407-check-a-class-claim-against-the/

@devops-cli-service
devops-cli-service Bot force-pushed the fix/3407-check-a-class-claim-against-the branch from 8fbecea to 5cf0354 Compare November 15, 2026 14:10
@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 labels Nov 15, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Stopped at push.

Failure class: conflict.
Action taken: none.
Action left: wait: wait for a person.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 12655797/47356 pytest on base: tests/roadmap/stage/test_roadmap_stage_class_claim.py
group 2 done 1 2699212/10553 pytest on base: tests/roadmap/stage/test_roadmap_stage_eval_gates.py
group 3 done 2 18586126/98506 pytest on base: tests/roadmap/stage/test_roadmap_stage_eval_cases.py
group 4 done 1 446412/3768 -
group 5 done 1 1118697/7029 -
push stopped 1 0/0 -

Reason:

The rebase onto origin/main stopped.
`git rebase origin/main` failed: Rebasing (1/6) Rebasing (2/6) error: could not apply 58a3371d5... fix(roadmap): Carry the class sources into the replay case facts (#3407) hint: Resolve all conflicts manually, mark them as resolved with hint: "git add/rm <conflicted_files>", then run "git
Conflicted files:
- src/devops_cli/roadmap/stage/stage_eval_cases.py

Last message of the agent (a claim that no check verified): none.

The item is Blocked, and the job will not run it. Fix the cause. Then comment implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 12655797/47356 pytest on base: tests/roadmap/stage/test_roadmap_stage_class_claim.py
group 2 done 1 2699212/10553 pytest on base: tests/roadmap/stage/test_roadmap_stage_eval_gates.py
group 3 done 2 18586126/98506 pytest on base: tests/roadmap/stage/test_roadmap_stage_eval_cases.py
group 4 done 1 446412/3768 -
group 5 done 1 1118697/7029 -
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.roadmap.stage.test_roadmap_stage_class_claim::test_a_name_that_no_class_under_src_defines_is_no_claim, tests.roadmap.stage.test_roadmap_stage_class_claim::test_a_quote_the_class_lacks_is_refused, tests.roadmap.stage.test_roadmap_stage_class_claim::test_a_decision_that_quotes_the_class_passes, tests.roadmap.stage.test_roadmap_stage_class_claim::test_a_decision_that_names_a_class_with_no_quote_is_refused, tests.roadmap.stage.test_roadmap_stage_class_claim::test_class_sources_reads_a_class_with_no_base, tests.roadmap.stage.test_roadmap_stage_class_claim::test_a_quote_of_two_characters_is_refused, tests.roadmap.stage.test_roadmap_stage_class_claim::test_the_problem_names_the_class_and_the_section.
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.roadmap.stage.test_roadmap_stage_eval_gates::test_the_paths_gate_refuses_a_false_class_claim.
  • fail-to-pass of group 3: fails on the base commit. Tests that fail on the base commit: tests.roadmap.stage.test_roadmap_stage_eval_cases::test_the_case_of_a_false_class_claim_joins_the_change.
  • verify of group 4: uv run devops ci test tests/roadmap/stage/test_roadmap_stage_eval_gates.py exits 0.
/home/devops/.data/agent/worktrees/w-3407/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3407/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3407/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3407/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/agent/worktrees/w-3407/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
  • verify of group 5: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-3407
\u2713 All documentation files are up to date.
Bytecode compiled 23327 files in 572ms
Bytecode compiled 23327 files in 554ms

@dan-petty
dan-petty force-pushed the fix/3407-check-a-class-claim-against-the branch 3 times, most recently from d44b687 to 68ae054 Compare November 16, 2026 00:48
@dan-petty

Copy link
Copy Markdown
Owner

The check Fail-to-Pass Check fails for this pull request.

Root cause:
This pull request adds the field classes to CaseFacts in src/devops_cli/roadmap/stage/stage_eval_cases.py and adds the golden case tests/fixtures/roadmap_eval/stage/3407-a-plan-that-claims-a-class-holds/facts.json with "classes": {...}.
The base commit (origin/main) defines CaseFacts with extra="forbid".
When devops ci fail-to-pass overlays the branch tests/ directory on the base commit, StageCase.model_validate fails when it reads the new golden case.
This causes existing unchanged tests (for example test_an_unknown_case_exits_1_and_names_it in tests/roadmap/stage/test_roadmap_stage_eval_command.py) to fail on the base tree.
Per CONTRIBUTING.md (Fail-to-Pass Evidence), when a change to a shared test artifact makes an unchanged test fail on base, that prerequisite change must merge first in a pull request that is not a fix (such as a feature or refactoring). Then replay the fix against the new base.

@dan-petty
dan-petty force-pushed the fix/3407-check-a-class-claim-against-the branch from 68ae054 to 5c7a95b Compare November 16, 2026 11:45
@dan-petty
dan-petty force-pushed the fix/3407-check-a-class-claim-against-the branch from 5c7a95b to 2fa5ef2 Compare November 16, 2026 12:12
@dan-petty
dan-petty marked this pull request as ready for review November 16, 2026 12:20
@dan-petty
dan-petty self-requested a review as a code owner November 16, 2026 12:20
@dan-petty
dan-petty merged commit b12cca7 into main Nov 16, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/3407-check-a-class-claim-against-the branch November 16, 2026 12:24
dan-petty-release Bot added a commit that referenced this pull request Nov 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.164.0](v0.163.0...v0.164.0)
(2026-11-16)


### Features

* **roadmap:** Verify a claimed missing check in a helper
([#5868](#5868))
([e6cf731](e6cf731))


### Bug Fixes

* **ai:** one retry layer for a gateway call
([#5973](#5973))
([87ebf9f](87ebf9f)),
closes [#5965](#5965)
* **roadmap:** Refuse a class claim the staged source lacks
([#5834](#5834))
([b12cca7](b12cca7))

---
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>
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): Check a class claim against the staged source

1 participant