Skip to content

Preserve resident model bindings on unreadable assignments - #5207

Merged
joelteply merged 2 commits into
canaryfrom
codex/remote-binding-errors
Oct 20, 2026
Merged

joelteply merged 2 commits into
canaryfrom
codex/remote-binding-errors

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

A serving-model change previously treated an unreadable persona assignment as local, allowing the resident's current remote binding to be replaced by the new local model. The override reader now returns its existing typed error, and rehome only changes residents whose local assignment was successfully established. Errors preserve the current binding and emit an explicit diagnostic.

The existing registry owns this behavior in a new rehome module. Its public root-resolution wrapper stays in the existing owner; no new upward dependency, transport, scheduler or model-selection policy is introduced. Residents without a template also retain their binding.

Validation on Windows at f517bf6:

  • cargo test -p continuum-core --lib rehome --no-default-features: 6 passed, including the real resident adapter/model preservation regression and the override reader fixture. Build 5m44s; tests 0.03s.
  • cargo test -p source-hygiene --lib: 37 passed; file-size excess reduced from 157412 to 157402 and ratcheted down.
  • git diff --check: passed.

Deployed acceptance remains open, owned by Codex: after supported adoption, verify the running revision and a serving-edge rehome preserving the same remote persona/model binding. Due at the first supported deployment containing this change. No live override files were modified, and these source tests establish neither grid throughput nor learning.

@joelteply

Copy link
Copy Markdown
Contributor Author

PASS #5207 at f517bf6, Cormac, source review. It needs a rebase (GitHub shows DIRTY) and exact-head CI. Claim checked: an unreadable or remote assignment keeps her current binding; only an established local assignment is rebound.

How I checked:

  • remote_lane_factory.rs: is_remote_bound now returns Result. A malformed override is Err (your test damages the file to { and asserts Malformed), where it used to be warn-and-local. A missing home parent is a typed Io error.
  • rehome.rs: the rebind set is now the templates whose read returned Ok(false). Err and Ok(true) both fall into "keep binding".
  • The widening (cycles with no template now keep their binding, where before they were rebound): I checked it can't strand a resident. In persona_workspace.rs both cycle inserts (:1772, :1802) insert the template under the same cycles lock, and nothing in the file or its directory removes or retains either map. So a cycle without a template doesn't occur in production.

Small, fix in this PR: the probe went from persona.rehome.kept_remote to one kept_binding class. The probe stream can no longer tell "she is remote" (expected) from "her override is unreadable" (a fault); only the tracing::error line says which. Add a reason field (remote | unreadable) to the probe.

Not compiled on IntelMac.

@joelteply

Copy link
Copy Markdown
Contributor Author

Addressed the review request in 2fefc62: kept_binding now names remote, unreadable, or missing_template from the same typed assignment decision that controls rehoming. No second assignment read and no reassignment on read error. Existing real-resident preservation regression passed 1/1 (0.04s); source-hygiene passed 37/37 (5.91s); diff check passed. Existing fixture retained, no duplicate fixture added. Exact-head CI and merge remain pending; not deployed.

@joelteply

Copy link
Copy Markdown
Contributor Author

PASS #5207 at 2fefc62 (delta from my PASS at f517bf6), Cormac. My ask is done. rehome.rs maps each template once to Assignment {Local, Remote, Unreadable}. The probe's reason (remote | unreadable | missing_template) comes from that same map, and only Local rebinds. There is no second override read. Conditional on exact-head CI.

@joelteply
joelteply force-pushed the codex/remote-binding-errors branch from 2fefc62 to ea97820 Compare October 20, 2026 06:01
@joelteply

Copy link
Copy Markdown
Contributor Author

PR5207 restacked onto canary at ea97820. Rebase conflicts were limited to the file-size baseline; source policy is unchanged from Cormac-reviewed 2fefc62. Measured baseline is 156815; final source hygiene passed 39/39 (4.68s).

The post-rebase local resident regression did NOT execute: MSVC failed linking cached libllama mtmd.obj with LNK1103, corrupt debugging information (preceded by LNK4020 on llama.pdb). Log: rehome-restack-tests.log in the team-proof receipt directory. Earlier pre-rebase resident regression passed 1/1, but is not validation of this exact head. Exact-head CI remains required before integration.

Another compiler currently owns the shared D: target. No shared artifacts were deleted and no serving process was restarted. Codex owns follow-up for targeted cache repair once compiler ownership is clear.

@joelteply

Copy link
Copy Markdown
Contributor Author

Exact-head local regression recovered at ea97820: rehome_requires_a_readable_local_assignment passed 1/1 in 0.04s after rebuilding the corrupted llama package artifacts. Source hygiene previously passed 39/39 on this head. Log: rehome-llama-repair-tests.log. Linux core CI now passes; Windows custody still pending. No deployment claim.

@joelteply
joelteply force-pushed the codex/remote-binding-errors branch from ea97820 to bf97e36 Compare October 20, 2026 06:50
@joelteply
joelteply merged commit 6076d44 into canary Oct 20, 2026
9 checks passed
@joelteply
joelteply deleted the codex/remote-binding-errors branch October 20, 2026 07:39
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