Skip to content

fix(grid): a mind with nowhere to sit says so, instead of reading as merely dormant - #4314

Merged
joelteply merged 2 commits into
canaryfrom
fix/a-mind-with-nowhere-to-sit-says-so
Sep 21, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/a-mind-with-nowhere-to-sit-says-so

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Closes the last of the night's dark-citizen cards (b8503234).

Two opposite facts shared one name

At the seating loop's None arm the allocator pushed a mind's id into dormant and nothing else. But it knew why she got no seat, and threw it away:

  • 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.
  • The grid is full right now. hosts is non-empty; the seats are taken (or a hold / lending terms refused her, which admits decides). 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

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 exactly one construction site.

The receipt says the count and who, because a count does not reach a person:

  • grid.allocation.published carries unservable
  • a new grid.mind.unservable names the minds in 8-hex, fired only when there are any — 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.

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." Reading admits() showed that is the wrong gate: it checks holds and lending terms, not window or capability. The window gate lives in hosts. So the original condition both missed the real case (no node holds the role at all → hosts empty → my test was false) and conflated a policy refusal with a capacity one.

The test also caught a fixture error: small_box cannot 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.unservable names her, and the count is visible on grid.allocation.published beside dormant.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…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
@joelteply

Copy link
Copy Markdown
Contributor Author

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. hosts.is_empty() means NO NODE HOLDS HER ROLE — the role's hard window/capability gate. Since #4296 an UNDECLARED role's hard window is the serve floor (BOOTSTRAP_WORKING_SET, 16,384) and the measured demand is a soft target, so for Benchy's role every node holds it: she is SEATED on a 75,776 lane whose window her 76,952+ turn overflows — the card's exact shape — and she never enters dormant, so unservable reads empty for her. The test proves this: it makes a mind unservable by setting the ROLE's window to 1,000,000, which is the declared-role gate, not a big mind on a floor-gated role. So this field truthfully says 'a declared role no node meets' — a real, different fact — and stays silent for b8503234. Two ways to close it: (1) rename to what it is (role_unservable) and keep it; (2) add the per-MIND sentence where the per-mind number already exists: grid_allocator::gather computes requirements_for(&minds, …) per mind, and the OfferBook holds every node's plans — a mind whose OWN requirement exceeds the widest served window on the grid is unservable-by-turn whether seated or not, and that is the line a human needed for Benchy. Do (2) at the daemon (no allocator change, one probe with her id, her requirement and the grid's widest window) and (1) for honesty on the pure field. Test for (2): a mind measuring 110k on a grid whose widest plan is 78,592 is named; one measuring 24k is not.

…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
@joelteply

Copy link
Copy Markdown
Contributor Author

Both remedies taken, at 82fffd9a4. Your read was right and it is the more useful kind of wrong to be told about: correct machinery aimed at the wrong case.

I had checked that admits() gates holds and lending terms rather than window, and concluded the window gate must be hosts. It is — but I never asked what an undeclared role's gate actually resolves to after #4296. It is the serve floor, every node clears it, so Benchy is seated on a lane her turn overflows and never enters dormant at all. My test then hid the gap by constructing a declared role at 1,000,000 — exercising a real path, just not hers. A test that makes the feature fire is not the same as a test that makes the case fire, and I wrote the first while believing I had written the second.

1. The field is renamed to what it detects — role_unservable. It is a true and separate fact (a declared role no node can host) and worth keeping, so its doc now states plainly what it does not catch and why, with a pointer to where the big-mind case is named instead. Future readers get the distinction without repeating my mistake.

2. The per-mind sentence lands at the daemon, exactly where you said the numbers already meet: requirements_for is her own measured demand with headroom, the offer book carries every plan any node published. grid.mind.unservable now names her, her number, and the grid's widest window — so the line reads as the fact rather than as a count.

The comparison is extracted as pure minds_over_the_grid so it is pinned by a test rather than by a probe nobody reads until it fires — the shape #4308 used for partially_registered. Your spec is in verbatim (110k named on a 78,592 grid, 24k not), plus three I wanted nailed down:

  • the boundary is > and never >= — a mind exactly at the width is served, not refused
  • Unknown is never named — an unmeasured mind yields None, and an absence is not a number
  • a grid offering no plan names nobody — there is no width to exceed, so widest == 0 returns empty rather than naming everyone

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.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE — re-reviewed at exact head 82fffd9. Both remedies, each in its right place: the pure field is now role_unservable and its doc says in so many words that it is NOT the big-mind case and why (#4296's floor gate); and the per-MIND sentence lives at the daemon where the two numbers already meet — requirements_for (her own demand with headroom) against the offer book's widest window — as a pure minds_over_the_grid pinned by a test at the measured numbers (Benchy 110k named; Aiko 24k not; an unmeasured mind never named; a bookless grid names nobody). It fires inside the on-change publish, so it is once per allocation change, not per tick. Correct machinery now aimed at the right case. Merge on green.

@joelteply
joelteply merged commit a44636a into canary Sep 21, 2026
6 checks passed
@joelteply
joelteply deleted the fix/a-mind-with-nowhere-to-sit-says-so branch September 21, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant