You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id-sync: bounded revocation sweeps quarantine records admitted after expiry #11955
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
developing-today commentedon Nov 18, 2026
CODE-4375
dezren39 commentedon Nov 21, 2026
Sweep check on main: already fixed by 2ca29f0 ("id-sync(B02): bounded revocation sweeps stop at the interval's end").
apply_revocationskips records withadmitted_at >= effective_until. Regressionlate_bounded_revocation_sweeps_only_records_admitted_inside_itpasses:cargo test --manifest-path pkgs/id/Cargo.toml -p id-sync --test federation_b02 --offline11 passed, 0 failed (run through fleet-build-lock). Closing as implemented.dezren39 commentedon Nov 21, 2026
Closed as implemented.