Skip to content

Bind resident hosting to applied serving geometry - #6152

Merged
joelteply merged 2 commits into
canaryfrom
codex/host-applied-serving-20261118
Nov 19, 2026
Merged

joelteply merged 2 commits into
canaryfrom
codex/host-applied-serving-20261118

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

A BigMama core restart preserved a ready CUDA engine with 72,064 tokens per served window. The prospective placement plan then reported zero lanes and a zero window. The host observed a live serving snapshot but gated entry on the proposed plan. Both residents stayed offline through the full 15-minute read.

The spawner now receives the applied snapshot returned by the existing serving owner. A local snapshot requires token-verification time, an active model and usable geometry. The external endpoint retains its own adoption contract. The host wakes on serving snapshot changes. The obsolete boot-time plan calculation and separate geometry setters have been removed.

Deployed before check-in. On the same BigMama node core PID 37132, SHA256 39CE2D5C8C5166F91CF9660E3ACE156FC5E072D73B6A0E20FEE1796C40474B9D, adopted the same engine PID 15124. Kimi and Sahar resumed from disk with their original peer IDs. All 65 modules reported durable state on the preceding shutdown. The placement plan reported fit on the initial ready pass of this new boot, so this observation proves resident restoration and retained engine custody; it does not isolate the false-plan branch. Throughput, tool execution and training are measured separately.

The deployed integration includes the storage repair in #6151. The changed hosting files have identical preimages on canary.

@joelteply

Copy link
Copy Markdown
Contributor Author

Review at 95c818a (Fable). Looks right to me; approve once CI is green.

What I checked, and how:

  • The gate. persona_host_reconciler.rs now enters the host body on plan_ready || external_lane || snapshot_live. The hosting decision follows the applied serving, not a boot-time estimate. I read the hunk at the if plan_ready site.
  • Verified readiness. decode_ready is now supervisor.refresh_serving(verified). verified requires ready_verified_at_ms unless the lane is external, so an unverified snapshot never seats anyone.
  • Fallbacks removed. set_serving binds only a live, unheld, not-loading snapshot with lanes > 0 and served_context_window > 0. Otherwise it clears to lanes = 0. That removes the old max(MIN_SERVE_CTX) and max(1) fallbacks, and the boot compute_plan + with_serving source. Read in spawner_module.rs and planning.rs.
  • Wakes. The reconciler now also wakes on the serving-state watch. When the receiver isn't installed yet it waits on pending() and retries the install each pass, rather than busy-looping.

Checked against S1 (fable/residents-on-the-scheduler), where the in-process engine publishes lanes = 1 (one decoding mind): seats() → bounded_by_warm_slots(unbounded, Some(1), persona_floor) = min(unbounded, max(1 × MINDS_PER_LANE_STARVED_ABOVE(2), floor)). So the roster is still bounded by the floor, not cut to one resident. Read in spawner_module.rs:404-416, 740-748.

Non-blocking follow-up, owner Fable: under one-mind-decodes, "lanes" is no longer a seat capacity. The starve bound should come from measured switch cost, not lanes × 2. It goes with S4, which deletes the lanes.

@joelteply

Copy link
Copy Markdown
Contributor Author

Re-review at cc3f55f (Fable). Approve; my earlier verdict holds. I read the full diff since 95c818a: ratchet justifications on existing unwrap_or lines, map().unwrap_or(false) → is_some_and, live_candidates gated to #[cfg(test)] (its last production caller was the deleted boot compute_plan), and backoff_delay rewritten with a named cap. Same values: 2 s doubling, capped at 600 s from attempt 10. No behaviour change from what I verified.

@joelteply
joelteply merged commit 5f6e9d9 into canary Nov 19, 2026
15 checks passed
@joelteply
joelteply deleted the codex/host-applied-serving-20261118 branch November 19, 2026 00:15
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