Skip to content

feat(roadmap): run each stage item in its own Job - #5559

Merged
dan-petty merged 3 commits into
mainfrom
feat/4559-run-each-stage-item-in-its-own-job
Nov 13, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4559-run-each-stage-item-in-its-own-job

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage row of the Service submits one stage Job for each Ready item (part 2 of #4559, after #5545), so a rollout of the Service no longer stops a plan.

  • The row moves to the status lane and plans nothing. It recovers each check-out whose Job ended with no check-in, then creates Jobs up to roadmap.stage.jobs (default 1, for the whole cluster).
  • It acts on a Job only when the item label of the Job names the item, and frees only what check_in wrote.
  • Only timeout and plan_defect ends count toward the split. An orphan removal keeps the failure ledger.
  • The in-pod stage path and the stage use of the model clone go.
  • New alert RoadmapStageGitHubRequestsHigh; the throttle alert reads both jobs.
  • The kept plan file stays until feat(roadmap): scaffold makes, resumes or adopts the item branch #5499.

Overlap: #5026, #5440, #4558, #5411, #4555, #5524.

Closes #4559
Change: openspec/changes/archive/2026-11-13-4559-run-each-stage-item-in-its-own-job/

The row stage moves from the model lane to the status lane and becomes a
submit (stage_submit.py). It plans no item and calls no model: a stage Job
from CronJob roadmap-stage (#5483) plans each item in a pod of its own, so a
rollout of the Service stops no plan.

A round lists the stage Jobs of the repository by their labels: the Job list
is the lock. It checks in for each Job of a check-out that ended with no
check-in (evicted, deadline, failed or succeeded), runs the cleanup of the
orphans, the closed items and the rejections, and then creates one Job for
each Ready item that the selection takes, up to the new setting
roadmap.stage.jobs (default 1). The check-out and the claim owner/service
come before the create, the name comes from the item and the hash of its
body, and a 409 means that the Job exists. An eviction is free 3 times on one
body. A deadline end, a failed end and a later eviction count toward
roadmap.stage.plan_defect_limit, and the end that reaches it returns the item
to New with a comment that asks refine to split it.

The in-pod body of the stage row, its place on the model lane, the round
failure rule and the use of the model clone by stage are removed. The rules
that read the series of the planner select job=~"roadmap-service|roadmap-stage",
and the job grades read the result lines of the stage Job pods.

Closes #4559
… keep the failure ledger

The stage row acts on a listed Job only when its item label names the item
of the check-out, so a record block that an issue author edits cannot
delete the Job of another item. It counts, logs and frees an item only
when check_in wrote, from the item as it reads now, so a Job that checked
in after the round read its items keeps its draft. An item that holds its
draft checks in as succeeded. A DeadlineExceeded pod with no log is
ci_infra, and only timeout and plan_defect ends count toward the split.
An orphan removal keeps the failure marks, the count and stage.evictions.
roadmap.stage.jobs counts the stage Jobs of every repository. The GitHub
request alert of the Service reads the Service alone, a new alert watches
the stage budget, and the throttle alert reads both jobs.
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 13, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 21:58
@dan-petty
dan-petty merged commit b771fc4 into main Nov 13, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/4559-run-each-stage-item-in-its-own-job branch November 13, 2026 22:03
dan-petty pushed a commit that referenced this pull request Nov 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.133.0](v0.132.1...v0.133.0)
(2026-11-13)


### Features

* **roadmap:** run each stage item in its own Job
([#5559](#5559))
([b771fc4](b771fc4))


### Bug Fixes

* **cli:** Print the elapsed line only on a terminal
([#5554](#5554))
([5dc5882](5dc5882))
* **roadmap:** only blocker and major review findings block a plan
([#5557](#5557))
([75d45b5](75d45b5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 13, 2026
Each row of the roadmap due table now runs in a lane of its own in the
Service: one worker and one trigger queue for each row and repository,
with the name of the row. A round of one row no longer waits for a round
of another row, such as alternatives behind refine.

- The setting `service.lanes` puts rows into a shared lane. The Service
reads it when it starts.
- Each lane with a row that needs files works in its own clone,
`lanes/<lane>`, and reads the listing through its own snapshot. The
start removes the state of the earlier lanes.
- A trigger carries the issue of its delivery as its subject, for #5555.
- After a scoped intake, the wake goes to each other lane, and to the
lane of intake when it holds another row.
- `devops_cli_roadmap_row_seconds` gets the label `lane`.

The model call limit, the GitHub budget and the failure ledger stay
shared. Overlap: #5559, #5560.

Closes #5553
Change:
`openspec/changes/archive/2026-11-13-5553-each-roadmap-job-in-its-own-lane/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): run each stage item in its own Job

1 participant