Skip to content

feat(service): each roadmap job runs in its own lane #5553

Closed

Description

@dan-petty

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.lanes can 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 worktree for 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.

  • Item safety: two lanes can touch the same issue. The record writer keeps its optimistic check (RoadmapItemChangedError, class head_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_TABLE its own lane, and that service.lanes groups 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

Activity

  1. added
    source/agent
    type/feature
    scope/service
    status/new
    value/high
    effort/high
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 13, 2026
  4. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  6. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 23:19 UTC

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/highpriority/p2-mediumscope/servicesource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions