Repository navigation
Closed
Labels
scope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themtype/bugType bug: the code does not do what it must
Milestone
Description
Requested by the owner, 2026-10-09, after the Service stalled with every repository's round queued.
Problem
Checked at release/v0.2.33 (after #1515) and in the running Service (v0.2.32), read-only.
- Each repository has one worker thread with one queue (
server/service.py,RepoWorker: "a single-concurrency queue for one repository"). A round runs every due job in order: close, reprioritize, metrics, then intake and refine (roadmap/run.py,DEFAULT_DUE_TABLE). A trigger that arrives during a round waits for the whole round to finish. - Intake and refine call the slow background model through the gateway, which answers one call at a time (about 2-3 minutes each). On 2026-10-09 at 21:54 UTC the daily reprioritize ran in all 7 small repositories at once and made refine due in each (up to 3 items, two calls per item): about 40 queued model calls. From 22:04 no round finished in any repository for over 40 minutes; every queue held one batch; the rate limiter showed only sub-second pauses and the GraphQL budget had 4,726 points left, so nothing was rate limited.
- The devops-cli round that was running had already run close before refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions (#1150) #1529 merged (22:19), so refactor(review): the model verifier, the hallucination catalog and the model-claim guards are deleted, and person-recorded verdicts become suppressions #1150 stayed open and v0.2.33 was not cut until that round's model work drained. Close and reprioritize, which start and ship releases and call no model, waited behind refine.
- feat(roadmap): refine runs every hour and readies the new items of every planned release, nearest first, before that release starts #1515 (refine every hour, in v0.2.33) makes this the normal case: refine due hourly in all 8 repositories keeps the model busy most of the time.
Proposed remedy
- Two lanes per repository: the release lane (close, reprioritize, metrics) and the model lane (intake, refine), each its own worker thread and queue, with the same triggers and the same
schedule.json. A release-lane round never waits for a model-lane round; the shared round pause (fix(roadmap): a GraphQL budget refusal pauses every Service worker until the reset, and each Service round ends with its spend line #1400) still holds both. - The model lane keeps its order (intake before refine) and the existing limits; the release lane keeps its order. Cross-job triggers stay: a reprioritize run makes refine due on the model lane.
Acceptance criteria
- With a model-lane round blocked on a slow fake model, a pull_request-closed trigger for the same repository runs close within one poll and closes the delivered item; a ship still starts the next release.
- Each lane runs at most one round at a time per repository;
schedule.jsonrecords each job's last success as today. - Metrics report queue depth per lane, so a stalled model lane is visible.
- AGENTS.md's roadmap-service section and ADR 0003 describe the two lanes;
changelog.d/<issue>.md.
Metadata
Metadata
Assignees
Labels
scope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themtype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 9, 2026
Placed in v0.2.33 by the owner, 2026-10-09, as a blocker: it lands before v0.2.33's release PR merges, so hourly refine (#1515) and the separate release lane go live together.
fix(roadmap): the service runs close and reprioritize in their own la…
dan-petty-bot commentedon Oct 10, 2026
What changed
#1536, merged into
release/v0.2.33as 2f3ed2a.24 file(s) changed.
How it was verified
Check runs at 3539656:
Acceptance Criteria of
docs/agent/tasks/task-1532-service-release-and-model-lanes.md:pull_requestclosedtrigger for the same repository runs close within one poll and closes the delivered item, and a ship'sreleasepublishedtrigger still makes reprioritize start the next release, while the refine round is still running (tests/test_roadmap_run.py::test_a_blocked_model_lane_holds_back_neither_a_delivered_items_close_nor_a_ships_start: two lanes in aServiceManager, the real close and reprioritize adapters over the in-memory store, check verdicts patched atdevops_cli.github.check_verdict.fetch_pr_check_verdicts; the model lane's refine row gets the stub through theJobRowrunner seam, since_run_refine_adapterbuilds its ownLLMClientand needs a clone, so a blocking fake model has no seam there without new plumbing). Through the HTTP app, a signedpull_requestclosedwebhook runs a release-lane round while the model lane's round is still active (tests/test_server_service.py::test_a_webhook_runs_the_release_lane_while_the_model_lanes_round_is_blocked).schedule.jsonrecords each job's last success as before, and every success stays when the lanes' rounds interleave (test_each_lanes_success_stays_in_schedule_json_when_their_rounds_interleave, which fails on the whole-snapshot write). A reprioritize success the release lane records makes refine due at the model lane's next poll, and refine is not due again once it has succeeded since (test_a_reprioritize_success_makes_refine_due_at_the_model_lanes_next_poll, which fails without_refine_due). Each lane updates only its own clone, and a model-lane round leaves a change inclonealone (test_each_lane_updates_only_its_own_clone, against a bare remote).Pending(tests/test_roadmap_github_store.py::test_two_lanes_marking_one_card_at_once_keep_each_others_marks, two stores over the sharedGitHubFake, which fails without_JOB_RECORD_LOCK). Of two stores setting one item's Release at once, the later raisesRoadmapCardChangedErrornaming the earlier's milestone, which stays (test_two_lanes_placing_one_item_at_once_never_replace_a_release_unseen, which fails with the milestone check outside the lock)./metricsshowsdevops_cli_service_queue_depth{lane="model",repo=...} 1.0beside{lane="release",...} 0.0, and the release lane'sjobs_totalandjob_seconds_totalcarry its lane (test_metrics_show_a_stalled_model_lane_by_its_queue_depth). A budget refusal in the model lane holds the release lane's next round through the shared pause until the reset (test_a_budget_refusal_in_the_model_lane_holds_the_release_lane_too).changelog.d/1532.mdholds the entry.tests/test_swallowed_failures_ratchet.pypasses with the ceilings unchanged (src/devops_cli/roadmap/run.py6,src/devops_cli/server/service.py5). The new tests reach no network or DNS and wait on events with short timeouts.uv run devops ciis the pull request's gate.mainand Argo CD deploys its image:kubectl -n devops rollout status deploy/roadmap-service --timeout=180s, thenkubectl -n devops exec deploy/roadmap-service -- curl -s -f http://localhost:8000/healthzand.../readyzboth answer 200.kubectl -n devops exec deploy/roadmap-service -- curl -s http://localhost:8000/metrics | grep -E 'service_(queue_depth|jobs_total|job_seconds_total|job_start_timestamp_seconds)'lists each series withlane="release"and withlane="model"for every repository inservice.repos.devops_cli_service_queue_depth{lane="model"}at 1, or ajob_start_timestamp_seconds{lane="model"}older than 300 s),devops_cli_service_jobs_total{lane="release",result="success"}still rises at every poll. Only a failed round'sService job execution failedline and a worker crash's line carry"lane", sokubectl -n devops logs deploy/roadmap-service -c service --since=10mshows one only when a round failed.kubectl -n devops exec deploy/roadmap-service -- sh -c 'ls -d /home/devops/.data/roadmap/*/*/model-clone'prints one line per repository, theclonedirectories are unchanged, and the PVC's use grows by about one more set of clones (about 117 MB on 2026-10-09).kubectl -n devops exec deploy/roadmap-service -- sh -c 'cat /home/devops/.data/roadmap/*/*/schedule.json'listsclose,reprioritize,metrics,intakeandrefinefor each repository. Eachrefinetime follows itsreprioritizetime once the model lane has finished a round that started after that reprioritize; until then a model round is in progress or due at the next poll (devops_cli_service_queue_depth{lane="model"}ordevops_cli_service_job_start_timestamp_seconds{lane="model"}), and while refine keeps failing it stays behind (Known limits).kubectl -n devops logs deploy/roadmap-service -c service --since=3h | grep 'GraphQL,'and take the lowest "N left" before each hourly reset, not the sum of the round lines: concurrent rounds count each other's points. It stays well under 5,000 points an hour (1,178 to 1,413 on 2026-10-09, 19-21 UTC); if it nears the budget, raiseservice.poll_interval_seconds.kubectl -n devops logs deploy/roadmap-service -c service --since=1h | grep -c "Mandatory pause for 'core'"and take their largest delay with... | grep "Mandatory pause for 'core'" | grep -o 'delaying [0-9.]*' | sort -k2 -n | tail -1(at most 5.30 s on 2026-10-09), or read core'susedbefore its hourly reset withkubectl -n devops exec deploy/roadmap-service -- gh api rate_limit --jq .resources.core. Core stays well under 5,000 requests an hour and its pauses stay near their earlier size; if either grows toward its limit, raiseservice.poll_interval_seconds.kubectl -n devops top pod -l app.kubernetes.io/name=roadmap-servicestays well under the 1Gi memory limit (362Mi before this change).feat(release): v0.2.33 (#1537)