GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id: walking skeleton steps 3–4 — the #9106 path between two processes over the transport (#12232) by dezren39 · Pull Request #12621 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Refs #12232 — walking skeleton steps 3–4: the #9106 path between two processes over the existing transport.

The path as composed

substrate_sync_path (step 2) proved the five steps in one process. This slice restates them between two OS processes:

  • Node A is a Replica in the test process, unchanged from step 2.
  • Node B is the same test binary re-executed, holding its own Replica behind the new federation exchange protocol (/id-fed-exchange/1, iroh — the transport every other id protocol rides) plus a test-only control protocol.
  • Step 3 (commit 1) landed the exchange module (federation/exchange_net.rs) with its wire types and a permissive body, and the scenario test failing on its assertions. Step 4 (commit 3) replaces the permissive bodies with the real session: reconcile_remote runs the B09 exchange with the wire where the direct calls were — hello (summary + refused), diverged ids, both offers computed from the pre-exchange inventories, versions admitted through the peer's gate in send order. ExchangeProtocol::session is the mirror image on the responder side.
  • The five steps run end to end: signed record written at an id:// address on A → held in A's store → synced to B over the transport → conflicting record written on B through B's own gate → conflict reported on both nodes — plus resolution on B closing the report on A. Oracles are differential (B reads exactly what A signed; both nodes report the same conflict key/versions/base; the wire Exchange names the same sends and outcomes as in-process reconcile) and metamorphic (a repeated exchange is quiet).
  • Also in step 3: Inventory::from_object_versions in b09, so a peer's inventory can be assembled from the summary plus the diverged ids; the test is registered under id.rust.substrate-path (net registry diff: 5 lines).

Stubs and named limits

No stubs remain on the path: the permissive exchange bodies are gone, and the scenario test fails if the exchange moves nothing (see fail-before). Named limits, recorded in the test header: sessions are initiated by A only (the protocol is symmetric; the harness drives one initiator), and both replicas are in-memory — the on-disk store (step B2(b), PR #12497) composes with this transport separately. Node B is reachable only through the two protocols; the control protocol is test-only.

Evidence (laptop, the UDP venue)

The session rides QUIC/UDP on loopback; the Muse sandbox refuses UDP sends (EPERM), so the test's venue is the laptop (and the CI nightly), as its header records.

  • Fail-before, at step 3's commit f2c5f2d97: cargo test -p id-sync --test substrate_transport_path — FAILED; the scenario panicked at the first exchange assertion (exchange.forward.offer.send was [], expected the base record's event id).
  • Pass-after, at this branch's tip: the same command — ok (1 passed; 1 ignored is the node-B re-exec entry point).
  • Regression: cargo test -p id-sync --test substrate_sync_path at the tip — 4 passed. cargo check -p id-sync --tests clean; rustfmt clean on both touched source files.

No new dependencies (no Cargo.toml changes; the module composes id-sync's existing iroh/serde/anyhow/id-core graph).

What remains on #12232

  • The CLI reach (issue step 3): the smallest command surface that drives this path by hand.
  • The done-when items: a README section showing the five steps as commands, and the nightly running them.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
felix added 3 commits November 22, 2026 15:59
felix
id: walking skeleton step 3 — transport test with a permissive exchan…
f2c5f2d
…ge (failing first)

The five-step path of substrate_sync_path, restated between two OS
processes: node B is this test binary re-executed, holding its own
Replica behind the new federation exchange protocol
(/id-fed-exchange/1, iroh). The exchange module lands with its wire
types and conversions and a permissive body: reconcile_remote moves
nothing yet, so the scenario test fails on its assertions — the
failing-first state for the session that lands next.

Also: Inventory::from_object_versions in b09, so a peer's inventory
can be assembled from the summary plus the diverged ids, and the new
test registered under id.rust.substrate-path.
felix
id: restore the suite registry's formatting; register the transport t…
7c6e9a6
…est surgically
felix
id: walking skeleton step 4 — the exchange session over the wire
f57406a
reconcile_remote now runs the B09 exchange as a session over the
federation exchange protocol: hello and summary/refused exchange,
diverged ids, both offers computed from the pre-exchange inventories,
versions admitted through the peer's gate in send order — the wire
where the direct calls were in the second step. ExchangeProtocol
serves the mirror-image session instead of accepting and dropping
streams; one session per stream, a failed or stalled session ends
that stream, never the endpoint.

The transport test loses its spawn probe (it existed to shake out
the harness) and records its venue: QUIC/UDP on loopback runs where
UDP sends are permitted; the Muse sandbox refuses them (EPERM).
@dezren39
dezren39 requested a review from a team as a code owner November 22, 2026 16:16
@coderabbitai

coderabbitai Bot commented Nov 22, 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 6 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: ac8211c9-4b61-48d8-955d-97c0bf4a497e
Commits

Reviewing files that changed from the base of the PR and between 6008fbb and f57406a.

Files selected for processing: 5

  • .github/test-suite-registry.json
  • pkgs/id/crates/id-sync/src/federation/exchange_net.rs
  • pkgs/id/crates/id-sync/src/federation/mod.rs
  • pkgs/id/crates/id-sync/src/federation/slices/b09_anti_entropy.rs
  • pkgs/id/crates/id-sync/tests/substrate_transport_path.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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 22, 2026
id: walking skeleton for #9106 — a signed record at an id:// address synced between two nodes #12232
Closed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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-22T16:18:16.852825Z f57406a 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 6605f71 into main Nov 22, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the felix/12232-walking-skeleton branch November 22, 2026 16:17
This was referenced Nov 22, 2026
ID #9106 walking skeleton (#12232 #12492) #12535
Closed
id: B3 — the #9106 walking skeleton from the CLI (id walk), store composed with transport #12672
Merged
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.