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. This change adds the split row and the command devops roadmap split to file the parts of a stalled item as sub-issues.
Acceptance criteria
Requirement: Split trigger
The split row SHALL select an open item only when the item is not a tracker, is not Started, holds 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 and prints the planned parts of the item
Requirement: Size causes
The split row SHALL treat a stage plan_defect or parser failure two times 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 measured size cause is under the fitted threshold of #4817.
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 a fixture of item 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 the split function in stage_split.py with the item split prompt 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 job record of the item 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 is due
The split row SHALL use the existing member ServiceRow.SPLIT and SHALL be a long row of the due table that runs as one unit of work for the item.
Scenario: The split row is due
- WHEN A repository holds an item with
needs-splitand thesplitrow has no unit - THEN The due predicate of the
splitrow returns true and one unit of work starts for the item
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
The alternatives check in the issue body of 2026-11-26 gives the verdict partly for eyaltoledano/claude-task-master, and the block lists what the tool covers and lacks. The change does what the tool lacks: it files the parts as GitHub sub-issues through intake, classifies the stall cause and sets the needs-split mark, checks criterion coverage with no model, keeps a resume record and caps the spend of a run. It extends the existing code (stage_split.py, intake and the store method 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 split due for the
needs-splitlabel or for a stage return with the causetoo-large. Parallel work on one item goes to split sub-issues, each with one branch and one pull request. (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, docs/adr/0012-releases-are-derived-by-release-please-from-trunk-and-milestones-are-planning-buckets.md, CONTEXT.md]- 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 label. - Rejected: The full stall list of the Proposed Solution as the row trigger. The owner decision names the two marks, and the classifier measures the full list 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.ci_infrais the class of a failure that no rule matches, and the issue measures it at 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, src/devops_cli/roadmap/failure.py, docs/ROADMAP_WORKFLOW.md]- 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:54, so the change adds no enum value. The row runs as one unit of work for the item. (best practice) [sources: src/devops_cli/github/repo_ref.py:54, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:65, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, CONTEXT.md]- Chosen: New row
splitwith the existingServiceRow.SPLITmember. ADR 0022 names SPLIT among the members ofServiceRow, and the member already exists. - 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 files it as a sub-issue of the parent. 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). (best practice) [sources: src/devops_cli/roadmap/intake/intake.py:217, openspec/specs/roadmap-intake-writes/spec.md:54, openspec/specs/roadmap-intake-duplicates/spec.md:143, tests/roadmap/intake/test_roadmap_intake_sub_issues.py, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: Intake with
NewCandidate.sourceset to the parent. ADR 0021 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 job record of the item in the issue body, under
split.input_hash,split.partsandsplit.filed_at. The code declares them asSplitRecordKey, the same family asStageRecordKeyatsrc/devops_cli/roadmap/stores/store.py:251, 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, src/devops_cli/roadmap/stores/store.py:251, src/devops_cli/roadmap/stores/store.py:565, CONTEXT.md]- Chosen: The job record in the issue body. The issue body holds the job record, and
StageRecordKeyshows the same pattern. - Rejected: A file in the data dir of the Service. The data dir holds halt, budget, failure and listing files, and none of them holds state of one item.
- Chosen: The job record in the issue body. The issue body holds the job record, and
- 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. 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. A reply that fails a check gets 1 repair, and the row files nothing when the repair fails. 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. (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, docs/adr/0012-releases-are-derived-by-release-please-from-trunk-and-milestones-are-planning-buckets.md]
- 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 item split prompt and 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, so it carries no part and noSplit from #N.line. (best practice) [sources: src/devops_cli/roadmap/stage/stage_split.py, src/devops_cli/ai/tasks/roadmap_stage_split.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen: A new item split prompt and reply model in
stage_split.py. ADR 0021 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?: The row writes the reason comment and files no part. A part is a new candidate, and
NewCandidatehas no milestone, so filing it would put work outside the milestone of the parent. (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, src/devops_cli/roadmap/intake/intake.py:217]- 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.--planreads GitHub and calls the model, prints the planned parts and the spend, and writes nothing.--confirmmakes the writes. A run stops at 2 items, 5 parts an item, 10 parts a day, 300,000 tokens an item and 0.05 USD. (best practice) [sources: CONTEXT.md, docs/CLI_REFERENCE.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]- Chosen:
--plan,--confirm,--dry-runand the run bounds. 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:
- Which open, maintained tool or library covers the need?:
eyaltoledano/claude-task-mastercovers the model call that expands one task into ordered subtasks, the dependency links and the token and cost accounting, as the alternatives check in the issue body records with the verdictpartly. It files no GitHub sub-issue and has no stall trigger, deterministic coverage check, resume record or spend cap, so the item stays and extends the repository code. (best practice) [sources: AGENTS.md]- Chosen: Keep the item and extend the repository code. The tool lacks the filing, the triggers, the checks, the resume and the cap, so it cannot deliver the item.
- Rejected: Adopt
eyaltoledano/claude-task-masterfor the split. It is a separate CLI with no sub-issue filing and no stall trigger, so the row still needs the same code.
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:
devops-cli-service commentedon Dec 1, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.