Skip to content

fix(placement): a return to a seat asks for its slot exactly as a spill does — the seat's grant bounds the fleet's swing - #4206

Merged
joelteply merged 1 commit into
canaryfrom
fix/a-return-to-a-seat-asks-for-its-slot-like-a-spill-does
Sep 19, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/a-return-to-a-seat-asks-for-its-slot-like-a-spill-does

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

Minutes after the 5090 ran #4198 tonight, its beacon read QUEUED and the IntelMac brought all seven bound minds home in one tick — correct. The tick its wait dips under the bound, decide says ReturnRemote for all seven, and apply(ReturnRemote) re-bound without a grant: seven returns rebuild the queue they left — the metronome at fleet scale.

A return now asks the seat for its slot exactly as a spill does; the seat grants free_slots_live − outstanding, the rest stay home until its beacon shows room. Receipts placement.return.leased / placement.return.refused. One ledger for both paths.

Test plan

  • seven_returning_minds_take_only_the_seats_free_slots_and_the_rest_stay_home — 2 slots → 2 return, 5 stay; a spill then finds nothing
  • placement_switch, placement_reservation, source_hygiene whole-file 32/32
  • live: when the 5090's wait falls under the bound, placement.return.leased ≤ its free slots per tick and placement.return.refused for the rest — no seven-at-once swing in [placement] lines

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ll does — the seat's grant bounds the fleet's swing

2026-09-19 00:3xZ, the first minutes after the 5090 ran #4198: its beacon carried its measured
wait, read QUEUED, and the IntelMac brought all seven bound minds home in one tick — S1b doing
its job. The tick that seat's p50 dips under the bound, `decide` says ReturnRemote for all seven
at once, and `apply(ReturnRemote)` re-bound WITHOUT a grant: seven returns rebuild the very
queue they left, then all seven fall home again — the metronome at fleet scale, one cooldown
per swing. The lease (#4199) exists for exactly this; the return path did not use it.

Now a return asks the seat for its slot as a spill does (`request_reservation`, bounded by the
seat's own freshness window): the seat grants `free_slots_live − outstanding`, the rest stay
home until its beacon shows room. Refused or unanswered = Stay, receipted
(`placement.return.leased` / `placement.return.refused`). One ledger for both paths, so a
return can never take a slot a spill was granted.

Test: seven_returning_minds_take_only_the_seats_free_slots_and_the_rest_stay_home — two slots,
two returns, five wait, and a spill from another node then finds nothing. Whole-file:
placement_switch, placement_reservation, source_hygiene — 32/32.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) September 19, 2026 00:50
@joelteply
joelteply merged commit c8e1b72 into canary Sep 19, 2026
6 checks passed
@joelteply
joelteply deleted the fix/a-return-to-a-seat-asks-for-its-slot-like-a-spill-does branch September 19, 2026 00:53
joelteply added a commit that referenced this pull request Sep 19, 2026
… operator's airc sent it where the seat never listens (#4210)

Live 2026-09-19 01:4xZ on the M5, the first gated returns (#4206): six persona/placement/reserve
asks to the 5090, six `placement.return.refused` "unanswered within 30 s". The seat never heard
them: `request_reservation` was called on the OPERATOR's airc (`operator_airc()`), which sends
in the operator's current room — the academy on the M5 — while the seat's core listens where
the citizens' generates go (each mind's own airc, in her current room; `go_remote` builds her
transport on exactly that handle). Fail closed was the right default — nobody moved blind —
but with it no return and no spill can ever be granted, so the lease was a wall.

Both ask sites (spill and return) now use the switch's own handle (`airc_handle`), the wire
her generates ride. Same fix, both directions, in one commit (forbidden move 11).

Not built tonight (no cargo on the serving node under the freeze); CI is the build; whole-file
tests are unchanged in shape (the pure decisions did not move). Live receipt after it lands:
placement.return.leased / placement.spill.leased with the seat's numbers, and no "unanswered".


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5.1 <[email protected]>
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