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 — Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) · Issue #4000 · developing-today/code

Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000

New issue
Copy link
New issue
Copy link
Closed
5 / 55 of 5 issues completed
Closed
Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898)#4000
5 / 55 of 5 issues completed
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)epicMeta-issue grouping multiple items (org Project Type=Epic)expediteImportant - do this very soon, before anything not expeditedkind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect job

Description

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

Summary

Design #2898 recorded the rule for pkgs/id — reconstruction is admission: authority-bearing data is validated when created live, so it must be validated where it is rebuilt. Its six origins were the journal seams known that evening. Four more instances have since been filed, in three shapes its phases did not cover — two of them in state that did not exist when #2898 was written:

  • id(world): WorldCore::restore installs checkpoint-carried handoff transfers unvalidated — duplicate sides, non-advancing import epochs, and sequence-claiming transfer events all accepted, unlike the standalone entries #3942 — checkpoint-carried handoff state is installed, not validated. The region-seam transfers added by id: implement: journaled region-seam export/import #3870 phase 1 (PR feat(id): region-seam handoff journal foundation (#3900) #3922) are checked strictly as standalone EntityExported/EntityImported entries (core.rs:322-375), but a Checkpoint's transfers list is assigned verbatim (core.handoff_transfers = transfers.unwrap_or_default(), core.rs:504): duplicate (handoff_id, direction) sides, a non-advancing import epoch, and a sequence-claiming transfer event all restore Ok (laptop probe against the real restore), while the same arm validates the profile, the caps ceiling, and schedule agreement for everything else it carries. Compaction launders bad transfer state into the canonical durable form.
  • id(world): restore's checkpoint consecutiveness check uses plain + 1 — a penultimate u64::MAX sequence panics in debug/test builds and wraps to an accepted MAX → 0 step in release #3736 + id(world): restore's EntityImported epoch check uses plain + 1 — prior=u64::MAX wraps to an accepted epoch 0 in release and panics in debug/test #3961 — restore's own succession checks use a plain + 1, the only two admission predicates in core.rs that do (every sibling uses checked_add/saturating_add). Checkpoint event consecutiveness (core.rs:476) accepts a wrapped u64::MAX → 0 step in release and panics in debug; the EntityImported epoch advance (core.rs:368) accepts prior = u64::MAX, new = 0 in release — the fencing epoch going backwards — and panics in debug.
  • id(waiting): WaitingPool::restore ignores the arrived and ready-queue duplicate guards — an already-applied or ready event is held again and handed out a second time #3911 — WaitingPool::restore (id-core waiting.rs:312) checks only already-held; insert and park both also refuse arrived and ready-queue keys (the guard set closed id(waiting): WaitingPool::insert's duplicate guard misses the ready queue — the same key inserted twice before take_ready is handed out twice #2001 established). The event store routes every hold through restore, so an already-applied event can be held and handed out a second time. One caller (the fork-proof park) relies on the gap on purpose — see decision 3.

#2898's closing-audit scope (sandbox snapshot, restore_program, petname persistence) names none of these surfaces; the transfers field did not exist then. This design is #2898's follow-on — the same pattern as #2497 following #1554 — and re-scopes none of its phases.

Full design doc: files/designs/code-id-restore-admission-followon.md in the keep-the-four-repos-healthy goal workspace. Audit baseline: origin/main 83709fac (all sites below read verbatim at HEAD this pass).

The contract

Every path into state is admission. State that arrives carried inside a reconstruction container is validated item-by-item with exactly the rules its standalone form is validated with, before it is installed. A succession predicate in an admission path is checked arithmetic: the successor of u64::MAX does not exist, so the entry is refused — never wrapped to 0, never a panic. And a reconstruction entry point applies the same guard set as the live entry points of the same structure; any deliberate relaxation is a named, separate route, not a silent property of the restore path.

Recorded decisions

  1. Carried transfers are validated by the standalone rules, with the standalone errors — per element, in list order, before assignment: no duplicate (handoff_id, direction); an import's new_owner_epoch is the checked successor of prior_owner_epoch; an export carries no new_owner_epoch (id(world): WorldCore::restore installs checkpoint-carried handoff transfers unvalidated — duplicate sides, non-advancing import epochs, and sequence-claiming transfer events all accepted, unlike the standalone entries #3942's acceptance); each transfer's event has sequence == 0 && participant_id == 0. Refusal aborts the whole restore. One shared per-transfer validation helper is preferred so the arms cannot drift a third time, but the contract is the equivalence, not the refactor. Replaying transfers through the standalone arms loses (the arms push replay events and bump counters; checkpoint transfers are already-applied state).
  2. Succession is checked_add, not saturating_add. Saturation would let MAX → MAX pass an advance check; it is the right idiom for counters that may sit at a cap (since_checkpoint) and the wrong one for a predicate whose job is that the value moved. The two filed sites are the whole core.rs inventory (grep-verified this pass); the closing audit greps the rest of pkgs/id.
  3. The waiting pool's guards are the pool's guards — with the proof park made explicit. restore gains the ready-queue guard unconditionally and the arrived guard on its hold path. The deliberate exception — present_proof re-holding an arrived fork-proof header for good so its conflicts stay seen — becomes an explicit held-for-good route (a park-style entry), not a borrowed missing guard. Copying insert's guard verbatim without moving the proof caller loses: it silently un-parks proof headers. restore's capacity posture (larger-cap stores still open; excess drops, never wedges) is unchanged.
  4. No wire-format or writer change. Live writers cannot produce any refused state — standalone validation is what they already pass, and id(world): WorldCore::restore installs checkpoint-carried handoff transfers unvalidated — duplicate sides, non-advancing import epochs, and sequence-claiming transfer events all accepted, unlike the standalone entries #3942's controls show a valid checkpoint restores Ok — so restore strictness is safe for every journal live code can write (Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898's original strictness argument).

Alternatives that lose (in the doc): folding these into #2898's Phase 3 audit (a named bounded scope inside #2882/#2876; stretching it re-scopes their acceptance from a comment); a Phase 1 bound on the transfers list (no cap value is recorded anywhere — the closing audit dispositions it instead).

Phased breakdown

  • Phase 1 — checkpoint-carried handoffs are validated (adopted: id(world): WorldCore::restore installs checkpoint-carried handoff transfers unvalidated — duplicate sides, non-advancing import epochs, and sequence-claiming transfer events all accepted, unlike the standalone entries #3942). Per its acceptance. Lands first: the trust-boundary hole, and id: implement: journaled region-seam export/import #3870's coordinator phases 2–5 assume the dedupe/epoch invariants it protects.
  • Phase 2 — succession is checked arithmetic (adopted: id(world): restore's checkpoint consecutiveness check uses plain + 1 — a penultimate u64::MAX sequence panics in debug/test builds and wraps to an accepted MAX → 0 step in release #3736 + id(world): restore's EntityImported epoch check uses plain + 1 — prior=u64::MAX wraps to an accepted epoch 0 in release and panics in debug/test #3961). Both predicates become checked-successor comparisons; u64::MAX boundary tests at each site (refusal must be restore's own error in both build profiles); same-file grep proof. Independent of Phase 1 in code — but Phase 1's carried-import epoch check uses the checked form, so whichever lands second writes that predicate in its final shape exactly once.
  • Phase 3a — the waiting pool's restore applies the pool's guards (adopted: id(waiting): WaitingPool::restore ignores the arrived and ready-queue duplicate guards — an already-applied or ready event is held again and handed out a second time #3911). Per its acceptance and decision 3 (explicit proof-park route, behaviour pinned by test). Independent of Phases 1–2 (different crate).
  • Phase 3b — closing audit (new issue, gated on Phases 1, 2 and 3a). Reconstruction-entry-point inventory for pkgs/id with a disposition per surface (citing Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898 Phase 3's outcomes where scopes overlap rather than re-auditing); a crate-wide grep disposition for plain arithmetic inside admission predicates; the transfers-bound disposition; a cross-note on Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898.

Open questions stay in the design doc (a bound on active handoffs — no recorded value, dispositioned by Phase 3b; snapshot-content equivalence — #2898 Phase 3's scope, cited not duplicated; store-row cleanup for arrived/ready refusals on reload — Phase 3a triage records it).

Related: #2898 (parent design — a follow-on note is posted there), #3870 (its phases 2–5 are untouched implementation work), #3231 (same crate, different gate — artifact parsed(), no field overlap). Not this design: #3963/#3964 (BoardGraph live-construction checks, no reconstruction surface); #2882's schedule arithmetic (a live-path check, stays in #2898's scope — Phase 2 here is restore succession predicates only).

🤖 Design architect pass 34 (2026-11-01), audit at origin/main 83709fac.

Sub-issues

Collapse Sub-issuesSub-issues

5 of 55 of 5 Issues completed
Loading 5 sub-issues

Activity

Next
  1. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    epicMeta-issue grouping multiple items (org Project Type=Epic)
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    source/design-architectFiled by the repo design architect job
    on Nov 1, 2026
  2. dezren39
    added sub-issues on Nov 1, 2026
    • id(world): WorldCore::restore installs checkpoint-carried handoff transfers unvalidated — duplicate sides, non-advancing import epochs, and sequence-claiming transfer events all accepted, unlike the standalone entries #3942
    • id(world): restore's checkpoint consecutiveness check uses plain + 1 — a penultimate u64::MAX sequence panics in debug/test builds and wraps to an accepted MAX → 0 step in release #3736
    • id(world): restore's EntityImported epoch check uses plain + 1 — prior=u64::MAX wraps to an accepted epoch 0 in release and panics in debug/test #3961
    • id(waiting): WaitingPool::restore ignores the arrived and ready-queue duplicate guards — an already-applied or ready event is held again and handed out a second time #3911
    • Phase 3 (audit) of #4000 — closing reconstruction-admission inventory for pkgs/id #4001
  3. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · design filed, pass 34

    • Agent: design architect (repo-design-architect-code), pass 34
    • Task: Design issue for the pkgs/id reconstruction-admission follow-on cluster (audit at origin/main 83709fa). This is a follow-on to Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898, not a re-scoping of it.
    • Decisions recorded here that bind the phases: (1) checkpoint-carried transfers are validated per element with the standalone EntityExported/EntityImported rules and error style, before installation; refusal aborts the restore. (2) Succession predicates are checked_add — saturating_add loses (MAX→MAX would pass an advance check). (3) WaitingPool::restore gains the ready guard unconditionally and the arrived guard on its hold path, and the fork-proof park becomes an explicit held-for-good route — do NOT copy insert's guard verbatim without moving the proof caller. (4) No wire-format or writer change.
    • Outcome: Phases adopted/filed and linked as sub-issues (verified count=5): Phase 1 = id(world): WorldCore::restore installs checkpoint-carried handoff transfers unvalidated — duplicate sides, non-advancing import epochs, and sequence-claiming transfer events all accepted, unlike the standalone entries #3942, Phase 2 = id(world): restore's checkpoint consecutiveness check uses plain + 1 — a penultimate u64::MAX sequence panics in debug/test builds and wraps to an accepted MAX → 0 step in release #3736 + id(world): restore's EntityImported epoch check uses plain + 1 — prior=u64::MAX wraps to an accepted epoch 0 in release and panics in debug/test #3961, Phase 3a = id(waiting): WaitingPool::restore ignores the arrived and ready-queue duplicate guards — an already-applied or ready event is held again and handed out a second time #3911, Phase 3b = Phase 3 (audit) of #4000 — closing reconstruction-admission inventory for pkgs/id #4001 (new closing audit, gated on Phases 1–3a, status/blocked).
    • Links: Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898, id(world): WorldCore::restore installs checkpoint-carried handoff transfers unvalidated — duplicate sides, non-advancing import epochs, and sequence-claiming transfer events all accepted, unlike the standalone entries #3942, id(world): restore's checkpoint consecutiveness check uses plain + 1 — a penultimate u64::MAX sequence panics in debug/test builds and wraps to an accepted MAX → 0 step in release #3736, id(world): restore's EntityImported epoch check uses plain + 1 — prior=u64::MAX wraps to an accepted epoch 0 in release and panics in debug/test #3961, id(waiting): WaitingPool::restore ignores the arrived and ready-queue duplicate guards — an already-applied or ready event is held again and handed out a second time #3911, Phase 3 (audit) of #4000 — closing reconstruction-admission inventory for pkgs/id #4001, id: implement: journaled region-seam export/import #3870
  4. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  5. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  6. 405 remaining items

    Load more actions
  7. 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-g (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-g run 2026-11-09 05:43 CST; task 14287
    • Found via: queue claim · task 14287
    • Task: task 14287 for issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 (small_fix). Fresh check: issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Triage/design follow-on: reconstruction-is-admission (EXPEDITE — issue carries the expedite label). Execution-lane assignment row 5343 returned opencode — handed off to the opencode claimant, which launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 14287 to a terminal state.
    • Links: task 14287 · issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000
  8. 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-e (repo-worker-code). Session: cron repo-queue-worker-shift-e run 2026-11-09 07:33 CST; task 14287. Found via: claimed task 14287 this shift (lane stamp code-e verified); execution-lane assignment returned opencode (lane row 5343). Task: task 14287 for issue #4000 (small_fix). Fresh revalidation: issue #4000 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent). Handed off to the opencode claimant per runbook 1b; task parked 1200s pending claimant. Expectation: claimant session drives task 14287 to a terminal state. Links: task 14287, issue #4000.

  9. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    agent-note:v1 — task 14287 · lane code-v · handed_off. Issue #4000 re-verified 2026-11-09T14:21Z: OPEN, no hard-stop labels. Execution lane opencode (row 5343); task 14287 parked 1200s for the claimant.

  10. 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-p (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-p run 2026-11-09 08:57 CST; task 14287
    • Found via: claimed task 14287 this shift; execution-lane assignment returned opencode
    • Task: Re-claimed task 14287 for issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 (attempt 3/6). Fresh check via gh: issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 14287 to a terminal state.
    • Links: task 14287 · issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000
  11. 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-v (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-v run 2026-11-09; task 14287
    • Found via: claimed task 14287 this shift; execution-lane assignment returned opencode (lane row 5343)
    • Task: task 14287 for issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 (small_fix). Fresh check: issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly. Attempts 3/6.
    • Expectation: claimant session drives task 14287 to a terminal state.
    • Links: task 14287 · issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000
  12. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Task 14287 (issue #4000) picked up by lane code-e, revalidated OPEN with no hard-stop labels, assigned to execution lane opencode (assignment row 5343). Handed off to the opencode claimant; parked 1200s for claimant launch.

  13. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Agent note — task 14287 handed off (lane code-l)

    • Stage: handed_off — execution lane for task 14287 is opencode (lane row 5343).
    • Revalidated fresh: issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 OPEN, no hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit).
    • Next: opencode claimant launches the bound session for task 14287; this lane parks task 14287 for 1200s.
    • Attempts: 3/6.
  14. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-e
    • Session / ID: task 14287
    • Found via: queue claim
    • Task: handing off task 14287 for issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 to the opencode claimant (assigned_lane=opencode, row 5343); claimant launches the bound session.
    • Expectation: bound opencode session drives task 14287 to a terminal state; this lane does not work it directly.
    • Links: issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000
  15. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: picked_up
    task: 14287 (small_fix/triage, repo-health-code-pilot; worker repo-worker-code; lane ec118cad-0fd3-4652-91c4-27432f2f2efd)
    by: OpenChamber scheduled lane
    at: 2026-11-09T18:05:00Z

    Fresh GitHub revalidation: #4000 and parent #2898 are OPEN; #3942 is CLOSED; #4000 has no hard-stop labels and no matching open PR. Prior triage notes route the only remaining Phase 3b closing audit to #4001 / queue task 5934. I am verifying that the follow-on task is live and satisfies this task’s expedite routing acceptance before recording the verdict; I will not duplicate it.

  16. developing-today commented on Nov 9, 2026

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

    agent-note:v1
    event: triaged
    task: 14287 (repo-health-code-pilot; worker repo-worker-code; lane ec118cad-0fd3-4652-91c4-27432f2f2efd)
    by: OpenChamber scheduled lane
    at: 2026-11-09T18:14:19Z

    Verdict: #4000 remains the design-of-record; the implementation phases are already covered, and only the Phase 3b closing audit remains. Fresh GitHub verification: Phase 1 #3942 CLOSED; Phase 2 #3736 and #3961 CLOSED; Phase 3a #3911 CLOSED. No open PR owns #4000. The remaining audit is tracked by existing repo-health-code-pilot task 5934 on #4001; the latest #4001 note records all phase gates met and identifies that task (#4001 (comment)). I did not create a duplicate packet. #4000 stays OPEN until #4001’s audit is complete.
    Evidence: #3942, #3736, #3961, #3911, #4001; prior merged fix PR #5516 for #3911.

  17. 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-k (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-k run 2026-11-09 11:13 CST; task 14287
    • Found via: queue claim · task 14287
    • Task: task 14287 for issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 (small_fix). Fresh check: issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Title: Triage Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000: reconstruction-is-admission follow-on design (EXPEDITE). Execution-lane assignment row 5343 returned opencode — handed off to the opencode claimant, which launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 14287 to a terminal state.
    • Links: task 14287 · issue Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000
  18. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    agent-note:v1 — #4001 closing reconstruction-admission audit (task 5934, lane code-h, 2026-11-11)

    Audit baseline: origin/main 45638b8643281de354b3e41145f873cdd4ac81bb (the #4001 baseline 83709fac is superseded; all four gates verified CLOSED fresh today: #3736, #3911, #3942, #3961). No behaviour changes were made by this audit; the one confirmed same-shape gap is filed as a named follow-up (#8370), per acceptance.

    (a) Reconstruction-entry-point inventory — pkgs/id

    1. WorldCore::restore / restore_replica / restore_with_runtime -> restore_inner (pkgs/id/src/world/core.rs:393-464+). Disposition: validates with the live rules. Journal arms re-validate on replay: header version v1-v6 accepted, newer refused at the header (tests.rs:199); checkpoint parts reject incomplete/duplicate/reordered/mismatched parts (tests.rs:1503); committed and checkpoint events refuse never-issued participants, later-issued participants, post-revocation authors, and scope-less input/chat (tests.rs:2246-2347); delegate lifetime vs parent checked (tests.rs:4167, 4219); participant zero and unmintable display names refused (tests.rs:4293, 4345); admin history byte bound enforced (tests.rs:3198); the journal is charged against the persisted budget, resolved against the current server ceiling, and an over-budget journal is refused (tests.rs:1090, 1109, 1147). Checkpoint fields dispositioned individually: events (author/scope validation above), schedules (horizon clamped via MAX_SCHEDULE_HORIZON_MS, core.rs:1541), execution profile (final profile tracked incl. budget reset, tests.rs:1194), caps ceiling (persisted budget resolved against current server ceiling, tests.rs:1147), transfers (see (c)), snapshot (installed only through the validated restore path; sandbox layer adds poison + size guards, item 3).
    2. WaitingPool::restore + restore_held_for_good (pkgs/id/crates/id-core/src/waiting.rs:323, 358). Disposition: validates with the live rules — Phase 3a (id(waiting): WaitingPool::restore ignores the arrived and ready-queue duplicate guards — an already-applied or ready event is held again and handed out a second time #3911) landed. Restore re-checks arrived/held/ready keys so an already-applied or ready key is never held twice; per-author and total caps are enforced on restore (WaitRefusal::AuthorFull/PoolFull), and on restore-on-open a refused row is dropped, never wedged; the explicit held-for-good route for fork proof headers bypasses only the arrived/ready guards, by design (design Design: reconstruction is admission, continued — carried state, checked succession, and every restore's guards (pkgs/id follow-on to #2898) #4000 decision 3).
    3. Sandbox snapshot restore (Sandbox::restore/restore_inner, pkgs/id/src/sandbox.rs:657, 674). Disposition: deliberately different, reason recorded. This layer is a transport into the guest: it refuses when poisoned, enforces the message-size limit, resets guest fuel, and poisons itself on any failure. Semantic admission validation of the snapshot's content happens in WorldCore::restore (item 1), not here. Also in Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898 Phase 3's named scope — cited, not re-audited, per Phase 3 (audit) of #4000 — closing reconstruction-admission inventory for pkgs/id #4001.
    4. world_store::restore_program (pkgs/id/src/world_store.rs:901). Disposition: validates with the live rules. The module is loaded content-addressed by module_hash from the ModuleDir (a substituted module cannot match), the seed comes from the persisted spec, and snapshot restore errors propagate (restore program from checkpoint) instead of being swallowed. Also in Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898 Phase 3's named scope — cited, not re-audited.
    5. Replica restore (restore_replica_journal / restore_replica_entries, pkgs/id/src/world/replica.rs:72, 147). Disposition: validates with the live rules — both funnel into the same restore_inner validation as item 1, with the runtime-ceiling resolution of tests.rs:1591.
    6. Directory / petname persistence restores. Disposition: cited to Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898 Phase 3, not re-audited (per Phase 3 (audit) of #4000 — closing reconstruction-admission inventory for pkgs/id #4001 scope note: surfaces in both designs cite the earlier phase's outcome). Spot-check today: key/signature material is parsed through VerifyingKey::from_bytes / Signature::from_bytes with error propagation (pkgs/id/src/directory.rs:396, 400) — no unchecked installation path was observed.
    7. restore_identity_key (pkgs/id/src/backup.rs:838). Disposition: deliberately different, reason recorded. This is a cryptographic key-unwrap, not state admission: a wrong passphrase fails locally (tests.rs:1063) and the epoch increment + bound-device notification is the admission-adjacent step (tests.rs:1077). No succession predicate is involved.

    (b) Plain-arithmetic grep disposition

    Pattern: checked_add, saturating_add, + 1, - 1, += 1, -= 1, saturating_sub over pkgs/id/src and pkgs/id/crates, dispositioned for admission-deciding predicates (restore, receipt, live guards), design #4000 decision 2 applied.

    • Succession predicates — checked_add, correct: transfer epoch succession (core.rs:270, prior_owner_epoch.checked_add(1) == Some(new_owner_epoch) — id(world): WorldCore::restore installs checkpoint-carried handoff transfers unvalidated — duplicate sides, non-advancing import epochs, and sequence-claiming transfer events all accepted, unlike the standalone entries #3942), checkpoint-part sequence (core.rs:1017), and core.rs:672, 1493, 1832, 1965. The baseline's two core.rs sites (audit-baseline 368/476) are inside this checked set — Phase 2 (id(world): restore's checkpoint consecutiveness check uses plain + 1 — a penultimate u64::MAX sequence panics in debug/test builds and wraps to an accepted MAX → 0 step in release #3736 + id(world): restore's EntityImported epoch check uses plain + 1 — prior=u64::MAX wraps to an accepted epoch 0 in release and panics in debug/test #3961) coverage confirmed, not re-fixed.
    • ONE GAP — filed as fix(id): restore Committed-arm sequence succession must be checked_add, not saturating_add (#4001 audit) #8370: core.rs:941 (Committed arm of restore_inner): event.sequence == core.sequence.saturating_add(1). A saturating succession predicate in a restore path: at u64::MAX the saturated successor equals the current sequence, so a MAX-sequence event passes the advance check repeatedly. Decision 2 requires checked_add. Small fix + regression test specified in fix(id): restore Committed-arm sequence succession must be checked_add, not saturating_add (#4001 audit) #8370.
    • Counters that may legitimately sit at a cap — saturating stays, reason per site: journal byte accounting folds (core.rs:37, 66, 69 — budget accounting; saturation only over-counts toward refusal, the safe direction); since_checkpoint counters (core.rs:793-941, seven sites — a checkpoint-interval counter; the due check is a threshold comparison, so saturation still fires the checkpoint); caps usage counter (core.rs:1798, record.used — a usage count compared against its cap, saturation cannot admit past the cap); schedule horizon (core.rs:1541 — an intended clamp of now + MAX_SCHEDULE_HORIZON_MS, not a succession check).
    • Not admission predicates — plain arithmetic stays, reason recorded: presence session count *count += 1 / saturating_sub(1) (core.rs:927, 930 — a replay bookkeeping count over a byte-budget-bounded journal; the count cannot approach overflow, and it decides presence rendering, not admission); WaitingPool::next_seq += 1 (waiting.rs:401 — an internal sequence assignment made only after the cap checks in hold have already decided admission; it is not itself a predicate); sandbox.rs:1287 sequence += 1 is test-fixture code, and sandbox.rs:2159 / 2436 are test/fixture sizing expressions — no production predicate.

    No plain-arithmetic succession predicate in an admission path remains undispositioned: the checked set above, the saturating counter set with reasons, and the single gap filed as #8370 exhaust the grep results in the restore/receipt/guard files.

    (c) Transfers-bound disposition

    A checkpoint's transfers list is installed with no per-list cap in code: restore_inner validates each transfer individually (validate_handoff_transfer, incl. epoch succession and no duplicate prior transfer, core.rs:1125-1130) and installs the validated vector. But the list is bounded in practice by the journal budget: the whole journal — the checkpoint entry carrying transfers included — is charged against the persisted journal budget (resolved against the current server ceiling) and restore refuses an over-budget journal (tests.rs:1090, 1109, 1147). Each transfer is a fixed-shape state record, so the byte budget is an effective count bound. Disposition: bounded in practice by an existing journal limit; no new cap invented in this audit (per design #4000's deliberate no-cap-value record). If a future change carries transfers outside the journal-budget charge, this disposition must be revisited — that condition is recorded here as the follow-up trigger, and no separate issue is filed today because the bound currently holds.

    (d) Cross-note

    Posted on #2898 in the same pass as this note: #4000's follow-on phases (Phase 1 #3942, Phase 2 #3736 + #3961, Phase 3a #3911, and this Phase 3 audit) have landed, and the two designs cite one rule — reconstruction is admission, and succession is checked_add.

  19. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    Program tending — epic check-in (tracking: #1352)

    • Child progress: 11 of 13 children closed (2 open).
    • Last movement: 2026-11-11T00:46:09Z.
    • Next step: Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) #2898 — Design: reconstruction is admission — validate authority-bearing inputs where they are rebuilt (pkgs/id) is the first open child recorded in the body.
    • Blockers: none recorded (status/blocked on a child).
  20. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: verified-complete
    by: agent muse (Felix, Muse sandbox seat)
    at: 2026-11-21

    Fresh verification at origin/main d26fa1652: every phase of this design is closed — Phase 1 #3942 CLOSED, Phase 2 #3736 + #3961 CLOSED, Phase 3a #3911 CLOSED, Phase 3b closing audit #4001 CLOSED (audit posted on this thread 2026-11-11, task 5934), and the audit's one named follow-up #8370 CLOSED. No open PR and no unclaimed implementation work remains under this epic; the only open child is the parent design #2898 (labelled user/review).

    Picked up as the top item of this seat's local shortlist (fleet agent next, refill rung) and dispositioned as complete on verification rather than re-implemented. No behaviour changes made.

  21. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026
    MemberAuthor
    More actions

    Closing as complete, verified fresh today (agent muse, Archer seat):

    • Phase 1 — id(world): WorldCore::restore installs checkpoint-carried handoff transfers unvalidated — duplicate sides, non-advancing import epochs, and sequence-claiming transfer events all accepted, unlike the standalone entries #3942 CLOSED (checkpoint-carried handoff transfers validated by the standalone rules)
    • Phase 2 — id(world): restore's checkpoint consecutiveness check uses plain + 1 — a penultimate u64::MAX sequence panics in debug/test builds and wraps to an accepted MAX → 0 step in release #3736 + id(world): restore's EntityImported epoch check uses plain + 1 — prior=u64::MAX wraps to an accepted epoch 0 in release and panics in debug/test #3961 CLOSED (restore succession predicates are checked arithmetic)
    • Phase 3a — id(waiting): WaitingPool::restore ignores the arrived and ready-queue duplicate guards — an already-applied or ready event is held again and handed out a second time #3911 CLOSED (WaitingPool::restore applies the pool's guards; explicit proof-park route)
    • Phase 3b — Phase 3 (audit) of #4000 — closing reconstruction-admission inventory for pkgs/id #4001 CLOSED (closing reconstruction-admission inventory posted on this thread 2026-11-11, task 5934; its one named follow-up fix(id): restore Committed-arm sequence succession must be checked_add, not saturating_add (#4001 audit) #8370 is also CLOSED)
    • Sub-issue list for this design: 5 of 5 closed. Independent verification at origin/main d26fa1652 was also recorded on this thread 2026-11-22 (Felix, verified-complete note).

    The parent design #2898 remains open on its own track (user/review) and is unaffected by this closure.

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)epicMeta-issue grouping multiple items (org Project Type=Epic)expediteImportant - do this very soon, before anything not expeditedkind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect job

    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.