GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: implement: journaled region-seam export/import · Issue #3870 · developing-today/code

id: implement: journaled region-seam export/import #3870

New issue
Copy link
New issue
Copy link
Done
Done
id: implement: journaled region-seam export/import#3870
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 1, 2026
Issue body actions

Implements 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

  1. 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.
  2. 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.
  3. Destination import — module/schema/digest validation, persist-before-apply import, idempotency by handoff ID, durable receipt only after apply/replay, and failure tests.
  4. 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.
  5. 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

  • All five phased packets land in dependency order (1 → 2 → 3 → 4 → 5), each separately merged after its predecessor — filed as code issues id: implement #3870 phase 1 — journal/schema/checkpoint foundation for region-seam handoff #3900 (phase 1), id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 (phase 2), id: implement #3870 phase 3 — destination import for region-seam handoff #3902 (phase 3), id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903 (phase 4), id: implement #3870 phase 5 — client/operations surface + gated enablement for region-seam handoff #3904 (phase 5).
  • No entity duplication or silent loss across any injected failure point (crashes between prepare/persist/apply/acknowledge, coordinator restart, region-map switch).
  • Source mutations are fenced at durable-record time; a receipt exists only after destination apply/replay succeeds.
  • Region journals stay independent: no cross-region transaction emulation, no entity payloads in the coordinator journal.

Activity

Next
  1. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    agent-note:v1 — task 5859 triage record for #3870 (lane D worker, 2026-11-01).

    Grounding (verified fresh this shift, main 33aefa7)

    • Issue id: implement: journaled region-seam export/import #3870 OPEN, no labels at claim (no hard stops). It implements accepted design id: design: region-seam handoff format — journaled export/import for hot-world region shards (from #2059) #2818; the design doc doc/2026-11-01_design_id2818.md is in PR design(id): #2818 region-seam handoff format #3875 (OPEN, branch design/id-2818, docs-only).
    • Code anchors in the design doc re-verified against current main: pkgs/id/src/world/mod.rs — JournalEntry enum at :468-475, CrossWorldWrite as acceptance-policy only at :579-585, journal versioning at :646-683 (current max version 2), WorldProgram trait at :871-925 with opaque input + whole-program snapshot and NO entity transfer hooks. Confirms the design's premise: this adds a transfer contract; no region coordinator or entity export/import exists today.
    • Design §1 context holds: one serialized actor per world owns core+program+journal, durable append includes fsync, append failure makes the world read-only (world/actor.rs:248-259,375-392).

    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)

    • Phase 1 — id: implement #3870 phase 1 — journal/schema/checkpoint foundation for region-seam handoff #3900 journal/schema/checkpoint foundation → task 5863, dedupe repo-health:v1:fix:developing-today/code:issue:3900
    • Phase 2 — id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 program transfer contract + source export/fence → task 5864, dedupe repo-health:v1:fix:developing-today/code:issue:3901 (gated on id: implement #3870 phase 1 — journal/schema/checkpoint foundation for region-seam handoff #3900)
    • Phase 3 — id: implement #3870 phase 3 — destination import for region-seam handoff #3902 destination import → task 5866, dedupe repo-health:v1:fix:developing-today/code:issue:3902 (gated on id: implement #3870 phase 2 — program transfer contract + source export/fence #3901)
    • Phase 4 — id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903 coordinator state machine + recovery → task 5867, dedupe repo-health:v1:fix:developing-today/code:issue:3903 (gated on id: implement #3870 phase 3 — destination import for region-seam handoff #3902)
    • Phase 5 — id: implement #3870 phase 5 — client/operations surface + gated enablement for region-seam handoff #3904 client/operations + gated enablement → task 5868, dedupe repo-health:v1:fix:developing-today/code:issue:3904 (gated on id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903)

    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.

  2. dezren39
    added
    work/assignedQueue worker lifecycle state
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    kind/enhancement
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    and removed
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  3. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    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.

  4. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    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:

    • Phase 1 — id: implement #3870 phase 1 — journal/schema/checkpoint foundation for region-seam handoff #3900 → task 5863 (done, PR feat(id): region-seam handoff journal foundation (#3900) #3922 merged)
    • Phase 2 — id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 → task 5864
    • Phase 3 — id: implement #3870 phase 3 — destination import for region-seam handoff #3902 → task 5865
    • Phase 4 — id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903 → task 5866
    • Phase 5 — id: implement #3870 phase 5 — client/operations surface + gated enablement for region-seam handoff #3904 → task 5867

    (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.

  5. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  6. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  7. 60 remaining items

  8. developing-today commented on Nov 9, 2026

    @developing-today
    developing-todayBot
    on Nov 9, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-u (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-u run 2026-11-08; task 13567
    • Found via: claimed task 13567 this shift; execution-lane assignment returned opencode (lane row 5096)
    • Task: task 13567 for issue id: implement: journaled region-seam export/import #3870 (small_fix). Fresh check via app token: issue id: implement: journaled region-seam export/import #3870 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit) — verified from the label list printed above. Handed off to the opencode claimant; this lane does not work it directly.
    • Expectation: claimant session drives task 13567 to a terminal state.
    • Links: task 13567 · issue id: implement: journaled region-seam export/import #3870
  9. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 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.
  10. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    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.)

  11. dezren39
    added
    queue/claimedQueue worker lifecycle state
    on Nov 10, 2026
  12. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 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).
      • Phase 1 (id: implement #3870 phase 1 — journal/schema/checkpoint foundation for region-seam handoff #3900): LANDED — issue CLOSED, PR feat(id): region-seam handoff journal foundation (#3900) #3922 merged (region-seam handoff journal foundation).
      • Phase 2 (id: implement #3870 phase 2 — program transfer contract + source export/fence #3901): OPEN — live packet task 8542 (pr_shepherd: port phase 2 onto current main, salvage PR feat(id): add region-seam source export (#3901) #3931, still OPEN); queue/parked + work/assigned, claimant handoff as of 2026-11-10T18:00Z. This is the actionable head of the remainder (chain 2 → 3 → 4 → 5).
      • Phase 3 (id: implement #3870 phase 3 — destination import for region-seam handoff #3902): OPEN — live packet exists (queue/parked + work/assigned); gated on phase 2.
      • Phase 4 (id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903): OPEN — live packet exists (queue/blocked + work/assigned); gated on phase 3.
      • Phase 5 (id: implement #3870 phase 5 — client/operations surface + gated enablement for region-seam handoff #3904): OPEN — live packet task 5867 (parked 3600s by this lane this shift); HARD GATE on id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903 landing.
      • Issue id: implement: journaled region-seam export/import #3870 itself stays OPEN until all five phases land per its acceptance criteria; it is not closable on current evidence.
    • 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
  13. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Progress from repo-worker-code-t: triaged: verdict posted; remainder phases 2-5 all covered by live packets (task 8542/#3901 head); releasing done

  14. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    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.

  15. dezren39
    added
    epic/id-programReprioritization program epic (2026-11-12)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
  16. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged — phases 1–5 sub-issues all CLOSED; umbrella left open for verification

    • Agent: repo queue worker (repo-worker-code), lane code-h (OpenChamber scheduled lane)
    • Session / ID: ses_e5e189fda4cffeob4CbqkHlYLM · task 18274
    • Found via: queue claim
    • Checked: 2026-11-17T03:00Z, live via gh
    • Verdict: the earlier note said phases 2–5 were covered by live packets. That is stale. id: implement #3870 phase 1 — journal/schema/checkpoint foundation for region-seam handoff #3900 (phase 1) is closed via PR feat(id): region-seam handoff journal foundation (#3900) #3922, and id: implement #3870 phase 2 — program transfer contract + source export/fence #3901–id: implement #3870 phase 5 — client/operations surface + gated enablement for region-seam handoff #3904 (phases 2–5) are all CLOSED. Merged work includes PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 (transfer contract + source export/fence) and PR feat(id): coordinator state machine + recovery for region-seam handoff (#3903) #9000 (coordinator state machine + recovery).
    • Open question: phase 5 includes "gated enablement". I did not verify that it is done, so I am not closing the umbrella. A human or a verified follow-up should confirm enablement and then close id: implement: journaled region-seam export/import #3870.
    • Links: issue id: implement: journaled region-seam export/import #3870 · id: implement #3870 phase 2 — program transfer contract + source export/fence #3901–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): program transfer contract + source export/fence (#3901, port of #3931) #8375 · PR feat(id): coordinator state machine + recovery for region-seam handoff (#3903) #9000
  17. dezren39
    removed their assignment
    on Nov 20, 2026
  18. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    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:

    • Phase 1 (id: implement #3870 phase 1 — journal/schema/checkpoint foundation for region-seam handoff #3900 journal/schema/checkpoint foundation): CLOSED — PR feat(id): region-seam handoff journal foundation (#3900) #3922 MERGED
    • Phase 2 (id: implement #3870 phase 2 — program transfer contract + source export/fence #3901 program transfer contract + source export/fence): CLOSED — PR feat(id): program transfer contract + source export/fence (#3901, port of #3931) #8375 MERGED (port of feat(id): add region-seam source export (#3901) #3931)
    • Phase 3 (id: implement #3870 phase 3 — destination import for region-seam handoff #3902 destination import): CLOSED — PR feat(id): destination import for region-seam handoff (#3902) #8542 MERGED
    • Phase 4 (id: implement #3870 phase 4 — coordinator state machine + recovery for region-seam handoff #3903 coordinator state machine + recovery): CLOSED — PR feat(id): coordinator state machine + recovery for region-seam handoff (#3903) #9000 MERGED
    • Phase 5 (id: implement #3870 phase 5 — client/operations surface + gated enablement for region-seam handoff #3904 client/operations + gated enablement): CLOSED as COMPLETED 2026-11-16 — PR feat(id): phase 5 client/operations surface + gated enablement for region-seam handoff (#3904) #9175 MERGED 2026-11-14

    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.

  19. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Closed as implemented.

  20. dezren39
    closed this as completedon Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobstatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.