Skip to content

fix(roadmap): track the plan reader and fix-plan repairs #5211

Open
3 of 7 issues completed
Open

Description

@dan-petty

Problem or Motivation

Root cause:

  1. The writer gives a manifest group (feat(roadmap): add a test-first manifest kind to the stage plan #3981) the case-first text and no Kind: line. The reader (feat(roadmap): add the plan-check command #3425) has no manifest branch, so it reads the group as behavior, and the fix(roadmap): a stage group has a kind with its own tasks #3035 rule refuses it because it changes no path under src/.
  2. The stage job does not read a plan back before the push. So plan-check, plan-recheck, implement and fix-plan refuse plans that the stage job pushed (docs(openspec): plan #2968 Emit inbox gauges and add the inbox panel #4963 group 3, docs(openspec): plan #4697 Keep one metric stream per workload #5032 groups 3 and 4).
  3. fix-plan swallows the read error and logs failed with 0 findings. When the review of a gated plan finds no finding, it pushes nothing, removes the label and discards the gated plan (docs(openspec): plan #4472 Size narrowed test workers by collected tests #4917).

This tracker holds the seven items that repair the reader, fix-plan and the stage job, and the repair steps of the open plan PRs.

Ordered child list

Each item starts after the item before it merges, because each one changes the same files. The Dependencies section of each item names only the item before it.

Repair steps

Each step names who does it. Agents run no release step. Only the owner merges.

Live state on 2026-11-12

Acceptance Criteria

Dependencies

None for the tracker. The children carry their own.

Related

#5104 (the fix-plan step), #5061, #5150, #5160, #5164, #5166, #5168, #3981, #3425, #3035. ADR 0021 section 8.

Source: #5104

Owner decision 2026-11-13

D9 (approved): the owner sets roadmap.fix_plan.mode to on after #5409, #5410 and #5411 merge. #5409 (PR #5423) and #5410 (PR #5418) merged. Tracker #5482 lists the switch as an owner step of Phase 0. This tracker keeps the plan reader and the fix-plan repairs.

Proposed design

Problem statement

This tracker holds the seven repairs of the plan reader, fix-plan and the stage job, and the repair steps of the open bot plan pull requests. The plan writer gives a manifest group the case-first text and no Kind: line, so the reader reads the group as behavior and the #3035 rule refuses the plan. The stage job pushes a plan without reading it back, so plan-check, plan-recheck, implement and fix-plan refuse that plan. fix-plan hides the read error and logs failed with 0 findings, and a clean review of a gated plan then pushes nothing and drops the gated plan. Children 1 (#5205) and 2 (#5213) have merged and released; the tracker still orders children 3 to 7 and keeps the repair steps, as the owner decision of 2026-11-13 states.

Acceptance criteria

Requirement: Ordered child list

The tracker body SHALL list the seven child items in the order that they merge.

Scenario: Read the ordered child list

Requirement: One dependency for each child

Each filed child body MUST name only the child before it under its ### Dependencies heading.

Scenario: Read the dependencies of child 3

Requirement: No change folder of the tracker

The tracker MUST carry no change folder of its own, because each child delivers its own change.

Scenario: Search the change folders

  • WHEN A test lists openspec/changes/ for a folder that starts with 5211-
  • THEN No folder matches.

Requirement: Repair steps stay in the tracker

The tracker body MUST keep the repair steps of the open plan pull requests, as the owner decision of 2026-11-13 states.

Scenario: Read the repair steps

  • WHEN A reader reads the ### Repair steps section of the tracker body
  • THEN The section names step 1 to step 14, and each step names its actor.

Requirement: After table of the repaired plans

The tracker MUST post the after table of #5032, #4963 and #4917 as a comment on the PR of #5213.

Scenario: Read the after table

Existing Tool Considered

No alternatives check has run. No open, maintained tool or library covers the order of seven child issues or the repair of live plan pull requests. The tracker builds no code of its own, so its build cost is 0 tokens and 0 elapsed time. The work uses the commands that the project keeps: devops roadmap plan-check, devops roadmap step fix-plan and devops pr ready.

Key questions

Open questions

  • When does the owner set roadmap.fix_plan.mode to on? (a person decides)
  • Who merges each child, its release and each repaired plan pull request? (a person decides)

Fit

Needs splitting into 7 items:

  1. fix(roadmap): write and read the kind of each plan task group #5205 fix(roadmap): write and read the kind of each plan task group (child 1, no dependency)
  2. fix(roadmap): fix-plan records the true result of each attempt #5213 fix(roadmap): fix-plan records the true result of each attempt (child 2, needs fix(roadmap): write and read the kind of each plan task group #5205)
  3. fix(roadmap): stage reads each plan back before the push #5214 fix(roadmap): stage reads each plan back before the push (child 3, needs fix(roadmap): fix-plan records the true result of each attempt #5213)
  4. feat(roadmap): fix-plan asks if each finding still holds #5215 feat(roadmap): fix-plan asks if each finding still holds (child 4, needs fix(roadmap): stage reads each plan back before the push #5214)
  5. fix(roadmap): the implement row logs why it leaves out a plan #5216 fix(roadmap): the implement row logs why it leaves out a plan (child 5, needs feat(roadmap): fix-plan asks if each finding still holds #5215)
  6. fix(roadmap): plan files keep the cost mark and line estimates #5217 fix(roadmap): plan files keep the cost mark and line estimates (child 6, needs fix(roadmap): the implement row logs why it leaves out a plan #5216)
  7. refactor(roadmap): end the kind inference of the plan reader #5218 refactor(roadmap): end the kind inference of the plan reader (child 7, needs fix(roadmap): plan files keep the cost mark and line estimates #5217)

Suspected block

None.

Dependencies

None.

Alternatives check of 2026-11-19: none.
Tool: none found.
Reason: Searches for a tool that tracks ordered child issues or reads and repairs plan files found only generic documentation, nothing that reads this project's plan task-group kind or repairs gated plan pull requests.

Lacks:

  • No tool reads this project's plan task-group kind
  • No tool reads a plan back before a push
  • No tool repairs a gated plan branch or records attempts
  • No tool orders seven dependent child issues

Sub-issues

Sub-issues

3 of 7 Issues completed
Loading 7 sub-issues

Activity

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

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. It coordinates repairs for plans that are currently being refused or discarded.
    • Related: fix(roadmap): write and read the kind of each plan task group #5205, which asks for a different change. Both concern fixing the plan reader kind handling, but the candidate tracks seven ordered repairs while #5205 delivers only child 1.
  3. added
    priority/p1-high
    on Nov 12, 2026
  4. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 7a158c4 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who merges the children and the releases? (a person decides)
  5. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    Evidence from the diagnosis of the fix-plan path on 2026-11-13 (tracker #4843).

    The row fix_plan runs in mode plan, so the Service makes no attempt on any plan pull request. The live ConfigMap has no roadmap.fix_plan key, and no environment variable sets it, so the default plan applies (src/devops_cli/config/defaults.py:1015). In mode plan, _run_fix_plan_adapter passes confirm=False (src/devops_cli/roadmap/run.py:686-697), and run_fix_plan returns after the selection line (src/devops_cli/roadmap/steps/fix_plan.py:928-929). Loki has the selection lines at 08:40:46Z and 10:35:04Z, and no attempt line follows them. This agrees with the decision of this item and of ADR 0021 section 8.

    Condition for the switch to on (the owner decides):

    1. The Service runs 0.128.0 or later, which holds fix(roadmap): end fix-plan at a time budget with a result line #5380 and fix(roadmap): fix-plan keeps the citations that the run of the head read #5400. Since 12:37:58Z the Service pod runs image digest sha256:4aab51acc9a3. Release run 43424646611 (0.128.0) built the Service image at 12:26:43Z, and the Deployment moved to this digest at 12:29:29Z. The Service logs no version line, so confirm the digest against that release run.
    2. The faults of the review gate are fixed: fix(roadmap): a later plan review judges each earlier finding #5409 (a later review judges each earlier finding), fix(roadmap): a review finding must name a part of the plan to block it #5410 (a finding must name a part of the plan) and fix(roadmap): only blocker and major review findings block a plan #5411 (only blocker and major findings block).

    Before both conditions, each attempt spends 1 of the 2 attempts on a head and has a small chance to clear the plan.

    At the switch, set roadmap.fix_plan.mode: on in the live ConfigMap and in k8s/devops/configmap.example.yaml together. The ConfigMap is mounted as a directory with no subPath, and load_settings checks the file stamp at each call (src/devops_cli/config/settings.py:1968-1973). So a restart is probably not necessary, but no live test proves it. Prove the switch with the first fix_plan attempt line and result line in Loki. Until the switch, use one manual App Job for each plan (step 11).

    New items from the same diagnosis: #5412 (the watch row starts fix-plan Jobs), #5413 (a named run can skip the 6-hour wait), #5414 (the row judges and logs each plan it leaves out) and #5415 (a trace span for each row).

  6. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 192ca69 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who merges each child and its release? (a person decides)
  7. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at ffce5d9 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • When does the owner set roadmap.fix_plan.mode to on? (a person decides)
    • Who merges each child, its release and each repaired plan pull request? (a person decides)
  8. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (3)

    Searches run:

    • tool to validate plan files and repair them automatically pull request, results: 5
    • open source tool to track ordered dependent issues roadmap child issues, results: 5
    • python library read and validate markdown plan task groups kind manifest behavior, results: 5

    Sources:

  9. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.

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/agentstatus/newtype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions