Skip to content

fix(roadmap): a row goes on when an item left the repository #7337

Done

Description

@dan-petty

Problem Description

An issue can leave a repository: a person transfers it or deletes it. The listing snapshot of each lane keeps its record as an open item until the next full read, at most 24 hours later. After #7331 the store gives no issue for such a number and the lane drops the record at its first issue read. Three gaps stay:

  1. A round fails for the item. The alternatives round raises the error of a missing issue at its body read, so the round fails one time for each such item before the lane drops it. After 6 failed rounds the job runs only one probe round an hour. A transfer of many issues at one time can so stop a lane for hours.
  2. A read below the number drops nothing. For an item that is not a skip class, the first read of the alternatives round is comments_on, which answers 404 for such a number. The store drops no record for that answer, so the round fails at each run until the next full read. label_changes has the same form.
  3. The webhook route does not use the event. GitHub sends an issues delivery with the action transferred or deleted. The route has no handling for them, so each lane learns of the change only at its own read.

Reproduction Steps

  1. With GitHubFake, move an open item of the listing to another repository (move_issue).
  2. Run the alternatives round two times, one time for a skip-class item and one time for another item.

Expected vs Actual Behavior

  • Expected: a row leaves an item that is no issue of the repository and goes on with its other items. The round does not fail for it. A 404 of a read below the number drops the record as a 404 of the issue read does. A delivery with the action transferred or deleted drops the record from the listing and from the brain at once.
  • Actual: the round fails one time for a skip-class item, and at each run for another item.

Proposed Fix

  • The rows that read an item again treat "no issue of this repository" as a result of the item (left out, with one log line), not as an error of the round.
  • comments_on and label_changes call the drop of the store for a 404 answer.
  • The webhook route handles the actions transferred and deleted of the event issues.
  • Check the code that reads issues/<n> outside the store (roadmap/release_feed.py, roadmap/plan_check.py, roadmap/job_funnel.py) against the same rule.

Acceptance Criteria

  • Test first: an alternatives round with one moved item and one other due item checks the other item and ends with success. The test fails on the base.
  • A test: a 404 of comments_on drops the record of the number, and the next round does not select it.
  • A test: a delivery issues with the action transferred, and one with deleted, removes the record from the listing and the brain entry.
  • A test: a round with 10 moved items ends with success in one run.

Environment Diagnostics

devops-cli 0.223.1.

Dependencies

Proposed design

Problem statement

The fix must make a missing issue a skipped item and drop its record at once. The roadmap lane keeps an item that left the repository until a full read, and the alternatives round fails for that item. The webhook route also ignores transferred and deleted deliveries. The work waits on #7331.

Acceptance criteria

Requirement: Regression test fails on base

The regression test for a moved item MUST fail on the base commit before the fix.

Scenario: Base commit with one moved item

  • WHEN The new alternatives test runs against the base commit with one moved item and one due item.
  • THEN The test fails with the missing-issue error from the alternatives round.

Requirement: Missing issue is a skipped item

The alternatives round SHALL skip an item whose issue number is absent and SHALL continue with its other due items.

Scenario: One moved item and one due item

  • WHEN The alternatives round runs with GitHubFake where move_issue moves one due item and another due item remains.
  • THEN The round checks the remaining item and ends with success.

Requirement: comments_on 404 drops the record

The GitHub roadmap store SHALL drop the record of a number when comments_on answers 404 for that number.

Scenario: Next round skips the dropped number

  • WHEN GitHubFake answers 404 for comments_on of a listed number.
  • THEN The store removes the record and the next alternatives round does not select that number.

Requirement: label_changes 404 drops the record

The GitHub roadmap store SHALL drop the record of a number when label_changes answers 404 for that number.

Scenario: Label changes read of a moved item

  • WHEN GitHubFake answers 404 for label_changes of a listed number.
  • THEN The store removes the record and a later read does not return it.

Requirement: Transferred delivery drops the record

The webhook route SHALL handle an issues delivery with action transferred by dropping the record from the listing snapshot and the project brain.

Scenario: Transferred issue delivery

  • WHEN A verified issues delivery has action transferred for a listed number.
  • THEN The route removes the number from the listing snapshot and from the project brain entry.

Requirement: Deleted delivery drops the record

The webhook route SHALL handle an issues delivery with action deleted by dropping the record from the listing snapshot and the project brain.

Scenario: Deleted issue delivery

  • WHEN A verified issues delivery has action deleted for a listed number.
  • THEN The route removes the number from the listing snapshot and from the project brain entry.

Requirement: Ten moved items in one run

The alternatives round SHALL end with success in one run when the listing holds 10 moved items.

Scenario: Ten moved items

  • WHEN The alternatives round runs with GitHubFake where move_issue moves 10 due items to another repository.
  • THEN The round ends with success in one run.

Requirement: Other issue readers skip a moved item

The code that reads issues/<n> outside the store SHALL treat a missing issue as a skipped row and SHALL not fail the row.

Scenario: Moved item in release feed, plan check and job funnel

  • WHEN src/devops_cli/roadmap/release_feed.py, src/devops_cli/roadmap/plan_check.py and src/devops_cli/roadmap/job_funnel.py each read a moved item.
  • THEN Each row logs one line and continues with success.

Existing Tool Considered

No alternatives check has run. No open, maintained tool or library covers this internal defect; the change extends the repository's own GitHub roadmap store, alternatives round and webhook route. The written cost is about 10k tokens to build, keep and fix this code, and about 3 hours.

Key questions

  • Should the alternatives round treat a missing issue as a skipped item or as a round error?: Treat the missing issue as a skipped item with one log line and continue the round. (best practice) [sources: src/devops_cli/roadmap/alternatives.py:1575, tests/roadmap/test_roadmap_alternatives.py]
    • Chosen: Skip the item and continue. The lane keeps working when many items leave the repository.
    • Rejected: Fail the round. A moved item fails the round at each run and can stop the lane for hours.
  • Should a 404 from comments_on or label_changes drop the record in the store or in each caller?: Drop the record in GitHubRoadmapStore next to the existing issue-read drop. (best practice) [sources: src/devops_cli/roadmap/stores/github_store.py:1141, src/devops_cli/roadmap/stores/store.py:1399]
    • Chosen: Drop in the store. Every caller gets the same behavior and the store keeps one drop path.
    • Rejected: Drop in each caller. Many callers read comments and label changes, so each one repeats the logic.
  • Should the readers outside the store handle a missing issue on their own?: No. They should use the same missing-issue result as the store and the alternatives round. (best practice) [sources: src/devops_cli/roadmap/release_feed.py, src/devops_cli/roadmap/plan_check.py, src/devops_cli/roadmap/job_funnel.py]
    • Chosen: Use one missing-issue result. The rule stays the same in each reader and the test covers each path.
    • Rejected: Catch 404 in each reader. Each reader repeats the error handling and can differ from the store.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#7331

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    on Nov 26, 2026
  2. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor
    • Priority: Failing rounds cause the job to degrade to one probe per hour and can stop a lane for hours after a bulk transfer.
    • Related: fix(roadmap): drop an issue that was transferred away #7334, which asks for a different change. Both address a row failing when an issue left the repository, but the candidate adds webhook handling for transferred/deleted, the skip-instead-of-error behaviour, and checks of other code paths beyond the 404 drop that 7334 targets.
  3. added
    status/new
    effort/medium
    value/high
    priority/p0-critical
    on Nov 26, 2026
  4. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

  5. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  6. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    Evidence from the live Service (2026-11-26) and scope additions

    Read-only checks after v0.223.2 (#7336) went live.

    1. A read in a Job ends with HTTP 301

    Scope addition: the status 301 of a read of an issue by its number is "no issue of this repository", as 404 is, for the conditional read and for the plain read. Acceptance: one test for each of the two reads, where the fake answers 301. One more test: a stage plan step with an active change folder whose issue answers 301 stages the other item.

    2. Criteria from #7334

    #7334 reports the same cause with the evidence of the rows implement and alternatives. It is closed as a duplicate of this item. These criteria of #7334 are now part of this item:

    • An item that left the repository gets no failure class (plan_defect, ci_infra): the row leaves it out.
    • A test gives the Status sweep of the row implement one such item (redirect on the issue route, 404 on the comments route), and the round succeeds with the other items.
    • The round writes one log line for the item, with the new repository and number when the answer names them.
  7. added
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 26, 2026
  8. 4 remaining items

  9. added
    status/in-review
    and removed
    status/in-progress
    on Nov 26, 2026
  10. removed
    status/in-review
    owner/agent
    on Nov 27, 2026
  11. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-27 01:11 UTC

  12. dan-petty commented on Nov 27, 2026

    @dan-petty
    OwnerAuthor

    Live check, 2026-11-27 (v0.223.4)

    The rows that still fail one round for such an item when the delivery does not arrive are in #7363.

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/p0-criticalscope/roadmapsource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions