Repository navigation
Description
Problem or Motivation
- 9 refine split proposals wait for a person. The oldest waits 14 days.
- feat(k8s): let Argo Workflows run roadmap pods in devops #4566, the engine of each unit, waits for a split into 3 parts.
- 5 blocked implements stopped with a size cause on plans with 3 or more numbered groups: feat(roadmap): map all issue requirements to a group #3253, test(roadmap): fault-injection tests prove the pipeline recovers #3075, fix(roadmap): the implement plan gate runs the OpenSpec validation too #3429, feat(roadmap): a plan that deletes a guard check records the weakened check #3320 and fix(k8s): a direct embedding call must not reach the 48 GiB tier #3574.
No job applies a split.
Proposed Solution & Architectural Design
Add devops roadmap split with --plan, --confirm and --dry-run, and the ServiceRow member split:
- Triggers.
stage.needs_split,refine.needs_split, a refine split that nobody applied, and size-cause failures above the thresholds of feat(roadmap): split thresholds come from measured job history #4817. A size-cause failure is: a stageplan_defector parser failure two times on one text hash; a refused plan (a stage gate refusal, or a plan pull request closed with no merge); an implement stop (limit_reached,timeout,plan_defect,no_change_in_fix, or no repair rounds left); a FailureLedger suspend; or no progress past the fitted stall age. - Stall classifier. It removes
ci_infra, provider,refused_tool, conflict, open-dependency and person-wait causes first.ci_infrais 91 of 156 failures. - Split call. One item-level call of
stage_split.pywithroadmap_stage_split.md, and 1 repair. - Deterministic checks. Each parent criterion goes to one part. Each part is under the threshold. The order has no cycle.
- Filing. Intake files 2 to 5 parts with "Split from #N." and
#Ndependencies; the agentic judge (fix(roadmap): the jobs trust the items that the Service App opens #3502) checks them. Each part becomes a sub-issue of the parent (add_sub_issue). One parent comment gives the measured reason with n and the window. - Resume.
SplitRecordKeylists the parts that are filed before the next filing. - An item with a milestone gets the comment only. Skip trackers, started or claimed items and declined split ids.
- Spend cap: 0.05 USD a run.
#3576 and #3724 stay the in-item split path.
Target Subsystem
SDLC, Git & PR Governance (roadmap jobs).
Existing Tool Considered
The stage split code (stage_split.py, roadmap_stage_split.md), intake, the agentic judge and the GitHub REST sub-issues API. Cost to build: about 150,000 tokens and 5 hours. Run cost: about 0.10 USD a week; hard cap 0.20 USD a day.
Acceptance Criteria
- A fixture of feat(k8s): let Argo Workflows run roadmap pods in devops #4566 gives 3 parts that cover each criterion one time.
- A stop after part 2 of 3 files only part 3 on the next run.
- A
limit_reacheditem with 2 numbered groups is not split. - A
ci_infrastop is not split. - An item with a milestone gets no parts.
Dependencies
- feat(roadmap): split thresholds come from measured job history #4817
- fix(roadmap): a job posts no comment that repeats a recent one #4793
Source: #4780
Owner decision 2026-11-13
Split is due for the label needs-split or for a stage return with the cause too-large. Parallel work on one issue goes to split sub-issues, each with one branch and one PR (D2). Source: tracker #5482.
- Live proof: after the merge and the release, split runs as the App in mode
planon the items withneeds-split. A comment gives the result lines.
Alternatives check of 2026-11-26: partly.
Tool: eyaltoledano/claude-task-master (https://github.com/eyaltoledano/claude-task-master), NOASSERTION, last activity 2026-04-28, maintained.
Reason: Searches found no roadmap splitter, only the maintained task-master CLI, which does AI decomposition of one task into dependency-ordered subtasks; it files no GitHub sub-issues and has no stall triggers, deterministic checks, resume or spend cap.
Covers:
- Model call that expands one task into ordered subtasks
- Dependency links between the generated subtasks
- Token and cost accounting for model calls
Lacks:
- No filing of parts as GitHub sub-issues
- No stall-cause classification or needs-split trigger
- No deterministic criterion-coverage check and no resume record
- No per-run spend cap or item bounds
Proposed design
Problem statement
Nine refine split proposals wait for a person, and the oldest waits 14 days. #4566 waits for a split into 3 parts. Five blocked implements stopped with a size cause on plans with 3 or more numbered groups. No job applies a split, so the roadmap needs the split row and devops roadmap split. A live proof waits on the merge and release.
Acceptance criteria
Requirement: Split trigger
The split row SHALL select an open item only when the item is not a tracker, is not Started, has no claim, and holds the needs-split label or its stage return names the cause too-large.
Scenario: A marked item is selected
- WHEN An open item that is not a tracker and not Started holds the
needs-splitlabel and no claim - THEN
devops roadmap split --planlists the item once and makes one item-level split call for it
Requirement: Size causes
The split row SHALL treat a stage plan_defect or parser failure twice on one text hash, a refused plan, an implement stop in limit_reached, timeout, plan_defect or no_change_in_fix, an implement stop with no repair round left, a FailureLedger suspend, and no progress past the fitted stall age as a size cause.
Scenario: A refused plan
- WHEN An item's plan pull request is closed with no merge and its stage return names the cause
too-large - THEN The row selects the item for a split and its result line names the refused plan as the cause
Requirement: Size cause under the threshold
The split row SHALL file no part for an item whose size cause is under the fitted threshold.
Scenario: Two numbered groups
- WHEN An item stopped with
limit_reachedand its plan has 2 numbered groups - THEN The row files no part and its result line names the reason
under_threshold
Requirement: Non-size causes are removed
The split row SHALL remove the causes ci_infra, provider, refused_tool, conflict, open dependency and person wait before it calls the split.
Scenario: An infrastructure stop
- WHEN An item with the class
ci_infraholds theneeds-splitlabel - THEN The row files no part and its result line names the cause
ci_infra
Requirement: One criterion in one part
The split SHALL put each acceptance criterion of the parent in exactly one part, keep each part under the size threshold and order the parts with no cycle.
Scenario: The #4566 fixture
- WHEN The split runs on the fixture of feat(k8s): let Argo Workflows run roadmap pods in devops #4566 with 3 criteria
- THEN The 3 parts hold each criterion one time and the order of the parts has no cycle
Requirement: One split call and one repair
The split SHALL make one item-level call of stage_split.py with the item split prompt roadmap_split.md and at most 1 repair.
Scenario: A refused split reply
- WHEN The first split reply fails a deterministic check
- THEN The row makes 1 repair call and files no part when the repair also fails
Requirement: Parts are sub-issues of the parent
The split SHALL file 2 to 5 parts through intake with the parent as their source, so each part is a sub-issue of the parent with the line Split from #N. and a dependency on #N.
Scenario: Filed parts
- WHEN The split files the parts of item #N
- THEN Each part is a sub-issue of #N, its body holds
Split from #N.and its dependencies hold#N
Requirement: Resume after a stop
The split SHALL record split.input_hash, split.parts and split.filed_at in the item's job record and file only the parts that split.parts does not list.
Scenario: Stop after part 2 of 3
- WHEN A run files part 1 and part 2 and stops before part 3
- THEN The next run reads
split.partsand files part 3 only
Requirement: Milestone item gets the comment only
The split SHALL file no part for an item that holds a milestone.
Scenario: An item in a milestone
- WHEN An item with the
needs-splitlabel holds a milestone - THEN The row writes the reason comment on the item and files no part
Requirement: Reason comment
The split SHALL write one comment on the parent that names the measured reason, its count n and its window.
Scenario: A split of a stalled item
- WHEN The row splits item #N
- THEN One comment on #N names the stall cause, the count n of the failures and the window of days
Requirement: Plan mode writes nothing
The split SHALL write no sub-issue, dependency or comment without --confirm.
Scenario: Plan mode
- WHEN The row runs with
--planon an item that holds theneeds-splitlabel - THEN It calls the model, prints the planned parts and the spend, and writes nothing to GitHub
Requirement: Dry run sends no request
devops roadmap split --dry-run MUST send no external request, a read included, and print the requests a run would make.
Scenario: Dry run
- WHEN The row runs with
--dry-runon an item that holds theneeds-splitlabel - THEN It makes no GitHub or model request, writes no sub-issue, dependency or comment, and exits 0
Requirement: Run bounds
The split SHALL stop a run at 2 items, 5 parts an item, 10 parts a day, 300,000 tokens an item and 0.05 USD.
Scenario: A third item in one run
- WHEN A run has split 2 items and a third item is due
- THEN The row stops before the third item and its result line names the item bound
Requirement: Split row schedule
The split row SHALL run as the CronWorkflow roadmap-split every 6 hours with the semaphore steward.
Scenario: The split workflow is valid
- WHEN The repository runs
uv run devops ci --check --only k8s - THEN The check accepts the
roadmap-splitCronWorkflow with its 6-hour schedule andstewardsemaphore
Requirement: Pending a person after the merge
After the merge and the release, a person SHALL run devops roadmap split --plan as the App on the items with needs-split and record the result lines in a comment.
Scenario: Live proof after the release
- WHEN The change is merged and released, and items hold the
needs-splitlabel - THEN The run prints the result lines for the selected items and a person records them in a comment
Existing Tool Considered
No open, maintained tool or library covers the need. The alternatives check in the issue body (2026-11-21) returned none and named no tool. Its comment records that it considered eyaltoledano/claude-task-master and found that the tool lacks the stall triggers, the deterministic split checks, the sub-issue filing, the resume and the spend cap. The change extends existing repository code (stage_split.py, intake and store.add_sub_issue) at a written cost of about 150,000 tokens and 5 hours. The run cost is about 0.10 USD a week, with a hard cap of 0.20 USD a day and 0.05 USD a run.
Key questions
- When does the roadmap file a split, and where does parallel work on one item go?: The owner decision of 2026-11-13 makes the row due for the
needs-splitlabel or for a stage return with the causetoo-large. The size causes that set those marks are the ones in ADR 0021:158. Parallel work on one item goes to split sub-issues, each with one branch and one pull request (ADR 0012:148 and ADR 0021:160). (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:158, docs/adr/0012-releases-are-derived-by-release-please-from-trunk-and-milestones-are-planning-buckets.md:148, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:160, CONTEXT.md:174]- Chosen: The
needs-splitlabel or a stage return with the causetoo-large. The owner decision names the two marks, and feat(roadmap): split thresholds come from measured job history #4817 turns the size causes into the marks. - Rejected: The full stall list of the Proposed Solution as the row trigger. The owner decision names the two marks, and the full list is what the classifier measures to set them.
- Chosen: The
- Which stall causes does the row remove before it calls the split?: It removes
ci_infra, provider,refused_tool, conflict, open dependency and person wait first (ADR 0021:159).ci_infrais the class of a failure that no rule matches (docs/ROADMAP_WORKFLOW.md:198andsrc/devops_cli/roadmap/failure.py:57). The issue measuresci_infraat 91 of 156 failures. (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:159, docs/ROADMAP_WORKFLOW.md:198, src/devops_cli/roadmap/failure.py:57]- Chosen: Classify the stall and remove the non-size causes first. A split of an outage or a person wait makes a part that no size cause needs.
- Rejected: Split each stalled item that holds the label. Most stalled items stopped on
ci_infra, and a split of one spends a model call for no part.
- Which row and which
ServiceRowmember runs the split?: The rowsplituses the existing memberServiceRow.SPLITatsrc/devops_cli/github/repo_ref.py:69. The member is already present, so the change adds no enum value. The row starts in modeplan(ADR 0021:128) and runs as CronWorkflowroadmap-splitevery 6 hours with the semaphoresteward(ADR 0021:162). (best practice) [sources: src/devops_cli/github/repo_ref.py:69, 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/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:162, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:65]- Chosen: New row
splitwith the existingServiceRow.SPLITmember. ADR 0022 names SPLIT among the members ofServiceRow, and the member already exists atrepo_ref.py:69. - Rejected: Run the split inside the refine or stage row. One unit of work runs one job, so a second model call in refine or stage mixes two jobs.
- Chosen: New row
- How does the row file a part and link it to the parent?: It files each part through intake with
NewCandidate.sourceset to the parent. Intake creates the issue and callsstore.add_sub_issue(parent, number)(src/devops_cli/roadmap/intake/intake.py:1391). The part body carries the lineSplit from #N.and its dependencies carry#N. The source also keeps the parent and its other parts out of the duplicate check (_apart,src/devops_cli/roadmap/intake/intake.py:831). (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:160, src/devops_cli/roadmap/intake/intake.py:831, src/devops_cli/roadmap/intake/intake.py:1391, src/devops_cli/roadmap/stores/store.py:1127, src/devops_cli/roadmap/stores/github_store.py:956]- Chosen: Intake with
NewCandidate.sourceset to the parent. ADR 0021:160 says intake files the parts, and intake calls the store methodadd_sub_issue. - Rejected: The store method
add_sub_issuedirectly from the row. It skips the duplicate and placement rules of intake, which the parts need. - Rejected: A REST call from the row. It adds a second path to the same API.
- Chosen: Intake with
- Where does the row keep the parts that it filed, so a stopped run files only the rest?: In the item's job record in the issue body, under
split.input_hash,split.partsandsplit.filed_at(ADR 0021:164). The code declares them asSplitRecordKey, the same family asStageRecordKey, and joins the family toJobRecordand_JOB_RECORD_KEYS(src/devops_cli/roadmap/stores/store.py:744), so a later run reads the record before the next filing. (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:164, docs/adr/0001-github-is-the-roadmap-source.md:25, src/devops_cli/roadmap/stores/store.py:744]- Chosen: The job record in the issue body. ADR 0021:164 names the keys, and the issue body holds the job record.
- Rejected: A file in the data dir of the Service.
docs/CLUSTER.mdkeeps the halt, budget, failure and listing files there, and none of them holds state of one item.
- Which checks must pass before the row files a part, and how many parts may one split file?: One split files 2 to 5 parts (ADR 0021:160 and ADR 0021:163). Each parent criterion goes to exactly one part, each part stays under the fitted size threshold, and the order of the parts has no cycle (ADR 0021:160). A reply that fails a check gets 1 repair, and the row files nothing when the repair fails (ADR 0021:160). The run bounds are 2 items, 5 parts an item, 10 parts a day, 300,000 tokens an item and 0.05 USD a run (ADR 0021:163). (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:160, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:161, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:163]
- Chosen: Deterministic checks before any filing, 2 to 5 parts, 1 repair. A check that runs before the write files no wrong part.
- Rejected: File the parts of each reply with no check. A part that covers no criterion leaves the parent criterion undelivered.
- Which prompt and reply model does the item-level split use?: The row extends
stage_split.pywith an item-level split call, a new promptroadmap_split.mdand a new reply model whose parts each hold a title, a body, the parent criterion ids it delivers and its order. It does not reuseroadmap_stage_split.md: that prompt splits the task groups of a plan and returnsStageSplitwithgroupsandcriteria(src/devops_cli/ai/tasks/roadmap_stage_split.md:1,src/devops_cli/roadmap/stage/stage_split.py:12andsrc/devops_cli/roadmap/stage/stage_change.py:731), so it carries no part and noSplit from #N.line. (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:160, src/devops_cli/roadmap/stage/stage_split.py:12, src/devops_cli/ai/tasks/roadmap_stage_split.md:1, src/devops_cli/roadmap/stage/stage_change.py:731]- Chosen: A new item split prompt and reply model in
stage_split.py. ADR 0021:160 namesstage_split.pyfor the split call, and the existing prompt and reply model are for task groups. - Rejected: Reuse
roadmap_stage_split.mdandStageSplit. They split task groups of a plan and return no parts.
- Chosen: A new item split prompt and reply model in
- What does the row do with an item that holds a milestone?: ADR 0021:159 records the rule: an item with a milestone gets the plan comment only, so the row writes the reason comment and files no part. A part is a new candidate (
NewCandidatehas no milestone), so filing it would put work outside the parent's milestone. (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:159, src/devops_cli/roadmap/intake/intake.py:207]- Chosen: Comment only. A part enters the backlog, so the parent stays whole in its milestone.
- Rejected: File the parts outside the milestone. A person planned the parent into the milestone, and intake gives a new item no milestone.
- What does
--dry-runsend, what does--planwrite, and what bounds the spend of a run?:--dry-runmakes no external request, a read included, and prints the requests a run would make (ARCHITECTURE.md:170anddocs/commands/roadmap.md:28).--planreads GitHub and calls the model, prints the planned parts and the spend, and writes nothing (docs/commands/roadmap.md:29).--confirmmakes the writes (docs/commands/roadmap.md:30). A run stops at 2 items, 5 parts an item, 10 parts a day, 300,000 tokens an item and 0.05 USD (ADR 0021:163). (best practice) [sources: ARCHITECTURE.md:170, docs/commands/roadmap.md:28, docs/commands/roadmap.md:29, docs/commands/roadmap.md:30, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:163]- Chosen:
--plan,--confirm,--dry-runand the bounds of ADR 0021:163. Each roadmap step that changes GitHub asks for--confirm, and a dry run makes no request. - Rejected: Write a split with no
--confirm. It breaks the mode rule of the roadmap steps and spends the cap with no gate.
- Chosen:
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.It unblocks stalled items but does not break a running workflow.It removes a manual step for stalled items but does not change user-facing behaviour.The body estimates about 5 hours and 150,000 tokens to build.Both split an item into parts, but #2423 does it during refine and the candidate does it after a stall.devops-cli-service commentedon Nov 14, 2026
Alternatives check: none
Reason: The answered searches returned only unrelated documentation and repository pages, and no open, maintained tool that detects stalled roadmap items, classifies the stall cause, and files resumable GitHub sub-issues. The closest task-decomposition projects only turn a PRD into a local task list, so they cover neither the stall triggers nor the filing, deterministic checks and resume that this issue needs.
Tool: none found
Lacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Refine cannot set this item to Ready at e5dfddb while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
devops-cli-service commentedon Nov 26, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Nov 26, 2026
The result in the alternatives block of the issue body changed. Before this check:
none, no tool. A person decides what the new result means for the item.Searches (10)
Tools considered:
Searches run:
Sources: