Skip to content

fix(roadmap): drop an issue that was transferred away #7334

Not planned

Description

@dan-petty

Problem

After issues of dan-petty/devops-cli were transferred to dan-petty/homelab on 2026-11-26 (16:26Z to 17:53Z), two rows of the roadmap Service fail in each round for dan-petty/devops-cli. The Service does not drop an item that left the repository.

  • Row implement: the Status of 1 item(s) could not be set: #4600 (GitHubNotFoundError: GitHub has nothing at GET /repos/dan-petty/devops-cli/issues/4600/comments?per_page=100 (page 1) (HTTP 404)) (failed items: #4600). Issue #4600 is now dan-petty/homelab#338: GET /repos/dan-petty/devops-cli/issues/4600 follows the redirect and gives number 338 with the repository_url of homelab, and the comments route gives 404.
  • Row alternatives: #329 is not an issue of dan-petty/devops-cli. Number 329 is the new number in homelab of a transferred issue (created 2026-10-18). The row asked GitHub for the old number, got the redirect, and then refused the item.

Evidence

Log of the Deployment roadmap-service, 18:50Z to 19:30Z: 18 lines of the implement failure and 12 lines of the alternatives failure. Both rows are suspended after 6 failed rounds (plan_defect and ci_infra) and run a probe round each hour on the same input, which fails again.

Prometheus at 19:29Z: slo:sli_error:ratio_rate30m{service="roadmap-service", slo="rounds"} is 0.75 for alternatives and 0.60 for implement of dan-petty/devops-cli. RoadmapServiceRoundsPage6h (critical) fires for the two rows. No other row had an error in 30 minutes.

Effect outside the Service: devops infra apply starts no host while a critical alert fires, so each host change of dan-petty/homelab waits (the return plays of dan-petty/homelab#317 on 2026-11-26).

Acceptance criteria

  • A row that reads an item whose repository_url is not the repository of the row drops the item in that round, records the new repository and number one time, and does not fail the round.
  • A 404 on a route of an item that a redirect explains is not an error of the round.
  • A test gives each of the two rows one transferred item (redirect on the issue route, 404 on the comments route) and checks that the round succeeds with the other items.
  • The failure class of a transferred item is not plan_defect or ci_infra.
  • The record says how the two rows of dan-petty/devops-cli were cleared on the live Service.

Proposed design

Problem statement

The roadmap Service fails two rows for dan-petty/devops-cli after issues moved to dan-petty/homelab. The implement row cannot set the Status of a transferred item. The alternatives row refuses the new number of a transferred item. The Service must drop a transferred item and continue the round.

Acceptance criteria

Requirement: Drop transferred item

The shared GitHub item store SHALL drop an item whose repository_url is not the repository of the row.

Scenario: Transferred item leaves the row

  • WHEN The store reads an issue whose repository_url names another repository
  • THEN The store returns a transferred result, the row processes its other items, and the round succeeds.

Requirement: Record transfer once

The row SHALL record the new repository and number of a transferred item one time and SHALL remove the item from its listing snapshot.

Scenario: Transfer is recorded once

  • WHEN The store returns a transferred result for an item
  • THEN The row writes one log line with the old and new repository and number, and removes the item from the listing snapshot.

Requirement: Ignore comments 404 after redirect

The GitHub item store SHALL treat a 404 on a route of an item as no round error when the issue route shows a redirect to another repository.

Scenario: Comments route returns 404

  • WHEN The issue response names another repository and the comments request returns 404
  • THEN The store returns the transferred result and the row does not fail.

Requirement: Cover both failing rows

The test suite SHALL run the implement and alternatives rows with one transferred item and one valid item each.

Scenario: Both rows continue after a transfer

  • WHEN The tests give each row a transferred item with a redirect on the issue route and a 404 on the comments route
  • THEN Each row processes the valid item and reports a successful round.

Requirement: No failure class for a transfer

The roadmap failure record MUST NOT assign plan_defect or ci_infra to a transferred item.

Scenario: Transfer writes no failure

  • WHEN A row detects a transferred item
  • THEN The row writes no failure entry for the item and increments no failed-round count.

Requirement: Pending a person after the merge

A person SHALL clear the suspended implement and alternatives rows of dan-petty/devops-cli on the live Service after the merge and SHALL record the action.

Scenario: Live rows are cleared

  • WHEN The fix is deployed to the live Service
  • THEN A person clears both rows and records the command and time in the change record.

Existing Tool Considered

No alternatives check has run. No open, maintained tool covers the roadmap policy to drop a transferred item. The project already uses gidgethub for GitHub requests under ADR 0006, but gidgethub does not decide that an item left the repository. Build the policy in the shared roadmap store. Cost: about 20k to 40k tokens and 2 to 4 hours to build, keep and fix that code.

Key questions

  • Where should the code detect that an item left the repository?: In the shared GitHub item store, after the issue request, compare repository_url with the repository of the row. Return a transferred result to the row. (best practice) [sources: src/devops_cli/roadmap/stores/store.py, src/devops_cli/roadmap/run.py, docs/CLUSTER.md:52]
    • Chosen: Shared GitHub item store. Both rows read items through the store, so one check covers implement and alternatives.
    • Rejected: Each row checks its items. It duplicates the check and lets one row miss the transfer.
    • Rejected: GitHub client middleware. The client has no row context to drop an item or record its new number.
  • Which field shows that an item moved to another repository?: The repository_url of the issue response. A redirect can keep a number, but repository_url names the new repository. The new number is the number of the redirected response. [sources: src/devops_cli/roadmap/stores/store.py]
  • What should the store do when the comments route returns 404 after a redirect?: Treat the 404 as part of the transfer when the issue response already names another repository. Return the transferred result and do not raise a round error. (best practice) [sources: src/devops_cli/roadmap/stores/store.py, docs/CLUSTER.md:57]
    • Chosen: Skip comments after a transfer. The comments belong to the old repository and the row drops the item.
    • Rejected: Retry the comments request. The 404 is permanent after the transfer, so a retry fails again.
    • Rejected: Raise ci_infra. A transfer is not an infrastructure error and would suspend the row again.
  • What failure record should a transferred item get?: No failure record. The row writes one transfer log line and removes the item from its listing snapshot. The item gets no plan_defect or ci_infra class. (best practice) [sources: src/devops_cli/roadmap/failure.py, src/devops_cli/roadmap/stores/store.py, docs/CLUSTER.md:52]
    • Chosen: No failure record. A transfer is a normal drop, not a project or infrastructure failure.
    • Rejected: New transferred class. The row does not retry the item, so a failure class adds no value.
    • Rejected: ci_infra class. The issue states that ci_infra is wrong and it would suspend the row again.
  • Should the fix clear the suspended rows automatically or leave the live clear to a person?: Leave the live clear to a person after the merge. The code cannot know the live Service state, and the issue asks for a record of the clear. (best practice) [sources: docs/CLUSTER.md:52, AGENTS.md]
    • Chosen: Person clears after merge. The live Service state is outside the repository, and the issue asks for a recorded clear.
    • Rejected: Code clears suspended rows. The code would need to write Service state for a one-time operational event.
    • Rejected: Wait for the retry time. The rows run a probe round each hour on the same input and fail again.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

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: SLO error ratios of 0.75 and 0.60 fire a critical alert and block devops infra apply, which is a service job failure.
    • Related: fix(github): refuse an issue read that answers for another issue #7331, which asks for a different change. Both handle transferred issues in the roadmap Service, but 7331 refuses a mismatched store read while the candidate drops the item at the row level and records the new location.
  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 alternatives check records a verdict. See the section Proposed design of the body.

  5. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    Closed as a duplicate of #7337. #7336 (v0.223.2) delivered the first part: the store drops the record of an issue whose answer names another repository or another number, and no write follows such a read.

    Where each acceptance criterion is now:

    Criterion Where
    A row drops an item whose repository_url is another repository #7336, released in v0.223.2
    The round does not fail for it, and records the new place one time #7337
    A 404 on a route of such an item is no error of the round #7337
    A test with one such item for each of the two rows #7337 (comment with the criteria of this item)
    The failure class is not plan_defect or ci_infra #7337
    How the two rows were cleared on the live Service below

    How the two rows were cleared. At 19:12Z the listing snapshots of dan-petty/devops-cli were dropped (the local file of each lane and the shared copy), so each lane read the full list, which holds no item that left the repository. Since 20:56Z the Service runs v0.223.2. At 21:25Z Prometheus shows no firing critical alert and no row of roadmap-service with slo:sli_error:ratio_rate30m above 0, and the Service log of 35 minutes holds no line for #4600 and no line is not an issue of. The cause is recorded in the advisory GHSA-gmgf-83x3-vqcv.

  6. removed
    status/new
    on Nov 26, 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

    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