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-worlds: JournalAdminHistory cannot be constructed outside the crate — no public constructor for current-form checkpoint fixtures · Issue #13421 · developing-today/code

id-worlds: JournalAdminHistory cannot be constructed outside the crate — no public constructor for current-form checkpoint fixtures #13421

New issue
Copy link
New issue
Copy link
Closed
#13516
Closed
id-worlds: JournalAdminHistory cannot be constructed outside the crate — no public constructor for current-form checkpoint fixtures#13421
#13516
Copy link
Labels
status:done

Description

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

Problem

JournalAdminHistory (crates/id-worlds) cannot be constructed outside the id-worlds crate: its fields are pub(crate) and it has no public constructor. Any code outside id-worlds — benches, integration tests, downstream tooling — that needs to write a journal containing a current-form (split) checkpoint cannot build one:

  • WorldCore::checkpoint_entries writes split checkpoints whose parts are joined by admin_history: Some(..).
  • Restore's split-parts path requires admin_history: Some({ events, complete }); a parts set written with admin_history: None is refused.
  • So an external writer can only produce the legacy inline-checkpoint form (admin_history: None, single JournalEntry::Checkpoint), which restore supports explicitly.

Found by Lane XZ while landing #13084 (stress_join bench): the bench's checkpoint fixtures use the legacy inline form and disclose the limitation in the bench header. The retained window (≤ WorldLimits::default().retained_events) serializes under the writer's own inline bound (MAX_CHECKPOINT_PART_BYTES, 192 KiB), so the inline form is also the form the writer itself would choose at those sizes — but any fixture needing a current-form checkpoint (e.g. a >192 KiB retained window, or admin-history-specific restore coverage) is blocked.

Ask

Give JournalAdminHistory a public construction path (a constructor or builder in id-worlds, re-exported through the id facade) so benches/tests can write current-form checkpoints, or document an intended alternative route for external checkpoint fixtures.

Refs #13084.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T15:39:31Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

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

    CODE-4892

  2. dezren39
    added 2 commits that reference this issue on Nov 23, 2026

    test(id-worlds): external current-form checkpoint fixture via public …

    0e6a07f

    feat(id-worlds): public constructor for JournalAdminHistory (#13421)

    b5a044a
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Lane AAM claim: taking #13421 — id-worlds: JournalAdminHistory cannot be constructed outside the crate (no public constructor for current-form checkpoint fixtures).

    Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 1 (only the automated Kaneo link from developing-today[bot] 2026-11-23T15:39:41Z); no lane claim, no user/* label, no design/ratification gate. fleet agent next returned no claimable task, so this was picked directly from GitHub.

    Plan: verify the premise in code on a laptop worktree off main (branch lane-aam-13421), add a public construction path for JournalAdminHistory in id-worlds re-exported through the id facade, add/extend a test proving an external caller can build a current-form (split) checkpoint admin history, verify with the id-worlds test suite via fleet dispatch or laptop run, land via PR and merge when verified.

  4. dezren39
    added a commit that references this issue on Nov 23, 2026

    test(id-worlds): issue the join's participant before the fixture chec…

    af78160
  5. developing-today
    added
    status:in-review
    on Nov 23, 2026
  6. dezren39
    added a commit that references this issue on Nov 23, 2026

    Merge pull request #13516 from developing-today/lane-aam-13421

    046c7f1
  7. dezren39
    closed this as completedin #13516on Nov 23, 2026
  8. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 23, 2026
  9. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Lane AAM outcome: DONE — #13421 landed via PR #13516, merged as 046c7f1f63cab32b1fece7ddad7a150a31eb29ec (head 7435fe7d09a3). Issue closed as completed.

    What landed:

    • JournalAdminHistory::new(events, complete) (const) + events(), is_complete() (const), into_events() in pkgs/id/crates/id-worlds/src/world/journal.rs; fields stay crate-private so the window is only ever set whole.
    • Public re-export in world/mod.rs; the id facade re-exports world wholesale, so the facade path is id::world::JournalAdminHistory.
    • New external-crate oracle pkgs/id/tests/journal_admin_history.rs: builds a current-form JournalEntry::Checkpoint through the facade only and round-trips it through the journal line format; incomplete-history round-trip pinned too.
    • stress_join bench header: the now-false "no public constructor" claim removed; bench behaviour unchanged (legacy form remains a deliberate choice there).

    Verification (laptop, nix develop in pkgs/id, private target dir, sccache disabled per #13367 — the verifying route):

    • cargo test --test journal_admin_history — 2 passed, exit 0.
    • cargo test -p id-worlds --lib checkpoint — 41 passed, exit 0.
    • cargo test -p id-worlds --lib admin_history — 10 passed, exit 0.
    • cargo check --benches -p id — exit 0.
    • cargo clippy -p id-worlds --lib --no-deps — exit 0. (Clippy with deps stops in id-store on 9 pre-existing expect_used errors in crates/id-store/src/admission.rs, untouched by this change.)

    Premise was verified first-hand before the fix: fields pub(crate) at journal.rs:702, only a pub(crate) re-export at world/mod.rs:83, and the bench header at world_bench.rs:2753 documenting the limitation.

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

    status:done

    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.