Skip to content

test(roadmap): verify consolidation dry run against applied groups #3621

Open

Description

@devops-cli-service

Split from #1127.

The consolidation job can be built and tested offline with #768's in-memory store. This part needs the real repository board and a person to run uv run devops roadmap consolidate --dry-run. It checks the plan against groups applied on 2026-10-03: #1036/#810, #1104/#818, #892/#878/#1010, #974/#931, #897/#989 and #995/#789. It also checks that a second run prints the same plan. Deferred because it waits on a person and the live GitHub state, not on code. Acceptance criteria: the dry run writes .data/roadmap/consolidate/.json; the plan reports each named group as already linked, not as a new proposal; a second run prints the same plan; no GitHub write occurs.

Proposed design

Problem statement

The consolidation plan has not been checked against the six groups applied by hand on 2026-10-03. A person must run uv run devops roadmap consolidate on the live board. The run must write the dated plan. It must report each group as already linked. A second run must print the same plan. The run must make no GitHub write.

Acceptance criteria

Requirement: Live plan writes the dated file

A live run of uv run devops roadmap consolidate SHALL write its plan to .data/roadmap/consolidate/<date>.json, where <date> is the UTC day of the run.

Scenario: Live run writes the plan file

  • WHEN A person runs uv run devops roadmap consolidate against the real repository.
  • THEN The command exits 0 and .data/roadmap/consolidate/<date>.json holds the plan.

Requirement: Applied groups are left out

The plan SHALL report each of the six applied groups as already linked and SHALL NOT propose it as a new group.

Scenario: Six applied groups appear in left_out

Requirement: Stable second run

A second live run on the same GitHub state SHALL print the same plan as the first run.

Scenario: Two live runs in a row

  • WHEN A person runs uv run devops roadmap consolidate twice with no GitHub change between the runs.
  • THEN The printed plan of the second run equals the printed plan of the first run.

Requirement: No GitHub write

A live plan run MUST NOT write to GitHub.

Scenario: Write audit after the live run

  • WHEN The live run finishes and a person reads the labels, comments, links, issues and milestones of the six groups.
  • THEN No label, comment, link, issue or milestone changed, and the run made only read requests.

Existing Tool Considered

No alternatives check has run. No open, maintained tool covers this live verification. GitHub CLI (gh) reads issue structure but has no consolidation plan, no plan file and no comparison of the six applied groups. The project's devops roadmap consolidate does the comparison. This issue adds no code, so there is no build cost.

Key questions

  • Which mode reads the live board: --dry-run, --plan, or no mode flag?: No mode flag. Run uv run devops roadmap consolidate. Its default path reads GitHub, calls the model and writes the plan. --dry-run makes no request and cannot read the board. The command has no --plan option. (best practice) [sources: openspec/specs/roadmap-consolidate-plan/spec.md, src/devops_cli/commands/roadmap.py:468, src/devops_cli/roadmap/consolidate.py:729, docs/roadmap/consolidate.md]
    • Chosen: Default plan run with no mode flag. It reads GitHub, calls the model, writes the plan file and changes nothing on GitHub.
    • Rejected: --dry-run. The dry-run rule makes no request to GitHub or a model, so it cannot see the applied groups.
    • Rejected: A new --plan flag. The command has no such option, and its default path already does the read and write.
  • What is the exact name of the plan file?: .data/roadmap/consolidate/<date>.json, where <date> is the UTC day of the run. The body's .data/roadmap/consolidate/.json is missing the file name. No code writes plan.json. (best practice) [sources: src/devops_cli/roadmap/consolidate.py:306, src/devops_cli/roadmap/consolidate.py:799, src/devops_cli/commands/roadmap.py:472, openspec/specs/roadmap-consolidate-plan/spec.md]
    • Chosen: <date>.json. plan_path names the plan of a day by that day, and a second run on the same day reads it.
    • Rejected: The body's .json with no name. It is not a file name, and no code writes it.
    • Rejected: plan.json. No code writes that name, and a fixed name would overwrite the earlier plan.
  • Which issue built the command and the plan file?: feat(roadmap): consolidate writes a plan of proposed groups #3740 built them and is done. Its OpenSpec change is archived. run_consolidate is in src/devops_cli/roadmap/consolidate.py. The changelog records the command. The live check waits on no code. [sources: openspec/changes/archive/2026-11-10-3740-consolidate-writes-a-plan-of-proposed/proposal.md, src/devops_cli/roadmap/consolidate.py:729, docs/roadmap/consolidate.md, CHANGELOG.md]
  • How does the plan report a group whose members already link to the anchor?: As a left_out entry that holds the anchor and the linked reason. The group never appears in groups. A shortlist whose every kept member already links is left out before the judge. It costs no model call. [sources: src/devops_cli/roadmap/consolidate.py, openspec/specs/roadmap-consolidate-plan/spec.md]
  • Does the plan hold a group whose members merged or closed?: No. The run reads store.open_items(), so a group whose members merged or closed is absent. Only a group whose members stay open and link to the anchor is reported in left_out. A group applied by closing its members leaves nothing for the plan to report. [sources: src/devops_cli/roadmap/consolidate.py, docs/roadmap/consolidate.md]

Fit

Fits in one pull request.

Suspected block

A person with GitHub access must run uv run devops roadmap consolidate on the live board. The person must check the plan file and a second run. The person must confirm no GitHub write.

Dependencies

None.

Activity

  1. added
    source/agent
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 5, 2026
  2. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    ContributorAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

  3. added
    priority/p3-low
    on Nov 5, 2026
  4. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 1b37dbc 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.

  5. dan-petty commented on Nov 14, 2026

    @dan-petty
    Owner

    Returned to New: this is a live-board check that needs a person, and it duplicates #3635. The design itself records that the #1127 archive moved this check to #3635 (openspec/changes/archive/2026-11-06-1127-consolidate-shortlist/tasks.md:43), and #3635 is open. Its acceptance also needs a person to run uv run devops roadmap consolidate --plan against the real repository, inspect .data/roadmap/consolidate/plan.json, and confirm that no GitHub state changed; the command calls a model, and an agent cannot answer the no-write audit. A person should close this item as the duplicate of #3635, or close #3635 and keep this one as the tracker.

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

    @devops-cli-service
    ContributorAuthor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  7. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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/lowpriority/p3-lowscope/roadmapsource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions