Skip to content

id: world lifecycle and migration — tombstone, verified export/import as new world (from #3397 Phase 4) #3899

Open

Description

@dezren39

World-specific implementation follow-on from the #3397 design (doc/2026-11-01_design_id3397.md, PR #3853), Phase 4 of its phased plan.

Scope: world lifecycle operations inside one partition and across partitions by lifecycle move only — durable idempotent tombstone/delete (fence world, revoke memberships/invites, remove name resolution; blob bytes reclaimed only by reference-safe partition-local GC); world migration as export under source authorization → import and verify as a new world with a new ID in the target partition → reissue memberships/invitations under target policy → switch explicit discovery → tombstone source. No live move, no dual-homing; source stays authoritative until verification succeeds; cleanup is a separate retention/reference step.

Not this issue: #3402 is verified account-store (user-store) transfer and cleanup — it does not implement world migration (per the #3397 doc, Phase 4/6 notes). Account migration's per-world guest/exit treatment is #3402/#3404 territory; this issue owns the world side.

Authority boundary: #3397 is design-only and is not an implementation authorization. Implementation ordering follows the doc: this phase depends on Phases 1–3 (#3399, the world routing/admission follow-on, and partition-local world blobs building on #3401).

Acceptance: negative tests from the #3397 doc's matrix pass for this slice — migration interrupted before verification leaves source authoritative, target non-serving, retry idempotent; stale writers fenced; deletion racing a live reference/import preserves the reference; name reuse after tombstone does not resurrect old IDs, memberships, invites, or blob references.

Acceptance criteria

Activity

  1. added
    app/id
    source/queue-worker
    priority/normal
    effort/l
    status/needs-triage
    meta/enriched
    on Nov 1, 2026
  2. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: design code issue #3397 (PR #3853) Phase 4; depends on #3399 (Phase 1), the Phase 2 world routing/admission follow-on (code issue #3898), and partition-local world blobs building on #3401. Not #3402 — that is account/user-store transfer, a different layer.

    Notes: The issue body already carries this slice's acceptance in prose (the #3397 doc's negative-test matrix); the appended section restates it as the canonical checklist. The guest/exit treatment of accounts during a world migration is explicitly #3402/#3404 territory — keep it out of this slice.

    Risks: Migration is the highest-risk slice of the #3397 set: a verification or fencing bug can resurrect tombstoned worlds or strand references. The source-authoritative-until-verified ordering is the invariant every test hangs off.

    Suggested approach: Build only after Phases 1–3 land; start from the doc's interruption/race matrix as the test list, and treat export/import as new-world creation (new ID) rather than any form of live move.

    — fleet monitor intake enrichment, 2026-11-01 run (protocol §5). Acceptance criteria appended to the body where missing; labels normalized.

  3. added
    queue/queued
    task/triage
    on Nov 3, 2026
  4. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  5. added
    work/assigned
    queue/claimed
    status/in-progress
    on Nov 3, 2026
  6. 16 remaining items

  7. added
    status/blocked
    and removed
    queue/queued
    on Nov 8, 2026
  8. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Queue task 12749 blocked dependency — no code changed, no branch, no worktree.

    Dependency gate (fresh gh issue view, 2026-11-08T06:41Z):

    Dependency State
    #3399 immutable jurisdiction/migration metadata (Phase 1) OPEN
    #3898 partition-scoped world routing/names/admission (Phase 2) OPEN
    #3401 isolate hosted blobs by jurisdiction (Phase 3) OPEN

    This issue's own acceptance item — "Dependencies hold: Phases 1-3 have landed" — is not met, so Phase 4 (tombstone/delete + export→import-as-new-world migration) must not start. Prior block notes on #3399 and #3401 (tasks 5800, 5803) are still in force.

    Unblock condition: #3399, #3898 and #3401 closed with merged evidence; the queue task requeues when they land.

  9. added
    epic/id-program
    on Nov 12, 2026
  10. removed their assignment
    on Nov 20, 2026
  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Agent note (repo-worker-code, any-n scheduled lane): triage verdict — task 18276

    Fresh verification 2026-11-23: #3899 OPEN, labels status/blocked + queue/blocked. Verdict: still blocked on stated Phase 1–3 dependencies, all OPEN — #3399 (jurisdiction/migration metadata), #3898 (partition-scoped world routing/admission), #3401 (blob isolation). No implementation under this issue. Task 18276 self-blocked with structural deps on all three (recheck 900s). Next: re-triage when #3399, #3898 and #3401 all close.

  12. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    agent-note:v1
    Agent: felix (Muse lane, 2026-11-25)
    State: graph edges added — issue-graph hygiene audit #14863, slice 5

    The 2026-11-23 triage verdict (task 18276) records this issue as blocked on its Phase 1-3 dependencies #3399, #3898 and #3401, with no native edges. Update since that verdict: #3399 is now CLOSED, so it no longer blocks. Added native blocked_by edges #3899 -> #3898 and #3899 -> #3401 (both still OPEN) and verified them via the dependencies API. No label change; the blocked labels stay accurate against the two remaining blockers. Refs #14863

  13. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Agent note (xaltha lane, hourly work-loop 2026-11-26): triage re-verdict — task 18276

    Fresh verification today: #3899 OPEN. Dependency picture has moved since the 2026-11-23 block note:

    Dependency State (fresh, 2026-11-26)
    #3399 Phase 1 — jurisdiction/migration metadata CLOSED (landed)
    #3898 Phase 2 — partition-scoped world routing/names/admission OPEN — in progress: Phase 2 slices 1–4 merged today (#15441, #15460, #15466, #15476); remaining items (caller home jurisdiction → session path, shard check from coordinator creation, partition-keyed hub slots) parked pending PR #15567 landing / storage-layout and shard-creation design (see the 2026-11-26 park note on #3898)
    #3401 Phase 3 — jurisdiction-isolated hosted blobs OPEN — final slice PR #14736 (directory allowlist) is open and actively driven by lane task 5803; its other slices (#14622, #14668, #14931) are merged

    Verdict: #3899's own acceptance item — "Dependencies hold: Phases 1–3 have landed" — is still not met (#3898, #3401 open), so Phase 4 implementation must not start. No code changed, no branch, no PR this run; no open PR references #3899. Both remaining blockers have live owners working them, so this lane does not duplicate them.

    Unblock condition: #3898 and #3401 closed with merged evidence; re-triage #3899 then and scope the Phase 4 packet (tombstone/delete + export → import-and-verify as new world).

  14. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · census 2026-11-29 (lane CEN-C03)

    Blocker (named): ordering — this phase depends on Phases 1–3 (#3399, the world routing/admission follow-on #3898, and partition-local world blobs building on #3401), per the body. Acceptance is complete. Priority: normal (unchanged).

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue (body, all 9 comments, labels, dependency edges).

    STRENGTHS: Precise scope with an explicit "not this issue" boundary (#3402 is the account-store layer), an authority boundary quoting the #3397 ordering, and acceptance criteria that restate the design's negative-test matrix as checkable items. The dependency state has been re-verified fresh at least four times (2026-11-03, 2026-11-08, 2026-11-23, 2026-11-26) — the blocked verdict is evidence-based, not stale.

    GAPS: One stale graph edge: the native blocked_by edge to #3401 remains even though #3401 is now CLOSED (the edge was added 2026-11-25 during the #14863 hygiene audit, when #3401 was still open). The body's dependency sentence is still accurate in substance — Phase 2 (#3898) is the one live dependency; #3399 (Phase 1) has also closed since filing.

    FIXES I APPLIED: None to labels — priority/normal fits (a later phase of the id programme; nothing downstream is waiting on it today), kind/enhancement is correct, and status/blocked + queue/blocked are accurate while #3898 is open. I recorded the stale #3401 edge here rather than silently rewriting the graph; the edge is harmless (a closed blocker does not hold the issue) and the live gate is unambiguous: this issue unblocks when #3898 closes.

    REMAINS: Nothing for a human. Pickup condition: #3898 (partition-scoped world routing/names/admission) closes; then implement Phase 4 per the body — tombstone/delete, export -> import-and-verify as a NEW world with a NEW ID, discovery switch, source tombstone — with the four acceptance criteria as the test list.

  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: none material.
    Strengths: exact scope with an explicit "Not this issue" boundary (#3402), migration invariants stated (source authoritative until verification succeeds, no live move, no dual-homing), ## Acceptance criteria present, labels complete and consistent (kind/enhancement, priority/normal, status/blocked, queue/blocked, effort/l, app/id).
    Blocker recorded: ordering — this Phase 4 work depends on the earlier #3397 phases (#3399, #3898, and the partition work between them); the dependency is stated in the body and matches the blocked labels.
    Actions: Verified complete — no changes needed.

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Audit correction — Felix lane 0640-V (#14863 slice N9). Removed the stale native blocked_by edge to #3401 (CLOSED) — dead weight in the graph. The issue remains genuinely blocked by #3898 (OPEN); read-back: blockedBy is now exactly [3898:OPEN]. Labels unchanged (status/blocked + queue/blocked consistent with the live blocker).

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/ideffort/lepic/id-programkind/enhancementmeta/enrichedpriority/normalqueue/blockedsource/queue-workerstatus/blockedtask/triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions