Repository navigation
Description
Problem Description
On 2026-11-13 at 23:27Z, the fix-plan step (roadmap.fix_plan.mode on) ended plan PR #5449 (#2176) with result=dismissed and removed plan/needs-fix. The Service then marked the PR ready. A read-only vet found two blockers and five major findings that the step never judged (PR #5449 comment 6868303581). Two defects of the step caused this.
- It cannot read the open findings of an older stage comment.
comment_open_findingsread 0 of the 3 open findings of the stage review. Their locators ("at group 3 (and group 1)", "at decisions (group 4)", "at group 1:") come from before fix(roadmap): a review finding must name a part of the plan #5418 and match neither_FINDING_LINEnorPlanPart. The step logged "fix-plan read 0 of the 3 lines" and then decided that no open finding remained. - A finding of type
otheris never open. The review of the head found a major finding of typeother.otheris not inOPEN_TYPES(stage_verify.py:88), so a true major finding became advice.
Expected vs Actual Behavior
Expected:
- When the step cannot read a finding line, it does not dismiss. It keeps
plan/needs-fixand reports the lines that it could not read. - A blocker or major finding blocks whatever its type is.
Actual:
- The step dismissed a plan that has open blockers, and the plan PR went to ready.
Proposed Fix
- In the fix-plan step, read the stage comment lines in both the old form and the new form. When any line cannot be read, end with a result that keeps the label, such as
unreadable, and never withdismissed. - Make the severity alone decide whether a finding blocks: blocker and major block, minor and nit are advice. Use the type only for grouping, or add
otherto the blocking types when the severity is blocker or major. - Re-run the step on docs(openspec): plan #2176 Settle the 26 audit rows by mutation runs #5449 after the fix as the live proof.
Acceptance Criteria
- A test with a stage comment of the old locator form gets no
dismissedresult, and the label stays (devops ci fail-to-pass). - A test with a major finding of type
othergets a blocking result. - The result line of the step counts the lines that it could not read.
Related
#5411 (severity gate), #5418 (locators), #5449, #2176
Proposed design
Problem statement
Fix the fix-plan step so it cannot dismiss a plan with unread findings or a blocker or major finding. On 2026-11-13 the step dismissed plan PR #5449 and the Service marked it ready. A read-only check found two blockers and five major findings that the step never judged. The step could not read three stage-comment finding lines in the old locator form. It also treated a major finding of type other as advice. The fix must read both locator forms, fail closed on unreadable lines, and let severity alone decide blocking.
Acceptance criteria
Requirement: old-locator-form-read
The fix-plan step SHALL read a stage-comment finding line whose locator uses the pre-#5418 form.
Scenario: old locator is parsed
- WHEN a stage comment holds a finding line with the old locator form at group 3 (and group 1)
- THEN the step returns that line as an open finding and does not count it as unreadable
Requirement: current-locator-form-read
The fix-plan step SHALL read a stage-comment finding line whose locator uses the current form.
Scenario: current locator is parsed
- WHEN a stage comment holds a finding line with the current locator form
- THEN the step returns that line as an open finding
Requirement: unreadable-line-keeps-label
The fix-plan step SHALL return a non-dismissing result and keep plan/needs-fix when any stage-comment finding line cannot be read.
Scenario: unreadable finding keeps the label
- WHEN a stage comment holds a finding line that matches neither the old nor the current form
- THEN the step result is unreadable, the plan/needs-fix label stays, and the result is not dismissed
Requirement: unreadable-count-in-result
The fix-plan result line SHALL count the stage-comment finding lines that the step could not read.
Scenario: count is reported
- WHEN a stage comment holds two finding lines that the step cannot read
- THEN the result line reports a count of two unreadable lines
Requirement: major-other-blocks
The fix-plan step SHALL treat a blocker or major finding as blocking regardless of its type.
Scenario: major other finding blocks
- WHEN a stage comment holds a major finding of type other
- THEN the step returns a blocking result and does not dismiss the plan
Requirement: minor-other-is-advice
The fix-plan step SHALL treat a finding with severity minor or nit as advice regardless of its type.
Scenario: minor other does not block
- WHEN a stage comment holds a minor finding of type other and no blocker or major finding
- THEN the step does not report the minor finding as blocking
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers this project's stage-comment finding reader or its roadmap label policy. The change edits existing code in fix_plan.py and stage_verify.py. The written cost is about 15,000 tokens and 2 hours to build, keep and fix it.
Key questions
- How should the fix-plan step handle a stage-comment finding line that it cannot read?: Return unreadable, keep plan/needs-fix, and report the count of unreadable lines. Never return dismissed when any line is unreadable. (best practice) [sources: src/devops_cli/roadmap/steps/fix_plan.py:341, src/devops_cli/roadmap/steps/fix_plan.py:778]
- Chosen: Fail closed with unreadable. It keeps the label and stops a plan with unread blockers from going ready.
- Rejected: Ignore unreadable lines. This is the defect that dismissed docs(openspec): plan #2176 Settle the 26 audit rows by mutation runs #5449.
- Rejected: Stop with a generic typed stop. It keeps the label but does not report the unreadable count.
- How should the fix-plan step decide whether a finding blocks?: By severity alone: blocker and major block, and minor and nit are advice. Use the type only for grouping. (best practice) [sources: src/devops_cli/roadmap/stage/stage_verify.py:88]
- Chosen: Severity alone. A major other finding blocks, and a minor security finding does not.
- Rejected: Add other to OPEN_TYPES. It keeps type as a second blocking rule and misses the next type.
- Rejected: Use type and severity together. It can make the same defect for another type.
- Which locator forms should the fix-plan reader accept?: Accept both the old pre-fix(roadmap): a review finding must name a part of the plan #5418 locator form and the current form. Mark a line unreadable only when neither form matches. (best practice) [sources: src/devops_cli/roadmap/steps/fix_plan.py:193, openspec/changes/archive/2026-11-13-5411-only-blocker-and-major-review-findings/proposal.md:48]
- Chosen: Both forms. Open stage comments can predate fix(roadmap): a review finding must name a part of the plan #5418, and the current form must keep working.
- Rejected: Current form only. It loses the three open findings of docs(openspec): plan #2176 Settle the 26 audit rows by mutation runs #5449.
- Rejected: Old form only. It breaks the current stage comments.
- What should the result line report about unreadable finding lines?: The result line counts the unreadable lines. The step comment lists the lines that it could not read. (best practice) [sources: src/devops_cli/roadmap/steps/fix_plan.py:778, src/devops_cli/roadmap/steps/fix_plan.py:341]
- Chosen: Count in the result line and list in the comment. The operator sees the size of the gap and the exact lines.
- Rejected: Count only. The issue asks to report the lines that the step could not read.
- Rejected: List only. The acceptance criterion asks for a count in the result line.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 14, 2026
A plan with open blockers was dismissed and released, so the quality gate failed in production.Both address which findings block a plan, but #5411 set the severity rule while the candidate fixes the code that still gates on type membership in 'OPEN_TYPES'.devops-cli-service commentedon Nov 14, 2026
Status set to Ready at ffce5d9 (see proposed design in issue body).
Moved to new items: #5588.
devops-cli-service commentedon Nov 14, 2026
Staged: branch
fix/5579-fix-plan-dismisses-a-plan-with, draft pull request #5593. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
A model review of the plan found these points. They stop no draft, and a person judges them:
false_premiseat tasks (1): The plan says the change leaves the narrower set of the refine review in place. ButJUDGE_OPEN_TYPESis defined asOPEN_TYPES - {task_order, verify_form, criterion_dropped}. Addingotherandcontrived_testtoOPEN_TYPEStherefore widens the refine review too, and a majorotherorcontrived_testfinding on a refine proposal would refuse the item. Theroadmap-refine/reviewspec lists four open types and says another finding is advice. Group 1 only readsrefine_judge.py, and neither a task nor the spec delta changes the set or the spec. Evidence: "JUDGE_OPEN_TYPES: Final[frozenset[DefectType]] = OPEN_TYPES - {"otherat tasks (1): Group 1 addsotherandcontrived_testtoOPEN_TYPES, but it leaves outtest_the_open_types_are_the_seven_types_that_the_planner_can_fix. That test assertsOPEN_TYPESequals the seven old types, so it fails after the change. The verify command of group 1 runs this file and fails. Evidence: "Updatetest_an_open_type_with_a_quote_in_the_input_is_openandtest_an_open_finding_is_a_listed_type_or_a_placeholder_with_a_quote_in_the_inputoftests/roadmap/stage/test_roadmap_stage_verify.py, whosecontrived_testfinding is open now, and keeptest_a_minor_finding_is_adviceandtest_the_prompt_names_the_nine_types_and_no_otheras they are"The runs of the planner and the review made 97 model request(s), and used 6133546 input tokens and 140574 output tokens. The tool calls, in order:
read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":60,"end_line":240})read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":180,"end_line":380})read_file({"end_line":420,"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":346})read_file({"end_line":200,"path":"tests/roadmap/steps/test_roadmap_fix_plan_comment.py","start_line":1})search_code({"text":"at group "})references({"name":"_FINDING_LINE"})read_file({"path":"openspec/changes/archive/2026-11-13-5410-a-review-finding-must-name-a/proposal.md","start_line":30,"end_line":70})search_code({"text":"at tasks ("})git_log({"path":"src/devops_cli/roadmap/steps/fix_plan.py"})search_code({"text":"at decisions"})git_show({"commit":"34cdf12d","path":"src/devops_cli/roadmap/steps/fix_plan.py"})search_code({"text":"def open_findings"})search_code({"text":"OPEN_TYPES"})read_file({"end_line":740,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":560})search_code({"text":"JUDGE_OPEN_TYPES"})read_file({"path":"src/devops_cli/roadmap/refine/refine_judge.py","start_line":40,"end_line":100})read_spec({"capability":"roadmap-stage/verification","requirement":"Only a blocker or a major finding is open"})read_spec({"capability":"roadmap-stage/fix-plan"})read_spec({"capability":"x"})read_spec({"capability":"roadmap-stage/fix-plan","requirement":"The decisions of the step count only blocker and major findings"})read_spec({"capability":"roadmap-stage/fix-plan","requirement":"A comment line with no severity reads as a major finding"})read_file({"end_line":1000,"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":780})read_file({"end_line":1170,"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":954})search_code({"text":"stage_finding_where"})search_code({"text":"stage_finding:"})search_code({"text":"findings: tuple[Finding, ...]"})search_code({"text":"def revise_plan"})read_file({"end_line":3090,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2991})search_code({"text":"def revise("})read_file({"end_line":1500,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1420})read_file({"end_line":330,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":243})search_code({"text":"def holds"})read_file({"end_line":556,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":330})read_file({"end_line":528,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":492})read_file({"path":"tests/support/roadmap_fix_plan.py"})read_file({"path":"tests/fixtures/roadmap_fix_plan/stage_comment.txt"})search_code({"text":"' at specs ("})search_code({"text":"' at group "})read_file({"end_line":560,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":528})search_code({"text":"def _repaired"})read_spec({"capability":"roadmap-stage/verification","requirement":"Only a blocker or a major finding is open"})read_spec({"capability":"roadmap-stage/fix-plan"})read_spec({"capability":"roadmap-stage/fix-plan","requirement":"A comment line with no severity reads as a major finding"})read_spec({"capability":"roadmap-stage/fix-plan","requirement":"The decisions of the step count only blocker and major findings"})read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":80,"end_line":115})search_code({"text":"OPEN_TYPES"})file_symbols({"path":"src/devops_cli/roadmap/steps/fix_plan.py"})read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":186,"end_line":365})read_spec({"capability":"roadmap-stage/fix-plan"})read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":612,"end_line":680})read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":1056,"end_line":1115})read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":80,"end_line":125})read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":600,"end_line":650})search_code({"text":"JUDGE_OPEN_TYPES"})search_code({"text":"OPEN_TYPES"})search_code({"text":"contrived_test"})read_spec({"capability":"roadmap-refine/review"})read_file({"path":"openspec/specs/roadmap-refine/review/spec.md","start_line":20,"end_line":45})references({"name":"OPEN_TYPES"})read_file({"path":"openspec/specs/roadmap-stage/verification/spec.md","start_line":30,"end_line":80})callers({"symbol":"comment_open_findings"})read_spec({"capability":"roadmap-stage/fix-plan","requirement":"The decisions of the step count only blocker and major findings"})search_code({"text":"JUDGE_OPEN_TYPES"})read_spec({"capability":"roadmap-refine/review"})read_file({"path":"src/devops_cli/roadmap/refine/refine_judge.py","start_line":1,"end_line":100})read_spec({"capability":"roadmap-refine/review","requirement":"A refusal of the review is a job failure that a later round fixes"})read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":60,"end_line":150})read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":600,"end_line":660})list_files({"directory":"tests/roadmap/refine"})read_spec({"capability":"roadmap-stage/fix-plan"})search_code({"text":"JUDGE_OPEN_TYPES"})search_code({"text":"from devops_cli.roadmap.refine.refine_judge import"})search_code({"text":"judge_refused"})search_code({"text":"VERIFY_TYPES"})read_file({"path":"tests/roadmap/refine/test_roadmap_refine_trust.py","start_line":180,"end_line":270})read_file({"path":"tests/roadmap/refine/test_roadmap_refine_trust.py","start_line":1,"end_line":130})file_symbols({"path":"src/devops_cli/roadmap/steps/fix_plan.py"})read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":1040,"end_line":1115})read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":870,"end_line":945})read_file({"end_line":870,"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":800})read_spec({"capability":"roadmap-stage/fix-plan","requirement":"The decisions of the step count only blocker and major findings"})read_spec({"capability":"roadmap-stage/fix-plan","requirement":"A comment line with no severity reads as a major finding"})list_files({"directory":"tests/roadmap/steps"})list_files({"directory":"tests/fixtures/roadmap_fix_plan"})read_file({"path":"tests/roadmap/steps/test_roadmap_fix_plan_comment.py","start_line":1,"end_line":120})search_code({"text":"at group 3 (and group 1)"})references({"name":"_FINDING_LINE"})read_file({"end_line":60,"path":"openspec/changes/archive/2026-11-13-5410-a-review-finding-must-name-a/proposal.md","start_line":38})read_file({"end_line":115,"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":85})search_code({"text":"DefectType.OTHER"})read_file({"end_line":300,"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":230})search_code({"text":"DefectType.CONTRIVED_TEST"})read_file({"end_line":330,"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":300})read_file({"end_line":520,"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":495})read_file({"end_line":730,"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":670})callers({"symbol":"comment_open_findings"})search_code({"text":"from devops_cli.roadmap.steps.fix_plan import"})file_symbols({"path":"tests/support/roadmap_fix_plan.py"})read_spec({"capability":"roadmap-stage/verification","requirement":"Only a blocker or a major finding is open"})find_issues({"terms":"fix-plan plan/needs-fix unreadable"})read_issue({"number":5449})read_issue({"number":5588})read_issue({"number":5211})read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":80,"end_line":150})read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":610,"end_line":640})read_file({"end_line":60,"path":"src/devops_cli/roadmap/refine/refine_judge.py","start_line":30})search_code({"text":"_settle"})file_symbols({"path":"src/devops_cli/roadmap/steps/fix_plan.py"})read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":833,"end_line":900})read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":1061,"end_line":1115})search_code({"text":"contrived_test"})search_code({"text":"test_a_contrived_test_finding_is_in_the_comment"})search_code({"text":"test_a_mixed_first_round_lists_every_finding"})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":480,"end_line":530})search_code({"text":"def _finding("})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":80,"end_line":110})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":314,"end_line":370})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":96,"end_line":112})read_file({"path":"openspec/changes/archive/2026-11-13-5410-a-review-finding-must-name-a/proposal.md","start_line":40,"end_line":55})read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":85,"end_line":115})read_file({"path":"openspec/specs/roadmap-refine/review/spec.md","start_line":1,"end_line":45})read_file({"path":"src/devops_cli/roadmap/refine/refine_judge.py","start_line":30,"end_line":55})search_code({"text":"JUDGE_OPEN_TYPES"})search_code({"text":"test_roadmap_refine_trust"})list_files({"directory":"tests/roadmap/refine"})references({"name":"_FINDING_LINE"})find_issues({"terms":"fix-plan unreadable findings"})read_issue({"number":5449})list_files({"directory":"tests/fixtures/roadmap_fix_plan"})Tool calls: callers=2 (empty=0), file_symbols=4 (empty=0), find_issues=2 (empty=0), git_log=1 (empty=0), git_show=1 (empty=0), list_files=5 (empty=0), read_file=53 (empty=0), read_issue=4 (empty=0), read_spec=18 (empty=0), references=4 (empty=0), search_code=35 (empty=1)
docs(openspec): plan #5579 Keep the label when a finding line is unread
fix(plan): satisfy shepherd review comments for #5579
docs(openspec): plan #5579 Keep the label when a finding line is unre…
devops-cli-service commentedon Nov 14, 2026
Released in v0.142.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.142.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 21:08 UTC