Skip to content

id-sync(B02): bounded revocation sweeps stop at the interval's end - #11965

Merged
dezren39 merged 1 commit into
mainfrom
claude/b02-bounded-sweep
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/b02-bounded-sweep

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: a bounded revocation (for example an administrative suspension over [200, 300)) applied after the fact quarantined or flagged every matching record admitted at or after effective_from, including records admitted at or after its exclusive effective_until.

After: the sweep skips records admitted at or after effective_until, so they stay Accepted. Records before and inside the interval are treated exactly as before, and quarantine stays sticky.

How: one guard in RevocationRegistry::apply_revocation, and the same boundary in the test's reference model sweep. New test late_bounded_revocation_sweeps_only_records_admitted_inside_it admits records at 100, 250, 300 and 400, then applies the suspension, and checks that a later unbounded revocation still reaches the post-interval records. Removing the guard fails it. B02 and B28 tests pass.

Refs #11955


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

apply_revocation swept previously accepted records using only
effective_from, so a bounded suspension learned late quarantined or
flagged records admitted at or after its exclusive effective_until. The
sweep now leaves those records alone, matching RevocationRecord::covers.
The reference model in the B02 test follows the same boundary, and a
regression admits records before, inside, at and after the interval
before applying the suspension.

Refs #11955

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 22:58
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5097337b-6c67-4324-9584-80d867633161
Commits

Reviewing files that changed from the base of the PR and between aee337d and 2ca29f0.

Files selected for processing: 2

  • pkgs/id/crates/id-sync/src/federation/slices/b02_key_revocation.rs
  • pkgs/id/crates/id-sync/tests/federation_b02.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T23:00:02.514493Z 2ca29f0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit fa399f0 into main Nov 18, 2026
1 check passed
@dezren39
dezren39 deleted the claude/b02-bounded-sweep branch November 18, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants