GeezerVison is showing github.com — id: implement: journaled region-seam export/import · Issue #3870 · developing-today/code
id: implement: journaled region-seam export/import #3870DescriptionImplements the accepted design from #2818. See the design note doc/2026-11-01_design_id2818.md and design PR #3875.
Build the journaled handoff for an application-owned entity crossing between spatial region shard-worlds. Use dedicated source/destination journal entries plus coordinator open/close records. The required local order is prepare/validate → persist typed record → apply in-memory state → acknowledge. Keep region journals independent; do not emulate a cross-region transaction or put entity payloads in the coordinator journal.
Phased packets
- Journal/schema/checkpoint foundation — typed handoff records, entity-addressed input, world journal version 3 bump/rollback compatibility, and compaction preservation for active handoffs, epochs, tombstones, and receipts.
- Program contract + source export/fence — pure
prepare_entity_transfer hook, region-sharded mode gate, complete bounded entity payload, persist-before-apply source record, and source-side stale-write rejection. No receipt until apply/replay succeeds.
- Destination import — module/schema/digest validation, persist-before-apply import, idempotency by handoff ID, durable receipt only after apply/replay, and failure tests.
- Coordinator/recovery — journal start and observed receipts, retry/reconcile after crashes, and region-map switch only after matching durable receipts and a durable completion record.
- Client/operations — explicit transit/stuck status, fail-closed entity reads/writes while in transit, stale-route response, metrics/alerting, and feature-gated end-to-end acceptance.
Dependencies: 1 → 2 → 3 → 4 → 5. Each packet is separately mergeable after its predecessor. Follow the design note's recommended defaults; the open questions for Drew are recorded there and do not block the protocol work.
Acceptance
- No entity duplication or silent loss across any injected failure point.
- Source mutations are fenced at durable export; destination is routable only after completion.
- Exact retries are idempotent; conflicting imports fail closed.
- Actor crash between journal append and in-memory apply recovers by replay before returning a receipt.
- Coordinator and region restart/replay/compaction retain correct ownership and recovery state.
- No cross-region transaction, automatic rollback after export, or durable client write queue.
Acceptance criteria
Activitydezren39 commented on Nov 1, 2026 agent-note:v1 — task 5859 triage record for #3870 (lane D worker, 2026-11-01).
Grounding (verified fresh this shift, main 33aefa7)
Decision (already fixed by #2818 design + #3870 body — this triage routes it, it does not re-decide)
Journaled intent → source export/fence → destination import → coordinator completion, for application-owned entities only. Required local order everywhere: prepare/validate → persist typed record → apply in-memory state → acknowledge. Region journals stay independent; the coordinator journal holds membership/region-map/handoff records and NEVER entity payloads; no cross-region transaction is emulated.
Recommendation / invariants the packets must hold
Adopt the design's defaults (its §9 questions are non-blocking, below). Invariants (design §7): no duplicate writer (export fences source before destination can become routable); no silent loss (source export is the durable recovery copy until completion is verified); exactly-once effect per handoff_id under at-least-once delivery; monotonic owner epochs; compaction preserves active handoffs, fences/tombstones, receipts, and epochs; 16 KiB v1 payload cap with oversize refused before fencing.
Phased packets filed + enqueued (dependency chain 1 → 2 → 3 → 4 → 5; gated packets park on claim until their predecessor lands)
Questions for Drew
None that block. The design's three open questions (§9: transfer unit = app-owned entity; transit reads rejected with status-only response; 16 KiB v1 cap) proceed on the design's recommended defaults, exactly as #3870's body directs ("Follow the design note's recommended defaults; the open questions for Drew are recorded there and do not block the protocol work"). A ruling on #2818 can amend a default before its phase lands. added app/idPackage/app: id (pkgs/ or apps/ in this repo) effort/lLarge: multi-day or open-ended; expect staged check-ins meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added and removed on Nov 1, 2026dezren39 commented on Nov 1, 2026 Intake review
Related: design code issue #2818 and design PR #3875 (doc/2026-11-01_design_id2818.md); phase issues #3900–#3904 are already filed and in flight (phase 1 claimed, phases 2–5 parked behind it at intake time).
Notes: This parent tracks the set; the per-phase acceptance lives on each phase issue. The design note's open questions for Drew are recorded there and explicitly do not block the protocol work.
Risks: The failure-injection matrix is the substance of this epic — a phase that lands without its crash-point tests leaves the journal's core promise unverified. Compaction preserving active handoffs/epochs/tombstones/receipts (phase 1) is the easiest place to silently lose state.
Suggested approach: Keep the parent as the set tracker: each phase's PR references this issue, and the parent closes when phase 5's feature-gated end-to-end acceptance passes.
— fleet monitor intake enrichment, 2026-11-01 run (protocol §5). Acceptance criteria appended to the body where missing; labels normalized. dezren39 commented on Nov 1, 2026 agent-note:v1 — CORRECTION to the task 5859 triage record above (lane D worker, 2026-11-01).
The phase task IDs in that record were mis-transcribed for phases 3–5 (an off-by-one from a garbled tool delivery). Verified just now against the live queue, the correct mapping is:
(Task 5868 is an unrelated CI triage task, not part of this set.) The dedupe keys in the original record are unchanged and correct. Current live state: task 5864 is claimed (phase 2 in progress); tasks 5865/5866/5867 are parked on their predecessor gates, as designed. developing-today commented on Nov 9, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 9, 2026 🤖 Agent note · handed off
- Agent: repo queue worker, lane code-l (repo-worker-code)
- Task: task 13567 (small_fix) — execution lane assigned opencode per runbook 1b; handed off to opencode claimant.
- Revalidation: issue id: implement: journaled region-seam export/import #3870 OPEN, no hard-stop labels (fresh gh, 2026-11-09T02:2xZ).
- Next: claimant launches the bound opencode session; task 13567 parked pending binding.
dezren39 commented on Nov 10, 2026
Picked up by repo-worker-code-t — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-t posts progress markers; after 30 minutes of silence any other worker may pick this up.) dezren39 commented on Nov 10, 2026 🤖 Agent note · triaged (MID-SHIFT FALLBACK)
- Agent: queue worker (repo-worker-code), lane code-t
- Session / ID: task 13567
- Found via: queue claim; MID-SHIFT FALLBACK: backend failed at fleet queue list/health (queue-broker connection refused, exit 3) — this task finishes in GitHub fallback mode per runbook §0b; fallback claim comment 6778732946.
- Task: task 13567 (triage of the remainder) for issue id: implement: journaled region-seam export/import #3870 — journaled region-seam export/import (id: design: region-seam handoff format — journaled export/import for hot-world region shards (from #2059) #2818). Triage verdict, verified fresh 2026-11-10: PARTIALLY LANDED, remainder fully covered by live packets — no new fix packet enqueued (dedupe).
- Expectation: task 8542 / PR feat(id): add region-seam source export (#3901) #3931 (phase 2) proceeds first; phases 3–5 follow in dependency order under their existing packets. No duplicate packet for the remainder is needed.
- Links: issue id: implement: journaled region-seam export/import #3870, issue id: implement #3870 phase 1 — journal/schema/checkpoint foundation for region-seam handoff #3900, issue id: implement #3870 phase 2 — program transfer contract + source export/fence #3901, issue id: implement #3870 phase 3 — destination import for region-seam handoff #3902, issue id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903, issue id: implement #3870 phase 5 — client/operations surface + gated enablement for region-seam handoff #3904, PR feat(id): region-seam handoff journal foundation (#3900) #3922, PR feat(id): add region-seam source export (#3901) #3931
dezren39 commented on Nov 10, 2026
Progress from repo-worker-code-t: triaged: verdict posted; remainder phases 2-5 all covered by live packets (task 8542/#3901 head); releasing done dezren39 commented on Nov 10, 2026
Released by repo-worker-code-t (outcome: done). Task 13567 triaged (fallback mode after mid-shift backend failure at fleet queue list/health): issue #3870 PARTIALLY LANDED — phase 1 (#3900) closed via merged PR #3922; remainder phases 2-5 all OPEN and already covered by live queue packets (phase 2 #3901 = task 8542 pr_shepherd of open PR #3931, the actionable head; #3902 live parked; #3903 live blocked; #3904 = task 5867 parked this shift, gated on #3903). No duplicate fix packet enqueued. Verdict note: #3870 (comment). Issue #3870 stays open until all phases land. dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged — phases 1–5 sub-issues all CLOSED; umbrella left open for verification
dezren39 commented on Nov 24, 2026
Agent note — second pass verify-and-route (task 21807, OpenChamber scheduled lane any-o): verdict CLOSE WITH EVIDENCE.
Verified fresh 2026-11-24: all five phase issues are CLOSED and every phase has a merged implementation PR:
The open question from the 2026-11-17 triage (task 18274) — whether phase-5 gated enablement is actually done — is now resolved by code inspection on current main (origin/main 9c2b4ad): pkgs/id/crates/id-worlds/src/world/handoff_operations.rs implements HandoffOperations with the feature gate OFF by default (handoffs_enabled: false), an explicit operator action (set_enabled) to flip it, and refusal semantics while disabled (region-seam handoffs are disabled by the feature gate). That is exactly the design §8 / #3904 acceptance (handoffs disabled by default until the suite passes; operator-gated enablement).
No follow-on packet routed: no remaining scope; the umbrella acceptance (all five phases landed, gated end-to-end) is satisfied in substance. Closing #3870. dezren39 commented on Nov 24, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|