Skip to content

Phase 3 (audit) of #4000 — closing reconstruction-admission inventory for pkgs/id #4001

Open

Description

@dezren39

Phase 3 (audit) of design #4000 — closing reconstruction-admission inventory (pkgs/id)

Parent design: #4000 ("reconstruction is admission, continued — carried state, checked succession, and every restore's guards"), the follow-on to #2898. Design doc: files/designs/code-id-restore-admission-followon.md in the keep-the-four-repos-healthy goal workspace. Audit baseline: origin/main 83709fac.

Gated on Phases 1, 2 and 3a of the design: Phase 1 = #3942 (checkpoint-carried handoff validation), Phase 2 = #3736 + #3961 (checked succession in restore), Phase 3a = #3911 (WaitingPool restore guards + explicit proof-park route). Do not start the inventory before all three land.

Scope

(a) Reconstruction-entry-point inventory for pkgs/id: enumerate every entry point that rebuilds state from durable or carried input — at minimum WorldCore::restore (every journal arm, and every field a Checkpoint carries: events, schedules, execution profile, caps ceiling, transfers, snapshot), WaitingPool::restore (id-core), the sandbox snapshot restore (sandbox.rs), world_store::restore_program, and the directory/petname persistence restores — and disposition each on the design issue as: validates with the live rules / fixed under this issue (only if a same-shape gap is confirmed and small) / filed as a named follow-up / deliberately different with the reason recorded. Where a surface is also in #2898 Phase 3's named scope (sandbox snapshot, restore_program, petname/directory), cite that phase's outcome rather than re-auditing it.

(b) Plain-arithmetic grep disposition: grep pkgs/id/src and pkgs/id/crates for plain arithmetic (+ 1, - 1 and compound forms) inside predicates that decide admission (restore, receipt, and live guards alike), record the pattern and site list on the design issue, and disposition each site with design #4000's decision 2 applied: succession predicates must be checked_add (saturation loses — MAX → MAX would pass an advance check); counters that may legitimately sit at a cap may stay saturating, with the reason recorded per site. At audit baseline the core.rs inventory is exactly two sites (core.rs:368, core.rs:476), both covered by Phase 2 — this audit is the crate-wide proof, not a re-fix of those two.

(c) Transfers-bound disposition: #3942 notes a checkpoint's transfers list is installed with no bound, and design #4000 deliberately records no cap value. Record on the design issue whether an existing journal limit (retained events, entry/size limits, the standalone path's practical bounds) already bounds the list in practice, or file a named follow-up proposing the bound — do not invent a cap inside this audit.

(d) Cross-note on #2898: post the note recording that #4000's follow-on phases have landed and that the two designs cite one rule, citing the landed phase PRs.

Acceptance criteria

🤖 Filed by the design architect (pass 34, 2026-11-01) as Phase 3 (audit) of design #4000.

Activity

  1. added
    status/blockedQueue or user escalation state
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/mMedium: expected under 1 day of work
    on Nov 1, 2026
  2. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed as Phase 3 (audit) of design #4000

  3. added
    queue/queuedHas a queued task in the Supabase agent queue
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 1, 2026
  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 1, 2026
  5. 249 remaining items

  6. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · gate moved

  7. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up (resume)

  8. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 3, 2026
  9. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  10. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/enhancementpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobstatus/in-progressQueue worker lifecycle statetask/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