Repository navigation
Description
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.pyand 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 cipasses, anddevops docs generate --sync-readmeis run.
Activity
dan-petty commentedon Oct 30, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(service)scope of the title gives the scope.Rows are suspended now and will re-suspend on every release or rollout until the fix lands.False suspensions block all processing of affected repositories until a person intervenes.The change touches the failure-count path, the log line, and possibly the retry rule across three files, but the logic is focused.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.fix(roadmap): a stop of the Service is not a failed round (#2756)
chore(main): release 0.22.1 (#2765)
feat(roadmap): the stage and implement jobs label their pull request (#…
fix(roadmap): a Service stop lets the round in flight end (#4489)