Skip to content

id(worlds): mixed timed and untimed revocations report an incomplete window count as Known #12041

Closed

Description

@dezren39

Defect

project in pkgs/id/crates/id-worlds/src/world_owner_report.rs derives revoked_in_window from only revocations with a timestamp. It reports Unavailable(RevokeTimeNotRecorded) only when all revocations are untimed; in a mixed journal it returns Known(count) while silently excluding untimed revocations that may fall inside the requested window.

Evidence

At world_owner_report.rs:666-679, revoked_timed counts timed revocations. revoked_in_window is unavailable only when revoked > 0 && revoked_timed == 0; otherwise it counts only f.revoked && in_range(f.revoked_at). Thus a journal with at least one timed revocation and at least one untimed revocation yields Known(n) even though the window count is incomplete. revoked_untimed is reported separately, but it does not say whether those revocations occurred inside this particular window.

This contrasts with the joins window, which exposes in_window_complete when any relevant timestamps are missing or fall outside known coverage (world_owner_report.rs:637-650).

Why it matters

Consumers may interpret revoked_in_window: Known(n) as a complete count for the requested interval, although untimed revocations were excluded and could belong to it. This affects owner-report comparisons and decisions based on revocation activity.

Acceptance criteria

  • Represent incomplete revocation-window coverage explicitly (for example, a completeness flag or an unavailable result whenever any relevant revocation lacks a timestamp).
  • Preserve the known timed count if useful, but do not present it as a complete Known window total when untimed revocations exist.
  • Add a regression test with at least one timed and one untimed revoked participant, asserting that the requested window result communicates incompleteness.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 19, 2026
  2. developing-today commented on Nov 19, 2026

    @developing-today
    Contributor
  3. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Nov 19, 2026
  4. changed the title [-]id(worlds): revoked_at for a capability delegated under an already-revoked ancestor diverges between the live core and journal replay[/-] [+]id(worlds): mixed timed and untimed revocations report an incomplete window count as Known[/+] on Nov 19, 2026
  5. dezren39 commented on Nov 19, 2026

    @dezren39
    MemberAuthor

    Correction to my original report: I could not validate the claimed live-core/replay divergence, and have removed that claim from the issue. delegate() authorizes the parent before minting, so a new live child cannot be delegated beneath a revoked ancestor. The checkpoint scenario also does not establish divergence: replay applies the entry time carried by the checkpoint, matching the live record. The issue is now narrowed to the independently verified owner-report window-completeness defect described above.

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

    app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/needs-triageNot yet triaged; needs a first lookstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions