Skip to content

fix(service): a round that ends because the Service is stopping counts as a failure and three of them suspend a row #2753

Description

@dan-petty

Problem or Motivation

A round that ends because the Service is stopping counts as a failed round. Three failed rounds in a row suspend the row of a repository ("it does not run again until its input changes"). Releases and rollouts restart the Service several times in a few hours, so a row can be suspended without any real failure.

Evidence from Loki on 2026-10-30 (logger devops_cli.server.service):

Service job execution failed for dan-petty/devops-cli: Roadmap jobs failed: refine: The Service sent 500 GitHub requests in the last hour, and its budget is 500: the request does not wait for the window, because the Service is stopping.; implement: The Service sent 500 GitHub requests ... because the Service is stopping.

and

The roadmap job implement of dan-petty/devops-cli failed 3 rounds in a row, so it does not run again until its input changes.

The rows of dan-petty/devops-cli (refine, implement) and dan-petty/dreamscaper (refine) are suspended now (devops_cli_service_job_suspended is 1). The Service keeps the count in service-failures.json on its volume, so a restart does not clear it.

The text of the error is the budget's rule for a stopped Service (RequestBudget.close: a request that would wait ends with an error instead). The rule is right for the request. The round that gets the error is not at fault, so it must not count against its row.

Proposed Solution & Architectural Design

  • A round that ends with the budget's "the Service is stopping" error (a typed exception, not a text match) is not recorded as a failure, and the row's count of failed rounds in a row does not change.
  • The failure record shows the cause of each failed round (a budget stop, a model error, a GitHub error), and the log line that suspends a row names the cause of the last three.
  • A suspended row also runs again when a person comments on one of its items (a retry), so the retry of a stopped item is not lost while the row is suspended. Check this against the "input changes" rule in roadmap/run.py and the failures module; if it already holds, the item needs only the first two points.

Target Subsystem

src/devops_cli/server/service.py, src/devops_cli/roadmap/run.py, src/devops_cli/exceptions/.

Existing Tool Considered

The typed error of the budget that already exists; the change reads its class. Nothing new is built.

Acceptance criteria

  • With the budget closed, a round that fails only with the stop error leaves the failure count of its row unchanged, and three such rounds do not suspend the row.
  • Three rounds that fail for a real reason still suspend the row, and the suspension log line names the cause.
  • A test replays the sequence: three rounds interrupted by a stop, then a normal round. The row runs the normal round.
  • uv run devops ci passes, and devops docs generate --sync-readme is run.

Activity

  1. added
    source/agent
    type/bug
    scope/service
    status/new
    value/high
    effort/medium
    on Oct 30, 2026
  2. dan-petty commented on Oct 30, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/service. The (service) scope of the title gives the scope.
    • Priority: P1-High. Rows are suspended now and will re-suspend on every release or rollout until the fix lands.
    • Value: High. False suspensions block all processing of affected repositories until a person intervenes.
    • Effort: Medium. The change touches the failure-count path, the log line, and possibly the retry rule across three files, but the logic is focused.
    • Related: fix(service): a restart keeps the halt, the budget window and the failure ledger, and a secondary limit or a suspended installation stops every worker #2474, which asks for a different change. Both deal with the Service failure ledger, but #2474 makes the ledger persist across restarts while the candidate stops a specific error type from being recorded in it.
  3. added
    priority/p1-high
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Oct 30, 2026
  4. added a commit that references this issue on Oct 30, 2026
    0b7e190
  5. 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

    effort/mediumpriority/p1-highscope/servicesource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions