Skip to content

feat(roadmap): track the roadmap pipeline split into jobs #5482

Open
20 of 36 issues completed
Open

Description

@dan-petty

Problem or Motivation

The roadmap Service runs most roadmap jobs as rows in one pod, and each row decides in its own way what is due. Measured faults:

  • Since 2026-11-07, 53 of 71 Service restarts stopped a running stage round. Stage staged 5 of 15 attempts. 5 of 9 stage failures were plan_defect.
  • No rule limits the Secret keys and the token permissions of a roadmap Job to the needs of its job.
  • Pods outside the Service are not in the GitHub self-cap of 4,000 requests an hour (measured peak 3,255).
  • Two paths can act on one plan head. Implement can continue on a plan branch while stage_ready marks the plan PR ready.
  • 28 bot items wait for a person for a median of 6 days.
  • No measure shows the end-to-end result. At 90 % for each hop, 8 hops give 43 %.

The owner approved the pipeline split design on 2026-11-13: "proceed as recommended with the service jobs refactor". The approval covers the recommended answer of each decision D1 to D10 and the phase order 0 to 7.

Proposed Solution & Architectural Design

The roadmap work becomes 24 jobs. Each job has one purpose, one due predicate and one result line. One pure function, due_jobs(subject), reads the labels, the record block, the PR facts and the unit list. It is the only source of what is due. No job writes a due mark. Argo Workflows stays the one engine (ADR 0008, ADR 0021). GitHub stays the source of truth, and Valkey holds only copies. Only the router and the sweep create units. No unit creates another unit.

Decisions (approved 2026-11-13)

  • D1 Scaffold: a step module with its own command and result line. It runs first in the stage unit (kind plan) and in the tests unit (kind delivery). It makes no placeholder commit. A trial arm uses the trial field of feat(roadmap): trial a model tier on a share of a job's attempts #5177.
  • D2 Branch suffix: no -n suffix now. A two-branch check (metric and alert) runs. Parallel work goes to split sub-issues with one PR each. Owner, 2026-11-13: the suffix is for a later Service job function that runs more than one instance of one job at the same time, and then a judge compares the results and compiles one refined result. The setting roadmap.<job>.candidates is 1 for all jobs by default, and with 1 candidate the branch has no suffix. With N above 1, the job runs N candidates on the branches <branch>-1 to <branch>-N, and a judge compares them and writes one refined result on the plain branch. Cleanup deletes the candidate branches after the judge (feat(roadmap): a job can run candidates and a judge #5533).
  • D3 Staged rule: one rule for each item by the effort pass: continue on the plan branch, or wait for G1. Never both on one head.
  • D4 Labels: no new label. "Waits for a person" and "possible duplicate" stay derived in devops roadmap inbox. Remove the labels that nothing writes.
  • D5 Record: keep the hidden block in the issue body, with one writer, the updated_at check and the outside-text compare. Move it to an App comment only if the lost-edit counter is above 0 after Phase 3.
  • D6 Tests job: it can push failing tests behind a tests gate, only after E3 shows equal or better implement success. Until then, test-first stays inside each implement step.
  • D7 Watch and review: draft only on deterministic verdicts, only for bot PRs, at most 3 cycles for each PR. Review posts a COMMENT review, writes review.verdict and never approves.
  • D8 App settings: subscribe to pull_request, pull_request_review, check_suite and issue_comment. Defer new permissions (O2).
  • D9 Spend: fix_plan on after fix(roadmap): a later plan review judges each earlier finding #5409 to fix(roadmap): only blocker and major review findings block a plan #5411. Fix-conflict tier 1 on at once. Tier 2 and fix-checks after 1 week in mode plan. The E1 budget comes from the A/A pass. The research caps come after the Phase 0 cost and an E5 lift.
  • D10 P0 resources: extra resources only for incident classes, under a daily cap. A P0 from inheritance gets order only. No PriorityClass.

Delivery rule

  • Live proof. Each job issue has a live-proof criterion. After the merge and the release, the job runs as the App (devops-cli-service[bot]) in the cluster against real issues, branches and PRs: the open and recently closed bot PRs, or a named live item. A comment on the issue or the PR gives the result lines.
  • Split and refine, do not retry. When a build or a live job keeps failing, divide it into smaller sub-issues and refine them. "Keeps failing" means two failed build attempts, or a job under band 70 after its phase.
  • Worst first. Work the worst-failing job first. After each phase, rank the open children again from the shepherd data: the job grades and the funnel.
  • One issue, one PR. Never stack PRs. Each job starts in mode plan, and a person sets on.
  • Check-out (owner, 2026-11-13). Each job checks its item out before work (the job, the unit name, the start and the deadline) and checks it in at its end write, with the result. The poll frees the check-out of a missing, failed or late unit, records the class and makes the next job due (feat(roadmap): the poll frees the check-out of a gone job #5524).

Ordered child list

Each line gives the item and the items to merge first. Phases 2 and 5 run in parallel with other phases, as stated.

Phase 0: fix the measured plan faults and build the measure base (1 to 1.5 weeks).

Exit check: devops roadmap eval stage on the 51 commit cases shows no regression on the gated defect types. Every result line carries tokens and cost_usd_micros. For 7 days, the spend counter agrees with the gateway within 10 %. The funnel shows the base, with n and the interval. The 14-day live check runs in parallel and does not hold Phase 1: no finding repeats across the review rounds of one plan, and plan_defect is under 50 % of stage failures.

Phase 1: stage in its own Job (4 to 6 days). #5483, #4559 and E1 start when #5411 merges, because they change the same stage files. #4957, #5020, #5026, #5497 and #5498 can start now.

Exit check: for 7 days, 0 stage attempts stopped by a Service restart. At least one killed attempt resumes from its branch with no new planner call. Every request of the stage Job counts in a request budget. Outside the rollout windows, the hop from Ready to a stage Job is one status-lane interval or less. The funnel step Ready to plan PR open is not below the Phase 0 base (n, the Wilson interval, the smallest change that can show). 0 issues with two branches on origin.

Phase 2: record the pipeline (about 1 day plus the owner review), in parallel with Phase 1.

Exit check: the owner merges the ADR PR. Each new job has an issue with its due predicate, its result line, its intended result, its permission row and mode plan.

Phase 3: the PR jobs of #5014 (2 to 3 weeks). #5014 owns these items and their order.

Exit check: the runner Job opens no PR and runs no watch. The rows stage_ready and pr_conflicts are deleted. Outside the rollout windows, a watch verdict comes within one status-lane interval plus 10 min after a check result. 0 ready bot PRs have a failed required check for over 15 min. fix_plan has result lines each week. In mode plan, fix-conflict tier 1 would fix 70 % or more of the conflicts. 0 red CI runs on unchecked App heads. The due_jobs property test passes on the fixtures of each producer write.

Phase 4: shared state and the engine, in the step order of ADR 0021 (3 to 4 weeks).

Exit check: the Service pod runs only the router. The sweep creates every unit, and a repeated create gets 409. A router restart stops 0 units. The latency checks of Phases 1 and 3 pass with no rollout exclusion. The template test fails when an agent template holds a key in its model container. The sweep frees a stuck claim within the deadline plus 5 min.

Phase 5: intake and triage, deterministic steps first (2 weeks). Start after Phase 2, in parallel with Phases 3 and 4.

Exit check: premise runs 30 cases in shadow before mode on. 0 closes of items that a person filed, and 0 false closes by group. The person-cause inflow stays under its daily cap. A drill alert makes a P0 item in 10 min or less. The masking test passes. Pods a day stay within the ADR 0021 budget of 1,000 to 1,200.

Phase 6: one just-in-time research unit and resolve (2 weeks). Start only when the stage and implement funnel steps reach band 70, and after #5506.

Exit check: E5 shows a lift for each step that leaves mode plan. The tokens for each item, from New to staged, stay under the owner cap. Content writes stay under 80 a minute and 500 an hour. Refine runs 2 times or fewer for each research result set. Each job gets a grade at 30 attempts.

Phase 7: tests, scaffold of kind delivery, and review (3 weeks).

Exit check: E3 shows equal or better implement success before tests leaves mode plan. Each tests push passes the tests gate. Implement leaves 95 % or more of the tests of the tests job unchanged. The review unit reaches 80 % precision or more on 30 PRs before watch reads a failed verdict as a draft reason. The implement band is not below its Phase 3 band.

Job map

Job Phase Issues
intake 4, 5 #4567 (triage unit), #5166, #5509
group 5 #4812, #4813, #4821, #5509
premise 5 #5508, #4131 (stage guard)
retitle 5 #4620, #5507
incident 5 #5477
supervise 5 #5477, #5511
inherit 5 #5510
refine 4 #4568, #4806
related 6 #5515
status_sync done #5018 (closed)
research 4, 6 #4573, #4672, #5513, #5514, #5512
resolve 6 #4805, #4808, #4806, #4809, #3077
scaffold 1, 7 #5499, #5518
stage 0, 1 #5411, #5483, #4559, #5501
open 1 #5020
tests 7 #5517, #5520
implement 1, 3, 4, 7 #4957, #4713, #5029, #3105, #5516, #5519
watch 3 #5021, #5024, #5505, #4413, #4415
fix-plan 0, 3 #5493, #5414, #5412
fix-checks 3 #5023, #5027
fix-conflict 3 #5019, #5028
review 7 #5521, #5170, #5522
split 5 #4817, #4819, #4821
cleanup 1 #5026

Cross-cutting: #4555, #3727, #5168, #5169, #4724, #4558, #5494, #5495 (Phase 0); #5497, #5498, #5500 (Phase 1); #5502, #5235, #5503, #5504 (Phase 2); #4563 to #4566, #4574, #4575, #4560, #5506 (Phase 4).

Owner steps

Only a person does these steps. Each phase names the step that it needs.

Measure of the whole

  • Job bands: 100, 90, 80, 70, 60 and under 60 for each model job at 30 or more attempts. Skips and no-op results are a separate count, not a success. Deterministic steps use service measures: the lag to act, the drift that the sweep finds, and failures that are bugs.
  • Funnel (feat(roadmap): eval funnel reports each item cohort by step #5494): for each item cohort and each path, the share that passes each step, the time of each step, and the tokens and cost_usd_micros for each success, with n and the Wilson interval. It is the gate of each phase.
  • Base (7 days to 2026-11-13): stage 5 of 15 staged; intake 140 placed of 220 lines (64 %, band 60); refine 34 ready of 78 lines; implement 4 ready of 8 lines.
  • Load: pods a day within the ADR 0021 budget of 1,000 to 1,200.
  • Low volume: a job with few attempts states its attempts a week and its weeks to 30, and gets drills or replays.

Target Subsystem

Roadmap Service and roadmap jobs (src/devops_cli/roadmap/, src/devops_cli/service/, k8s/devops/).

Acceptance Criteria

  • Each child is merged or closed with evidence, or split and refined by the delivery rule.
  • Each job has a result line with tokens and cost_usd_micros, and a grade at 30 or more attempts or a service measure.
  • The funnel of the last cohort is not below the Phase 0 base at any step.
  • The Service pod runs only the router, and a router restart stops 0 units.

Existing Tool Considered

  • Argo Workflows v4.1.6 (installed, Apache-2.0): units, the item mutex, semaphores, spec.priority, retryStrategy, CronWorkflow schedules and deadlines.
  • Kubernetes Jobs from the suspended runner CronJob before the engine step. Valkey with the limits library (present).
  • GitHub standard interfaces: REST, git refs, scoped installation access tokens, GraphQL draft and ready, the [skip ci] marker, delete_branch_on_merge, webhooks, sub-issues and blocked-by links.
  • The Prometheus HTTP API. pydantic-evals 2.59.0, statsmodels 0.15.0, scipy and Hypothesis (locked).
  • devops review, the openspec CLI, the pydantic-ai-harness Coder, mask_secrets and raise_alarm (fix(ci): the duration alarm fires at 360 s and files a P0 issue #5247).
  • Rejected: Argo Events and Tekton Triggers (a second receiver); KEDA and Kueue (duplicate the semaphores); a PriorityClass; an Alertmanager route; a review check run (until E4); a commit status (no permission); GitHub Actions or gh-aw as the engine; claude-code-action and codex-action; the OpenHands resolver; SWE-agent; Agentless; Inspect AI and promptfoo.
  • Build cost (estimates): about 16M to 27M agent tokens and 11 to 15 weeks over Phases 0 to 7. A unit job costs 200,000 to 500,000 tokens and 0.5 to 1 day. A sweep step costs 100,000 to 300,000 tokens and 0.5 day. Upkeep is about 10 % of the build tokens each quarter.

Related

Source: #4517

Proposed design

Problem statement

The roadmap Service runs most roadmap jobs as rows in one pod, and each row decides in its own way what is due. This causes stopped stage rounds, unbounded Secret keys and token permissions, pods outside the GitHub self-cap, two paths on one plan head, bot items that wait for a person, and no end-to-end measure. The issue tracks the approved split of the pipeline into 24 jobs, each with one purpose, one due predicate and one result line, under Argo Workflows and GitHub as the source of truth.

Acceptance criteria

Requirement: Pipeline split job map

The tracker SHALL record each of the 24 jobs with its phase, its child issues and its mode plan.

Scenario: Every job row is complete

  • WHEN A test reads the job map of the pipeline split section of docs/ROADMAP_WORKFLOW.md.
  • THEN Each of the 24 jobs has a row with its phase, its child issues and mode plan.

Requirement: Job issue fields

The tracker SHALL require each job issue to carry its due predicate, result line, intended result, permission row and mode plan.

Scenario: Every job issue has its fields

  • WHEN A test reads the job checklist of the pipeline split section.
  • THEN Each of the 24 jobs has a checklist entry naming its due predicate, result line, intended result, permission row and mode plan.

Requirement: Owner decisions and phase order

The tracker SHALL record the approved answer of each decision D1 to D10 and the phase order 0 to 7.

Scenario: Each decision and phase is present

  • WHEN A test reads the decisions part of the pipeline split section.
  • THEN Each decision D1 to D10 has its approved answer, and phases 0 to 7 are in order.

Requirement: Phase exit checks and live proof

The tracker SHALL record the exit check of each phase 0 to 7 and the live-proof criterion of each job.

Scenario: Each phase and job has its check

  • WHEN A test reads the phase and job parts of the pipeline split section.
  • THEN Each phase 0 to 7 has an exit check, and each job has a live-proof criterion.

Requirement: Delivery rule

The tracker SHALL record the delivery rule: live proof for each job, split and refine on repeated failure, worst first, one issue and one pull request, and a check-out and check-in for each job.

Scenario: The delivery rule is present

  • WHEN A test reads the delivery-rule part of the pipeline split section.
  • THEN The rule names live proof, split and refine, worst first, one issue and one pull request, and the check-out and check-in.

Requirement: Child completion rule

The tracker SHALL record that each child issue is merged or closed with evidence, or split and refined by the delivery rule.

Scenario: The child completion rule is present

  • WHEN A test reads the completion rule of the pipeline split section.
  • THEN The rule names merge, close with evidence, and split and refine by the delivery rule.

Requirement: Result line and grade rule

The tracker SHALL record that each job has a result line with tokens and cost_usd_micros, and a grade at 30 or more attempts or a service measure.

Scenario: The result line and grade rule is present

  • WHEN A test reads the measure part of the pipeline split section.
  • THEN Each job names tokens, cost_usd_micros, and its grade rule at 30 or more attempts or a service measure.

Requirement: Funnel gate

The tracker SHALL record that the funnel of the last cohort is not below the Phase 0 base at any step.

Scenario: The funnel gate is present

  • WHEN A test reads the measure part of the pipeline split section.
  • THEN The gate names the Phase 0 base, n and the Wilson interval for each step.

Requirement: Service pod rule

The tracker SHALL record that the Service pod runs only the router, and that a router restart stops 0 units.

Scenario: The Service pod rule is present

  • WHEN A test reads the Service part of the pipeline split section.
  • THEN The rule says the pod runs only the router and a router restart stops 0 units.

Existing Tool Considered

No alternatives check has run. Argo Workflows v4.1.6 (chart 2.0.18, pinned in k8s/argo-workflows/values.yaml:12, Apache-2.0) is the installed engine and covers units, mutexes, semaphores, spec.priority, retryStrategy, CronWorkflow schedules and deadlines. Valkey 9.1.3 with the limits library covers the shared request windows and locks. GitHub sub-issues and blocked-by links cover the tracking need but lack a due predicate and a result line; Argo Workflows lacks the roadmap due predicate, the one result line per attempt and the end-to-end funnel, so the project builds those in its own step modules: about 16M to 27M agent tokens and 11 to 15 weeks over Phases 0 to 7, with upkeep of about 10% of the build tokens each quarter. A unit job costs 200,000 to 500,000 tokens and 0.5 to 1 day; a sweep step costs 100,000 to 300,000 tokens and 0.5 day.

Key questions

  • Does the tracker fit one pull request?: No. The tracker names 24 jobs in 8 phases, and each child issue gets one pull request. AGENTS.md rule 1 requires one issue and one pull request, and a tracker's sub-issues deliver it one pull request each. [sources: AGENTS.md:7, src/devops_cli/roadmap/intake/intake.py:12, docs/ROADMAP_WORKFLOW.md:3]
  • Where does the tracker record live?: In a new pipeline split section of docs/ROADMAP_WORKFLOW.md. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:3]
    • Chosen: Section of docs/ROADMAP_WORKFLOW.md. The page is the one place that names the steps of an issue's life and links the job pages (docs/ROADMAP_WORKFLOW.md:3).
    • Rejected: New docs/roadmap/pipeline-split.md. It adds a second place that names the workflow steps.
  • D1 Scaffold: how does a stage or tests unit start?: A step module with its own command and result line runs first. It runs in the stage unit (kind plan) and in the tests unit (kind delivery). It makes no placeholder commit. A trial arm uses the trial field of feat(roadmap): trial a model tier on a share of a job's attempts #5177. (best practice) [sources: CONTEXT.md:166, docs/ROADMAP_WORKFLOW.md:23]
    • Chosen: Step module with its own command and result line. CONTEXT.md:166 defines a step as one module and one command with one JSON result line, and the stage row already starts the branch (docs/ROADMAP_WORKFLOW.md:23).
    • Rejected: Inline scaffold inside each job. It gives no separate command or result line, and the trial arm cannot use the trial field of feat(roadmap): trial a model tier on a share of a job's attempts #5177.
  • D2 Branch suffix: does a job run more than one candidate on suffixed branches now?: No -n suffix now. A two-branch check (metric and alert) runs. The setting roadmap.<job>.candidates is 1 for all jobs by default. With N above 1, the job runs N candidates on <branch>-1 to <branch>-N. A judge compares them and writes one refined result on the plain branch. Cleanup deletes the candidate branches after the judge (feat(roadmap): a job can run candidates and a judge #5533). (best practice) [sources: AGENTS.md:7, src/devops_cli/roadmap/intake/intake.py:12]
    • Chosen: No suffix now, candidates later. AGENTS.md:7 requires one issue and one pull request, and sub-issues deliver one pull request each (intake.py:12); with the default of 1 candidate no run branch exists.
    • Rejected: Suffix now. It adds token cost before the two-branch check or E6 shows a gain.
  • D3 Staged rule: how many paths may act on one plan head?: One rule for each item by the effort pass: continue on the plan branch, or wait for G1. Never both on one head. (best practice) [sources: docs/CLUSTER.md:49, docs/ROADMAP_WORKFLOW.md:23, docs/ROADMAP_WORKFLOW.md:25]
    • Chosen: One rule per item. docs/CLUSTER.md:49 shows stage_ready marking a plan ready while the implement step still works on the staged branch (docs/ROADMAP_WORKFLOW.md:25); one rule removes the race.
    • Rejected: Two paths on one head. It is the measured fault: implement can continue while stage_ready marks the plan PR ready.
  • D4 Labels: does the split add a label for waits or possible duplicates?: No new label. 'Waits for a person' and 'possible duplicate' stay derived in devops roadmap inbox. Remove the labels that nothing writes. (best practice) [sources: docs/roadmap/inbox.md:3, docs/ROADMAP_WORKFLOW.md:38, docs/roadmap/intake.md:36]
    • Chosen: Derived labels. The inbox already lists what waits for a person (docs/roadmap/inbox.md:3, docs/ROADMAP_WORKFLOW.md:38), and intake names a possible duplicate in its reason comment (docs/roadmap/intake.md:36).
    • Rejected: New labels. They add state that the inbox and intake already derive.
  • D5 Record: where does the job record live?: Keep the hidden block in the issue body. Use one writer, the updated_at check and the outside-text compare. Move it to an App comment only if the lost-edit counter is above 0 after Phase 3. (best practice) [sources: docs/adr/0016-labels-hold-the-roadmap-items-fields.md:19, docs/ROADMAP_WORKFLOW.md:98, src/devops_cli/roadmap/stores/store.py:20]
    • Chosen: Hidden block in the issue body. ADR 0016:19 makes the hidden block the job record, and the store reads it there (src/devops_cli/roadmap/stores/store.py:20).
    • Rejected: App comment now. It waits on the lost-edit counter after Phase 3.
  • D6 Tests job: may the tests job push failing tests before E3?: The tests job can push failing tests behind a tests gate only after E3 shows equal or better implement success. Until then, test-first stays inside each implement step. (best practice) [sources: CONTRIBUTING.md:11, docs/ROADMAP_WORKFLOW.md:25]
    • Chosen: Wait for E3. CONTRIBUTING.md:11 already requires a failing test first inside the change, and docs/ROADMAP_WORKFLOW.md:25 puts tests first in the implement step; a separate tests job waits for E3.
    • Rejected: Push failing tests now. It changes implement success before E3 measures it.
  • D7 Watch and review: what may the review unit do?: Draft only on deterministic verdicts, only for bot PRs, at most 3 cycles for each PR. Review posts a COMMENT review, writes review.verdict and never approves. (best practice) [sources: AGENTS.md:21, docs/ROADMAP_WORKFLOW.md:245, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:125]
    • Chosen: COMMENT review only. AGENTS.md:21 and docs/ROADMAP_WORKFLOW.md:245 give the merge and the verdict to a person, and ADR 0021 rule 2 says a model verdict only flags and never marks a pull request ready.
    • Rejected: Review approves. Only a person passes a gate (docs/ROADMAP_WORKFLOW.md:245).
  • D8 App settings: which webhook events does the App subscribe to now?: Subscribe to pull_request, pull_request_review, check_suite and issue_comment. Defer new permissions (O2). (best practice) [sources: docs/CLUSTER.md:42, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:33]
    • Chosen: Four events, defer permissions. The router is the one webhook receiver (ADR 0021 section 1), and the Service takes no issue_comment today (docs/CLUSTER.md:42); the four events are the ones the jobs need, and new permissions wait.
    • Rejected: All events and permissions now. It adds permissions before the jobs need them.
  • D9 Spend: when do the spend features turn on?: fix_plan on after fix(roadmap): a later plan review judges each earlier finding #5409 to fix(roadmap): only blocker and major review findings block a plan #5411. Fix-conflict tier 1 on at once. Tier 2 and fix-checks after 1 week in mode plan. The E1 budget comes from the A/A pass. The research caps come after the Phase 0 cost and an E5 lift. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:128, docs/CLUSTER.md:55, docs/ENV_VARS.md:127]
    • Chosen: Staged spend rollout. ADR 0021 section 8 rule 5 starts each new row in mode plan, and docs/CLUSTER.md:55 and docs/ENV_VARS.md:127 say fix_plan starts in plan and a person sets on.
    • Rejected: All spend features on now. It spends before the A/A pass, the Phase 0 cost or the E5 lift.
  • D10 P0 resources: how do incident P0 items get extra resources?: Extra resources only for incident classes, under a daily cap. A P0 from inheritance gets order only. No PriorityClass. (best practice) [sources: k8s/devops/roadmap-service/admissionpolicy.yaml:155, docs/CLUSTER.md:65, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:70]
    • Chosen: Extra resources under a daily cap. The admission policy refuses priorityClassName (admissionpolicy.yaml:155), and ADR 0021 gives an agent pod only the Secret keys its job needs (line 70); extra resources under a daily cap stay inside those rules.
    • Rejected: PriorityClass. The admission policy refuses a priorityClassName (k8s/devops/roadmap-service/admissionpolicy.yaml:155).
  • Which parts of the plan does only a person do?: Merge the ADR and roadmap-state pull requests (docs(adr): record the roadmap job split and the due_jobs rule #5502, docs(adr): Valkey keys are coordination keys or cache keys #5245, docs(adr): job limits are settings with a soft cap and a hard ceiling #5246, docs(adr): one roadmap-state record supersedes ADR 0001 and ADR 0016 #5235); set the ConfigMap modes and caps (roadmap.fix_plan.mode, the request budgets, the P0 daily cap and the research caps); subscribe the App to the four webhook events and set O3; split the devops-cli Secret for feat(roadmap): the model container of a unit holds no credential #5506; confirm or refuse the 30 premise rejections; and give the 30 review verdicts for E4. (a person decides) [sources: AGENTS.md:21, docs/ROADMAP_WORKFLOW.md:245]

Open questions

  • Which parts of the plan does only a person do? (a person decides)

Fit

Needs splitting into 8 items:

  1. Phase 0: fix the measured plan faults and build the measure base (fix(roadmap): a later plan review judges each earlier finding #5409, feat(roadmap): run the plan checks before the stage push #4725, fix(roadmap): a review finding must name a part of the plan to block it #5410, fix(roadmap): the stage gate log names each refused claim #5433, fix(roadmap): a named fix-plan run can skip the 6-hour wait #5413, fix(roadmap): only blocker and major review findings block a plan #5411, fix(roadmap): read the pod status to find an out-of-memory kill #3727, fix(roadmap): an evicted fix-plan attempt does not count against its head #5493, fix(roadmap): the fix_plan row judges and logs each plan it leaves out #5414, fix(roadmap): repair a job record mark that a parallel write lost #4555, fix(roadmap): a Job pod and a local run log the job result line #5169, feat(roadmap): result lines state first-pass, model calls and cost #5168, fix(monitoring): read AI spend from the gateway counter #4724, feat(roadmap): label Service Jobs by repository and item #4558, feat(roadmap): eval funnel reports each item cohort by step #5494, feat(roadmap): the phase of each item drives the stuck-item alert #5495).
  2. Phase 1: stage in its own Job (fix(roadmap): the final push of the implement Job can miss the latest main #4957, refactor(roadmap): one open step for every pull request #5020, refactor(roadmap): run the stage cleanup in the status lane #5026, feat(service): give each roadmap pod an hourly request budget #5497, feat(roadmap): each roadmap Job gets its keys and a scoped token #5498, feat(roadmap): the poll frees the check-out of a gone job #5524, feat(roadmap): scaffold makes, resumes or adopts the item branch #5499, feat(roadmap): result lines state attempt, class, pipeline and unit #5500, feat(roadmap): add the stage Job template and one-item entry point #5483, feat(roadmap): run each stage item in its own Job #4559, feat(roadmap): eval stage compares planner input with guide text #5501).
  3. Phase 2: record the pipeline (docs(adr): record the roadmap job split and the due_jobs rule #5502, docs(adr): one roadmap-state record supersedes ADR 0001 and ADR 0016 #5235, chore(github): delete the labels that nothing writes #5503, feat(roadmap): one due_jobs function names the due jobs of an item #5504).
  4. Phase 3: the PR jobs of feat(roadmap): track the Service step jobs #5014 (refactor(github): one pull request verdict for all monitors #5021, feat(roadmap): one watch row for plan and delivery PRs #5024, feat(roadmap): the draft route and one Staged rule for watch #5505, feat(roadmap): PR, review and check events start a scoped sweep #4413, feat(roadmap): handle trusted issue_comment webhook replies #4415, fix(cloudflare): find the edge rule that answers 403 for the webhook route #5035, feat(roadmap): a fix-conflict step settles merge conflicts #5019, feat(roadmap): a fix-checks step fixes a failed check #5023, feat(roadmap): the watch row starts fix-checks Jobs #5027, feat(roadmap): the watch row starts fix-conflict Jobs #5028, feat(roadmap): the watch row starts fix-plan Jobs #5412, feat(roadmap): the implement Job opens its PR at the end #4713, refactor(roadmap): the implement Job ends at its draft #5029).
  5. Phase 4: shared state and the engine (feat(service): share the GitHub budget and holds in Valkey #4563, feat(roadmap): keep plan records and record locks in Valkey #4564, feat(roadmap): keep schedules, intake and ledgers in Valkey #4565, feat(k8s): let Argo Workflows run roadmap pods in devops #4566, feat(roadmap): run intake and scoped intake in their own pods #4567, feat(roadmap): run each refine item in its own pod #4568, feat(roadmap): run each alternatives check in its own pod #4573, feat(roadmap): Run implement as Argo Workflow with per-group resubmit #3105, feat(roadmap): run the reconcile sweep on a cluster schedule #4574, feat(service): make the webhook router stateless #4575, feat(service): redeliver webhook deliveries that failed #4560, feat(roadmap): the model container of a unit holds no credential #5506).
  6. Phase 5: intake and triage (fix(roadmap): retitle keeps a person's unlisted-type title #4620, feat(roadmap): retitle rules run as a sweep step with no model #5507, fix(roadmap): leave out changed intake candidates and count plan calls #5166, feat(roadmap): the triage unit judges the premise of a new item #5508, fix(roadmap): return unbuildable premise items during stage #4131, feat(roadmap): Emit inbox gauges, add panel, show digest line #2968, feat(roadmap): consolidate shortlists find bot families by fingerprint #4812, feat(roadmap): the group row links a family and closes on a re-check #4813, feat(roadmap): intake flags an item that a merged PR already fixed #5509, feat(roadmap): split thresholds come from measured job history #4817, feat(roadmap): the split row files the parts of a stalled item #4819, feat(k8s): run the group and split rows on schedules #4821, feat(roadmap): a blocker inherits the priority of what it blocks #5510, feat(roadmap): add incident and supervise jobs that read the SLOs #5477, feat(roadmap): supervise gives an incident P0 item extra resources #5511).
  7. Phase 6: one just-in-time research unit and resolve (feat(roadmap): eval stage leaves out one research section #5512, feat(roadmap): link reference implementations in each checked item #4672, feat(roadmap): one research unit runs its steps just in time #5513, feat(roadmap): research checks project standards and suggests changes #5514, feat(roadmap): the question resolver finds and classes open questions #4805, feat(roadmap): the question resolver answers with verified sources #4808, feat(roadmap): refine reads the answers of the question resolver #4806, feat(roadmap): an agent that needs a decision asks on the issue and waits #3077, feat(k8s): run the question resolver on a schedule #4809, feat(roadmap): refine looks again when a related item merges #5515, feat(roadmap): the alternatives check reads the brain digest #4682, feat(roadmap): keep alternatives results in a brain index #4676).
  8. Phase 7: tests, scaffold of kind delivery, and review (test(roadmap): add 26 cases to the implement golden set #5516, feat(roadmap): new tests of an implementation are checked for strength #3051, feat(roadmap): eval implement compares a separate tests pass #5517, feat(roadmap): scaffold makes the delivery branch and its stubs #5518, feat(roadmap): eval implement compares stubs with header comments #5519, feat(roadmap): a tests unit pushes failing tests behind a gate #5520, feat(review): each review session writes a job result line #5170, feat(roadmap): a review unit posts a COMMENT review on each ready PR #5521, feat(roadmap): measure the precision of the review unit on 30 PRs #5522, feat(roadmap): a job can run candidates and a judge #5533).

Suspected block

None.

Dependencies

None.

Alternatives check of 2026-11-29: in-use.
The repository already uses this tool.
Tool: argoproj/argo-workflows (https://github.com/argoproj/argo-workflows), Apache-2.0, last activity 2026-11-29, maintained.
Reason: Searches and the repository facts confirm Argo Workflows, already the engine this issue names (ADR 0008, ADR 0021), gives the job engine, mutexes, semaphores, retries and schedules; the roadmap due predicate, result lines and funnel stay the project's own code, so it covers only part.

Covers:

  • One pod per job unit, strict template checks
  • Item mutex and semaphore synchronization
  • CronWorkflow schedules, deadlines and retryStrategy
  • spec.priority ordering of unit pods

Lacks:

  • No roadmap due_jobs predicate or due marks
  • No single result line with tokens and cost
  • No GitHub request budget or per-Job key list
  • No end-to-end funnel measure

Sub-issues

Sub-issues

20 of 36 Issues completed
Loading 36 sub-issues

Activity

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

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. Owner approved the design on 2026-11-13 and measured faults show 53 of 71 restarts stopped a running stage.
    • Related: feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981, which asks for a different change. Both define what is due for roadmap jobs, but #981 is the scheduler that runs jobs while the candidate is the architectural split that defines the 24 jobs and their due predicates.
  4. added
    priority/p1-high
    on Nov 13, 2026
  5. 18 remaining items

  6. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at ffce5d9 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Which parts of the plan does only a person do? (a person decides)
  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: The searches and the repository facts found Argo Workflows, the engine the issue already names and uses (ADR 0008, ADR 0021), and it covers the unit orchestration: running each roadmap job as its own pod/template, mutexes and semaphores, spec.priority, retryStrategy, CronWorkflow schedules and deadlines. It does not cover the roadmap-specific due predicate due_jobs, the one result line per attempt with tokens and cost_usd_micros, the per-Job GitHub request budget and scoped key list, the check-out/check-in or the end-to-end funnel, which the issue plans to build in its own step modules, so it covers only a part of the need.

    The repository already uses this tool.

    Tool: argoproj/argo-workflows (https://github.com/argoproj/argo-workflows)

    • License: Apache-2.0
    • Last activity: 2026-11-17
    • Maintained: yes

    Covers:

    • Runs each roadmap job as its own unit (Workflow pod) with a template, instead of a row in the Service pod
    • Item mutexes and semaphores, so one unit runs for each item
    • spec.priority and retryStrategy for attempts
    • CronWorkflow schedules and deadlines for the sweep and recurring units

    Lacks:

    • The roadmap due predicate due_jobs(subject) as the only source of what is due
    • One result line per attempt carrying tokens and cost_usd_micros
    • A GitHub request budget for each pod and a scoped Secret key list and token for each Job
    • The check-out and check-in of each item by a job
    • The end-to-end funnel, job bands and phase exit measures

    Tools considered:

    Searches run:

    • Argo Workflows CronWorkflow mutex semaphore retryStrategy deadline, results: 5
    • open source job scheduler due predicate per-job pipeline orchestrator, results: 5
    • argo-workflows.readthedocs.io synchronization mutex semaphore workflow, results: 5
    • Argo Workflows documentation retryStrategy priority CronWorkflow deadlines, results: 5
    • argoproj argo-workflows synchronization documentation mutex semaphore, results: 5
    • argo workflows github "CronWorkflow" "retryStrategy" "priority" features, results: 5

    Sources:

    Checked on 2026-11-17. A person decides what this means for the item. The check changes no label and closes no issue.

  8. dan-petty commented on Dec 1, 2026

    @dan-petty
    OwnerAuthor

    2026-12-01: #4812 and #4813 are closed as not planned by owner decision, with #5815 and pull request #7955. The fingerprint finds no family in the open issues, and the filers that fed it file no issues now. #4821 covers the split row only, #4822 covers resolve and split, and #5509 has no group check.

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/p1-highscope/roadmapsource/agentstatus/newtype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions