Description
What happened
2026-09-11, the Spark, measured twice on each side: speed/task-start@d2589f21e and its control dev@e67f1827b. The binary is bin/aforge chat --no-host in tmux, run against a fresh AFORGE_HOME with model.talk and every tier set to deepseek/deepseek-v4-flash-0731. The person types:
/task read alpha.txt, beta.txt, gamma.txt and delta.txt and write index.md with a one-line description of each file
The call log shows the same four rows on both sides and in all four runs. The time on each row is seconds after the command:
0.3 planner (the sizing judge) ms=3000 ttft 0.9s error "decode stream: context deadline exceeded"
3.3 <no tag> (the shaper) ms=25000 ttft 1.2s error "decode stream: context deadline exceeded"
28.3 taskname ms=4291 stop
30.5 task node=1 the worker's first request
For 28 seconds the only thing on screen is shaping the brief… · Ns. Both reads started streaming within about a second and then thought until their windows closed. Neither returned text, so the worker got the person's own sentence, exactly as TaskShapeWindow's comment promises for that case. The node, its worktree and its first request all come after both waits have run out.
| run | node started | worker's first request |
|---|---|---|
dev, /task index.md |
28.3 s | 30.4 s |
branch, /task index.md |
28.3 s | 30.5 s |
dev, /task four pages |
28.3 s | 30.1 s |
branch, /task four pages |
28.3 s | 30.3 s |
The wave on speed/task-start exists so that sizing runs beside a starting task and never in front of it (owner's ruling, 2026-09-11). It delivers that on the carry-on road: the worker's first request went out 1.7–1.8 s after the ceiling, where dev waited 259–274 s. It delivers it on the proposed road too, 1.1–1.5 s from consent to the first request on both sides. The /task <brief> door is the one door where the sizing judge still runs in front of the task. It runs in series with the shaper, and here each wait bought nothing.
Replication
Deterministic (no model). Take the scripted-completer doors that internal/session's task tests already use. Script the planner role, and the shaper (roles.RoleShaper), to stream reasoning deltas and never content. Submit /task <brief> through the same entry the tui3 /task command uses, then record the time from submit to the first request tagged task on node 1. Today that time is taskJudgeTimeout + TaskShapeWindow (3 s + 25 s) plus the carve. Use the package's fake clock so the test does not sleep.
Field (real models). Needs OPENROUTER_API_KEY, about 40 s of wall time and under $0.01. Use a fresh AFORGE_HOME whose config.json sets model.talk, models.tiers.low/high/mastermind/reflex and models.roles all to deepseek/deepseek-v4-flash-0731. Put four small text files in a git repository, run aforge chat --no-host there, and type the /task line above. Read logs/calls.jsonl in that home. The reads fire whenever the judge's tier and the shaper's tier are thinking models that do not produce content inside 3 s and 25 s. This profile was not measured with a fast reflex tier.
Where
taskJudgeTimeoutininternal/session/task_person.go(the sizing judge; searchtaskJudgePrompt)TaskShapeWindowininternal/session/task_shape.go(the shaper)- The
/taskdoor that awaits both before the node is admitted (searchshaping the briefininternal/tui3)
The fix
/task stops waiting on the sizing judge. The judge's own comment says it now decides only whether a planner is offered. This branch already delivers sizing beside a running worker, as a steer on the division road, so the judge's answer can arrive the same way. The carve should overlap the shaper instead of following it. That leaves one wait in front of the worker: the shaper, bounded by TaskShapeWindow. That wait is a quality trade, because the shaper writes the only brief the worker reads. The owner rules on it. This issue does not decide it.
Acceptance
- e2e: In the tmux suite, run
/task <brief>against a stub whose judge never answers. The worker's first request (thetaskrow for node 1 incalls.jsonl) must arrive no later than the shaper's own answer plus the carve. It must never arrive aftertaskJudgeTimeoutplus the shaper. - e2e: The control: with a judge that answers
parallelizable: trueand parts, the worker still starts first, and the parts reach it as the division steer. - Unit: A law that the
/taskdoor's path to admission contains no wait on the sizing judge. - The manual's
/tasksection (internal/manual/chat/commands.md, "/task <brief>starts work directly") states what the person waits for. The change entry'sinvalidatesnames the 28 s wait.
Drafted with CodeAF · reviewed and owned by the author
Activity
task: /task starts at once, and the brief and the width are read besi…
task: the two readings a /task still owes survive the checkpoint (#936)
task: /task starts at once, and the brief and the width are read besi…
task: the two readings a /task still owes survive the checkpoint (#936)
task: the resume test makes the order it reads, rather than hoping fo…
task: /task starts at once, and the brief and the width are read besi…
task: the two readings a /task still owes survive the checkpoint (#936)
task: the resume test makes the order it reads, rather than hoping fo…
remote: the task door's wire bump is version 16, behind #960's 15 (#936)
task: /task starts at once, and the brief and the width are read besi…
task: the two readings a /task still owes survive the checkpoint (#936)
task: the resume test makes the order it reads, rather than hoping fo…
remote: the task door's wire bump is version 16, behind #960's 15 (#936)
task: /task starts at once, and the brief and the width are read besi…
task: the two readings a /task still owes survive the checkpoint (#936)
task: the resume test makes the order it reads, rather than hoping fo…
remote: the task door's wire bump is version 16, behind #960's 15 (#936)
task: /task starts at once; the brief and the width are read beside i…