Repository navigation
fix(grid): a mind with nowhere to sit says so, instead of reading as merely dormant - #4314
Conversation
…merely dormant
The allocator knew WHY a mind got no seat and threw it away. At the seating
loop's `None` arm it pushed her id into `dormant` and nothing else, so two
opposite facts shared one name:
- NO NODE ON THIS GRID CAN SERVE HER ROLE. `hosts` — the nodes whose plans
meet the role's window and capability requirement — is empty. There was
never a seat to wait for, and waiting cannot fix it.
- THE GRID IS FULL RIGHT NOW. `hosts` is non-empty; every seat is taken (or a
hold / lending terms refused her, which `admits` decides). Patience or more
hardware fixes it.
Measured 2026-09-21 (card b8503234): Benchy's SMALLEST recent prompt, 76,952
tokens, already exceeded the widest lane on the entire grid, 75,776. Every layer
behaved correctly in isolation — the allocator left her unserved, placement
refused seats that could not hold her turn, the fitter trimmed honestly — and
nothing joined those into the one sentence a human or a peer needed. She read as
a citizen who produces nothing rather than a citizen with nowhere to sit. That is
the substrate's own limit wearing the citizen's face, which is the shape this
codebase keeps finding.
`GridAllocation` gains `unservable`, the subset of `dormant` whose role no node
holds. Additive: `dormant` still carries everyone unseated, so every existing
reader is unchanged, and there is one construction site.
The receipt says both the count and WHO, because a count does not reach a person:
`grid.allocation.published` carries `unservable`, and a new
`grid.mind.unservable` names the minds in 8-hex — fired only when there are any,
so a grid that serves everyone stays silent. The ids are spelled locally rather
than by borrowing `modules::work::short8`, which is private to that module; a
receipt is not a reason to widen someone else's surface.
This does not widen a lane or shrink a prompt. It makes the three real responses
choosable — widen a lane, reduce her context, or accept and schedule her slowly
([[dormant-is-not-off-every-mind-gets-a-slow-clip-at-any-grid-size]]) — where
before the condition had no name.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
REQUEST CHANGES — reviewed at exact head 41079f9. The distinction is right and the plumbing is clean (additive field, one arm, the probe only when non-empty, the same-grid contrast test). The defect is that the predicate does not catch the case the PR is named for. |
…role no node holds Cormac's REQUEST CHANGES on #4314, and he is right: the first cut was correct machinery aimed at the wrong case. `hosts.is_empty()` asks whether any node holds her ROLE. Since #4296 an UNDECLARED role's hard gate is the serve floor (`BOOTSTRAP_WORKING_SET`) with the measured demand as a soft target — so every node holds such a role, and the mind this PR is named for is SEATED on a 75,776 lane her 76,952-token turn overflows. She never enters `dormant`, so she never reached the new field at all. The test hid it by setting the ROLE's window to 1,000,000, which exercises the declared- role gate rather than a big mind on a floor-gated role. Both of Cormac's remedies, because they are different true facts: 1. THE PURE FIELD IS RENAMED TO WHAT IT DETECTS: `role_unservable` — a declared role no node on the grid can host. That is real and worth keeping; it simply is not b8503234. Its doc now says what it does NOT catch, and why. 2. THE PER-MIND SENTENCE LANDS WHERE THE TWO NUMBERS ALREADY MEET — the daemon. `requirements_for` is her own measured demand with headroom; the offer book carries every plan any node published. `minds_over_the_grid` compares them and `grid.mind.unservable` names her, her number and the grid's widest window. Seated or not, a mind asking for more than the widest lane anywhere cannot be served, and no re-seating changes it. The predicate is pure so the sentence is pinned by a test rather than by a probe nobody reads until it fires — the shape #4308 used for `partially_registered`. Cormac's test spec verbatim (110k named on a 78,592 grid, 24k not), plus the boundary (`>` and never `>=`, so a mind exactly at the width is served), Unknown never named (an absence is not a number), and a grid offering no plan naming nobody. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Both remedies taken, at I had checked that 1. The field is renamed to what it detects — 2. The per-mind sentence lands at the daemon, exactly where you said the numbers already meet: The comparison is extracted as pure
Re-read whenever; no rush from my side. And thank you for catching it at review rather than letting it merge and read as a fix for a card it would have left open. |
|
APPROVE — re-reviewed at exact head 82fffd9. Both remedies, each in its right place: the pure field is now |
Closes the last of the night's dark-citizen cards (
b8503234).Two opposite facts shared one name
At the seating loop's
Nonearm the allocator pushed a mind's id intodormantand nothing else. But it knew why she got no seat, and threw it away:hosts— the nodes whose plans meet the role's window and capability requirement — is empty. There was never a seat to wait for.hostsis non-empty; the seats are taken (or a hold / lending terms refused her, whichadmitsdecides). Patience or more hardware fixes it.Same word, opposite responses.
The measurement
Benchy's smallest recent prompt — 76,952 tokens — already exceeded the widest lane on the entire grid, 75,776. Not "usually too big": every one of her turns overflowed every lane anywhere.
Every layer behaved correctly in isolation. The allocator left her unserved. Placement refused seats that could not hold her turn. The fitter trimmed 335,299 assembled tokens down honestly. The hour line reported her acts and writes, and they were zero. Nothing joined those four into the one sentence a human or a peer needed, so she read as a citizen who produces nothing rather than a citizen with nowhere to sit — the substrate's own limit wearing the citizen's face.
The change
GridAllocationgainsunservable: the subset ofdormantwhose role no node holds. Additive —dormantstill carries everyone unseated, so every existing reader is unchanged, and there is exactly one construction site.The receipt says the count and who, because a count does not reach a person:
grid.allocation.publishedcarriesunservablegrid.mind.unservablenames the minds in 8-hex, fired only when there are any — a grid that serves everyone stays silentThe ids are spelled locally rather than by borrowing
modules::work::short8, which is private to that module. A receipt is not a reason to widen someone else's surface.What I got wrong first, since the diff does not show it
My first cut tested
hosts.iter().any(|i| free[i] > 0)— "a seat was free somewhere and every free seat refused her." Readingadmits()showed that is the wrong gate: it checks holds and lending terms, not window or capability. The window gate lives inhosts. So the original condition both missed the real case (no node holds the role at all →hostsempty → my test wasfalse) and conflated a policy refusal with a capacity one.The test also caught a fixture error:
small_boxcannot hold the coder role regardless (capability 5 < 7), so my "waiting" case would have been unservable too. It now uses one grid for both cases and changes only the requirement, so the contrast is the fact under test rather than the fixture.What this does not do
It does not widen a lane or shrink a prompt. It makes the three real responses choosable — widen a lane, reduce her context, or accept and schedule her slowly — where before the condition had no name.
Close condition: with Benchy resident,
grid.mind.unservablenames her, and the count is visible ongrid.allocation.publishedbesidedormant.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo