Repository navigation
Description
Found by the autopsy in #252 (comment) (the planner side is #384). This is a separate collapse path, reported on the coordinator's ruling; its fix is a design-threshold change and waits for the owner.
Observable failure
A brief that names three lanes over one large file, or one file of thirty chapters spelled out in words, is planned into a proper division and then folded back to ONE node at the plan door, with the reason
split gate: goal enumerates 0 items, under the 6-item floor — one sitting
The single node then runs as one leaf over the whole file, which is the same over-large sitting #384 describes, and on a long brief it is the sitting that runs out of room.
Measured on the plan door (aforge plan --json, the current dev binary, default models), item count as internal/splitgate.Items reads it:
| brief | what it names | Items | gate |
|---|---|---|---|
| three disjoint lanes over a 1,160-record register | "each of the 1,160 records" | 160 | passes |
| three dependent lanes over the same register | same | 160 | passes |
| the original #252 brief | "#252" and lane numbers | 252 | passes |
| four lanes over a 4,000-line log | "about 4,000 lines" (a measure) | 0 | folded |
| three lanes over a handbook of "thirty chapters" | number spelled out | 0 | folded |
| three lanes over a 2,900-line program plus its tests | file names, "handle_1…handle_240" | 0 | folded |
Every held-out brief was folded on both of two draws; the register briefs survived only because a comma-number happened to sit beside the word "records". Note the original #252 brief passed the gate, so the gate did not cause that run's collapse; it is a second door to the same room.
The law
Whether a division is real is a judgment about the parts, never a count of digits in the text. The gate exists to stop divisions that are not worth a second worker; it decides that by looking for a number next to a plural noun in the request, which is a threshold on surface text standing in for the question it is meant to ask. That is the band-aid class: a heuristic that reproduced the bench corpus and fails the first brief that names its lanes instead of counting its items.
Where
cmd/aforge/cooperative.gogatePlanDivision: whensplitgate.Armed()and!divisionWorthIt(goal)and the graph has two or more leaves, the graph is replaced by one undivided node.internal/splitgate/splitgate.go:Floor = 6;Itemscounts a numeric token that is followed by, or enumerated before, a plural non-measure word;ArmedisAFORGE_SPLITGATE != "0".- The v3 session engine asks the same package (
internal/sessiontask division), so the same brief is folded there too.
Fix shape (for the owner to rule on)
Recommended: the gate asks the planner's own division, not the text. A division is worth keeping when its parts are independent and each part is a sitting by the planner's sizing (internal/plan sizes every node already); a graph whose leaves are all atomic and pairwise independent is a real division whatever the brief counted. The item count stays only as a hint the sizer may read, never as a veto.
Strongest alternative: keep the count but make named lanes count as items (an enumerated list L1 … L3, a spelled-out number, a file list). Cheaper, still a text heuristic, still fails the next phrasing.
Replication
aforge plan "HANDBOOK.md is one file of thirty chapters. Deliver three lanes that share no lines. L1: rewrite every '## chapter N: ...' heading to '## Chapter N — ...'. L2: every 'See also chapter N' becomes a markdown link. L3: insert a '## Contents' section under the title." --json -o graph.json
# graph.json: one node, undivided = "split gate: goal enumerates 0 items, under the 6-item floor — one sitting"
AFORGE_SPLITGATE=0 aforge plan "<same>" --json -o graph.json
# three lanesAcceptance (functional)
A brief that names N independent lanes plans into N work nodes with the gate armed, whether or not it contains a digit; a brief that names one indivisible thing still plans into one node. The bench corpus decisions the package cites (twelve image files and eight endpoints divided; four modules and three bugs did not) still hold.
Drafted with CodeAF · reviewed and owned by the author
Activity
lanes: a division somebody wrote out is not a pile to be counted
split gate: the mode is a pin, so the experiment can ask each one
lanes: a division somebody wrote out is not a pile to be counted
split gate: off by default, count and judgment stay as pins
split gate: the mode is a pin, so the experiment can ask each one
lanes: a division somebody wrote out is not a pile to be counted
split gate: off by default, count and judgment stay as pins
split gate: the mode is a pin, so the experiment can ask each one
lanes: a division somebody wrote out is not a pile to be counted
split gate: off by default, count and judgment stay as pins
split gate: the mode is a pin, so the experiment can ask each one
lanes: a division somebody wrote out is not a pile to be counted
split gate: off by default, count and judgment stay as pins
split gate: off by default, count and judgment stay as pins (#435)
santoshkumarradha commentedon Sep 10, 2026
Closed in the 2026-09-10 triage sweep — superseded by PR #435, which shipped the split gate off by default. The reported collapse cannot occur on a default build:
cmd/aforge/cooperative.go(gatePlanDivision) states the law — 'with nothing pinned it keeps every division' — andinternal/splitgateis the single reader of the pin. The failure is now reachable only underAFORGE_SPLITGATE=1or=judgment, which are wave escape hatches. The design-threshold change this issue was waiting on the owner for is therefore moot; if the gate is ever armed by default, reopen with a fresh measurement. Related planner-side work: #384.