Skip to content

feat(roadmap): the split row files the parts of a stalled item #4819

Open

Description

@dan-petty

Problem or Motivation

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 stage plan_defect or 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_infra is 91 of 156 failures.
  • Split call. One item-level call of stage_split.py with roadmap_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 #N dependencies; 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. SplitRecordKey lists 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_reached item with 2 numbered groups is not split.
  • A ci_infra stop is not split.
  • An item with a milestone gets no parts.

Dependencies

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 plan on the items with needs-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-split label and no claim
  • THEN devops roadmap split --plan lists 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_reached and 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_infra holds the needs-split label
  • 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

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.parts and 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-split label 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 --plan on an item that holds the needs-split label
  • 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-run on an item that holds the needs-split label
  • 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-split and the split row has no unit
  • THEN The due predicate of the split row 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-split label
  • 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-split label or for a stage return with the cause too-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-split label or a stage return with the cause too-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.
  • 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_infra is 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 ServiceRow member runs the split?: The row split uses the existing member ServiceRow.SPLIT at src/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 split with the existing ServiceRow.SPLIT member. ADR 0022 names SPLIT among the members of ServiceRow, 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.
  • How does the row file a part and link it to the parent?: It files each part through intake with NewCandidate.source set to the parent. Intake creates the issue and files it as a sub-issue of the parent. The part body carries the line Split 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.source set to the parent. ADR 0021 says intake files the parts, and intake calls the store method add_sub_issue.
    • Rejected: The store method add_sub_issue directly 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.
  • 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.parts and split.filed_at. The code declares them as SplitRecordKey, the same family as StageRecordKey at src/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 StageRecordKey shows 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.
  • 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.py with 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 reuse roadmap_stage_split.md: that prompt splits the task groups of a plan and returns StageSplit with groups and criteria, so it carries no part and no Split 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 names stage_split.py for the split call, and the existing prompt and reply model are for task groups.
    • Rejected: Reuse roadmap_stage_split.md and StageSplit. They split task groups of a plan and return no parts.
  • 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 NewCandidate has 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-run send, what does --plan write, and what bounds the spend of a run?: --dry-run makes no external request, a read included, and prints the requests a run would make. --plan reads GitHub and calls the model, prints the planned parts and the spend, and writes nothing. --confirm makes 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-run and 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.
  • Which open, maintained tool or library covers the need?: eyaltoledano/claude-task-master covers 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 verdict partly. 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-master for 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.

Dependencies

#4817, #4793

Activity

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

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It unblocks stalled items but does not break a running workflow.
    • Value: Medium. It removes a manual step for stalled items but does not change user-facing behaviour.
    • Effort: Medium. The body estimates about 5 hours and 150,000 tokens to build.
    • Related: feat(roadmap): split unworkable or unanswered scope during refine into separate issues #2423, which asks for a different change. Both split an item into parts, but #2423 does it during refine and the candidate does it after a stall.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    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:

    • Stall detection and the stall-cause classifier (ci_infra, provider, refused_tool, conflict, open dependency, person wait).
    • Deterministic split checks: one parent criterion per part, each part under the threshold, and an acyclic order.
    • Filing 2 to 5 parts as GitHub sub-issues with 'Split from #N.' and #N dependencies, checked by the agentic judge.
    • A resumable split record (SplitRecordKey) so a stopped run files only the remaining parts.
    • The milestone, started/claimed and declined-split skips, and the per-run spend cap.

    Tools considered:

    Searches run:

    • open source tool automatically split large GitHub issue into sub-issues, results: 5
    • LLM agent decompose stalled backlog item into sub-tasks tool, results: 5
    • "sub-issues" GitHub API CLI tool create sub-issues from parent issue, results: 5
    • github issue splitter app decompose issue into smaller issues open source, results: 5
    • GitHub sub-issues API, results: 5
    • task decomposition tool open source roadmap automation, results: 5
    • spec-kit speckit tasks break spec into tasks GitHub, results: 5
    • "gh" extension manage sub-issues GitHub repository, results: 5
    • claude-task-master subtasks dependencies, results: 5
    • github/spec-kit, results: 5

    Sources:

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

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

    @devops-cli-service
    Contributor

    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.

  7. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    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.

  8. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    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:

    • open source tool split GitHub issue into sub-issues automatically, results: 5
    • gh extension create sub-issues from issue body, results: 5
    • claude-task-master github, results: 5
    • "sub-issues" GitHub CLI extension gh-sub-issue, results: 5
    • eyaltoledano claude-task-master, results: 5
    • GitHub sub-issues API manage sub-issues, results: 5
    • task-master-ai github repository, results: 5
    • taskmaster ai task management subagents, results: 5
    • "split" issue tracker automation break large task into smaller issues dependencies tool, results: 5
    • Claude Code plugin split oversized task into subtasks GitHub issues, results: 5

    Sources:

  9. added
    status/ready
    and removed
    status/new
    on Dec 1, 2026
  10. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

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/mediumpriority/p2-mediumscope/roadmapsource/agentstatus/readytype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions