Repository navigation
Description
The waiting policy landed in #253 judges three clocks against the survival each one reads: the first-token clock against the first-token survival, the drift clock against the gap survival, and the duration clock against the model's whole thinking phase. Two of those three warm up with evidence. The third cannot, and this issue is that third one.
The wire clocks warm. The permanent part is only that a legitimate long think cannot be told from a stall by duration.
The finding, off the code
§B's abnormality test asks whether a wait is past the 1 − p quantile of its clock's survival. For the duration clock that survival comes from lane.Thinks → Chain.Survival, and one line in internal/lane/waiting.go decides it:
return control.Survival{Mu: mu - math.Log(unit), Sigma: math.Max(math.Sqrt(variance), draw)}σ is the larger of the estimate's own spread and the lane's published draw. For the first-token and gap clocks the sheet publishes a dispersion, so the estimate sharpens past it and the gate closes with evidence. A thinking phase has no published dispersion — Thinks passes lane.SpreadFloor and says so in as many words — so the floor is always the larger term and σ can never fall below 1.0 nat however much is folded in.
The quantile is therefore pinned at median · e^(z · SpreadFloor), about fifteen times the believed median. Measured through the real lane.NoteThought door:
| observations n | μ | σ | median | quantile at z = 2.7131 | inside the 10 s ceiling |
|---|---|---|---|---|---|
| 0 | 2.079 | 1.432 | 8.00 s | 389.14 s | no |
| 1 | 1.745 | 1.040 | 5.73 s | 96.28 s | no |
| 2 | 1.712 | 1.000 | 5.54 s | 83.55 s | no |
| 5 | 1.705 | 1.000 | 5.50 s | 82.93 s | no |
| 10 | 1.705 | 1.000 | 5.50 s | 82.91 s | no |
| 20 | 1.705 | 1.000 | 5.50 s | 82.91 s | no |
| 60 | 1.705 | 1.000 | 5.50 s | 82.91 s | no |
σ bottoms out at exactly SpreadFloor by n = 2 and never moves again, and the quantile settles at 82.9 s against a 10 s ceiling. Rearranged: the duration clock can act before the role's ceiling only for a model believed to think for less than ceiling · e^(−z · SpreadFloor) = 0.663 s. Any model that deliberates for longer is judged by the ceiling alone, on its first answer and on its ten-thousandth.
The finding, in the rig
The same claim measured the other way — the cold · shipped · stress proof arm, seeds 31/37/41, 150 requests per row per seed (2,250 trials a point), with the think chain warmed by n observations per model and nothing else changed:
| n | long think, not hedged | phases |
|---|---|---|
| 0 | 96.85% | 222 |
| 1 | 94.64% | 224 |
| 2 | 96.85% | 222 |
| 5 | 97.74% | 221 |
| 10 | 95.41% | 218 |
| 20 | 95.48% | 221 |
| 60 | 93.72% | 223 |
No trend. Seven points scattered between 93.72% and 97.74%, and the largest n is the lowest reading — what a quantity independent of n looks like, and what the code above predicts. On an arm where the duration gate never fires, the long-think rate is measuring the world's own think-tail rather than anything a controller decided.
What it costs
#253 trades a 4.95 s p50 time-to-action on a stalled thinking phase for 10.00 s, on 0.93% of requests in the natural-mix arm (21 of 450 in its own row, 4.67% of that row, both seed sets). Closing this issue recovers that: a duration clock that can fire before the ceiling acts on a hung thought in about half the time, without touching the ceiling that protects a legitimate one.
Two candidate closes
- Let observed think durations relax the floor the way published draws do. The floor exists because nothing is published about how one run of thought varies. Something is observed, though — every
NoteThoughtis a sample. Give the think chain a dispersion estimate of its own (or seed its spread from the hierarchy's own prior) so σ can fall belowSpreadFlooronce enough thoughts have been folded in, and the gate closes for the same reason the wire clocks' gates close. - Give the duration clock a drift quantile of its own. Judge a stopped thought against the gap between reasoning deltas rather than against the whole phase's length. A phase length has a fat tail nobody publishes; an inter-delta gap has a tight one that sharpens fast, and a thought that has emitted nothing for many multiples of its own usual gap is abnormal whatever its total length turns out to be.
Either is a mechanism change, which is why neither was taken in #253.
Replication
Both halves, repo-relative, no state outside a temp home:
# the code half — the gate's own sweep, 0..60 observations through lane.NoteThought
go test ./bench/lanelab/gosim/ -run TestWhenTheThinkGateCloses -v
# the rig half — the disputed arm at each n, on the three seeds it was pre-registered on
for n in 0 1 2 5 10 20 60; do
echo "== thinks=$n"
go run ./bench/lanelab/gosim -proof -store cold -pace shipped -mix stress \
-seeds-are 31,37,41 -requests 150 -thinks "$n"
done
TestWhenTheThinkGateCloses currently asserts the gate never closes, so it fails the build if the floor ever stops binding — the table above cannot go stale silently. Whoever closes this issue inverts that assertion rather than deleting it.
Acceptance
go test ./bench/lanelab/gosim/ -run TestWhenTheThinkGateCloses -vreports a finite n at which the quantile falls inside the role's ceiling, and the test asserts that n rather than its absence.- On the warmed proof arms, the §K bound long think ≥ 95% still passes at full force on both seed sets (
go run ./bench/lanelab/gosim -proof -store warmed), and the false-hedge and purse bounds are unmoved — the close must not buy action speed with hedges on healthy thought. - The natural-mix p50 time-to-action on a stalled thinking phase is back under the ceiling it lost: ≤ 5 s, measured on the same rows, with
avoidable overheadstill under its 0.90% ceiling. - One end-to-end test in
internal/provider(beside the fenced-think seam test waiting: nobody waits long — one hazard controller, hierarchical beliefs, and the offer on a pinned lane #253 added): a lane that streams a run of thought and then goes silent inside its own believed phase length is acted on before the role's ceiling, and a lane that streams a legitimately long but live thought is not.
Named in bench/lanelab/REPORT.md ("the long-think gate, restated"), docs/design/waiting/DESIGN.md §K, and the #253 changelog entry.
Drafted with CodeAF · reviewed and owned by the author
Activity
name the duration clock's floor as issue #316 and narrow the claim
waiting: nobody waits long — one hazard controller, hierarchical beli…
lanes: the fold pools a thinking dispersion split across two spellings
lanes: the fold pools a thinking dispersion split across two spellings
waiting: the duration clock measures its own dispersion, so its gate …
santoshkumarradha commentedon Sep 2, 2026
PR #365 (dev ba4d689, tag
checkpoint/2026-09-02/pr365-think-floor) lands candidate 1: the think chain measures its own dispersion (per-leaf Welford account, pooled with theSpreadFloorprior at one observation's weight, floored atSpreadTightest = 0.15nat), so σ relaxes with evidence and the duration gate closes at a finite n.Met: acceptance 1 (
TestWhenTheThinkGateClosescloses at n = 31, z = 2.7131, asserted), 2 (§K long-think ≥95%, false-hedge, avoidable and purse bounds pass on both seed sets before/after), 4 (provider e2e: a stalled thought is acted on at 1.04 s inside a 2 s ceiling with reasonlong think; a live long thought is left alone).Not met, and why it cannot be by this candidate: acceptance 3 (natural-mix stalled-think p50 time-to-action ≤ 5 s). It stays at 10.00 s before and after. The gate is only half of §B: the duration clock's payoff term prices leaving a thought at a whole fresh thought,
A = cost + Think.Mean(), so acting needs the remaining life of THIS thought to exceed an entire new one, which for a log-normal happens only far into the tail. Swept against the realcontrol.Survivalat a 5.5 s median:Tightening σ closes the gate and pushes the payoff crossing further out at the same time; there is no σ at which both pass before a 10 s ceiling for that median. A stopped thought is abnormal in its gap, not its duration. That is candidate 2 (a drift quantile for the inter-delta gap), which is why this issue stays open. It changes what a person waits, so its shape goes through the Pareto rig on real issues before it lands (parked, T3).
Also noted from the same work: headless calls never act early on payoff (cost is +Inf with no alternative lane or λ = 0), so a relaxed floor is visible on the foreground path only;
aforge doon deepseek-v4-flash at effortoffwrites zero think records.