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, 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-split label and no claim
  • THEN devops roadmap split --plan lists 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_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 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.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 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-split CronWorkflow with its 6-hour schedule and steward semaphore

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

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-split label or for a stage return with the cause too-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-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 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.
  • 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_infra is the class of a failure that no rule matches (docs/ROADMAP_WORKFLOW.md:198 and src/devops_cli/roadmap/failure.py:57). The issue measures ci_infra 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: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 ServiceRow member runs the split?: The row split uses the existing member ServiceRow.SPLIT at src/devops_cli/github/repo_ref.py:69. The member is already present, so the change adds no enum value. The row starts in mode plan (ADR 0021:128) and runs as CronWorkflow roadmap-split every 6 hours with the semaphore steward (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 split with the existing ServiceRow.SPLIT member. ADR 0022 names SPLIT among the members of ServiceRow, and the member already exists at repo_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.
  • 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 calls store.add_sub_issue(parent, number) (src/devops_cli/roadmap/intake/intake.py:1391). 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, 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.source set to the parent. ADR 0021:160 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 item's job record in the issue body, under split.input_hash, split.parts and split.filed_at (ADR 0021:164). The code declares them as SplitRecordKey, the same family as StageRecordKey, and joins the family to JobRecord and _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.md keeps 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.py with an item-level split call, a new prompt roadmap_split.md 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 (src/devops_cli/ai/tasks/roadmap_stage_split.md:1, src/devops_cli/roadmap/stage/stage_split.py:12 and src/devops_cli/roadmap/stage/stage_change.py:731), so it carries no part and no Split 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 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?: 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 (NewCandidate has 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-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 (ARCHITECTURE.md:170 and docs/commands/roadmap.md:28). --plan reads GitHub and calls the model, prints the planned parts and the spend, and writes nothing (docs/commands/roadmap.md:29). --confirm makes 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-run and 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.

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:

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/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions