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: record join, revoke (and maybe run) times in the world journal for the owner report · Issue #11960 · developing-today/code

id: record join, revoke (and maybe run) times in the world journal for the owner report #11960

New issue
Copy link
New issue
Copy link
Closed
Closed
id: record join, revoke (and maybe run) times in the world journal for the owner report#11960
Copy link
Labels
status:done

Description

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

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

  1. Record the time on new entries. Add issued_at (Unix ms, Option<u64>, serde default, skipped when None) to JournalEntry::Issued, set from the same world clock that sets expires_at, for host-issued and delegated capabilities. Add revoked_at to JournalEntry::Revoked the same way.
  2. 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_* in world/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.
  3. Keep times through compaction and forks. Checkpoints rewrite every issued capability: carry issued_at and revoked_at through the rewrite and checkpoint parts. A fork keeps the source's times for inherited joins and says so in the report's existing inherited_from_fork coverage.
  4. Owner report. Fill JoinSample with its time, compute in_window from the requested window, and set available_since to 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 before available_since is reported as incomplete. Add revoke times the same way. The report schema stays major version 1 (added optional fields only).
  5. CLI. id world owner shows join and revoke times and the available_since boundary in text and JSON.
  6. 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).

Refs #6308, #11774, #11777

🤖 Generated with Claude Code


Generated by Claude Code

Activity

  1. developing-today commented on Nov 18, 2026

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

    CODE-4376

  2. github-actions
    assigned
    dezren39
    on Nov 18, 2026
  3. dezren39
    removed their assignment
    on Nov 20, 2026
  4. dezren39 commented on Nov 21, 2026

    @dezren39
    dezren39
    on Nov 21, 2026
    MemberAuthor
    More actions

    Steps 1-5 shipped in #11999: issued_at/revoked_at on journal entries, journal v12, checkpoint and restore round trip, owner report with in_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.

  5. dezren39 commented on Nov 21, 2026

    @dezren39
    dezren39
    on Nov 21, 2026
    MemberAuthor
    More actions

    Closed as implemented.

  6. dezren39
    closed this as completedon Nov 21, 2026
  7. developing-today
    added
    status:done
    on Nov 21, 2026
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.