You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
id-worlds: JournalAdminHistory cannot be constructed outside the crate — no public constructor for current-form checkpoint fixtures #13421
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.
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.
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 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.
Activity
developing-today commentedon Nov 23, 2026
CODE-4892
test(id-worlds): external current-form checkpoint fixture via public …
feat(id-worlds): public constructor for JournalAdminHistory (#13421)
dezren39 commentedon Nov 23, 2026
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 nextreturned 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.
test(id-worlds): issue the join's participant before the fixture chec…
Merge pull request #13516 from developing-today/lane-aam-13421
dezren39 commentedon Nov 23, 2026
Lane AAM outcome: DONE — #13421 landed via PR #13516, merged as
046c7f1f63cab32b1fece7ddad7a150a31eb29ec(head7435fe7d09a3). Issue closed as completed.What landed:
JournalAdminHistory::new(events, complete)(const) +events(),is_complete()(const),into_events()inpkgs/id/crates/id-worlds/src/world/journal.rs; fields stay crate-private so the window is only ever set whole.world/mod.rs; theidfacade re-exportsworldwholesale, so the facade path isid::world::JournalAdminHistory.pkgs/id/tests/journal_admin_history.rs: builds a current-formJournalEntry::Checkpointthrough the facade only and round-trips it through the journal line format; incomplete-history round-trip pinned too.stress_joinbench header: the now-false "no public constructor" claim removed; bench behaviour unchanged (legacy form remains a deliberate choice there).Verification (laptop,
nix developin 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 inid-storeon 9 pre-existingexpect_usederrors incrates/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 apub(crate)re-export at world/mod.rs:83, and the bench header at world_bench.rs:2753 documenting the limitation.