Repository navigation
Description
Problem or Motivation
The roadmap Service jobs run the same steps in many copies, each with its own rules:
- Five code paths rebase or push a roadmap branch. The runner Job runs no git hook, so its final push can miss the latest
main(fix(roadmap): the final push of the implement Job can miss the latest main #4957). - Three code paths open a draft pull request. Four monitors read a pull request, with two verdict codes.
- At least 6 callers write the Status label in their own way. Six writers return an item to New, and only 2 use
apply_return. - 18 comment sites use 5 different rules.
- No job fixes a finished pull request with a merge conflict or a failed check. These pull requests wait for a person. In one week, 130 base updates had a conflict, and 75 % of them came from OpenSpec archive appends.
- The runner Job holds 1 or 4 CPU for up to 3600 s while it only watches checks.
The owner asked on 2026-11-12 (verbatim):
need to break off portions of the service jobs that need to be executed the same way every time, there should be separate jobs to:
- create and push issue branch
- create pull request from issue branch
- monitor pull request
- fix finished pull request with merge conflicts
- fix finished pull request with failing checks
- answer open issue questions
etc...
"etc." means the other steps of today's Service jobs that repeat the same way: rebase or update a branch, mark a draft ready, archive the OpenSpec change, Status sync, return an item, comment with a reason, and clean up branches.
This tracker is a part of #4517 (move Service work to Workflows and Valkey). The standing directions apply: Service work moves off the pod to Kubernetes Jobs, Argo Workflows and events; GitHub stays the source of truth; ADR 0021 (each unit has its own selection, trigger, bounds, marker and idempotency key); each push holds the latest origin/main; one issue, one pull request; only a person merges; the inner timeout fires first.
Goal
Each repeated step is one module and one command, devops roadmap step <name>, and every caller uses it. Then the steps that cost most run in their own Kubernetes Jobs, and at the end as Argo WorkflowTemplates. A model runs only in the fix and answer steps, and only after a rule.
Proposed Solution & Architectural Design
Design: extract-first, with the grafts of two judges (owner and safety: 24 against 18 and 13; value: 25 against 18 and 13 for the Argo-native and job-queue designs).
- Extract first. Each repeated step becomes
src/devops_cli/roadmap/steps/<step>.pywith a pydantic request and result, and one CLI command. Every caller uses that module: the Service rows, the stage code, the runner Job and thedevops prcommands. Each pull request changes all old call sites, with no shim. No pod moves, and no cluster object changes. - Move second, worst pain first. Stage goes into its own Job (feat(roadmap): run each stage item in its own Job #4559). The watch row starts
fix-checksandfix-conflictJobs from the runner template; the admission policy does not change. The implement Job then ends at its draft. Then the engine (feat(k8s): let Argo Workflows run roadmap pods in devops #4566, feat(roadmap): Run implement as Argo Workflow with per-group resubmit #3105) makes WorkflowTemplates and splits the keys of the model steps from the steps that write GitHub. - Short steps stay in one process. These are watch, ready, Status drift, cleanup and release comments. They run in the Service status lane now and in the sweep (feat(roadmap): run the reconcile sweep on a cluster schedule #4574) later. A pod for each tick costs more than the work (ADR 0021).
- Due marks and the sweep chain the jobs. There is no Valkey stream and no dispatcher.
| Step | Owner step | Model | Runs as now | Runs as at the end | Marker |
|---|---|---|---|---|---|
push (with rebase) |
create and push the issue branch | no | a library call in its producer | step template roadmap-step-push |
remote head SHA; push.pending, push.sha, push.base; lease |
open |
create the pull request | no | a library call in its producer | step template roadmap-step-open |
open pull request of head and base; <kind>.pr; comment upsert |
watch and ready |
monitor the pull request | no | one status-lane row | a step of the sweep | ledger of pull request and head; draft flag and expected head |
fix-conflict |
fix a finished PR with merge conflicts | tier 2 only | the runner Job calls it; then its own Job | WorkflowTemplate | unit name of PR, base and head (409) |
fix-checks |
fix a finished PR with failing checks | tier 2 only | the runner Job calls it; then its own Job | WorkflowTemplate | unit name of PR, head and check (409) |
resolve |
answer open issue questions | after the rule chain | the stewards plan (#4805-#4809) | CronWorkflow roadmap-resolve |
input hash and answers hash |
archive |
etc. | no | a library call in the implement Job | a step of the implement Workflow | the archived folder in git |
| Status writer | etc. | no | a library call | a library call and a sweep step | label equals the derived Status; read-back |
comment |
etc. | no | a library call | a library call | marker and key; the #4793 repeat guard |
return |
etc. | no | a library call (apply_return) |
a library call | comment first, then Status |
cleanup |
etc. | no | one status-lane row | a step of the sweep | orphan age; lease on the judged tip |
release-comments |
etc. | no | its row as today | a step of the sweep | marker for each release |
Step contract
- Result: the one JSON result line of feat(roadmap): log one result line for each roadmap job attempt #4845 (PR feat(roadmap): log one result line for each roadmap job attempt #4966): outcome, marks, failure_class, next and evidence. There is no second format.
- Exit codes: 0 means done or nothing to do, 1 means a typed stop, 75 means try again later. Only exit 75 gets a retry.
--dry-runsends 0 requests and returns the would-be requests in the same result type.- GitHub state is the first idempotency marker: head SHA, draft flag, mergeable state, the open pull request of head and base, and the archived folder. Record keys hold only what GitHub cannot show. Each record write reads back (fix(roadmap): repair a job record mark that a parallel write lost #4555).
- Metrics by OTLP:
devops_cli_step_result_total{step,outcome}anddevops_cli_step_duration_seconds{step}. An attempt with no result line fires an alert. - Each new unit row has the mode
off,planoron. Plan mode writes its plan to Loki and nothing to GitHub. Modeoffis the kill switch. - The inner limit fires first: request < command < step < unit < 14400 s. A Job deadline is at least 300 s above its step, because the deadline includes the pod start. A structural test holds the chain.
- Bot pull requests only. A fix step stops on an
owner/*label or on a moved head. A pull request gets fixes on at most 3 heads.
Routing of the watch verdict (one pure function, due_steps(state), which the sweep reuses for its reconcile)
| Verdict | Bot pull request | Person's pull request |
|---|---|---|
| PENDING | Read again; a failed head only after a head or base change, or after 30 min | Same |
| READY | ready: a plan gets stage.ready; a delivery gets In Review |
Nothing; a person runs devops pr ready |
| FAILED: test, lint, types, plan check | Due mark fix-checks:<pr> while rounds are left; else Blocked |
Nothing |
| FAILED: ci_infra | One comment and WAIT; with O2, one run again for each head | Nothing |
| CONFLICT | Due mark fix-conflict:<pr> |
One comment for each head |
| BEHIND, clean | Nothing (no catch-up update) | Nothing |
| MERGED or CLOSED | Status writer; cleanup for a plan |
Status writer |
Owner decisions
Only a person can make these decisions. Each has a recommended answer. An item waits for a decision only where its line says so.
- O1. May a person add the check_suite event to the repository webhook, so that the watch row learns of a check end within seconds? Recommended: Yes: add check_suite after the 403 problem (O3, webhook-403) is fixed. Only a person changes repository settings and hooks. The event only makes the watch due sooner, so a lost event costs one poll. The hook already sends pull_request. With 22 of 60 deliveries refused today, a new event before O3 also gets lost.
- O2. Grant the GitHub App the permission actions: write, so that fix-checks can run a failed ci_infra job again one time for each head? Recommended: Yes, only in fix-checks pods, one run again for each head. ci_infra is the largest failure class (91 of 156 in the stewards census). The App has checks read and actions read only (src/devops_cli/github/app_installation.py, src/devops_cli/config/constants.py:1481-1489). Only a person changes App permissions. A token request can ask for fewer permissions than the installation has, so the other pods keep read only.
- O3. If webhook-403 finds that a Cloudflare Access application or a WAF rule on hooks. refuses GitHub deliveries, may the path /webhooks/github bypass that rule? Recommended: Yes: a path-only bypass, as k8s/README.md:694 documents. This changes a security control at the edge, and only the owner can allow it (AGENTS.md rule 5). The setup in k8s/README.md:694 already asks for this bypass, so the fix restores the documented state. The route keeps its own controls: the HMAC signature check (401), the Traefik limit of 60 requests a minute (429) and the rejected-deliveries alert. A source-range rule adds upkeep each time GitHub changes its ranges.
- O4. At the engine phase (implement-workflow, feat(roadmap): Run implement as Argo Workflow with per-group resubmit #3105), split the
devops-cliSecret into a gateway-key Secret for model steps and an App-key Secret for the steps that write GitHub? Recommended: Yes, when implement-workflow lands. Only a person changes secrets. After the split, a model step that reads untrusted text holds no GitHub write credential. Before the engine, the token of a fix Job already names one repository (token_repository), so nothing changes earlier. - O5. Allow fix units to spend model tokens on finished bot pull requests: at most 4M tokens for each fix-checks Job, 2M for each fix-conflict Job, and at most 20 fix Jobs a day for each repository? Recommended: Yes, with these caps, after 1 week of plan mode. This is new recurring spend. Today the same rounds run only inside the implement Job (about 7M tokens for each Job). On the current DeepSeek route a 4M-token round costs about 0.2 USD (model-cost reference 2026-11), so 20 Jobs a day cost at most about 4 USD. Tier 1 fixes use 0 tokens. Plan mode gives the real count before any spend.
The merge of the ADR pull request (#4792) is the normal merge by a person, not a separate decision. No license exception is necessary, because the plan does not use mergiraf.
Decisions taken (best practice, reported)
- Transport: due marks and the sweep chain the jobs. ADR 0021 and ADR 0023 stand, so there is no Valkey stream and no dispatcher.
- No Service-image step Jobs before the engine. The policy admits only the runner image in 2 sizes, and a wider policy is a security control.
pushandopenstay in their producer pod until the engine. A push pod before the engine needs a git bundle to move the commits.- A rule goes before a model (ADR 0020). There is no union merge driver and no mergiraf (GPLv3).
- One command group:
devops roadmap step <name>. Thedevops prcommands call the same modules. - Row names:
watch,fix-checksandfix-conflict(12 characters or fewer, and no "repair"). - Plan mode first. The implement Job ends at its draft only after the fix Jobs reach 80 % on at least 20 runs.
- One issue, one pull request. The fix Job moves are separate issues.
- No Argo Events. The router stays the event source. The ADR gets the corrected upstream facts and the revisit conditions.
resolvestays the stewards CronWorkflow (feat(roadmap): track the issue stewards and persona selection #4780). Its model step gets no GitHub token.- The pre-push hook calls the step CLI only when the check takes 2 s or less. Else a parity test holds the hook and the step to the same predicate.
- An agent applies the refine splits of feat(roadmap): run each stage item in its own Job #4559 and feat(k8s): let Argo Workflows run roadmap pods in devops #4566 under the owner rule of 2026-11-05.
Target Subsystem
Roadmap Service jobs: src/devops_cli/roadmap/ (stage, implement, refine, status lane rows), src/devops_cli/github/pr_monitor.py, src/devops_cli/commands/pr.py, the runner CronJob and admission policy in k8s/devops/, and later the Argo WorkflowTemplates.
Existing Tool Considered
git (--force-with-lease, merge-base --is-ancestor, merge-tree --write-tree), the GitHub REST and GraphQL APIs through gidgethub, Kubernetes Jobs from the existing runner CronJob template, and Argo Workflows (ADR 0008, #1535) for the end state. Rejected: a Valkey job queue with a dispatcher (it copies Argo semaphores and needs a reversal of ADR 0021 and ADR 0023), Argo Events (a second receiver does not stop lost deliveries), the update-branch API (it refuses a conflict), the git union driver (it can keep two copies of a changed requirement) and mergiraf (GPLv3).
Cost (AGENTS.md rule 3): Phase 1 is about 14.4M agent tokens and 13 agent-days, about 2 weeks with 3 agents at a time, plus review and merge time. Phase 2 is about 5M more tokens and 3 to 5 weeks, because each fix Job has 1 week in plan mode; the engine items keep the estimates of their issues. Upkeep is about 0.1M tokens a month for each step module. At run time, fix-checks uses at most 4M tokens for each round and fix-conflict at most 2M; tier 1 fixes use 0 tokens.
Ordered child list
Each line gives the issue, its key and the items to merge first. For an existing issue, the line gives the title that its scope comment proposes. "Start now" marks an item with no unmet dependency. One issue, one pull request; never stack pull requests. After the push step merges, three agents can run the archive, open and verdict steps at the same time. A sub-issue can have only one parent, so some items stay under their earlier tracker: #4792 and #4809 under #4780, #4781 under #4771, #3077 under #3027, and #4559, #4566, #3105 and #4574 under #4517. The other items are sub-issues of this tracker.
Phase 1: one code path for each step
- docs(k8s): state the real runner stall and watch values #5016 docs(k8s): state the real runner stall and watch values (
readme-stall-values, start now). Depends on: none. - fix(service): find why webhook deliveries get HTTP 403 #5017 fix(service): alert when GitHub cannot deliver a webhook (
webhook-403, the edge check). Depends on: none. - fix(cloudflare): find the edge rule that answers 403 for the webhook route #5035 fix(cloudflare): find the edge rule that answers 403 for the webhook route (
webhook-403, the edge change; the rule is known, the change waits for O3). feat(roadmap): PR, review and check events start a scoped sweep #4413, feat(roadmap): handle trusted issue_comment webhook replies #4415 and feat(roadmap): comment releases from GitHub release webhooks #4416 need the deliveries. Depends on: O3. - docs(adr): add the resolve, group, split and step rows #4792 docs(adr): add the resolve, group, split and step rows (
adr-step-rows, start now). Depends on: none. - refactor(roadmap): one Status writer for every job #5018 refactor(roadmap): one Status writer for every job (
status-writer, start now). Depends on: none. - fix(roadmap): the final push of the implement Job can miss the latest main #4957 fix(roadmap): one push step holds main at every push (
push-step, starts when PR feat(roadmap): log one result line for each roadmap job attempt #4966 merges). Depends on: PR feat(roadmap): log one result line for each roadmap job attempt #4966. - fix(roadmap): implement runs the commit hooks on docs and archive #4781 fix(roadmap): one finish step runs docs, archive and hooks (
archive-step). Depends on: fix(roadmap): the final push of the implement Job can miss the latest main #4957. - feat(roadmap): a fix-conflict step settles merge conflicts #5019 feat(roadmap): a fix-conflict step settles merge conflicts (
fix-conflict). Depends on: fix(roadmap): the final push of the implement Job can miss the latest main #4957, fix(roadmap): implement runs the commit hooks on docs and archive #4781. - refactor(roadmap): one open step for every pull request #5020 refactor(roadmap): one open step for every pull request (
open-step). Depends on: fix(roadmap): the final push of the implement Job can miss the latest main #4957, refactor(roadmap): one Status writer for every job #5018. - refactor(github): one pull request verdict for all monitors #5021 refactor(github): one pull request verdict for all monitors (
verdict-step). Depends on: fix(roadmap): the final push of the implement Job can miss the latest main #4957. - feat(roadmap): a fix-checks step fixes a failed check #5023 feat(roadmap): a fix-checks step fixes a failed check (
fix-checks). Depends on: fix(roadmap): the final push of the implement Job can miss the latest main #4957, refactor(github): one pull request verdict for all monitors #5021. - feat(roadmap): one watch row for plan and delivery PRs #5024 feat(roadmap): one watch row for plan and delivery PRs (
watch-row). Depends on: refactor(github): one pull request verdict for all monitors #5021, refactor(roadmap): one Status writer for every job #5018. - feat(roadmap): PR, review and check events start a scoped sweep #4413 feat(roadmap): pull_request events make the watch row due (
pr-events). Depends on: feat(roadmap): one watch row for plan and delivery PRs #5024; check_suite waits for O1. - refactor(roadmap): one marked-comment writer for every job #5025 refactor(roadmap): one marked-comment writer for every job (
comment-writer). Depends on: PR fix(roadmap): a job posts no comment that repeats a recent one #4978, refactor(roadmap): one open step for every pull request #5020. - fix(roadmap): return unbuildable premise items during stage #4131 fix(roadmap): every return writer calls apply_return (
return-writer). Depends on: PR fix(roadmap): a job posts no comment that repeats a recent one #4978, refactor(roadmap): one Status writer for every job #5018. - refactor(roadmap): run the stage cleanup in the status lane #5026 refactor(roadmap): run the stage cleanup in the status lane (
cleanup-row). Depends on: fix(roadmap): the final push of the implement Job can miss the latest main #4957. - feat(roadmap): an agent that needs a decision asks on the issue and waits #3077 feat(roadmap): one question record for refine and implement (
question-record). Depends on: PR feat(roadmap): log one result line for each roadmap job attempt #4966, PR fix(roadmap): a job posts no comment that repeats a recent one #4978.
Phase 2: move the steps to their own Jobs
- feat(roadmap): run each stage item in its own Job #4559 feat(roadmap): run each stage item in its own Job (
stage-job). Depends on: 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): one Status writer for every job #5018, refactor(roadmap): run the stage cleanup in the status lane #5026; apply its refine split first. - feat(roadmap): the watch row starts fix-checks Jobs #5027 feat(roadmap): the watch row starts fix-checks Jobs (
fix-checks-job). Depends on: feat(roadmap): one watch row for plan and delivery PRs #5024, feat(roadmap): a fix-checks step fixes a failed check #5023, feat(roadmap): label Service Jobs by repository and item #4558, docs(adr): add the resolve, group, split and step rows #4792; spend waits for O5. - feat(roadmap): the watch row starts fix-conflict Jobs #5028 feat(roadmap): the watch row starts fix-conflict Jobs (
fix-conflict-job). Depends on: feat(roadmap): the watch row starts fix-checks Jobs #5027, feat(roadmap): a fix-conflict step settles merge conflicts #5019, feat(roadmap): label Service Jobs by repository and item #4558; spend waits for O5. - refactor(roadmap): the implement Job ends at its draft #5029 refactor(roadmap): the implement Job ends at its draft (
implement-ends-at-draft). Depends on: feat(roadmap): the watch row starts fix-checks Jobs #5027, feat(roadmap): the watch row starts fix-conflict Jobs #5028, feat(roadmap): the implement Job opens its PR at the end #4713. - feat(k8s): let Argo Workflows run roadmap pods in devops #4566 feat(k8s): let Argo Workflows run roadmap pods in devops (
engine). Depends on: the list in feat(k8s): let Argo Workflows run roadmap pods in devops #4566; apply its refine split first. - feat(roadmap): Run implement as Argo Workflow with per-group resubmit #3105 feat(roadmap): run implement and fix units as Workflows (
implement-workflow). Depends on: refactor(roadmap): the implement Job ends at its draft #5029, feat(roadmap): run each stage item in its own Job #4559, feat(k8s): let Argo Workflows run roadmap pods in devops #4566; the Secret split waits for O4. - feat(k8s): run the question resolver on a schedule #4809 feat(k8s): run the question resolver on a schedule (
resolve-schedule). Depends on: feat(roadmap): an agent that needs a decision asks on the issue and waits #3077, feat(roadmap): the question resolver finds and classes open questions #4805, feat(roadmap): the question resolver answers with verified sources #4808, feat(k8s): let Argo Workflows run roadmap pods in devops #4566. - feat(roadmap): run the reconcile sweep on a cluster schedule #4574 feat(roadmap): run the reconcile sweep on a cluster schedule (
sweep-steps). Depends on: feat(roadmap): one watch row for plan and delivery PRs #5024, refactor(roadmap): run the stage cleanup in the status lane #5026, feat(roadmap): keep schedules, intake and ledgers in Valkey #4565, feat(k8s): let Argo Workflows run roadmap pods in devops #4566.
Coordinate, do not take over
- refactor(pr): devops pr update acts only on a failed check #4674 (claimed):
devops pr updatecalls the rebase step when it acts. - refactor(openspec): split big capabilities into nested ones #4622 (PR refactor(openspec): split big capabilities into nested ones #4981): the source fix of spec conflicts; the fix-conflict step is the fallback.
- fix(roadmap): a job posts no comment that repeats a recent one #4793 (PR fix(roadmap): a job posts no comment that repeats a recent one #4978): the comment writer builds on its repeat guard.
- feat(roadmap): log one result line for each roadmap job attempt #4845 (PR feat(roadmap): log one result line for each roadmap job attempt #4966): the result line of every step.
- fix(github): Fix check-readiness base and monitor merged state #2530 (plan PR fix(github): Fix check-readiness base and monitor merged state #4980): coordinate with the verdict step.
Folded issues
Close each with evidence after the pull request that covers it merges. A pull request body names only its own issue after a closing keyword.
- fix(github): pr monitor reports ready when a poll reads no check #4927, fix(github): pr monitor polls again after one failed read #4838: verdict step.
- feat(roadmap): retry a refused pull request text once #3599, fix(roadmap): sync delivery PR title and type with staged plan proposal #4127: open step.
- fix(roadmap): stage_ready backs off after a failed check #3671, feat(roadmap): detect drift against default branch on open plan PRs #3968: watch row.
- feat(roadmap): handle closed plan PRs from GitHub webhooks #4414: pull_request events (feat(roadmap): PR, review and check events start a scoped sweep #4413).
- feat(roadmap): Stage items whose draft plan fails the check #3387: fix-checks step.
- feat(roadmap): automated rebase and plan rewrite for open plan branches #3969 and the conflict part of feat(roadmap): a failed verification command gets a repair round #3577: fix-conflict step.
Dependencies
- feat(roadmap): move Service work to Workflows and Valkey #4517 is the parent tracker.
- feat(roadmap): label Service Jobs by repository and item #4558, feat(roadmap): the implement Job opens its PR at the end #4713, feat(roadmap): the question resolver finds and classes open questions #4805, feat(roadmap): the question resolver answers with verified sources #4808 and feat(roadmap): keep schedules, intake and ledgers in Valkey #4565 are dependencies of single items, as each line states.
Source: #4517
Alternatives check of 2026-11-21: 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-21, maintained.
Reason: Searches surfaced no ready-made PR-fixing bot; the issue itself names Argo Workflows, which runs and schedules each step as its own pod but supplies none of the shared step contract, verdict routing or fix rules, so it covers the orchestration only.
Covers:
- Runs each step as its own pod from a stored template
- Schedules recurring steps with cron workflows
- Step-level timeouts, retries and parallelism limits
Lacks:
- No pydantic request/result or
devops roadmap step <name>CLI - No single JSON result line or off/plan/on row modes
- No
due_steps(state)verdict routing or fix-conflict/fix-checks rules
Proposed design
Problem statement
The roadmap Service jobs run the same pull request steps in many copies, each with its own rules. Five code paths rebase or push a roadmap branch, three open a draft pull request, six write the Status label, and 18 comment sites use five rules. No job fixes a finished pull request with a merge conflict or a failed check, so those pull requests wait for a person. This tracker makes each repeated pull request step one module and one command, devops roadmap step <name>, and every caller uses it. The owner direction of 2026-11-16 sets the target pipeline: the plan and implement jobs push and open no pull request, the open step opens the pull request, the fixer jobs fix it, and the review job sends it back to the fixer until it is mergeable. The watch row routes each pull request verdict through the pure function due_steps(state), and a fix job is due by that predicate, not by a due mark (owner decision of 2026-11-13, tracker #5482 Phase 3); the other rows keep due marks and the sweep.
Acceptance criteria
Requirement: One module for each repeated step
Each repeated roadmap pull request step SHALL be one module under src/devops_cli/roadmap/steps/ with a pydantic request and a pydantic result.
Scenario: One module for each step
- WHEN A structural test compares the fixed step list with the modules under
src/devops_cli/roadmap/steps/. - THEN It finds one module for
push,open,watch,ready,fix-conflict,fix-checks,status,comment,return,cleanupandrelease-comments.
Requirement: One command for each step and no copy of its rules
The CLI SHALL expose devops roadmap step <name> for each step module, and each caller MUST call that module and keep no copy of its rules.
Scenario: No caller keeps its own step logic
- WHEN A structural test searches the Service rows, the stage code, the runner Job and the
devops prcommands for step logic of their own. - THEN It finds only the step module and the
devops roadmap step <name>command.
Requirement: One JSON result line and the exit codes
Each step SHALL write one JSON result line with outcome, marks, failure_class, next and evidence, and SHALL exit 0, 1 or 75 only.
Scenario: A dry run sends no request
- WHEN A step runs with
--dry-run. - THEN It sends 0 requests and writes a result of the same type.
Requirement: One result line for each attempt
Each step attempt SHALL write one result line through the job result writer, whose RoadmapJob names the step and whose counts hold first_pass, model_calls, tokens, seconds, cost_usd_micros and gh_requests.
Scenario: A fix-checks attempt records its counts
- WHEN A
fix-checksattempt ends in a Job. - THEN It writes one result line whose job is
fix_checksand whose counts hold the six named values.
Requirement: GitHub state is the first marker
Each step SHALL read GitHub state as its first idempotency marker and SHALL read back each record write.
Scenario: A repeated push makes no second commit
- WHEN The push step runs two times for the same head.
- THEN The second run makes no new commit and records the same head.
Requirement: The watch row routes each pull request verdict
The watch row SHALL route each pull request state through the pure function due_steps(state), which the sweep and devops roadmap explain also call, and a fix row SHALL be due by that predicate and MUST set no fix due mark.
Scenario: A bot pull request with a conflict gets the fix-conflict job
- WHEN The watch row reads a bot pull request with mergeable state CONFLICT and the row
fix-conflictis in modeplanoron. - THEN
due_stepsnames the fix-conflict step for that pull request and the row writes no fix due mark, so the sweep finds the fix job due by the predicate.
Requirement: Each new row has a mode
Each new row SHALL have the mode off, plan or on, and mode plan MUST send no GitHub write.
Scenario: Plan mode writes no GitHub state
- WHEN A step runs in mode
plan. - THEN It writes its plan to the log and sends no GitHub write.
Requirement: The inner limit fires first
The inner limit of a step MUST fire before the limit that holds it, so that request < command < step < unit < 14400 s.
Scenario: The limit chain holds
- WHEN A structural test reads the configured limits of a step and of its unit.
- THEN Each inner limit is below the limit that holds it.
Requirement: Fix steps stay on bot pull requests
A fix step SHALL act only on a bot pull request, MUST stop on an owner/* label or on a moved head, and MUST fix at most 3 heads of one pull request.
Scenario: A person's pull request gets no fix step
- WHEN The watch row reads a pull request that a person wrote.
- THEN It names no fix step and writes at most one comment for each head.
Requirement: The open step checks the pull request attributes first
The open step MUST check the type, scope, summary, body, labels and Status of a bot pull request against the rules that CI runs before it creates the pull request.
Scenario: A hidden type is refused
- WHEN The open step reads a bot branch whose title type is one that
release-please-config.jsonhides. - THEN It creates no pull request and returns a typed stop.
Requirement: The pipeline order after Ready
The Service pipeline of an item after it is Ready SHALL run the push, the open step, the fixer jobs and the review job in that order, and MUST stop when the review job reports the pull request mergeable.
Scenario: A pushed bot branch gets one pull request
- WHEN A bot branch of an item is pushed and the item has no open pull request.
- THEN The open step creates exactly one pull request for that branch.
Existing Tool Considered
argoproj/argo-workflows (https://github.com/argoproj/argo-workflows), Apache-2.0, last activity 2026-11-14, is already in use. The alternatives check of 2026-11-15 gives the verdict in-use, and ADR 0008 chose the tool. The tool covers the end-state orchestration: it runs each step as its own pod from a WorkflowTemplate and schedules the recurring steps with a CronWorkflow. The tool lacks the shared step contract. It gives no pydantic request and result for each step, no devops roadmap step <name> CLI, no single JSON result line, no GitHub-state markers with read-back, no off/plan/on modes for each row, no due_steps(state) routing or sweep reconcile logic, and no fix-conflict or fix-checks rules. The plan builds that code. The written cost is about 14.4M agent tokens and 13 agent-days for the step extraction, about 5M more tokens and 3 to 5 weeks for the Job moves, and about 0.1M tokens a month for each step module.
Key questions
- May a person add the
check_suiteevent to the repository webhook, so that the watch row learns of a check end within seconds?: Yes: addcheck_suiteafter fix(service): find why webhook deliveries get HTTP 403 #5017 fixes the refused deliveries. Only a person changes repository settings and hooks (AGENTS.md:21). The hook today carries only the Issues event (docs/CLUSTER.md:39), and the edge answers 403 before the route today, so a new event added before fix(service): find why webhook deliveries get HTTP 403 #5017 is also lost (docs/CLUSTER.md:113). The event only makes the watch due sooner, so a lost event costs one poll. A person adds the event to the repository webhook. (a person decides) [sources: AGENTS.md:21, docs/CLUSTER.md:39, docs/CLUSTER.md:113] - May the GitHub App get
actions: write, so thatfix-checksruns a failedci_infrajob again one time for each head?: No for now: keepchecks: readandactions: read(src/devops_cli/config/constants.py:1617). ADR 0021 section 8 routes aci_infrafailure to one comment and a wait, not to a re-run (docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:185), so the fix-checks step needs no new App permission. Only a person changes App permissions (AGENTS.md:21). Revisit only if a measurement shows that a re-run of a failedci_infrajob is worth the new permission. (a person decides) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:185, src/devops_cli/config/constants.py:1617, AGENTS.md:21] - If fix(service): find why webhook deliveries get HTTP 403 #5017 finds that a Cloudflare Access application or a WAF rule on
hooks.<domain>refuses GitHub deliveries, may the path/webhooks/githubbypass that rule?: Yes: a path-only Bypass application for/webhooks/githubonhooks.<domain>, as docs/CLUSTER.md:37 already asks. This changes a security control at the edge, and only the owner changes an Access policy (AGENTS.md:21). The route keeps its own controls: the HMAC signature check (401) and the rejected-deliveries alert (docs/CLUSTER.md:111, docs/CLUSTER.md:113). A source-range policy adds upkeep each time GitHub changes its ranges (docs/CLUSTER.md:37). (a person decides) [sources: docs/CLUSTER.md:37, docs/CLUSTER.md:113, AGENTS.md:21] - At the engine phase, may the Secret
devops-clisplit into a gateway-key Secret for model steps and an App-key Secret for the steps that write GitHub?: Yes, when the engine phase lands (feat(roadmap): Run implement as Argo Workflow with per-group resubmit #3105). The Secretdevops/devops-cliholds the App private key (src/devops_cli/github/app_installation.py:4), and only a person changes secrets (AGENTS.md:21). After the split, a model step that reads untrusted text holds no GitHub write credential. Before the engine, the token of a fix Job already names one repository (src/devops_cli/github/app_installation.py:10), so nothing changes earlier. (a person decides) [sources: src/devops_cli/github/app_installation.py:4, src/devops_cli/github/app_installation.py:10, AGENTS.md:21] - May the fix units spend model tokens on finished bot pull requests, at most 4M tokens for each
fix-checksJob, 2M for eachfix-conflictJob, and at most 20 fix Jobs a day for each repository?: Yes, with these caps, after one week in modeplanand a measured count. The caps are the recorded ones: at most 4,000,000 tokens for eachfix-checksunit, 2,000,000 for eachfix-conflictunit, and 20 fix units a day for each repository, and tier 1 uses 0 tokens (docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:197). Modeonneeds this decision, and the new fix rows start in modeplan(docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:128), so the plan mode gives the real count before any spend. (a person decides) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:197, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:128] - How do the step jobs chain when a step makes more work due?: The watch row routes each pull request verdict through the pure function
due_steps(state)(src/devops_cli/roadmap/steps/watch.py:240; ADR 0021 section 8, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:172), which the sweep reuses for its reconcile. A fix job is due by that predicate, not by a due mark: the owner decision of 2026-11-13 (pipeline split, tracker feat(roadmap): track the roadmap pipeline split into jobs #5482 Phase 3) removes the fix due marks, and the merged watch row writes none (openspec/changes/archive/2026-11-16-5024-watch-row/design.md:16, :28). For the other rows, due marks and the sweep stay the transport, and there is no Valkey stream and no dispatcher (docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:237). The earlier block'sdue_jobs(subject)(feat(roadmap): one due_jobs function names the due jobs of an item #5504) has no source in the repository; the recorded and merged name isdue_steps(state). (best practice) [sources: src/devops_cli/roadmap/steps/watch.py:240, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:172, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:237, openspec/changes/archive/2026-11-16-5024-watch-row/design.md:28]- Chosen: One pure predicate,
due_steps(state), that the watch row, the sweep anddevops roadmap explaincall. The merged watch row routes withdue_steps(state)and writes no fix due mark, and the owner decision of 2026-11-13 (tracker feat(roadmap): track the roadmap pipeline split into jobs #5482 Phase 3) makes the fix jobs due by their predicates rather than by due marks. - Rejected: A due mark that the watch row sets and the sweep reads. ADR 0021 section 8 still names the fix due marks, but the owner decision of 2026-11-13 supersedes them for the fix rows and the merged watch row sets none.
- Rejected: A Valkey stream with a dispatcher. It copies the Argo semaphores and needs a reversal of ADR 0021 and ADR 0023; ADR 0021 section 8 keeps due marks and the sweep for the other rows and states that no dispatcher exists.
- Chosen: One pure predicate,
- Does a rule go before every model call in the fix steps?: Yes. A rule goes before a model, and a model runs only when the rule cannot decide, so tier 1 fixes use 0 tokens (ADR 0020; CONTEXT.md, Decision point). (best practice) [sources: docs/adr/0020-a-decision-point-is-a-unit-of-a-workflow-with-a-resolver-chain-and-a-rule-goes-before-a-decision-model.md, CONTEXT.md:142]
- Chosen: Rule first, model after. ADR 0020 keeps a proven rule before the decision model, and a rule settles the cheap cases with 0 tokens.
- Rejected: Model first. It is non-deterministic and spends tokens on choices that a rule can settle.
- Does the router stay the only event source, with no Argo Events?: Yes. The router stays the event source, and the plan adds no Argo Events. A second receiver does not stop a lost delivery, and the sweep finds a lost delivery within 5 minutes (ADR 0009, ADR 0021 section 1; CONTEXT.md, Sweep). (best practice) [sources: docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:31, CONTEXT.md:158]
- Chosen: Keep the router as the event source. ADR 0021 section 1 keeps the router and the sweep, and the sweep stays the source of truth.
- Rejected: Add Argo Events. It adds a second receiver and pods that run all the time, and a lost delivery stays lost.
- Do the short steps run in one process?: Yes.
watch,ready, the Status writer,cleanupandrelease-commentsrun in the sweep. A pod for each tick costs more than the work (CONTEXT.md, Step job; ADR 0021 section 8, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:233). (best practice) [sources: CONTEXT.md:169, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:233]- Chosen: Keep the short steps in the sweep. The work is shorter than the pod start and the unit cost, and ADR 0021 section 8 says a short step stays in the sweep.
- Rejected: One Job for each short step. It adds the pod start and the CPU cost for work that takes seconds.
- Do
pushandopenstay in their producer pod until the plan and implement jobs end at the push?: Yes for now. The owner direction of 2026-11-16 makes the open step a separate job that the push starts, and the open job reply of 2026-11-16 says stage and implement call the same open step until refactor(roadmap): the implement Job ends at its draft #5029 and feat(roadmap): the implement Job gates before its PR #4719 end them at the push.pushstays in its producer until the engine: ADR 0021 section 8 sayspushandopenrun inside the unit of their producer, and a push pod before the engine needs a git bundle to move the commits (docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:227). (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:227, CONTEXT.md:170]- Chosen: Stay in the producer pod until the push ends the plan and implement jobs. The producer already holds the worktree and the commits, so no git bundle is necessary, and the current pull requests get the open rules first.
- Rejected: Move
pushandopento their own Jobs now. A push pod before the engine needs a git bundle and a wider admission policy.
- Do the step Jobs run the Service image before the engine phase?: No. Before the engine, a step Job uses the runner CronJob template with arguments only, which the admission policy admits (docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:195). CONTEXT.md's Runner term says the Service creates the Job from CronJob
devops-cli-runner, and the policy admits only the runner image. (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:195, CONTEXT.md:150]- Chosen: Runner image with arguments only before the engine. The admission policy admits it now, and no cluster object changes.
- Rejected: Service image step Jobs before the engine. The policy admits only the runner image, and a wider policy is a security control.
- Which mode does each new row start in?: The row
watchstarts in modeon, because it replaces the live rowsstage_readyandpr_conflicts, and the work of those two rows must not stop. The new rowsresolve,group,split,fix-checks,fix-conflictandfix-planstart in modeplan(ADR 0021 section 8, rule 5). [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:56] - How does each step job record its attempt and its job grade?: Each attempt writes one result line through
log_job_result(src/devops_cli/roadmap/job_result.py:254), whoseRoadmapJobnames the step (src/devops_cli/roadmap/job_result.py:61) and whose counts holdfirst_pass,model_calls,tokens,seconds,cost_usd_microsandgh_requests. A step that runs as a Job sends the line to Loki. CONTEXT.md's Job grade term reads that line for the grade, and a grade of100needs a first pass on each attempt. (best practice) [sources: src/devops_cli/roadmap/job_result.py:254, src/devops_cli/roadmap/job_result.py:61, CONTEXT.md:142]- Chosen: One result line for each attempt. The job grade counts first passes, so each attempt needs its own line.
- Rejected: One result line for each step job. A second attempt would overwrite the count of the first, and the grade would read as a first pass.
Open questions
- May a person add the
check_suiteevent to the repository webhook, so that the watch row learns of a check end within seconds? (a person decides) - May the GitHub App get
actions: write, so thatfix-checksruns a failedci_infrajob again one time for each head? (a person decides) - If fix(service): find why webhook deliveries get HTTP 403 #5017 finds that a Cloudflare Access application or a WAF rule on
hooks.<domain>refuses GitHub deliveries, may the path/webhooks/githubbypass that rule? (a person decides) - At the engine phase, may the Secret
devops-clisplit into a gateway-key Secret for model steps and an App-key Secret for the steps that write GitHub? (a person decides) - May the fix units spend model tokens on finished bot pull requests, at most 4M tokens for each
fix-checksJob, 2M for eachfix-conflictJob, and at most 20 fix Jobs a day for each repository? (a person decides)
Fit
Needs splitting into 27 items:
- docs(k8s): state the real runner stall and watch values #5016 docs(k8s): state the real runner stall and watch values (
readme-stall-values) - fix(service): find why webhook deliveries get HTTP 403 #5017 fix(service): alert when GitHub cannot deliver a webhook (
webhook-403) - fix(cloudflare): find the edge rule that answers 403 for the webhook route #5035 fix(cloudflare): find the edge rule that answers 403 for the webhook route (
webhook-403), waits on O3 - docs(adr): add the resolve, group, split and step rows #4792 docs(adr): add the resolve, group, split and step rows (
adr-step-rows) - refactor(roadmap): one Status writer for every job #5018 refactor(roadmap): one Status writer for every job (
status-writer) - fix(roadmap): the final push of the implement Job can miss the latest main #4957 fix(roadmap): one push step holds main at every push (
push-step) - fix(roadmap): implement runs the commit hooks on docs and archive #4781 fix(roadmap): one finish step runs docs, archive and hooks (
archive-step) - feat(roadmap): a fix-conflict step settles merge conflicts #5019 feat(roadmap): a fix-conflict step settles merge conflicts (
fix-conflict) - refactor(roadmap): one open step for every pull request #5020 refactor(roadmap): one open step for every pull request (
open-step) - refactor(github): one pull request verdict for all monitors #5021 refactor(github): one pull request verdict for all monitors (
verdict-step) - feat(roadmap): a fix-checks step fixes a failed check #5023 feat(roadmap): a fix-checks step fixes a failed check (
fix-checks) - feat(roadmap): one watch row for plan and delivery PRs #5024 feat(roadmap): one watch row for plan and delivery PRs (
watch-row) - feat(roadmap): PR, review and check events start a scoped sweep #4413 feat(roadmap): pull_request events make the watch row due (
pr-events), the check_suite event waits on O1 - refactor(roadmap): one marked-comment writer for every job #5025 refactor(roadmap): one marked-comment writer for every job (
comment-writer) - fix(roadmap): return unbuildable premise items during stage #4131 fix(roadmap): every return writer calls apply_return (
return-writer) - refactor(roadmap): run the stage cleanup in the status lane #5026 refactor(roadmap): run the stage cleanup in the status lane (
cleanup-row) - feat(roadmap): an agent that needs a decision asks on the issue and waits #3077 feat(roadmap): one question record for refine and implement (
question-record) - feat(roadmap): run each stage item in its own Job #4559 feat(roadmap): run each stage item in its own Job (
stage-job), after its refine split - feat(roadmap): the watch row starts fix-checks Jobs #5027 feat(roadmap): the watch row starts fix-checks Jobs (
fix-checks-job), the spend waits on O5 - feat(roadmap): the watch row starts fix-conflict Jobs #5028 feat(roadmap): the watch row starts fix-conflict Jobs (
fix-conflict-job), the spend waits on O5 - refactor(roadmap): the implement Job ends at its draft #5029 refactor(roadmap): the implement Job ends at the push (
implement-ends-at-push) - feat(k8s): let Argo Workflows run roadmap pods in devops #4566 feat(k8s): let Argo Workflows run roadmap pods in devops (
engine), after its refine split - feat(roadmap): Run implement as Argo Workflow with per-group resubmit #3105 feat(roadmap): run implement and fix units as Workflows (
implement-workflow), the Secret split waits on O4 - feat(k8s): run the question resolver on a schedule #4809 feat(k8s): run the question resolver on a schedule (
resolve-schedule) - feat(roadmap): run the reconcile sweep on a cluster schedule #4574 feat(roadmap): run the reconcile sweep on a cluster schedule (
sweep-steps) - feat(roadmap): the watch row starts fix-plan Jobs #5412 feat(roadmap): the fixer jobs take a failed plan check (
fix-plan), from the owner direction of 2026-11-16 - feat(roadmap): a review job gives each bot PR its verdict #5969 feat(roadmap): a review job scores a bot pull request and sends it back to the fixer, from the owner direction of 2026-11-16
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 12, 2026
The owner gave a verbatim directive on 2026-11-12 and the pain is measurable: 130 conflicts per week and 3600 s of idle CPU per run.devops roadmap run) #981, which asks for a different change.Both work on the roadmap Service job infrastructure, but #981 adds a scheduler to trigger jobs when due while the candidate extracts the steps into separate modules and K8s Jobs.14 remaining items
dan-petty commentedon Nov 12, 2026
Owner decisions recorded (2026-11-12). The owner answered "proceed as recommended" to the recommended answers of this plan:
check_suiteevent to the repository webhook after fix(service): find why webhook deliveries get HTTP 403 #5017 (deliveries refused with HTTP 403) is fixed. The owner changes the webhook setting; agents prepare the router and the watch row for the event.actions: write, used only in fix-checks pods, for one run again of aci_infrajob per head. The owner changes the App permission and accepts it on the installation; the code asks for it only in the fix-checks token./webhooks/githubgets a path-only bypass, as k8s/README.md documents. The owner applies the edge change.devops-cliinto a gateway-key Secret and an App-key Secret when the engine phase (feat(roadmap): Run implement as Argo Workflow with per-group resubmit #3105) lands. The owner runs push-secrets after that PR merges.devops-cli-service commentedon Nov 12, 2026
The proposal at 2bd87bc needs splitting into 25 items. A person splits the item into the items below, or replies in a comment or edits the body to keep one item, and the next refine round looks at the item again.
readme-stall-values)webhook-403)webhook-403)adr-step-rows)status-writer)push-step)archive-step)fix-conflict)open-step)verdict-step)fix-checks)watch-row)pr-events)comment-writer)return-writer)cleanup-row)question-record)stage-job)fix-checks-job)fix-conflict-job)implement-ends-at-draft)engine)implement-workflow)resolve-schedule)sweep-steps)dan-petty commentedon Nov 12, 2026
Scope comment from #5164 (job grades for each agentic workflow, owner request of 2026-11-12).
Each step job of this tracker is an agentic workflow and gets a job grade. Each step writes one result line for each attempt with
log_job_result(roadmap/job_result.py), asfix_plandoes:Each line also holds the attempt counts of #5168 (
first_pass,model_calls,tokens,seconds,cost_usd_micros,gh_requests). A step that runs as a Job must send the line to Loki (#5169).devops-cli-service commentedon Nov 13, 2026
Refine cannot set this item to Ready at 4ef7c6f 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.
check_suiteevent to the repository webhook, so that the watch row learns of a check end within seconds? (a person decides)actions: write, so thatfix-checksruns a failedci_infrajob again one time for each head? (a person decides)hooks.<domain>refuses GitHub deliveries, may the path/webhooks/githubbypass that rule? (a person decides)devops-clisplit into a gateway-key Secret for model steps and an App-key Secret for the steps that write GitHub? (a person decides)fix-checksJob, 2M for eachfix-conflictJob, and at most 20 fix Jobs a day for each repository? (a person decides)dan-petty commentedon Nov 13, 2026
Owner decision 2026-11-13: the roadmap pipeline split
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. Tracker #5482 holds the ordered child list. It is a sub-issue of #4517. #5014 keeps the PR jobs of Phase 3 and their order.
What changes for #4517 and #5014
due_jobs(subject)(feat(roadmap): one due_jobs function names the due jobs of an item #5504), is the only source of what is due. The sweep, the router anddevops roadmap explaincall it. This replaces "a unit that makes work due sets a due mark" (feat(roadmap): move Service work to Workflows and Valkey #4517) and "due marks and the sweep chain the jobs" (feat(roadmap): track the Service step jobs #5014). docs(adr): record the roadmap job split and the due_jobs rule #5502 amends ADR 0021. feat(roadmap): keep schedules, intake and ledgers in Valkey #4565, 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 the reconcile sweep on a cluster schedule #4574, feat(roadmap): one watch row for plan and delivery PRs #5024, feat(roadmap): the watch row starts fix-checks Jobs #5027, feat(roadmap): the watch row starts fix-conflict Jobs #5028 and feat(roadmap): the watch row starts fix-plan Jobs #5412 got an owner-decision section.devops reviewon the diff before marking PR ready #3049 and feat(roadmap): Add a draft PR evaluator for issue and rules #2867 (by feat(roadmap): a review unit posts a COMMENT review on each ready PR #5521), docs(roadmap): Compare safe-outputs with the implement Job write path #3109 (by feat(roadmap): the model container of a unit holds no credential #5506), docs(adr): link the naming record ADR 0022 and the move record ADR 0021 #4617 (by docs(adr): record the roadmap job split and the due_jobs rule #5502). feat(roadmap): track the pipeline split into 24 jobs #5474 asked for the same tracker and is closed as a duplicate of feat(roadmap): track the roadmap pipeline split into jobs #5482.Decisions (approved)
trialfield of feat(roadmap): trial a model tier on a share of a job's attempts #5177.-nbranch suffix now; a two-branch check; parallel work goes to split sub-issues.updated_atcheck and the outside-text compare.pull_request,pull_request_review,check_suiteandissue_comment; new permissions are deferred.Phase order
0 plan fixes and measures; 1 the stage Job; 2 the ADR record and
due_jobs(in parallel with 1); 3 the PR jobs of #5014; 4 Valkey and the engine; 5 intake and triage (in parallel with 3 and 4); 6 research and resolve (after band 70 and the safe-outputs split); 7 tests and review.Delivery rule
Owner steps
fix_planon after fix(roadmap): only blocker and major review findings block a plan #5411 merges (D9).plan.devops-cliKubernetes secret object).devops-cli-service commentedon Nov 13, 2026
Refine cannot set this item to Ready at 6eae498 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.
hooks.<domain>refuses GitHub deliveries, may the path/webhooks/githubbypass that rule? (a person decides)devops-clisplit into a gateway-key Secret for model steps and an App-key Secret for the steps that write GitHub? (a person decides)devops-cli-service commentedon Nov 15, 2026
Alternatives check: in-use
Reason: The searches found no library that gives the shared step contract this tracker asks for, but they confirm Argo Workflows as the open, maintained Kubernetes workflow engine that the project's ADR 0008 already chose and that ADR 0021 keeps as the engine. It covers the end-state orchestration of the steps as WorkflowTemplates and CronWorkflows, yet it provides none of the step modules, the
devops roadmap step <name>CLI, the JSON result line, the GitHub-state markers or the fix-conflict/fix-checks logic, 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)
Covers:
Lacks:
devops roadmap step <name>CLI and no extraction of the duplicated call sites (push, open, Status, comment, return, cleanup).due_jobs(subject)routing or sweep reconcile logic.Tools considered:
Searches run:
Sources:
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 16, 2026
Owner direction 2026-11-16, the target pipeline for an item after it is Ready:
devops cipasses, and then push their branch. They open no pull request (feat(roadmap): the implement Job gates before its PR #4719, refactor(roadmap): the implement Job ends at its draft #5029).fix-checks,fix-conflict,fix-plan; started by 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), and marks it ready for review.Owner reason: "I'm waking up to 20 service prs a day that are failing checks or otherwise not mergeable. I want to work more issues, not less."
dan-petty commentedon Nov 16, 2026
Open job (#5974), build started 2026-11-16 13:55Z. The open step owns the attributes of each bot pull request and checks them with the rules that CI runs, before it creates the pull request:
release-please-config.jsonhides (docs,test,build,ci,style); the item givesfeat,fix,perf,refactororrevert(ci(pr-title): a hidden-type title fails when src code changes #5224 rule,.github/workflows/pr-title.yml)..github/labels.ymldeclares.subjectPattern).Plans #Nfor a plan-only pull request.A row with the modes
off,planandonopens a pull request for a pushed bot branch of an item that has none. Stage and implement call the same step until #5029 and #4719 end them at the push, so the current pull requests get the rules first.feat(roadmap): score each bot pull request by its first verdict (#5975)
devops-cli-service commentedon Nov 16, 2026
Owner question: May a person add the
check_suiteevent to the repository webhook, so that the watch row learns of a check end within seconds? (a person decides)Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 16, 2026
Measure for the split, 2026-11-16 (#6008): stage success falls with the effort of the item. Attempts that opened a plan: low 11/17 (65%), medium 31/69 (45%), high 3/10 (30%); items with any success 85%, 65% and 43%; an ordered trend test gave p of about 0.05 (one-sided). The failures of medium and high items are mostly
plan_defect(25 of 38 medium failures). The eventual merge rate of plan PRs does not fall with effort (low 10/15, medium 44/49, high 4/4), so effort predicts the count of stage attempts, not the result. Use for the split: plan a medium or high item in smaller steps before stage, or give it a larger plan budget; implement had too few attempts (25 items, no high item) to tell.fix(roadmap): Keep blockers that a sentence opens with other words (#…