Skip to content

planner: an oversized node whose inside is a sequence has no shape to become, so a multi-lane brief runs as one leaf #384

Closed

Description

@santoshkumarradha

Observable failure

A brief that names three lanes of work over one 3,500-line file is planned as one leaf: the stream prints breaking it into steps — 1, the node is sized oversized, and its record says the division gave back one piece, which is the node again. The leaf runs against the default 150K-token budget, exhausts it reading, and the replan after exhaustion produces breaking it into steps — 1 a second time. Every later failure of the run followed from that shape (zero files written in 31 minutes, ~$2.18). Measured in the benchmark on #252: #252 (comment)

Three paths reach the same collapse, all seen on the dev binary:

  1. No shape for an oversized sequence. The spine finds no gate (the lanes edit one file in order, so one stage is defensible). Fan-out returns one part, because its prompt forbids steps. Sizing says oversized. Expansion is a flat fan-out plus sizing with no spine, so it returns one part again and the split is refused as a restatement. The size pass promises the burden is discharged when "the node cannot be brought to an end inside what one worker can hold", but the only division the machinery can make is a parallel one.
  2. The replan never sizes. The remainder planner runs with the undivided shortcut on and depth zero, so a one-stage spine becomes one worker with the goal as its brief — no fan-out, no sizing — for a leaf that had just measured itself at 263K of 150K tokens.
  3. One cut brief discards the whole plan. A six-node plan was drawn; one brief-writing call returned a reply that "stopped being language and was cut"; the caller treats any planner error as no plan and runs the goal as one piece (the planner could not lay this out — running it as one piece of work).

Law

An oversized node that cannot be divided into simultaneous parts is divided into ordered stages, and lane structure the planner has already found is never discarded for a downstream fault.

Fix shape

  • Expansion gains the second move the size prompt already promises: when fan-out returns one part for an oversized or borderline node, ask the spine question of that node alone (ordered stages, each finishable and checkable on its own, each within one worker's reach) and splice the chain. Chains are already a graph shape; the one-sitting collapse ignores children.
  • The remainder planner's undivided shortcut is taken only when the spine says one stage and a sizing call says the remainder is within one worker's reach; otherwise the full pipeline.
  • A brief-writing call that fails is retried once, then the node is briefed from its own title and summary; the plan is kept.

No thresholds. Prompts and mechanism stay domain-neutral.

Replication

Plan-only, pennies:

aforge plan "<the 230-word lane brief from #252>" -w <checkout> --json -o graph.json --plan-model moonshotai/kimi-k3

Expected today: one node, size: oversized, undivided: "the division gave back one piece, which is the node again". Deterministic across two runs.

A fixture that needs no repository: one text file of ~3,500 lines in three labelled blocks plus a 25 KB notes file, and a brief that says "read the notes and the whole file first, then lane 1 in block A, lane 2 in block B, lane 3 in block C, in order". With the shipped default planner this produced breaking it into steps — 6 followed by the planner could not lay this out — running it as one piece of work.

Acceptance

  • The The lens: one transcript grammar for chat and the task room #252 brief plans into more than one node on both the shipped default planner and kimi-k3, with each named lane appearing as its own node or stage, and no node sized oversized left undivided with the one-piece refusal.
  • A remainder planned after an exhaustion is sized before it is handed to one worker.
  • A plan whose brief-writing fails on one node keeps its other nodes; the stream never prints the fell-back line for a plan that was drawn.
  • A real-model headless run of the replication brief on the shipped default writes files.

Drafted with CodeAF · reviewed and owned by the author

Activity

  1. santoshkumarradha commented on Sep 10, 2026

    @santoshkumarradha
    MemberAuthor

    Consolidated into #818 — a brief that names its lanes is planned as lanes, and each lane knows what is not its. This issue's evidence, replication and acceptance are reproduced there in full under its own heading; the lane that takes #818 takes this. Nothing is lost — this issue stays readable and #818 links back to it.

    #384 and #482 came out of the same autopsy (#252 issuecomment-5510867817) and are one failure seen from two angles — a brief that states its own division either collapses to one oversized leaf or fans out into three workers each told to do the whole job alone. #241 is the third angle: where a division IS produced, the parts are not told what is not theirs, so a lane that fixes the first two without the third produces correct lanes that then collide. #818 records which of #384's four fix-shape items have already landed (items 2 and 3 via #544 and #422, the measurement core via #425/#564) and which have not, so nothing is redone. Closed as part of the 2026-09-10 triage sweep.

  2. added
    bug
    on Oct 3, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions