Skip to content

fix(roadmap): refine gives every item it cannot ready a next step instead of skipping it as unchanged #1758

Closed

Description

@dan-petty

Friction

devops roadmap refine --confirm reports a long list of skipped items, and none of them ever reaches Ready. Each is an item refine already worked on and left New: open questions, a suspected block, or "needs splitting". Refine records the body and section hashes and skips the item as "unchanged" on every later run. Nothing tells a person what the item needs, nothing acts on a split, and answering the questions in a comment doesn't change the body, so refine never looks again.

Evidence (2026-10-20, read-only select_candidates over the board after the owner's refine --confirm)

Remedy

An item refine cannot ready gets a next step instead of a silent skip:

  • Waiting on a person: questions only a person can answer go to the person. They are posted as one comment that asks them, and refine reports the item as waiting on a person, not skipped. A person's reply re-opens it to refine, whether by comment or by body edit.
  • Needs a split: the split happens or is handed off. Either refine proposes the child items through intake, or it marks the item for a person with the split it proposed, and reports it as such.
  • Waiting on a block or dependency: the item is re-refined when the blocking item closes or the code it cites changes, not only when its own text changes.
  • Report: refine --confirm groups its report by next step (refined to Ready; waiting on a person, with the question; split proposed; blocked by #N; unchanged and nothing to do). Unexplained skips disappear.

Acceptance criteria

  • Tests first: with the in-memory roadmap store, an item refine leaves New is reported with its next step, not as "unchanged". A reply from a person makes it eligible again. Closing its blocking item makes it eligible again.
  • An item whose record holds needs_split gets its split proposed or handed to a person, and is not skipped silently.
  • The report groups items by next step and lists no item without one.
  • uv run devops ci passes.

Proposed design

Problem statement

The devops roadmap refine --confirm command skips items that it cannot ready instead of providing a next step. Items with open questions, suspected blocks, or needing splitting are silently skipped as 'unchanged' and never progress to Ready. This leaves users without guidance on what action is needed to advance these items.

Acceptance criteria

  • Criterion 1: An item that refine cannot ready gets a next step instead of being skipped silently
    Verification: Test with in-memory roadmap store where an item left New is reported with its next step (waiting on person, split proposed, blocked) rather than as 'unchanged'
  • Criterion 2: A reply from a person makes a previously skipped item eligible again for refinement
    Verification: After an item is marked as waiting on a person, reprioritization or another refine run should re-evaluate the item when the person replies
  • Criterion 3: Items with needs_split in their record get their split proposed or handed to a person
    Verification: Verify that items with refine.needs_split=true are either split into child issues or marked for human action with the proposed split
  • Criterion 4: The report groups items by next step and lists no item without one
    Verification: Run refine --confirm and observe output grouped by next steps: refined to Ready, waiting on person, split proposed, blocked by #N, unchanged and nothing to do
  • Criterion 5: The command passes all tests in the CI pipeline
    Verification: Run uv run devops ci and ensure all tests pass

Key questions

  • What constitutes an item that cannot be refined?: An item cannot be refined if it has open questions, a suspected block, or needs splitting. These items are currently skipped as 'unchanged' in the refine process. [sources: src/devops_cli/roadmap/refine.py:select_candidates]
  • How does the current code determine if an item is unchanged?: The code checks if the body and section hashes match the job record. If they do, the item is skipped as 'unchanged'. [sources: src/devops_cli/roadmap/refine.py:_select_single_candidate, src/devops_cli/roadmap/refine.py:select_candidates]
  • What should happen to items that cannot be refined?: Items that cannot be refined should get a next step instead of being silently skipped. This includes: waiting on a person for questions, proposing splits, or handling blocked dependencies. (proposed) [sources: src/devops_cli/roadmap/refine.py]
  • How will the report be structured to show next steps?: The report should group items by their next step: refined to Ready; waiting on a person with question; split proposed; blocked by #N; unchanged and nothing to do. (proposed) [sources: src/devops_cli/roadmap/refine.py:render_refine_plan]

Fit

Needs splitting into 4 items:

  1. Create a mechanism for items with open questions to post comments asking people for answers
  2. Implement handling for items that need splitting by proposing child issues or marking for human action
  3. Update the refinement process to detect and handle blocked dependencies properly
  4. Modify the report output to group items by next step instead of just showing 'unchanged'

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    on Oct 20, 2026
  2. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/bug. The candidate describes a defect in the refine behavior where items are silently skipped instead of being given a next step.
    • Priority: P1-High. The issue affects the core functionality of the roadmap refinement process, causing items to be stuck and not progress.
    • Value: High. This change improves the usability and reliability of the roadmap tool for all users by ensuring items are properly handled instead of being silently skipped.
    • Effort: Medium. The fix requires modifying the refine logic to detect and handle different states (waiting on person, needs split, blocked) and updating the reporting mechanism.
  3. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    The owner's run on 2026-10-20, uv run devops roadmap refine --confirm --limit 16, refined nothing. It listed 36 items as skipped "unchanged" and no item refined.

    There are two causes, both in select_candidates (src/devops_cli/roadmap/refine.py):

    1. The first pass: every candidate it takes was refined before and left New, and each one is skipped as "unchanged". The pass covers v0.2.38's New items, the planned releases' New and unrefined Ready items, and the backlog's P0 and P1 items. This is the problem this issue describes.
    2. The second pass, the backlog's other New items, runs only while ready_count + selected < release_cap. Here ready_count counts Ready items across the next planned release and the whole backlog. On the board today that is 64 against a release_cap of 16, so the pass never starts, and no P2 or P3 backlog item is refined at all.

    Add to the acceptance criteria: a run with candidates left in any place refines up to --limit of them. A full backlog of Ready items does not stop refine from readying the next planned release's items or the backlog's New items, or the cap is counted per release, as it is meant to be.

    Also seen in the same output, not in this item's scope: the secret redaction masked part of #598's title, ms/token=<masked-token>. That is a false positive on ordinary text.

  4. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    Proposal needs splitting into 4 items at 79eaacb (see proposed design in issue body).

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

    source/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions