Repository navigation
Description
Problem
Split from #1361, whose store fix delivers the board-write cost. The machine account's 5,000-point GraphQL budget is shared by every repository worker in the roadmap Service, yet a budget refusal stops only one round, and the next round starts at once:
- 34 refused rounds between 22:44 and 23:06Z on 2026-10-07, each spending a point;
- 88 failed and 0 successful rounds for this repository in the 6 hours to 2026-10-08 05:00Z.
Nothing reports a round's spend either. GraphQLSpend.line prints only from devops roadmap commands, and Prometheus has no quota series.
Acceptance criteria
-
require_budget,require_floorandrequire_write_floorput the reset time in the error's details. -
The Service takes the earliest reset from a failed round:
- from the error itself, when the refusal comes from outside a job (for example
changes_since); - from the failed jobs' errors in
RoadmapRunError, using theGitHubRateLimitErrormembers of fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365'sExceptionGroupif it has landed, or else a field onRoadmapRunError.
- from the error itself, when the refusal comes from outside a job (for example
-
Only a refusal that carries a reset pauses. fix(github): a gh call at a quota window's reset waits out the reset second instead of failing as unknown or broken state #1364's state errors pause nothing.
-
After such a round,
ServiceManagerstarts no round for any repository before the reset. It logs the wait once, with the time, and runs the triggers that arrive meanwhile as one round per repository after the reset. -
Every round that sends a GraphQL request ends with a spend line that names the repository and says the points are the account's. A round that sends none logs no line and sends no budget query.
-
Tests:
tests/test_server_service.pywith a fake clock, for a refusal fromchanges_sinceand for a job-level refusal; a second repository's worker starts nothing before the reset;tests/test_roadmap_run.pyfor the spend line.
Tests are offline, each call phase stays under 1 s, and
uv run devops cipasses.changelog.d/<n>.mdrecords the change. -
Pending a person, after the Service runs a release with this fix: during a refusal, Loki shows one wait line per reset and no failed rounds until it. Each round's spend line appears.
Strategic alignment
- Split from fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361 (borrow reason: split), as its "One pull request?" key question allows. Related: fix(roadmap): board writes go to the card by node id and read only that card, so intake keeps the card it added and a write costs a few GraphQL points instead of about 320 #1361, fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365, fix(github): a gh call at a quota window's reset waits out the reset second instead of failing as unknown or broken state #1364, feat(github): github api request and throttle counters for the devops-cli dashboard #814.
Filed directly with no priority; the roadmap service's intake sets Priority, Value and Effort.
Update 2026-10-08: delivered scope
- The reset travels in a new details key,
reset_at(ISO 8601,CONST_GRAPHQL_REFUSAL_RESET_KEY). Only the three require_* functions set it. The rate limiter'sreset_epochand fix(github): a gh call at a quota window's reset waits out the reset second instead of failing as unknown or broken state #1364'sreported_reset/local_clock/gap_seconds/reported_resourcesare not read, so those errors pause nothing; tests pin each shape. fix(roadmap): refine sends the model the proposal schema and never caches a reply that fails it, and one failed item skips only that item #1363'sRoadmapRefineErrorpauses nothing either. - fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365 has not landed, so a job-level reset is carried on
RoadmapRunError.reset_at. fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365 moves it onto its ExceptionGroup when it lands (noted there). - The pause ends at the reset plus fix(github): a gh call at a quota window's reset waits out the reset second instead of failing as unknown or broken state #1364's
CONST_GH_RATE_LIMIT_CLOCK_SKEW_BOUND_SECONDS(5 s), not its 1 s margin. GitHub reported an ended window 0.72-2.07 s past its reset, so a round resuming at the reset + 1 s could be refused with the old reset and fail once per repository. - "Logs the wait once" means once per new pause time across all workers. A pause time that can't be read is a WARNING naming its class; nothing is held and the worker carries on.
- A drain during a pause doesn't wait for the rounds the pause holds, so a rollout isn't delayed by the 120 s drain timeout. The drain joins each worker it stops.
- The pause lives in memory. A pod restart during a pause loses it; the new pod's first round is refused again if the budget is still low, which restores it.
- A round a refusal ended takes its spend line from the refusing budget and makes no closing budget read, so the pause starts without a paced extra GraphQL call. A closing read that fails with any error is a WARNING naming its class and never hides the round's error.
- "Sends a GraphQL request" means a request the round's store sends, as
gh_request_resourceclassifies it (its substring false positives are fix(github): run_gh paces gh pr checks, gh pr list and gh issue list as core REST though gh sends them as GraphQL #1415). gh's own GraphQL, such asgh pr checks, doesn't cause a line by itself. The spend keeps fix(github): GraphQL mutations and implicit-POSTgh apiwrites get the rate limiter's mutation pacing, decided from the request gh sends #1125's account-wide meaning. Adevops roadmapcommand whose store sent no GraphQL now ends with no GraphQL line; close's help and the MCP description say so. - Known gap (noted on fix(roadmap): the roadmap service logs each failed job's own error with its repository, and a configuration error without a traceback #1365): a refusal inside intake's refine hook or refine's visibility read is dropped there, so the pause starts at the round's next board call.
- The person check is reworded. Rounds already running when the pause starts may still fail legitimately. Check instead that no round starts between the wait line (T0) and the time it names (T1):
max by (repo) (max_over_time(devops_cli_service_job_start_timestamp_seconds[<T1-T0>s] @ <T1>))stays below T0 for every repository.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 8, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The shared 5,000-point budget is exhausted within hours, leaving the service with 0 successful rounds and no way to recover until the next window, blocking all roadmap work across every repository.Without this fix the roadmap service is non-functional during any budget exhaustion and silently burns the shared account's quota, affecting every repository it serves.Requires threading reset times through three budget-check functions, adding pause logic to ServiceManager across repositories, emitting a spend line per round, and writing offline tests with a fake clock.dan-petty commentedon Oct 8, 2026
Placed in v0.2.29 by the owner on 2026-10-08. The owner's instruction was to pull every issue that keeps the roadmap service from working into the current milestone and complete them. This is a person's placement and should stay in the release (#1349). Implementation started the same day, so the board Status is In Progress.
fix(roadmap): hold every Service round until a GraphQL refusal's rese…
fix(roadmap): hold every Service round until a GraphQL refusal's rese…
dan-petty-bot commentedon Oct 8, 2026
What changed
#1445, merged into
release/v0.2.29as 010f020.22 file(s) changed.
How it was verified
Check runs at 0ba7daa:
Acceptance Criteria of
docs/agent/tasks/task-1400-graphql-refusal-pauses-service.md:require_budget,require_floorandrequire_write_floorput the reset time in the error's details, and the store's refused read carries the reset GraphQL reported (test_each_refusal_carries_its_budgets_reset_in_its_details).test_a_refused_read_of_the_changes_leaves_the_round_with_the_reset);RoadmapRunError.reset_at, while the next job still runs (test_a_jobs_refused_write_fails_the_round_with_the_reset_and_the_next_job_still_runs).test_an_error_that_is_not_a_budget_refusal_names_no_reset,test_an_error_that_names_no_reset_holds_no_round). These hold nothing and log no wait:reset_epoch;reported_reset,local_clockandgap_seconds, or withreported_resources;test_a_refusal_whose_reset_has_passed_holds_no_round);test_a_pause_reader_that_fails_holds_nothing_and_the_worker_carries_on).ServiceManagerstarts no round for any repository before the reset plus the 5 s bound, for a refusal fromchanges_sinceand for a job's refused write (test_a_budget_refusal_holds_every_repositorys_rounds_until_the_reset[changes_since],[job]).test_every_worker_refused_for_one_reset_logs_one_wait_line).test_a_drain_during_a_pause_stops_the_workers_without_running_the_held_rounds).test_a_round_that_sends_graphql_ends_with_one_spend_line_naming_its_repository,test_a_round_that_sends_no_graphql_logs_no_spend_line_and_reads_no_budget,test_the_spend_reads_no_budget_until_the_store_sends_a_graphql_request).service_job, a refused round still ends with the line, from the refusing budget with no closing budget read, and raises the refusal unchanged (test_a_service_round_ends_with_its_spend_line_however_it_ends).test_a_budget_the_round_cant_read_is_a_warning_and_the_rounds_own_error_stands).devops serve --servicepasses the reader to the Service (test_service_wiring).test_a_close_with_no_open_release_sends_no_graphql_and_skips_its_plans_budget_read).GitHubFakeat the store'srunnerseam, with every interval job's schedule seeded, so no realgh, metrics or HTTP status read runs. Each new test's call phase stays under 1 s, anduv run devops cipasses.changelog.d/1400.mdrecords the change;CHANGELOG.mdanddocs/ROADMAP.mdare untouched.{namespace="devops", container="service"} |= "No repository starts a Service round before"shows one line per reset.max by (repo) (max_over_time(devops_cli_service_job_start_timestamp_seconds[<T1-T0>s] @ <T1>))is below T0 for every repository, so no round started during the pause.sum by (repo) (count_over_time({namespace="devops", container="service"} |= "of the account's points" | json [1h]))is non-zero for every managed repository whose rounds read the board in that hour.feat(release): v0.2.29 (#1455)
fix(telemetry): the project velocity dashboard reads the latest snaps…