Skip to content

feat(roadmap): track the Service step jobs #5014

Open
17 of 20 issues completed
Open

Description

@dan-petty

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).

  1. Extract first. Each repeated step becomes src/devops_cli/roadmap/steps/<step>.py with a pydantic request and result, and one CLI command. Every caller uses that module: the Service rows, the stage code, the runner Job and the devops pr commands. Each pull request changes all old call sites, with no shim. No pod moves, and no cluster object changes.
  2. 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-checks and fix-conflict Jobs 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.
  3. 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).
  4. 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-run sends 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} and devops_cli_step_duration_seconds{step}. An attempt with no result line fires an alert.
  • Each new unit row has the mode off, plan or on. Plan mode writes its plan to Loki and nothing to GitHub. Mode off is 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-cli Secret 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.
  • push and open stay 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>. The devops pr commands call the same modules.
  • Row names: watch, fix-checks and fix-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.
  • resolve stays 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

Phase 2: move the steps to their own Jobs

Coordinate, do not take over

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.

Dependencies

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, cleanup and release-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 pr commands 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-checks attempt ends in a Job.
  • THEN It writes one result line whose job is fix_checks and 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-conflict is in mode plan or on.
  • THEN due_steps names 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.json hides.
  • 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_suite event to the repository webhook, so that the watch row learns of a check end within seconds?: Yes: add check_suite after 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 that fix-checks runs a failed ci_infra job again one time for each head?: No for now: keep checks: read and actions: read (src/devops_cli/config/constants.py:1617). ADR 0021 section 8 routes a ci_infra failure 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 failed ci_infra job 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/github bypass that rule?: Yes: a path-only Bypass application for /webhooks/github on hooks.<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-cli split 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 Secret devops/devops-cli holds 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-checks Job, 2M for each fix-conflict Job, and at most 20 fix Jobs a day for each repository?: Yes, with these caps, after one week in mode plan and a measured count. The caps are the recorded ones: at most 4,000,000 tokens for each fix-checks unit, 2,000,000 for each fix-conflict unit, 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). Mode on needs this decision, and the new fix rows start in mode plan (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's due_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 is due_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 and devops roadmap explain call. The merged watch row routes with due_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.
  • 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, cleanup and release-comments run 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 push and open stay 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. push stays in its producer until the engine: ADR 0021 section 8 says push and open run 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 push and open to 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 watch starts in mode on, because it replaces the live rows stage_ready and pr_conflicts, and the work of those two rows must not stop. The new rows resolve, group, split, fix-checks, fix-conflict and fix-plan start in mode plan (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), whose RoadmapJob names the step (src/devops_cli/roadmap/job_result.py:61) and whose counts hold first_pass, model_calls, tokens, seconds, cost_usd_micros and gh_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 of 100 needs 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_suite event 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 that fix-checks runs a failed ci_infra job 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/github bypass that rule? (a person decides)
  • At the engine phase, may the Secret devops-cli split 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-checks Job, 2M for each fix-conflict Job, and at most 20 fix Jobs a day for each repository? (a person decides)

Fit

Needs splitting into 27 items:

  1. docs(k8s): state the real runner stall and watch values #5016 docs(k8s): state the real runner stall and watch values (readme-stall-values)
  2. fix(service): find why webhook deliveries get HTTP 403 #5017 fix(service): alert when GitHub cannot deliver a webhook (webhook-403)
  3. 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
  4. docs(adr): add the resolve, group, split and step rows #4792 docs(adr): add the resolve, group, split and step rows (adr-step-rows)
  5. refactor(roadmap): one Status writer for every job #5018 refactor(roadmap): one Status writer for every job (status-writer)
  6. 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)
  7. fix(roadmap): implement runs the commit hooks on docs and archive #4781 fix(roadmap): one finish step runs docs, archive and hooks (archive-step)
  8. feat(roadmap): a fix-conflict step settles merge conflicts #5019 feat(roadmap): a fix-conflict step settles merge conflicts (fix-conflict)
  9. refactor(roadmap): one open step for every pull request #5020 refactor(roadmap): one open step for every pull request (open-step)
  10. refactor(github): one pull request verdict for all monitors #5021 refactor(github): one pull request verdict for all monitors (verdict-step)
  11. feat(roadmap): a fix-checks step fixes a failed check #5023 feat(roadmap): a fix-checks step fixes a failed check (fix-checks)
  12. feat(roadmap): one watch row for plan and delivery PRs #5024 feat(roadmap): one watch row for plan and delivery PRs (watch-row)
  13. 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
  14. refactor(roadmap): one marked-comment writer for every job #5025 refactor(roadmap): one marked-comment writer for every job (comment-writer)
  15. fix(roadmap): return unbuildable premise items during stage #4131 fix(roadmap): every return writer calls apply_return (return-writer)
  16. refactor(roadmap): run the stage cleanup in the status lane #5026 refactor(roadmap): run the stage cleanup in the status lane (cleanup-row)
  17. 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)
  18. 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
  19. 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
  20. 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
  21. refactor(roadmap): the implement Job ends at its draft #5029 refactor(roadmap): the implement Job ends at the push (implement-ends-at-push)
  22. 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
  23. 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
  24. feat(k8s): run the question resolver on a schedule #4809 feat(k8s): run the question resolver on a schedule (resolve-schedule)
  25. feat(roadmap): run the reconcile sweep on a cluster schedule #4574 feat(roadmap): run the reconcile sweep on a cluster schedule (sweep-steps)
  26. 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
  27. 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.

Sub-issues

Sub-issues

17 of 20 Issues completed
Loading 20 sub-issues

Activity

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

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. 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.
    • Related: feat(roadmap): run the roadmap jobs when they are due (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.
  4. added
    priority/p1-high
    on Nov 12, 2026
  5. 14 remaining items

  6. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Owner decisions recorded (2026-11-12). The owner answered "proceed as recommended" to the recommended answers of this plan:

    • O1: yes. Add the check_suite event 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.
    • O2: yes. Grant the App actions: write, used only in fix-checks pods, for one run again of a ci_infra job 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.
    • O3: yes. If fix(service): find why webhook deliveries get HTTP 403 #5017 finds that a Cloudflare Access or WAF rule refuses GitHub deliveries, /webhooks/github gets a path-only bypass, as k8s/README.md documents. The owner applies the edge change.
    • O4: yes. Split Secret devops-cli into 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.
    • O5: yes. Fix units may spend model tokens on finished bot PRs: at most 4M tokens per fix-checks Job, 2M per fix-conflict Job, at most 20 fix Jobs a day per repository, after one week in plan mode.
  7. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    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.

    1. docs(k8s): state the real runner stall and watch values #5016 docs(k8s): state the real runner stall and watch values (readme-stall-values)
    2. fix(service): find why webhook deliveries get HTTP 403 #5017 fix(service): alert when GitHub cannot deliver a webhook (webhook-403)
    3. 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)
    4. docs(adr): add the resolve, group, split and step rows #4792 docs(adr): add the resolve, group, split and step rows (adr-step-rows)
    5. refactor(roadmap): one Status writer for every job #5018 refactor(roadmap): one Status writer for every job (status-writer)
    6. 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)
    7. fix(roadmap): implement runs the commit hooks on docs and archive #4781 fix(roadmap): one finish step runs docs, archive and hooks (archive-step)
    8. feat(roadmap): a fix-conflict step settles merge conflicts #5019 feat(roadmap): a fix-conflict step settles merge conflicts (fix-conflict)
    9. refactor(roadmap): one open step for every pull request #5020 refactor(roadmap): one open step for every pull request (open-step)
    10. refactor(github): one pull request verdict for all monitors #5021 refactor(github): one pull request verdict for all monitors (verdict-step)
    11. feat(roadmap): a fix-checks step fixes a failed check #5023 feat(roadmap): a fix-checks step fixes a failed check (fix-checks)
    12. feat(roadmap): one watch row for plan and delivery PRs #5024 feat(roadmap): one watch row for plan and delivery PRs (watch-row)
    13. feat(roadmap): PR, review and check events start a scoped sweep #4413 feat(roadmap): pull_request events make the watch row due (pr-events)
    14. refactor(roadmap): one marked-comment writer for every job #5025 refactor(roadmap): one marked-comment writer for every job (comment-writer)
    15. fix(roadmap): return unbuildable premise items during stage #4131 fix(roadmap): every return writer calls apply_return (return-writer)
    16. refactor(roadmap): run the stage cleanup in the status lane #5026 refactor(roadmap): run the stage cleanup in the status lane (cleanup-row)
    17. 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)
    18. feat(roadmap): run each stage item in its own Job #4559 feat(roadmap): run each stage item in its own Job (stage-job)
    19. feat(roadmap): the watch row starts fix-checks Jobs #5027 feat(roadmap): the watch row starts fix-checks Jobs (fix-checks-job)
    20. feat(roadmap): the watch row starts fix-conflict Jobs #5028 feat(roadmap): the watch row starts fix-conflict Jobs (fix-conflict-job)
    21. refactor(roadmap): the implement Job ends at its draft #5029 refactor(roadmap): the implement Job ends at its draft (implement-ends-at-draft)
    22. feat(k8s): let Argo Workflows run roadmap pods in devops #4566 feat(k8s): let Argo Workflows run roadmap pods in devops (engine)
    23. feat(roadmap): Run implement as Argo Workflow with per-group resubmit #3105 feat(roadmap): run implement and fix units as Workflows (implement-workflow)
    24. feat(k8s): run the question resolver on a schedule #4809 feat(k8s): run the question resolver on a schedule (resolve-schedule)
    25. feat(roadmap): run the reconcile sweep on a cluster schedule #4574 feat(roadmap): run the reconcile sweep on a cluster schedule (sweep-steps)
  8. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    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), as fix_plan does:

    Step Attempt Intended result First pass
    fix-conflict (#5019) one attempt on one pull request the conflict is gone at the next watch gone after round 1
    fix-checks (#5023) one attempt on one failed check the check passes at the next watch passes after round 1
    watch row (#5024, #5027, #5028) one watch round of one pull request a verdict, and the start of the step that the verdict asks for no failed request

    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).

  9. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    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.

    • May a person add the check_suite event 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 that fix-checks runs a failed ci_infra job 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/github bypass that rule? (a person decides)
    • At the engine phase, may the Secret devops-cli split 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-checks Job, 2M for each fix-conflict Job, and at most 20 fix Jobs a day for each repository? (a person decides)
  10. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    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

    Decisions (approved)

    • D1: scaffold is a step module with its own command and result line, and 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: no -n branch suffix now; a two-branch check; parallel work goes to split sub-issues.
    • D3: one Staged rule for each item by the effort pass, never two paths on one head.
    • D4: no new label; remove the labels that nothing writes (chore(github): delete the labels that nothing writes #5503).
    • D5: the record stays in the issue body, with one writer, the updated_at check and the outside-text compare.
    • D6: the tests job pushes failing tests behind a gate, only after E3.
    • D7: watch drafts a bot PR only on deterministic verdicts (at most 3 cycles); review posts a COMMENT review and never approves.
    • D8: the App gets the events pull_request, pull_request_review, check_suite and issue_comment; new permissions are deferred.
    • D9: spend switches go on in steps, each from a measured cost.
    • D10: extra P0 resources only for incident classes, under a daily cap; no PriorityClass.

    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

    • Each job issue has a live proof. After the merge and the release, the job runs as the App in the cluster against real issues, branches and PRs. A comment gives the result lines.
    • When a build or a live job keeps failing, divide it into smaller sub-issues and refine them. Do not retry it. "Keeps failing" means two failed build attempts, or a job under band 70 after its phase.
    • Work the worst-failing job first, and rank the open children again after each phase from the job grades and the funnel.

    Owner steps

  11. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    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.

    • 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/github bypass that rule? (a person decides)
    • At the engine phase, may the Secret devops-cli split into a gateway-key Secret for model steps and an App-key Secret for the steps that write GitHub? (a person decides)
  12. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    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)

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

    Covers:

    • Runs each roadmap step as its own pod from a WorkflowTemplate, with its own resources and deadline.
    • A CronWorkflow schedules the recuring steps such as resolve and the sweep.
    • Offers step-based workflows and a per-template retry policy in Kubernetes, without a separate queue service.
    • Gives pod-per-step isolation on the existing cluster.

    Lacks:

    • No shared step contract: no pydantic request and result per step and no single JSON result line.
    • No devops roadmap step <name> CLI and no extraction of the duplicated call sites (push, open, Status, comment, return, cleanup).
    • No GitHub-state idempotency markers or read-back, and no off/plan/on modes for each row.
    • No due_jobs(subject) routing or sweep reconcile logic.
    • No fix-conflict or fix-checks rules and model calls; those stay project code.
    • No answer to the owner questions (webhook bypass, Secret split, model spend), which are not tool features.

    Tools considered:

    Searches run:

    • mergiraf merge conflict resolution tool license, results: 5
    • open source bot automatically fix failing CI checks and merge conflicts on pull requests, results: 5
    • Argo Workflows WorkflowTemplate CronWorkflow run each step as a pod, results: 5
    • argoproj argo-workflows GitHub, results: 5
    • Temporal durable workflow orchestration Kubernetes, results: 5
    • mergiraf, results: 5
    • argo-workflows.readthedocs.io WorkflowTemplates CronWorkflows retryStrategy, results: 5
    • Mergify Kodiak automatically rebase pull request on conflict and rerun failing checks, results: 5

    Sources:

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

  13. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    Owner direction 2026-11-16, the target pipeline for an item after it is Ready:

    1. The plan job and the implement job work until devops ci passes, 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).
    2. A separate job opens the pull request (the open step of refactor(roadmap): one open step for every pull request #5020), started by the push.
    3. A fixer job takes each bot pull request with failing checks, fixes it (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.
    4. A review job scores the pull request with the verdicts of feat(roadmap): the PR review gate scores each bot PR #5968 and sends it back to the fixer when it needs a fix (feat(roadmap): a review job gives each bot PR its verdict #5969). Fix and review repeat 2 or 3 times.
    5. When the review job says the pull request is mergeable, the Service pipeline is done with that issue until a person merges it.

    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."

  14. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    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:

    • Type: a diff that changes runtime code never gets a type that release-please-config.json hides (docs, test, build, ci, style); the item gives feat, fix, perf, refactor or revert (ci(pr-title): a hidden-type title fails when src code changes #5224 rule, .github/workflows/pr-title.yml).
    • Scope: a scope that .github/labels.yml declares.
    • Summary: 60 characters or fewer (subjectPattern).
    • Body: within the limit; a closing keyword only for the delivered issue, or Plans #N for a plan-only pull request.
    • Labels and Status: set in one place.

    A row with the modes off, plan and on opens 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.

  15. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Owner question: May a person add the check_suite event to the repository webhook, so that the watch row learns of a check end within seconds? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  16. dan-petty commented on Nov 16, 2026

    @dan-petty
    OwnerAuthor

    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.

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