Repository navigation
Description
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:
- 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.
- 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_changeshas the same form. - The webhook route does not use the event. GitHub sends an
issuesdelivery with the actiontransferredordeleted. The route has no handling for them, so each lane learns of the change only at its own read.
Reproduction Steps
- With
GitHubFake, move an open item of the listing to another repository (move_issue). - 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
transferredordeleteddrops 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_onandlabel_changescall the drop of the store for a 404 answer.- The webhook route handles the actions
transferredanddeletedof the eventissues. - 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_ondrops the record of the number, and the next round does not select it. - A test: a delivery
issueswith the actiontransferred, and one withdeleted, 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
GitHubFakewheremove_issuemoves 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
GitHubFakeanswers 404 forcomments_onof 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
GitHubFakeanswers 404 forlabel_changesof 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
issuesdelivery has actiontransferredfor 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
issuesdelivery has actiondeletedfor 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
GitHubFakewheremove_issuemoves 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.pyandsrc/devops_cli/roadmap/job_funnel.pyeach 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_onorlabel_changesdrop the record in the store or in each caller?: Drop the record inGitHubRoadmapStorenext 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.
Activity
dan-petty commentedon Nov 26, 2026
Failing rounds cause the job to degrade to one probe per hour and can stop a lane for hours after a bulk transfer.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.devops-cli-service commentedon Nov 26, 2026
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.
devops-cli-service commentedon Nov 26, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 26, 2026
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
plan:GitHubOperationError: Could not revalidate issue #4530 in dan-petty/devops-cli (exit 1): gh api repos/dan-petty/devops-cli/issues/4530 --include; stderr: gh: HTTP 301. Exit code 75, classci_infra. #4530 left the repository that day. The body of fix(k8s): the Argo controller manages namespace devops for rag-ingest #5289 and of fix(repos): onboard writes no webhook from a default URL #7308 does not name #4530._revalidate_issueand_read_or_noneinsrc/devops_cli/roadmap/stores/github_store.pyraise for the status 301: only 404 is an absent issue.openspec/changes/4530-expose-the-argo-workflows-ui-behind/andopenspec/changes/4600-list-each-service-ui-on-the/are active change folders onmain, and their issues left the repository. Each stage Job reads the issue of each active change folder, so each stage Job of the repository fails until this item is released or the two folders leavemain.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
implementandalternatives. It is closed as a duplicate of this item. These criteria of #7334 are now part of this item:plan_defect,ci_infra): the row leaves it out.implementone such item (redirect on the issue route, 404 on the comments route), and the round succeeds with the other items.fix(roadmap): a row goes on when an item left the repository
4 remaining items
test(roadmap): give the release answers of a scoped update their numbers
test(roadmap): a write that fails for another number is a failure of …
fix(roadmap): take a renamed repository as itself, and 410 as no issue
docs(github): name the commands that compare no issue answer
docs(spec): give the fail-to-pass result of the fix round
docs(spec): archive the change of #7337
devops-cli-service commentedon Nov 27, 2026
Released in v0.223.4: https://github.com/dan-petty/devops-cli/releases/tag/v0.223.4
devops-cli-service commentedon Nov 27, 2026
Live since 2026-11-27 01:11 UTC
dan-petty commentedon Nov 27, 2026
Live check, 2026-11-27 (v0.223.4)
#5240 is no issue of dan-petty/homelab now. The store leaves it out.The round went on.plan: its log holds the plan gates (stage gate returns: ... returns=2 result=passed). The 3 stage Jobs before it failed at that step withHTTP 301for #4530 (v0.223.0 to v0.223.2). Two causes are gone: the store reads 301 as no issue (fix(roadmap): a row goes on when an item left the repository #7352), and the change folders of #4530 and #4600 leftmain(chore(roadmap): remove the change folders of items that are gone #7355).The rows that still fail one round for such an item when the delivery does not arrive are in #7363.
fix(roadmap): the other rows leave out an item that left (#7566)