Repository navigation
Description
Problem or Motivation
Owner directions (2026-11-13): "add a lane to each service job", and "jobs should run async and ready for event driven triggers".
Today the Service runs three lanes, each with one worker thread per repository (server/service.py, roadmap/run.py service_jobs):
- status: metrics, implement, stage_ready, release_comments, github_status, cloudflare_status, pr_conflicts;
- triage: intake;
- model: retitle, stage, fix_plan, refine, alternatives, one after the other.
A stage round takes 36 to 100 minutes, and in that time no refine, retitle or alternatives round of the same repository runs. On 2026-11-13 the devops-cli refine row had no round from 18:01Z to 20:14Z while stage #5448 ran (Loki: "Refine round ..." lines and The row ... has N items in its queue lines). The backlog intervals of #5470 cannot help a row that waits for another row.
Proposed Solution & Architectural Design
-
Each job row runs in a lane of its own: one worker per job and repository, with its own trigger queue. The name of the lane is the name of the job.
-
A setting
service.lanescan put jobs back into a shared lane, for example{model: [stage, refine]}. The default is one lane for each job. A change to it needs a restart. -
Lanes do not wait for each other. A webhook handler only adds a trigger to a queue and returns.
-
Git: no two lanes share a working tree. Use one clone of each repository and one
git worktreefor each lane that needs files, or another form that the builder measures as cheaper. Lanes that read only GitHub need no files. -
Listing snapshots: each lane that reads the listing keeps one writer of its snapshot (perf(roadmap): status lane reads the snapshot, skips idle stops #4854). Several lanes can share a snapshot only through one writer.
-
Shared limits stay for each pod:
- the model call semaphore
service.model_call_concurrency; - the GitHub request budget
service.github_requests_per_hour; - the failure ledger.
Telemetry gets the lane name,
service.lane = <job>, on spans and row metrics. - the model call semaphore
-
Item safety: two lanes can touch the same issue. The record writer keeps its optimistic check (
RoadmapItemChangedError, classhead_moved, retry). No lane writes a field that another lane owns. List any overlap that the builder finds. -
Measure the pod memory and disk with all lanes, against the limits of the Deployment (limit 3Gi, about 770Mi used today). Change the limits in the manifest only with that measurement.
Target Subsystem
Roadmap Service (src/devops_cli/server/service.py, src/devops_cli/roadmap/run.py, src/devops_cli/config/settings.py, k8s/devops/roadmap-service/).
Existing Tool Considered
The approved pipeline split (#5482) moves jobs to their own units (Jobs and Workflows, #4559, #4567, #4568) and adds due_jobs (#5504). This issue is the in-pod step before those units. It keeps the lane seam that they use: when a job moves to a unit, its lane only submits and watches the unit. No new queue tool is needed: the Service already has a thread worker and a trigger queue for each lane. Cost: about 600,000 tokens and 1 day.
Acceptance Criteria
- A test with a stage round that blocks gets a refine round of the same repository to run and end while the stage round still runs (
devops ci fail-to-pass). - A test proves that the default gives each row of
DEFAULT_DUE_TABLEits own lane, and thatservice.lanesgroups rows when it is set. - A test proves that two lanes never use the same working tree.
- Live proof after the release: while a stage round runs, Loki shows refine rounds of the same repository at their interval, and the queue lines of feat(roadmap): rows with a large backlog run on a shorter loop #5470 show each row due on its own cadence.
Dependencies
- feat(roadmap): rows with a large backlog run on a shorter loop #5470 (row intervals, merged)
- Related: feat(roadmap): run each stage item in its own Job #4559, feat(roadmap): one due_jobs function names the due jobs of an item #5504, fix(service): each lane polls the issue events again #3942, perf(roadmap): status lane reads the snapshot, skips idle stops #4854
Activity
dan-petty commentedon Nov 13, 2026
Both address jobs blocking each other on the model lane, but #2757 fixed one row's placement while the candidate generalizes the fix to every job row.devops-cli-service commentedon Nov 13, 2026
Released in v0.134.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.134.0
devops-cli-service commentedon Nov 13, 2026
Live since 2026-11-13 23:19 UTC