Skip to content

fix(roadmap): a review finding must name a part of the plan - #5418

Merged
dan-petty merged 5 commits into
mainfrom
fix/5410-finding-names-a-plan-part
Nov 13, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/5410-finding-names-a-plan-part

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

A plan review finding names its place with a structured locator (Locator): a part (proposal, design, tasks, spec or issue), a section, and the capability of a requirement. open_findings keeps a finding open only when the plan or the issue holds its place. A tool answer holds no place. Before, no check read the free-text place, so a finding on a base spec that the plan does not change kept plan/needs-fix (#5350).

The check compares the words of a name. A key of the proposal or the design is a place of both files, and the part issue also reads the criteria of a refine proposal. The stage job, a later review, fix-plan and refine use the rule, and fix-plan reads the new comment line back. The fix needs a release and an image roll.

Closes #5410

Change: openspec/changes/archive/2026-11-13-5410-a-review-finding-must-name-a/

@dan-petty dan-petty 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 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

  • Static rows lint, format, domain, docs, constructs, openspec, startup-imports, swallowed-failures, test-settings and test-tree: pass.
  • mypy --strict on roadmap/stage, roadmap/steps, roadmap/refine, lang/en/messages.py and the two eval commands: no issues.
  • pytest tests/roadmap/stage tests/roadmap/steps tests/roadmap/refine tests/roadmap/test_roadmap_failure.py and the tests of eval screen, eval grades, step fix-plan and the stage telemetry: all pass, with 1 skip.
  • uv run devops ci fail-to-pass --base origin/main: exit 0. The acceptance tests test_a_finding_on_a_requirement_that_the_plan_does_not_hold_is_advice, test_a_finding_on_a_requirement_of_the_plan_stays_open and test_criterion_dropped_names_the_criterion_of_the_issue, and the review test test_a_reviewer_report_in_an_old_form_exits_1_and_makes_no_request, fail on the base and pass on the head. The Fail-to-Pass Check run of CI is the evidence of record.
  • The git row and tests/roadmap/project_review/test_review_facts.py::test_the_facts_of_a_version_window fail on the development host because of the review_window transcript fault of fix(roadmap): the review_window git transcript does not match the code #4865. This change touches no git code and no transcript.

Render diff

No path under k8s/ changes. There is no render difference and no restart.

Release

A release is necessary. The Service runs the stage job and the row fix_plan from its image, and the fix-plan Jobs run the command from the same image. The rule takes effect only after a release and a roll of the image.

An acceptance criterion that this change does not meet as written

The criterion "uv run devops roadmap eval verify still meets the recall floor" has a false premise: the base does not reach CONST_ROADMAP_VERIFY_RECALL_FLOOR (0.9). Stored reports show 0.38 on 44 cases (2026-11-05), and 0.45 to 0.67 on runs of 9 and 10 cases (2026-11-10). The eval matches a finding to a defect by type only (matched_defects), so the place rule does not change the recall. Only the new prompt text can change it. The eval did not run for this pull request: one run of the set is about 60 agent runs, and a small sample is too noisy to compare. A person compares the base and the head on the same cases and model (tasks.md, "Pending a person").

Effects after the release

  • A stage comment from before the release names each place as free text. fix-plan cannot read such a line: it leaves the line out and logs fix-plan read N of the M lines. The review of the head still runs in each attempt, so the planner still gets the open findings of that review.
  • devops roadmap eval verify --resume and devops roadmap eval screen --reviewer refuse a stored report from before this change: they exit 1 and name the file. Run the eval again.
  • The four stage comment fixtures under tests/fixtures/roadmap_fix_plan/ use the new place form, so they are no longer word-for-word copies of the real comments. Each test file that reads them says this.

Order with #5409

#5409 changes the same review code: stage_verify.py, the prompt roadmap_stage_verify.md, and probably the requirements "An evidence-backed finding returns the plan for the set repair rounds" and "An open finding keeps the plan in draft". This pull request stays a draft. It is rebased and marked ready after the pull request of #5409 merges. At that rebase, the MODIFIED blocks of the archived spec deltas and of openspec/specs are rebuilt on the text that #5409 merges.

Fixes from the review

  • devops roadmap eval screen --reviewer read a stored report with no check, so a report from before this change stopped with a pydantic ValidationError. It now reads each report through stored_cases, as --resume does, and exits 1 with the file name. docs/ROADMAP_WORKFLOW.md says so.
  • The proposal no longer says that this pull request runs the eval.

@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 9bfacc2374d2992650822d49143189776a08620f

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
Tests on Main skipped run
Test Job Duration skipped run
Tests & Coverage (shard 2 of 4) success run
Service Image success run
Tests & Coverage (shard 1 of 4) success run
Tests & Coverage (shard 3 of 4) success run
Design Tokens success run
Changed-Test Independence success run
Tests & Coverage (shard 4 of 4) success run
MCP Server Image success run
Static Analysis success run
Analyze (python) success run
Runner Image success run
Fail-to-Pass Check success run
Analyze (actions) success run
Semantic PR title success run
Docs Site Build success run

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

Skipped check: Plan Check
Skipped check: Dependency Freshness
Skipped check: Tests on Main
Skipped check: Test Job Duration

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 15:21
@devops-cli-service

Copy link
Copy Markdown
Contributor

Pull request #5418 has merge conflicts with main at commit 9bfacc2374d2. GitHub cannot merge it. Rebase the branch onto the current main, resolve the conflicts and push the branch.

A finding of the model review of a plan blocked the plan also when its
place named no part of the plan. Plan pull request #5350 kept
plan/needs-fix for a finding on a requirement that its spec delta does
not hold, with a quote from a base spec that the reviewer read.

Finding.where is now a structured place (Locator): a part (proposal,
design, tasks, spec or issue), a section, and the capability of a
requirement. open_findings keeps a finding open only when the plan or
the issue of the request holds its place. A tool answer holds no place.
The prompts describe the place, the comment line shows it as
"<part> (<section>)", and fix-plan reads that form back.
devops roadmap eval screen --reviewer read a stored report of
devops roadmap eval verify with no check, so a report from before the
structured place stopped with a pydantic error. It now reads each report
through stored_cases, as --resume does, and exits 1 with a message that
names the file. The proposal no longer says that the pull request runs
the eval.
A later review of #5409 opens a new finding only through
open_findings, so a new finding on a place that the revision does not
hold is advice, also with a quote in the changed text. An earlier
finding that the later review marks holds keeps its locator and stays
open: the review that opened it checked its place.

Give the tests of #5409 a structured place for each finding, and keep
each modified requirement of the spec delta below the length that
strict validation accepts.
…r name form

The review of case 2166 named `design (feasibility)` for a labeled blocker
of the proposal, and the place rule made it advice. A key of the proposal
or the design is now a place of both parts. The check compares the words
of a name, reads scenario names and the end segments of a capability, and
reads the acceptance criteria of a refine proposal for the part `issue`.
A capability must be a capability name, and the fix-plan reader keeps a
section with brackets whole.
@dan-petty
dan-petty force-pushed the fix/5410-finding-names-a-plan-part branch from 9bfacc2 to 7b96e9a Compare November 13, 2026 16:31
@dan-petty
dan-petty merged commit 34cdf12 into main Nov 13, 2026
30 checks passed
@dan-petty
dan-petty deleted the fix/5410-finding-names-a-plan-part branch November 13, 2026 16:54
@dan-petty

Copy link
Copy Markdown
Owner Author

Bottom line: this pull request merged with all review fixes (head 7b96e9a99). On cases 2166 and 2169, the recall of the head is 0.65 (11/17) and the recall of the base is 0.53 (9/17), so criterion 5 holds. The serious recall is 0.78 (7/9) on the head and 0.67 (6/9) on the base. The fix has no effect until a release and a roll of the Service image: the Service runs the stage job and the row fix_plan, and each fix-plan Job uses the same image.

Eval (criterion 5)

Command: uv run devops roadmap eval verify --case 2166 --case 2169 --model deepseek-v4.1-flash-1017 --json. The model is the model of ai.tasks.verification in the live ConfigMap. Each row is one run with one model call at a time, so the sample is small and noisy.

Run Commit Recall Serious (blocker + major) 2166: found / labeled (findings, open) 2169: found / labeled (findings, open) Findings that the place rule makes advice
Base b4a4ffbd0 9/17 = 0.53 6/9 = 0.67 5/8 (8, 4) 4/9 (7, 5) none (free-text place)
First head 258235a14 10/17 = 0.59 6/9 = 0.67 7/8 (13, 7) 3/9 (8, 8) 1 of 21: the 2166 blocker at design (feasibility). With the final rule: 0 of 21
Final head 7b96e9a99 11/17 = 0.65 7/9 = 0.78 6/8 (9, 5) 5/9 (9, 9) 0 of 18

Fail-to-pass

  • uv run devops ci fail-to-pass --base origin/main on head 7b96e9a99 (merge base 0d9ffa1e3): exit 0. 48 tests fail and 10 modules error on the base, and all pass on the head. The base has no Locator, so these tests fail by ImportError or by a collection failure, not by an assertion. test_a_finding_on_a_requirement_that_the_plan_does_not_hold_is_advice (the docs(openspec): plan #5118 Restore the Status on a claim release #5350 case) is in this set.
  • uv run devops ci fail-to-pass --base 659b3fc13 (the head before the review fixes): exit 0. 8 tests fail by an assertion on that base and pass on the head: test_a_finding_that_names_the_design_for_a_key_of_the_proposal_stays_open, test_a_place_in_another_form_of_its_name_stays_open, test_a_finding_on_a_key_of_the_proposal_or_the_design_that_the_plan_holds_is_open, test_a_finding_on_a_criterion_of_a_refine_proposal_names_the_issue, test_a_capability_with_a_space_or_a_bracket_is_refused (2 cases), test_the_reader_reads_back_a_section_with_brackets_and_no_capability and test_a_finding_on_a_criterion_of_the_proposal_with_the_part_issue_refuses_the_item.

Review fixes

  • Major: a key of the proposal or the design is a place of both files, so the 2166 blocker at design (feasibility) stays open. The docs(openspec): plan #5118 Restore the Status on a claim release #5350 finding names the part spec, so it stays advice. The prompt and docs/roadmap/stage.md say which keys each file holds.
  • Minor: the check compares the words of a name: task 2.1, Group 2: <title>, ## Feasibility, Existing Tool Considered, Requirement: <name>., a cut name, a scenario name and openspec/specs/<capability> keep their place.
  • Minor: the part issue also reads acceptance_criteria of a refine proposal.
  • Minor: a capability must be a capability name (the rule of StageSpec), and the fix-plan reader keeps a section with brackets whole.
  • Minor: the table above gives the count of findings that the place rule makes advice.

dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.130.0](v0.129.1...v0.130.0)
(2026-11-13)


### Features

* **k8s:** add RuntimeClass gvisor for the runsc nodes
([#5436](#5436))
([0d9ffa1](0d9ffa1))
* **roadmap:** make the attempt limits of the failing jobs settings
([#5490](#5490))
([a13e520](a13e520)),
closes [#5440](#5440)


### Bug Fixes

* **infra:** a plan shows a skip by a check-mode when as unchecked
([#5442](#5442))
([499b42c](499b42c))
* **infra:** the apply gate leaves out alerts of offline nodes
([#5478](#5478))
([3f0d0f0](3f0d0f0))
* **roadmap:** a named fix-plan run can skip the 6-hour wait
([#5459](#5459))
([94a1999](94a1999)),
closes [#5413](#5413)
* **roadmap:** a review finding must name a part of the plan
([#5418](#5418))
([34cdf12](34cdf12))
* **roadmap:** the stage gate log names each refused finding
([#5441](#5441))
([47b1ec5](47b1ec5))

---
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 14, 2026
…ad (#5593)

Plans #5579

The repair step of the roadmap ended plan pull request #5449 as
`dismissed` while two blockers and five major findings were open
(#5579). Two defects did it. The reader of the last plan comment knew
one line form only, so the three findings of the stage review, written
before the place form of #5418, were dropped as unreadable. And a
finding of the type `other` never blocked, so a major defect became
advice. This change reads both line forms, ends an attempt as
`unreadable_findings` with the count of the lines it could not read,
keeps the label while the last plan comment lists a blocker or major
finding, and lets the severity alone decide what is open. The review of
refine keeps its four open types.

Change: `openspec/changes/5579-fix-plan-dismisses-a-plan-with/`

---------

Co-authored-by: Daniel Petty <[email protected]>
Co-authored-by: devops-cli-service[bot] <349441588+devops-cli-service[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): a review finding must name a part of the plan to block it

1 participant