Skip to content

id-sync: bounded revocation sweeps quarantine records admitted after expiry #11955

Closed

Description

@dezren39

Problem

RevocationRecord::covers defines a bounded interval as [effective_from, effective_until), but RevocationRegistry::apply_revocation sweeps previously accepted records using only effective_from. If a bounded administrative suspension is learned/applied late, records admitted at or after its exclusive effective_until are incorrectly changed from Accepted to Quarantined (or Flagged), even though they were admitted outside the asserted interval.

Relevant code:

  • pkgs/id/crates/id-sync/src/federation/slices/b02_key_revocation.rs: covers checks the exclusive end; apply_revocation captures from and transitions matching records based only on admitted_at >= from.
  • pkgs/id/crates/id-sync/tests/federation_b02.rs: bounded_interval_blocks_only_inside_and_quarantine_is_sticky checks admission blocking at the end boundary and sticky state, but does not cover applying a bounded revocation after a record beyond the end has already been admitted.

Impact: late synchronization of a bounded suspension can withhold valid, post-suspension data from normal release and mark its historical validity indeterminate.

Acceptance criteria

  • Add a regression to cargo test -p id-sync --test federation_b02 that admits records before, within, and at/after a bounded interval, then applies that revocation after all admissions.
  • The sweep flags/quarantines only records whose admission falls within [effective_from, effective_until) according to the existing B02 policy; records admitted at or after the exclusive end remain Accepted.
  • Preserve the existing behavior that quarantine already applied is sticky; expiry alone does not revalidate records previously swept while the interval covered their admission.
  • Keep the reference-state-machine oracle aligned with the interval-boundary policy and ensure the dedicated test passes.

Activity

  1. developing-today commented on Nov 18, 2026

    @developing-today
    Contributor
  2. removed their assignment
    on Nov 20, 2026
  3. dezren39 commented on Nov 21, 2026

    @dezren39
    MemberAuthor

    Sweep check on main: already fixed by 2ca29f0 ("id-sync(B02): bounded revocation sweeps stop at the interval's end"). apply_revocation skips records with admitted_at >= effective_until. Regression late_bounded_revocation_sweeps_only_records_admitted_inside_it passes: cargo test --manifest-path pkgs/id/Cargo.toml -p id-sync --test federation_b02 --offline 11 passed, 0 failed (run through fleet-build-lock). Closing as implemented.

  4. dezren39 commented on Nov 21, 2026

    @dezren39
    MemberAuthor

    Closed as implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions