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 #13421DescriptionProblem
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)"
}
}
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on 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 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. dezren39 commented on Nov 23, 2026
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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|