Skip to content

fix(roadmap): fix-plan dismisses a plan with unread findings #5579

Closed

Description

@dan-petty

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.

  1. It cannot read the open findings of an older stage comment. comment_open_findings read 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_LINE nor PlanPart. The step logged "fix-plan read 0 of the 3 lines" and then decided that no open finding remained.
  2. A finding of type other is never open. The review of the head found a major finding of type other. other is not in OPEN_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-fix and 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 with dismissed.
  • 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 other to 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 dismissed result, and the label stays (devops ci fail-to-pass).
  • A test with a major finding of type other gets 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]
  • 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]
  • 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

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/high
    effort/medium
    on Nov 14, 2026
  2. dan-petty commented on Nov 14, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. A plan with open blockers was dismissed and released, so the quality gate failed in production.
    • Related: fix(roadmap): only blocker and major review findings block a plan #5411, which asks for a different change. 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'.
  3. added
    priority/p1-high
    on Nov 14, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 14, 2026
  5. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at ffce5d9 (see proposed design in issue body).

    Moved to new items: #5588.

  6. added
    owner/service
    on Nov 14, 2026
  7. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    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:

    1. Let the severity alone decide which finding is open: 37100 tokens
    2. Make the two major contrived-test tests of the stage job a minor finding: 15915 tokens
    3. Keep the open types of the refine review narrow: 31629 tokens
    4. Read both finding line forms of a plan comment: 36600 tokens
    5. End an attempt on a line the step cannot read: 43813 tokens
    6. Keep the label while the plan comment lists an open finding: 39767 tokens

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • major false_premise at tasks (1): The plan says the change leaves the narrower set of the refine review in place. But JUDGE_OPEN_TYPES is defined as OPEN_TYPES - {task_order, verify_form, criterion_dropped}. Adding other and contrived_test to OPEN_TYPES therefore widens the refine review too, and a major other or contrived_test finding on a refine proposal would refuse the item. The roadmap-refine/review spec lists four open types and says another finding is advice. Group 1 only reads refine_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 - {"
    • major other at tasks (1): Group 1 adds other and contrived_test to OPEN_TYPES, but it leaves out test_the_open_types_are_the_seven_types_that_the_planner_can_fix. That test asserts OPEN_TYPES equals the seven old types, so it fails after the change. The verify command of group 1 runs this file and fails. Evidence: "Update test_an_open_type_with_a_quote_in_the_input_is_open and test_an_open_finding_is_a_listed_type_or_a_placeholder_with_a_quote_in_the_input of tests/roadmap/stage/test_roadmap_stage_verify.py, whose contrived_test finding is open now, and keep test_a_minor_finding_is_advice and test_the_prompt_names_the_nine_types_and_no_other as 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:

    1. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":60,"end_line":240})
    2. read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":180,"end_line":380})
    3. read_file({"end_line":420,"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":346})
    4. read_file({"end_line":200,"path":"tests/roadmap/steps/test_roadmap_fix_plan_comment.py","start_line":1})
    5. search_code({"text":"at group "})
    6. references({"name":"_FINDING_LINE"})
    7. read_file({"path":"openspec/changes/archive/2026-11-13-5410-a-review-finding-must-name-a/proposal.md","start_line":30,"end_line":70})
    8. search_code({"text":"at tasks ("})
    9. git_log({"path":"src/devops_cli/roadmap/steps/fix_plan.py"})
    10. search_code({"text":"at decisions"})
    11. git_show({"commit":"34cdf12d","path":"src/devops_cli/roadmap/steps/fix_plan.py"})
    12. search_code({"text":"def open_findings"})
    13. search_code({"text":"OPEN_TYPES"})
    14. read_file({"end_line":740,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":560})
    15. search_code({"text":"JUDGE_OPEN_TYPES"})
    16. read_file({"path":"src/devops_cli/roadmap/refine/refine_judge.py","start_line":40,"end_line":100})
    17. read_spec({"capability":"roadmap-stage/verification","requirement":"Only a blocker or a major finding is open"})
    18. read_spec({"capability":"roadmap-stage/fix-plan"})
    19. read_spec({"capability":"x"})
    20. read_spec({"capability":"roadmap-stage/fix-plan","requirement":"The decisions of the step count only blocker and major findings"})
    21. read_spec({"capability":"roadmap-stage/fix-plan","requirement":"A comment line with no severity reads as a major finding"})
    22. read_file({"end_line":1000,"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":780})
    23. read_file({"end_line":1170,"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":954})
    24. search_code({"text":"stage_finding_where"})
    25. search_code({"text":"stage_finding:"})
    26. search_code({"text":"findings: tuple[Finding, ...]"})
    27. search_code({"text":"def revise_plan"})
    28. read_file({"end_line":3090,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":2991})
    29. search_code({"text":"def revise("})
    30. read_file({"end_line":1500,"path":"src/devops_cli/roadmap/stage/stage.py","start_line":1420})
    31. read_file({"end_line":330,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":243})
    32. search_code({"text":"def holds"})
    33. read_file({"end_line":556,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":330})
    34. read_file({"end_line":528,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":492})
    35. read_file({"path":"tests/support/roadmap_fix_plan.py"})
    36. read_file({"path":"tests/fixtures/roadmap_fix_plan/stage_comment.txt"})
    37. search_code({"text":"' at specs ("})
    38. search_code({"text":"' at group "})
    39. read_file({"end_line":560,"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":528})
    40. search_code({"text":"def _repaired"})
    41. read_spec({"capability":"roadmap-stage/verification","requirement":"Only a blocker or a major finding is open"})
    42. read_spec({"capability":"roadmap-stage/fix-plan"})
    43. read_spec({"capability":"roadmap-stage/fix-plan","requirement":"A comment line with no severity reads as a major finding"})
    44. read_spec({"capability":"roadmap-stage/fix-plan","requirement":"The decisions of the step count only blocker and major findings"})
    45. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":80,"end_line":115})
    46. search_code({"text":"OPEN_TYPES"})
    47. file_symbols({"path":"src/devops_cli/roadmap/steps/fix_plan.py"})
    48. read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":186,"end_line":365})
    49. read_spec({"capability":"roadmap-stage/fix-plan"})
    50. read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":612,"end_line":680})
    51. read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":1056,"end_line":1115})
    52. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":80,"end_line":125})
    53. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":600,"end_line":650})
    54. search_code({"text":"JUDGE_OPEN_TYPES"})
    55. search_code({"text":"OPEN_TYPES"})
    56. search_code({"text":"contrived_test"})
    57. read_spec({"capability":"roadmap-refine/review"})
    58. read_file({"path":"openspec/specs/roadmap-refine/review/spec.md","start_line":20,"end_line":45})
    59. references({"name":"OPEN_TYPES"})
    60. read_file({"path":"openspec/specs/roadmap-stage/verification/spec.md","start_line":30,"end_line":80})
    61. callers({"symbol":"comment_open_findings"})
    62. read_spec({"capability":"roadmap-stage/fix-plan","requirement":"The decisions of the step count only blocker and major findings"})
    63. search_code({"text":"JUDGE_OPEN_TYPES"})
    64. read_spec({"capability":"roadmap-refine/review"})
    65. read_file({"path":"src/devops_cli/roadmap/refine/refine_judge.py","start_line":1,"end_line":100})
    66. read_spec({"capability":"roadmap-refine/review","requirement":"A refusal of the review is a job failure that a later round fixes"})
    67. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":60,"end_line":150})
    68. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":600,"end_line":660})
    69. list_files({"directory":"tests/roadmap/refine"})
    70. read_spec({"capability":"roadmap-stage/fix-plan"})
    71. search_code({"text":"JUDGE_OPEN_TYPES"})
    72. search_code({"text":"from devops_cli.roadmap.refine.refine_judge import"})
    73. search_code({"text":"judge_refused"})
    74. search_code({"text":"VERIFY_TYPES"})
    75. read_file({"path":"tests/roadmap/refine/test_roadmap_refine_trust.py","start_line":180,"end_line":270})
    76. read_file({"path":"tests/roadmap/refine/test_roadmap_refine_trust.py","start_line":1,"end_line":130})
    77. file_symbols({"path":"src/devops_cli/roadmap/steps/fix_plan.py"})
    78. read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":1040,"end_line":1115})
    79. read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":870,"end_line":945})
    80. read_file({"end_line":870,"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":800})
    81. read_spec({"capability":"roadmap-stage/fix-plan","requirement":"The decisions of the step count only blocker and major findings"})
    82. read_spec({"capability":"roadmap-stage/fix-plan","requirement":"A comment line with no severity reads as a major finding"})
    83. list_files({"directory":"tests/roadmap/steps"})
    84. list_files({"directory":"tests/fixtures/roadmap_fix_plan"})
    85. read_file({"path":"tests/roadmap/steps/test_roadmap_fix_plan_comment.py","start_line":1,"end_line":120})
    86. search_code({"text":"at group 3 (and group 1)"})
    87. references({"name":"_FINDING_LINE"})
    88. read_file({"end_line":60,"path":"openspec/changes/archive/2026-11-13-5410-a-review-finding-must-name-a/proposal.md","start_line":38})
    89. read_file({"end_line":115,"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":85})
    90. search_code({"text":"DefectType.OTHER"})
    91. read_file({"end_line":300,"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":230})
    92. search_code({"text":"DefectType.CONTRIVED_TEST"})
    93. read_file({"end_line":330,"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":300})
    94. read_file({"end_line":520,"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":495})
    95. read_file({"end_line":730,"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":670})
    96. callers({"symbol":"comment_open_findings"})
    97. search_code({"text":"from devops_cli.roadmap.steps.fix_plan import"})
    98. file_symbols({"path":"tests/support/roadmap_fix_plan.py"})
    99. read_spec({"capability":"roadmap-stage/verification","requirement":"Only a blocker or a major finding is open"})
    100. find_issues({"terms":"fix-plan plan/needs-fix unreadable"})
    101. read_issue({"number":5449})
    102. read_issue({"number":5588})
    103. read_issue({"number":5211})
    104. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":80,"end_line":150})
    105. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":610,"end_line":640})
    106. read_file({"end_line":60,"path":"src/devops_cli/roadmap/refine/refine_judge.py","start_line":30})
    107. search_code({"text":"_settle"})
    108. file_symbols({"path":"src/devops_cli/roadmap/steps/fix_plan.py"})
    109. read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":833,"end_line":900})
    110. read_file({"path":"src/devops_cli/roadmap/steps/fix_plan.py","start_line":1061,"end_line":1115})
    111. search_code({"text":"contrived_test"})
    112. search_code({"text":"test_a_contrived_test_finding_is_in_the_comment"})
    113. search_code({"text":"test_a_mixed_first_round_lists_every_finding"})
    114. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":480,"end_line":530})
    115. search_code({"text":"def _finding("})
    116. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":80,"end_line":110})
    117. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verification.py","start_line":314,"end_line":370})
    118. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_verify.py","start_line":96,"end_line":112})
    119. read_file({"path":"openspec/changes/archive/2026-11-13-5410-a-review-finding-must-name-a/proposal.md","start_line":40,"end_line":55})
    120. read_file({"path":"src/devops_cli/roadmap/stage/stage_verify.py","start_line":85,"end_line":115})
    121. read_file({"path":"openspec/specs/roadmap-refine/review/spec.md","start_line":1,"end_line":45})
    122. read_file({"path":"src/devops_cli/roadmap/refine/refine_judge.py","start_line":30,"end_line":55})
    123. search_code({"text":"JUDGE_OPEN_TYPES"})
    124. search_code({"text":"test_roadmap_refine_trust"})
    125. list_files({"directory":"tests/roadmap/refine"})
    126. references({"name":"_FINDING_LINE"})
    127. find_issues({"terms":"fix-plan unreadable findings"})
    128. read_issue({"number":5449})
    129. 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)

  8. removed
    owner/service
    on Nov 14, 2026
  9. added 3 commits that reference this issue on Nov 14, 2026
  10. added
    status/planned
    and removed
    status/ready
    on Nov 14, 2026
  11. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/planned
    status/in-progress
    on Nov 14, 2026
  12. removed
    status/in-review
    owner/agent
    on Nov 14, 2026
  13. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-14 21:08 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p1-highscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions