Repository navigation
The re-home reconciler binds every local resident to the served model AND window (a pre-ready provisional window no longer sticks) - #5590
Conversation
… AND window, correcting a pre-ready provisional window
Measured on the M5 2026-10-29 19:15-19:22Z (core 83c000606): residents materialized
while the engine was still loading kept the provisional 2048 window; the reconciler
keyed only on the model name and adopted the first ready snapshot as a baseline, so
the binding was never corrected. Working memory budgeted 2048*4 chars and discarded
every result body past ~4k (36 of 40 results bare handles, 9k tokens unallocated).
- rehome.rs (owner): per-resident comparison of (model, window) against the snapshot;
RehomeReason {ModelChanged, WindowChanged}; rehome_reason_at() so a steady-state tick
is free and the shared adapter is built only for a model change; a window-only
correction keeps her adapter. persona.rehome probe per resident with reason and
old->new model/window. re_home_all moves here from root_acting_workspace.rs.
- rehome_reconciler.rs: the `bound` baseline and model-name key are deleted; every
ready snapshot (edge or 30 s tick) asks the owner.
- WorkspaceCycle::current_binding(): one read of the whole binding.
- materialize_adapters.rs: the comment no longer claims the snapshot is always ready.
- apply.rs already re-pushes model_loadout()'s window every act; no new push.
Test: a_resident_bound_at_the_provisional_window_is_rehomed_to_the_served_window.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…/generation; storage grants sum within physical pools; placement is a replica set; #5590 not yet live) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Source review PASS at exact 0f92b59 for the model/window reconciliation repair. Reviewed all seven changed files: comparison uses each resident's whole live binding, first-ready is no longer discarded as a baseline, same-model window correction preserves its adapter, and remote/unreadable assignments remain protected. Model changes construct one shared adapter; a newly mismatched resident without that adapter is retried by the existing periodic reconciler instead of receiving the wrong adapter. Matching bindings remain untouched. GitHub CI at this exact head is green. The added registry regression exercises 2048-to-60672 correction, adapter identity, remote preservation and idempotence. I did not independently execute tests. It does not directly exercise the watch task or late registration; those lifecycle assertions remain useful coverage, but are not a demonstrated defect blocking this bounded repair. This review does not certify the full pre-fit resource grant design or live Aiko recovery; those remain separate gates. |
Serves the residents directly: after any core restart the personas materialized before the engine was ready, froze at the provisional window (MIN_SERVE_CTX 2048), and working memory deleted their result bodies against it (Aiko, M5 2026-10-29 19:19Z: 36 of 40 results bare, newest included; evidence
~/.continuum/evidence/2026-10-29-aiko-bare-results/). Plan line 7 (one budget / never clip the newest end).rehome_reconciler.rs: deletes the model-name-only key and the "first ready snapshot is the baseline" assumption; every ready snapshot (edge or the 30 s tick) asks the workspace owner whether any local resident's binding differs in model OR window.persona_workspace/rehome.rs: per-resident comparison (RehomeReason { ModelChanged, WindowChanged }); a window-only change keeps her adapter;persona.rehomeprobe per resident with old->new model/window; remote and unreadable assignments untouched.a_resident_bound_at_the_provisional_window_is_rehomed_to_the_served_window.This is the stop-gap for the residents now. The design fix (no copies of the window at all: the turn's admission grant is the only window a prompt sees, no MIN_SERVE_CTX stand-in outside the planner, ratchet) is fable/no-window-standin, in progress. The body-deletion half is Cormac's #5573.
Measured
cargo check --testscognition+core+mind 0 errors; continuum-cognition --lib 936/0; continuum-core --librehome2/0.persona.upstart.window planned=16521 served=60672,ctx_len=60672), which is the state this PR guarantees after a restart where the engine is NOT ready.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo