Repository navigation
Closed
Labels
Description
Problem
The world owner report (id world owner, #11774 / #11826, #11775, #11777) ships without join times: no journal entry records when a capability was issued, so joins.in_window, joins.available_since and per-join times are reported as unavailable (JoinTimeNotRecorded). Revokes and program runs have the same gap: the journal records that they happened, not when, and records no program runs at all. Drew decided on 2026-11-18 to ship the report without them and plan the journal change here.
Plan
- Record the time on new entries. Add
issued_at(Unix ms,Option<u64>, serde default, skipped whenNone) toJournalEntry::Issued, set from the same world clock that setsexpires_at, for host-issued and delegated capabilities. Addrevoked_attoJournalEntry::Revokedthe same way. - Journal version. The fields are optional, so older journals still read. But an older binary would parse the entries, ignore the times and drop them when it compacts. Following the existing contract (
JOURNAL_VERSION_*inworld/journal.rs), add a new header version required by any entry that carries a time, so older binaries refuse such a journal instead of silently losing the times. - Keep times through compaction and forks. Checkpoints rewrite every issued capability: carry
issued_atandrevoked_atthrough the rewrite and checkpoint parts. A fork keeps the source's times for inherited joins and says so in the report's existinginherited_from_forkcoverage. - Owner report. Fill
JoinSamplewith its time, computein_windowfrom the requested window, and setavailable_sinceto the earliest point from which every later join carries a time (joins from before the upgrade stay "time not recorded", never zero). A window that starts beforeavailable_sinceis reported as incomplete. Add revoke times the same way. The report schema stays major version 1 (added optional fields only). - CLI.
id world ownershows join and revoke times and theavailable_sinceboundary in text and JSON. - Program runs (follow-up, separate PR). Decide whether durable program-run history (start, end, outcome) belongs in the journal at all or stays a live-only snapshot (id: expose live membership and program-run provenance #11775). If durable, it needs its own entry kind, bounds and version, so it is a design note first, not part of steps 1 to 5.
Acceptance
- Fixture journals mixing pre- and post-upgrade entries give exact counts, times, window edges and
available_since; unavailable stays distinct from zero. - Compaction, checkpoint parts and restore keep every time (round-trip test); an older-version binary refuses the new header.
- Existing journals with no times still read and report exactly as today.
- Property tests for window aggregation and report serialization, as in design §8 (
doc/2026-11-18_design_id6308_creator_owner_basics_v1.md).
🤖 Generated with Claude Code
Generated by Claude Code
Activity
developing-today commentedon Nov 18, 2026
CODE-4376
dezren39 commentedon Nov 21, 2026
Steps 1-5 shipped in #11999:
issued_at/revoked_aton journal entries, journal v12, checkpoint and restore round trip, owner report within_window_complete/untimed, and the CLI output. Proptest and version-refusal tests are in place. Step 6 (program-run history) was split out as a design question in a new triage issue. Closing as implemented for steps 1-5.dezren39 commentedon Nov 21, 2026
Closed as implemented.