Repository navigation
id-sync: B23 signed, expiring routing observations - #11961
Merged
Merged
Conversation
Routing state holds only observers' signed statements about their own links, admitted through the B32 gate and refused when poisoned, with newer statements replacing older ones and expired ones reported stale. The topology is explicitly partial (unobserved and stale peers named), validation_due lists peers to re-probe, and changes() reports appeared, vanished and lost-from-sight peers and link changes. Static mode is the rollback. Refs #10251 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: a server had no routing state at all, so it could not notice peers that vanished or appeared, and nothing said how old or trustworthy a view of the network was.
After: routing state is built only from observers' signed, expiring statements about their own links. Each statement goes through the B32 gate (signature, signer binding, scope, freshness, replay) and is refused if poisoned: bad bytes, an observer other than the signer, another scope or time, or an expiry that is missing or too long. A newer statement replaces an older one and an expired one only shows as stale. The topology names what it cannot see (unobserved and stale peers) and never claims to be complete. The server can list which peers are due for re-validation and compare two topologies to see who appeared, who vanished (reported down by a current observer) and who was only lost from sight.
How: new slice
federation/slices/b23_routing_state.rs(RouteObservation,RoutingState::{ingest, topology, validation_due, prune},PartialTopology,changes) andtests/federation_b23.rs. The payload encoding is pinned to hex computed independently in Python; a hand-written fixture replays signed observations through expiry, re-probes, late and conflicting statements against expected topologies and changes; a reference model checks random streams of honest, poisoned, replayed and expiring observations. Rollback isRoutingMode::Static, which uses explicit static links and validates nothing while dynamic state still expires. Seventeen hand mutants are caught.Refs #10251
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.