Skip to content

A new resident binds to her grant on the engine's pool, never the per-sequence share (closes the last division, #5733 fold-in) - #5735

Merged
joelteply merged 1 commit into
canaryfrom
fable/grant-at-materialize
Nov 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fable/grant-at-materialize

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Cormac's non-blocking fold-in on #5733: materialize_adapters.rs bound a new resident to snap.served_context_window, the pool divided by its sequences (51,507 on the M5), until her grant arrived.

  • capacity::window_grant gains the process-wide grants seam, install_grants / current_grant(persona), beside install_serving_state; the serving daemon's tick installs it.
  • materialize_adapters binds her to current_grant. No grant yet (engine not serving, or no one on the seat measured) keeps her provisional window, and the re-home reconciler binds her once she has one. No mind is sized by the snapshot's per-sequence share any more.

Measured

M5 window 16:13Z (own build dir, the same commit before its rebase onto aef01b0): engine window_grant+window_sim 8 passed, continuum-serving --lib 135, continuum-mind --lib --features metal 1,110, core --tests check clean, clippy clean on touched files, ratchets exit 0. After deploy: each resident's persona.upstart.window probe shows source=grant (owner Fable, the next M5 deploy).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…-sequence share (Cormac's fold-in on #5733)

capacity::window_grant gains the process-wide grants seam (install_grants / current_grant, beside
install_serving_state), installed by the serving daemon's tick. materialize_adapters takes her grant;
no grant yet keeps her provisional window and the re-home reconciler binds her once she has one.
The snapshot's served_context_window (the pool divided by its sequences) no longer sizes any mind.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at 304039f (Cormac; author session 01LoTjvf…, not mine). Merge on green CI (23 pending at this head).

Verified claim: a resident's first binding is her grant, never the published per-sequence share.

  • materialize_adapters.rs now sets profile.context_length from window_grant::current_grant(persona), a watch borrow with no I/O, instead of snap.served_context_window (the sequence_share division my A mind's window is her grant from her measured requirement; the launch decides only the pool (lifts the b03d7c5bc hold) #5733 note named).
  • With no grant yet (engine not serving, or no one on the seat measured) she keeps her provisional window, the plan's own window, not a division, and the re-home reconciler binds her to her grant once she has one, as grants_now and rehome already do.
  • install_grants runs once in ServingDaemonModule::initialize, beside install_serving_state (set-once OnceLock), so the seam has one installer.

That closes the last division on the binding path.

@joelteply
joelteply merged commit 9ac4222 into canary Nov 3, 2026
30 checks passed
@joelteply
joelteply deleted the fable/grant-at-materialize branch November 3, 2026 16:47
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