Skip to content

docs(openspec): plan #5579 Keep the label when a finding line is unread - #5593

Merged
dan-petty merged 4 commits into
mainfrom
fix/5579-fix-plan-dismisses-a-plan-with
Nov 14, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/5579-fix-plan-dismisses-a-plan-with

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

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/

@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 14, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 14, 2026 01:51
@dan-petty

Copy link
Copy Markdown
Owner

An agent vetted this plan before a merge (shepherd, 2026-11-14). Verdict: needs fix. Each point below blocks a correct build.

  1. The spec delta leaves 5 base requirements that the change makes wrong. In roadmap-stage/fix-plan, 'The review of the head counts the open findings before the repair' says the step 'SHALL NOT count' the comment findings. Its scenario 'The review of the head finds no open finding that the comment lists' gives dismissed. 'The label goes when no open finding remains' has the scenario 'A head plan with no open finding', which also gives dismissed while the comment lists an open finding. In roadmap-stage/verification, 'Every open finding returns the plan to the planner' gives OPEN_TYPES as the 7 old types. The scenario 'A mixed first round' of 'The comment lists every finding of each repair round' sends the planner no contrived_test finding. The scenario 'A contrived test finding' of 'Other findings go into the comment' uses contrived_test as its example of advice. The delta must MODIFY each of these 5 requirements. After archive, the specs would contradict the new requirements.
  2. The ADDED requirement 'An open finding of the last plan comment keeps the label' does not agree with task 6.2. The requirement says that each blocker or major finding of the comment keeps plan/needs-fix and that the attempt is unchanged. Task 6.2 changes only the dismissed branch of _decide. Thus regated with a clean review still removes the label while the comment lists an open finding. tests/roadmap/steps/test_roadmap_fix_plan.py::test_the_replay_of_4917_is_regated_with_a_push asserts this behavior: its comment 4472 lists 1 open finding. Make the requirement apply only to the dismissal, or make task 6.2 cover regated.
  3. Group 1 breaks 3 tests that the plan does not name. As a scratch check, I added OTHER and CONTRIVED_TEST to OPEN_TYPES, used the literal of group 3 for JUDGE_OPEN_TYPES, and ran tests/roadmap/stage, refine and steps. Result: 7 failed, 3291 passed. 4 of the failed tests are named in the plan. These 3 are not: (a) test_roadmap_stage_verify.py::test_the_open_types_are_the_seven_types_that_the_planner_can_fix. The model review gave this as major point 2, and the plan does not answer it. (b) test_roadmap_stage_verify.py::test_a_placeholder_in_a_tool_answer_is_no_open_finding. An other finding that quotes 'placeholder' from a tool answer is now open. This changes the fix(roadmap): the stage marks a plan ready although its own model review found a defect #3264 rule 'a placeholder in a file that a tool read is no defect of the plan', and the plan must decide that rule. (c) tests/roadmap/stage/test_roadmap_stage_verify_eval.py::test_the_score_counts_recall_by_type_and_the_findings_on_good_plans. good_returning changes from 1 to 2, because stage_verify_eval.py:304 counts open_findings with the default OPEN_TYPES. That test file, and the change to the eval score for good plans, are not in the plan.
  4. Group 6 breaks 2 tests that the plan does not name. As a scratch check, I made _decide dismiss only when the open findings of the comment are empty. Result: 3 failed. Task 6.2 names 1 of them: the minor-finding test. Not named: tests/roadmap/steps/test_roadmap_fix_plan.py::test_a_clean_head_with_listed_findings_is_dismissed, and tests/roadmap/steps/test_roadmap_fix_plan_comment.py::test_a_head_that_its_review_finds_clean_loses_the_label_though_the_comment_lists_a_finding. The second file is not in the Changes of group 6, and the verify command of group 6 does not run it. Thus group 6 passes its verify, but the suite fails.
  5. With group 6, a plan can stop with no progress and no message. _Planner.revise (src/devops_cli/roadmap/stage/stage.py, 'if not before: return PlanRevision(...)') returns before it calls the planner when the review of the head has no open finding. Thus, if the head is clean and the comment lists an open finding, the planner never gets the findings of the comment. The result is unchanged and the step posts no comment. Each attempt runs a full model review of the head again, until roadmap.fix_plan.head_attempts. The plan reverses the fix(roadmap): fix-plan compares the revision with a review of the head #5150 rule and gives no way forward. Send the findings of the comment to the review of the head as earlier findings (a later review with holds/gone, fix(roadmap): a later plan review judges each earlier finding #5409) or to the planner. Alternatively, post a comment that tells a person to decide.
  6. The plan says 'the plan changes no document', but the change makes these texts wrong. (a) docs/roadmap/stage.md: the dismissed rule, no unreadable_findings result, and no unreadable field in the Result bullet. (b) The description of ROADMAP_FIX_PLAN_TOTAL in src/devops_cli/telemetry/instruments.py lists each result, with 'dismissed for a head with no open finding' and no unreadable_findings. docs/TELEMETRY.md is generated from this description. (c) The dry-run texts in src/devops_cli/lang/en/messages.py: fix_plan_request_conditions unlabel ('dismissed (the review of the head found none)'), review and comment. Group 5 changes messages.py, but no task names these keys. AGENTS.md rule 8 requires these changes in the same pull request.

Paths that the change must touch and that the plan does not name: tests/roadmap/stage/test_roadmap_stage_verify.py::test_the_open_types_are_the_seven_types_that_the_planner_can_fix, tests/roadmap/stage/test_roadmap_stage_verify.py::test_a_placeholder_in_a_tool_answer_is_no_open_finding, tests/roadmap/stage/test_roadmap_stage_verify_eval.py, src/devops_cli/roadmap/stage/stage_verify_eval.py (open count of the eval score changes), tests/roadmap/steps/test_roadmap_fix_plan.py::test_a_clean_head_with_listed_findings_is_dismissed, tests/roadmap/steps/test_roadmap_fix_plan_comment.py (group 6: test_a_head_that_its_review_finds_clean_loses_the_label_though_the_comment_lists_a_finding), docs/roadmap/stage.md, src/devops_cli/telemetry/instruments.py (ROADMAP_FIX_PLAN_TOTAL description), docs/TELEMETRY.md (generated), src/devops_cli/lang/en/messages.py (fix_plan_request_conditions unlabel/review/comment), openspec/specs/roadmap-stage/fix-plan/spec.md: MODIFY 'The review of the head counts the open findings before the repair' and 'The label goes when no open finding remains', openspec/specs/roadmap-stage/verification/spec.md: MODIFY 'Every open finding returns the plan to the planner', 'The comment lists every finding of each repair round', 'Other findings go into the comment'

Points that do not block:

  • Task 3.1 says that test_a_major_other_finding_on_a_proposal_is_advice 'fails on the base'. On origin/main, JUDGE_OPEN_TYPES does not include other, so this test passes on the base. It fails only after group 1. It is a guard test, not a fail-first test. Change the text of its verification.
  • The map from the first word of an old place to a part is not complete. The design names group, spec, criterion and decisions. But the evidence of the plan itself (archive 5410 proposal.md:47) has old places that start with specs and criteria. The stage comment of docs(openspec): plan #2176 Settle the 26 audit rows by mutation runs #5449 also has groups, feasibility and summary. Give the full map in task 4.2, with the plural forms and feasibility/summary -> proposal. If you do not, these lines end as unreadable_findings. That result fails closed, but it never makes progress.
  • Task 4.2 does not say if the old form accepts a severity. The test test_the_reader_leaves_out_a_line_whose_place_names_no_part has the line 'major other at decisions (the dry run)'. Its result changes with this choice, and its log assertion 'read 1 of the 2 lines' changes with group 5. Give the old-form pattern in the plan.
  • These docstrings also need an update: the module docstring of fix_plan.py ('the count of the comment (comment) is only reported (fix(roadmap): fix-plan compares the revision with a review of the head #5150)'), lines 15-16 of stage_verify.py ('its type is in OPEN_TYPES'), and _Planner.revise in stage.py (the comment findings 'do not count').
  • Refine keeps its 4 open types, so a major other finding on a refine proposal stays advice. Group 3 adds a test that locks this in. The roadmap-refine/review spec supports this, but it is an exception to the rule of the issue that severity alone decides. A person must confirm it.
  • Issue chore(roadmap): re-run fix-plan on #5449 after the unreadable-findings fix #5588, the live proof (re-run fix-plan on docs(openspec): plan #2176 Settle the 26 audit rows by mutation runs #5449), cannot run as written. docs(openspec): plan #2176 Settle the 26 audit rows by mutation runs #5449 is merged, and the step selects only an open draft that has plan/needs-fix. The proof needs a different target.
  • This pull request shows defect 2 of the issue. The stage review gave the missing seven-types test as a major other finding. That finding did not stop the draft, and the Service marked the PR ready at 2026-11-14T01:51:03Z.
  • Prose is not fully ASD-STE100. 32 sentences are longer than 30 words. These words are not approved: 'vanished', 'whatever', 'widen/widens/widening', 'predate'.
  • origin/main is now 8a999d8, 5 commits after the branch base 3f08f8a. None of these commits changes fix_plan.py, stage_verify.py or refine_judge.py, so the premise is still true. messages.py changed on main (feat(roadmap): audit the test registry declarations #5594), so the implement run must start from current main.

@dan-petty dan-petty added the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 14, 2026
@dan-petty

Copy link
Copy Markdown
Owner

An agent vetted this plan before a merge (2026-11-14). Verdict: still needs work.

The proposed implementation in the plan has several blocking issues that prevent a correct build:

  1. Deadlock in _Planner.revise: If the head review finds no open findings, _Planner.revise returns before invoking the planner (if not before: return PlanRevision(...)). If the head is clean but the comment has open findings, the planner is never called with the comment's findings. The step terminates with unchanged and posts no comment, looping until head_attempts is exhausted.
  2. Requirement vs Task 6.2 contradiction: The requirement states that open comment findings keep plan/needs-fix as unchanged, but Task 6.2 only modifies the dismissed branch of _decide, leaving regated with a clean review removing the label despite comment findings (contradicting test_the_replay_of_4917_is_regated_with_a_push).
  3. Breaks unmentioned tests and core invariant rules:
    • Adding other and contrived_test to OPEN_TYPES breaks test_the_open_types_are_the_seven_types_that_the_planner_can_fix.
    • Reverses rule fix(roadmap): the stage marks a plan ready although its own model review found a defect #3264 ('a placeholder in a file that a tool read is no defect of the plan'), breaking test_a_placeholder_in_a_tool_answer_is_no_open_finding.
    • Modifies the recall evaluation score on good plans in test_roadmap_stage_verify_eval.py.
    • Breaks test_a_clean_head_with_listed_findings_is_dismissed and test_a_head_that_its_review_finds_clean_loses_the_label_though_the_comment_lists_a_finding (the latter not included in Group 6 Changes/Verify).
  4. Missing spec delta modifications: The change contradicts 5 base requirements across roadmap-stage/fix-plan and roadmap-stage/verification that must be explicitly modified in the spec deltas.
  5. Documentation and telemetry: docs/roadmap/stage.md, instruments.py (ROADMAP_FIX_PLAN_TOTAL), and dry-run messages in messages.py are made inaccurate and require updates in the same PR (Rule 8).

@dan-petty
dan-petty force-pushed the fix/5579-fix-plan-dismisses-a-plan-with branch from aabec3a to 3b9d346 Compare November 14, 2026 14:31
@dan-petty

Copy link
Copy Markdown
Owner

An agent vetted this plan before a merge (2026-11-14). Verdict: ready.

  • Resolved _Planner.revise deadlock: when head review finds no open findings but the last plan comment holds open findings, _repaired is invoked with those findings.
  • Reconciled dismissal in _decide: requiring both head review and comment findings to be empty for dismissal, keeping the label as unchanged when comment findings remain, without affecting regated pushes.
  • Added all 5 base requirements as MODIFIED blocks across roadmap-stage/fix-plan and roadmap-stage/verification with all base scenarios preserved and requirement text under 500 characters.
  • Preserved rule fix(roadmap): the stage marks a plan ready although its own model review found a defect #3264 in open_findings so placeholder findings in tool answers do not open on DefectType.OTHER.
  • Updated test expectations in test_roadmap_stage_verify.py (9 open types), test_roadmap_stage_verify_eval.py (good_returning=2), and fix-plan tests.
  • Updated documentation in docs/roadmap/stage.md and telemetry in instruments.py for unreadable_findings.
  • devops roadmap plan-check 5593 passed cleanly.

@dan-petty
dan-petty merged commit 284e96d into main Nov 14, 2026
22 checks passed
@dan-petty
dan-petty deleted the fix/5579-fix-plan-dismisses-a-plan-with branch November 14, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant