Skip to content

fix(roadmap): intake never folds a new candidate into a closed item, so a regression in shipped work is filed #1671

Closed

Description

@dan-petty

Friction

Intake folds a new candidate into an issue that is already closed as completed, so a regression in shipped work can never be filed through intake. It answers "duplicate of #N … Nothing is filed; add to #N instead", but nothing reopens or tracks #N, and the defect is lost.

Evidence

Remedy

  1. A closed item is never a fold target. A candidate that matches one is filed as a new issue that names it, for example "regression of feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135, shipped in v0.2.35".
  2. Issues closed as not planned stay valid duplicate targets, as today. The candidate is folded into that decision.
  3. Tests, against the in-memory store:
    • a candidate matching only a Done item is filed, and its body names the Done item;
    • a candidate matching an open item is folded, as today;
    • a candidate matching an item closed as not planned is folded, as today.

Priority: P1. It blocks filing the P0 tempo fix through intake, and any later regression of shipped work.

Proposed design

Problem statement

Intake folds a new candidate into an issue that is already closed as completed, so a regression in shipped work can never be filed through intake. When a candidate matches a completed item, the system incorrectly treats it as a duplicate and does not create a new issue to track the regression, causing the defect to be lost.

Acceptance criteria

  • Criterion 1: A candidate matching only a Done item is filed as a new issue that names the Done item in its body
    Verification: Run tests against the in-memory store to verify that when a candidate matches only a closed 'Done' item, a new issue is created and its body references the Done item
  • Criterion 2: A candidate matching an open item is folded into that item as before
    Verification: Run tests to confirm that candidates matching open items are still folded into them, maintaining current behavior
  • Criterion 3: A candidate matching an item closed as not planned is folded into that item as before
    Verification: Run tests to confirm that candidates matching items closed as 'not planned' are still folded into them, maintaining current behavior

Key questions

  • What is the current duplicate check mechanism in intake.py?: The duplicate check in intake.py compares a candidate with every item on the board, open or closed, and every issue closed as not planned, plus the candidates this run placed before it. Each text is embedded once, and the model judges the candidate against its nearest items by cosine similarity. [sources: src/devops_cli/roadmap/intake.py]
  • How does intake determine whether an issue is closed as completed or not planned?: In intake.py, issues are classified by their state. An issue that has been closed and was closed as 'not planned' with no comment is considered a 'not planned' issue. An issue that has been closed but not as 'not planned' is considered completed. [sources: src/devops_cli/roadmap/intake.py]
  • What should happen when a candidate matches a Done item?: A candidate matching only a Done item should be filed as a new issue that names the Done item, for example "regression of feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135, shipped in v0.2.35". (proposed) [sources: src/devops_cli/roadmap/intake.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    on Oct 18, 2026
  2. dan-petty commented on Oct 18, 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 intake's behavior where it fails to properly handle regressions in shipped work.
    • Priority: P1-High. It blocks filing the P0 tempo fix through intake and any later regression of shipped work.
    • Value: High. It prevents tracking regressions in shipped features, which is critical for maintaining software quality.
    • Effort: Medium. Requires modifying intake logic to prevent folding into closed items and adding tests, but the core change is well-defined.
  3. dan-petty commented on Oct 18, 2026

    @dan-petty
    OwnerAuthor

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

  4. dan-petty commented on Oct 18, 2026

    @dan-petty
    OwnerAuthor

    A second instance, 2026-10-18

    The same run that filed this issue folded another candidate into a closed item: perf(roadmap): a poll with nothing newer than the changes its last round judged sends no graphql request was judged a duplicate of #1401, which is closed. Intake's output: "duplicate of #1401: The candidate duplicates the criterion from #1401 which asked for a poll with no change since the last round to send no GraphQL request. Nothing is filed; add to #1401 instead. Quota: fold into #1401." The candidate's text names #1401 as delivered work whose criterion is not met, so it is the regression case this issue describes. Its body is recorded on #1533, the item it splits from.

    A related intake gap seen in the same run: two candidates whose titles start perf( were skipped with "the model's proposal is not valid: type 'type/perf' is not one of ...", and the run exited 0 although nothing was filed or folded. That is drafted separately.

  5. added this to the v0.2.37 milestone on Oct 19, 2026
  6. added
    status/in-progress
    status/in-review
    and removed
    status/in-progress
    on Oct 19, 2026
  7. dan-petty commented on Oct 20, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1710, merged into release/v0.2.37 as a13bbf4.

    Description

    When devops roadmap intake compared candidates against items on the board, completed/Done items were included in the comparison set. If the model proposed a Done item as duplicate_of, intake treated the candidate as a duplicate and folded it into the closed item, resulting in nothing being filed and lost defect reports for regressions in shipped work.

    This PR implements:

    • Recognition of closed completed (Done) items in _comparison.
    • Exclusion of closed completed items from duplicate fold targets.
    • Placing and filing a candidate matching a Done item as a new issue on the board with a regression reference (e.g. regression of #N, shipped in vX.Y.Z) appended to its body.
    • Preserving duplicate fold behavior for candidates matching open items or items closed as not planned.

    Closes #1671.

    4 file(s) changed.

    How it was verified

    Check runs at 1dcd7b7:

    • Audit Defect PR Hardening: skipping
    • Prune PR DevContainer Images: pass
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Rule Pack Tests: pass
    • Fail-to-Pass Check: pass
    • Changed-Test Independence: pass
    • Fail-to-Pass Self-Check: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Analyze (actions): pass
    • Static Analysis: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1671-intake-never-fold-into-closed-item.md:

    • Done item matches are filed: A candidate matching only a closed completed (Done) item is placed and filed as a new issue with a regression reference in its body.
    • Open item duplicates fold: A candidate matching an open item folds into that item as duplicate.
    • Not-planned item duplicates fold: A candidate matching an item closed as not planned folds into that decision as duplicate.
  8. removed
    status/in-review
    on Oct 30, 2026
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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions