Repository navigation
id-worlds: native transport for the lease-handoff path (#17519, #13938 item 3) - #17652
Merged
developing-today-fleet[bot] merged 3 commits intoDec 1, 2026
Merged
Conversation
…item 3) Unix-socket transport (length-prefixed JSON frames) for handoff initiation/completion between the DO writer and a native writer: peer crash surfaces as transport EOF (PeerGone), a partition with both sides alive as a real socket shutdown (Partitioned), and the journal prefix / mirror receipt / replay-barrier verdict cross the wire as the production JournalEntry values, so the AppendStamp chain (item 1) and replay barrier + mirror receipts (item 2) operate unchanged. The four #17197 walkthroughs re-run at native fidelity in world::native_handoff::tests: crash (real child process, SIGKILL), partition (socket shutdown + heal), stale-epoch refusal, and mirror lag (barrier pending until replay reaches the mirror-confirmed position), each asserting exactly one writer per epoch over the journal. Named reduced fidelity: scenarios 2-4 peers are threads of the test process over the production socket code; scenario 1's peer is a separate OS process. Named here, on #17519, #17197, #13938. Refs #17519, #13938, #17197
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 30, 2026
Shepherd fix by lane 0900-HT: verification run 46538886529 at the previous head failed to compile with E0432 (no Shutdown in os::unix::net); the earlier run 46513229272 that reported success never compiled anything (cargo cache permission error masked by a trailing pipe). Refs #17519.
Shepherd fix by lane 0900-HT: verification run 46540921917 at the previous head compiled and ran the full id-worlds suite — 1383 passed, 1 failed. The partition test's heal-reconnect could land in the stale listener's backlog (kernel completes the connect, nobody accepts), so the retried handoff read timed out (EAGAIN). The healed listener now binds a new socket path that only it serves. Test-only; production transport unchanged. Refs #17519.
developing-today-fleet
Bot
deleted the
lane/1437L-17519-native-transport
branch
December 1, 2026 00:26
This was referenced Dec 1, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #17519. Slice of #13938 item 3; refs #17197, #2819.
What
Native transport for the world-actor lease-handoff path in
pkgs/id(id-worlds), new moduleworld::native_handoff:NativeLink/NativeListener/initiate_native_handoff/serve_native_peer/NativeHandoffPeer).NativeTransportError::PeerGone.NativeLink::partitionshuts the socket down while both endpoints keep running; sends fail withNativeTransportError::Partitioned.JournalEntry/MirrorPositionReceiptvalues, so the AppendStamp chain (item 1) and the replay barrier + mirror receipts (item 2) operate unchanged — no invariant weakened to fit the transport.Complete; a transport failure, stale-epoch refusal, or standing barrier aborts with nothing journaled. The in-process seam remains only as a test seam for the pre-existing walkthroughs.Oracle
Model: in every #17197 scenario run over the native transport, the journal contains appends from exactly one writer per epoch and no append crosses the replay barrier.
The four walkthroughs re-run at native fidelity in
world::native_handoff::tests:native_crash_holding_the_lease_surfaces_as_peer_gone: peer is a real child process holding the lease; SIGKILL mid-lease; the initiator learns of it from the transport (PeerGone).native_partition_with_both_sides_alive_refuses_and_heals: socket shutdown with both sides alive refuses the initiate asPartitionedwith nothing completed; after heal (fresh link) the same handoff completes.native_stale_epoch_completion_is_refused: a completion/initiation under a dead epoch is refusedStaleEpochover the transport.native_mirror_lag_at_handoff_keeps_barrier_until_replay_catches_up: replay at 3 against a mirror-confirmed position of 5 refusesBarrierPending; replay at 5 completes; exactly-one-writer asserted over the resulting journal.Reduced fidelity, named (never silent)
Scenarios 2–4 run their peers as threads of the test process over the production socket/framing/partition code; scenario 1's peer is a separate OS process. The peer
WorldCoreis restored from the journal prefix received over the wire in every case.Verification
Fleet queue dispatch run 46513229272 (developing-today-forks/fleet) running
cargo test -p id-worlds native_handoffon this branch — result cited on #17519 before merge. CI is not a gate; merge judgment is the full diff against the issue's acceptance criteria plus that test evidence.— lane 1437-L (alpha DRIVE 2026-11-30)
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T21:08:16Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.