Skip to content

id-sync: B24 nonce-bound topology probes - #11968

Merged
dezren39 merged 1 commit into
mainfrom
claude/b24-topology-probe
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/b24-topology-probe

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Before: nothing produced a node's own routing observation. B23 could store and compare signed observations, but no code learned link state from verified probes, so a forged "I reached that peer" had no guarded source (S1.77).

After: the B24 slice runs signed, nonce-bound probes. A response counts only if it comes from the probed peer under its configured key, carries the probe's nonce, scope and exact request digest, and arrives before the timeout with a plausible time. Answers mark the peer reachable and timeouts mark it unreachable, each for a finite TTL. Prober::observation turns current evidence into this node's own B23 RouteObservation, which is partial by design (S1.78). Probing changes only this node's local scoped state.

How: ProbeRequest/ProbeResponse with documented domain-separated preimages, respond() for the responder side, and Prober::{due, start, receive, expire, evidence, observation, disable, enable}. Probes run on interval plus jitter taken from the probe's nonce. Rollback is disable(): it stops probing and drops in-flight probes and probe evidence, but keeps peers and keys. Tests check golden vectors computed independently with Python cryptography and hashlib, plus targeted binding, timeout, timing and rollback tests. A reference state machine runs over random streams of probes, honest and tampered responses, expiries and disable/enable (512 cases), and its observations round-trip through B23's codec. 32 of 32 applicable mutants are killed.

Refs #10265


Generated by Claude Code


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

Adds the B24 slice. A prober signs each probe (prober, target, scope,
fresh nonce, sent and timeout times); the probed peer answers only a
valid, unexpired probe addressed to it, signing a response that binds
responder, prober, scope, nonce and the exact request digest. The
prober accepts a response only from the peer the probe went to, with
matching nonce, scope and request, in time, under that peer's key;
anything else changes nothing. Answers mark the peer reachable and
timeouts mark it unreachable, each for a finite TTL, and current
evidence becomes this node's own partial B23 route observation.
Probes run on an interval with nonce-derived jitter. Disabling stops
probing and drops all probe-derived state but keeps configured peers.

Refs #10265

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 23:14
@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 42 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: c7d9f979-813b-4a20-8dd9-c99166f1b682
Commits

Reviewing files that changed from the base of the PR and between 83d8cd8 and 589debd.

Files selected for processing: 2

  • pkgs/id/crates/id-sync/src/federation/slices/b24_topology_probe.rs
  • pkgs/id/crates/id-sync/tests/federation_b24.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:15:50.563301Z 589debd 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 7be8cc4 into main Nov 18, 2026
1 check passed
@dezren39
dezren39 deleted the claude/b24-topology-probe branch November 18, 2026 23:14
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