Repository navigation
test(stream-crypto): stream plane proven end-to-end over real airc LAN - #1264
Merged
Merged
Conversation
… LAN "See it work." The crypto core (session/handshake/session_manager) is unit-tested in isolation; this proves it round-trips over the actual wire — two airc peers on a real LAN TCP+TLS connection run the Ed25519-authenticated X25519 handshake and exchange ChaCha20-Poly1305-sealed frames BOTH directions. Same shape as the two-machine M5<->BigMama test, runnable in-process now. Green. airc is the byte pipe (SessionManager identities are independent of the airc peer ids); slice 3c folds the framing into a SessionTransport<T>. Also: SealedFrame now derives Serialize/Deserialize (it rides the wire). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This was referenced Jun 20, 2026
joelteply
added a commit
that referenced
this pull request
Jun 20, 2026
…nic gate (canary red) (#1267) fix(crypto): no expect() in StreamSession::derive — satisfy the no-panic gate #1264 landed session.rs with `hk.expand(...).expect("infallible")`, which the workspace clippy gate denies (clippy::expect_used in --lib) — turning canary RED and dinging every PR's gate. Caught by BigMama. Propagate instead of panic: `expand_key` and `StreamSession::derive` now return Result (SessionError::KeyDerivation); the handshake maps it to HandshakeError::KeyDerivation. HKDF-Expand of a fixed 32-byte output is genuinely unreachable-fail, but a Result is the gate-clean + future-proof shape (no silent panic if the output size ever changes). Tests use .unwrap() (tests are exempt from the --lib gate). 87 airc-protocol tests green, LAN proof green, `clippy -p airc-protocol --lib` clean. Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 20, 2026
…ho) + fmt (#1274) fix(build): repair canary — #1271 added EventFilter.self_echo but missed examples + fmt #1271 (suppress own broadcasts from the join feed) added a required field `self_echo: Option<SelfEcho>` to EventFilter, but only updated the airc-cli construction sites — the example crates (consumer_shapes, embedded_consumer_smoke) still construct EventFilter without it, so the whole workspace failed to compile (E0063), reddening clippy + `cargo test --workspace` on every platform. It also left stream.rs fmt-dirty. Canary merged red, so EVERY downstream PR inherited a broken gate (hit live on #1272). Fix: add `self_echo: None` to every example EventFilter (None = no self-echo suppression — consumers/RAG/Continuum must keep seeing everything, per the design note in stream.rs) and run rustfmt. Verified: `cargo build --workspace` clean, `cargo fmt --check` clean, production no-silent-fallback gate green. (Process note: this is the 2nd red-canary inheritance this cycle after #1264 — canary protection isn't enforcing green CI before merge.) Co-authored-by: Claude Opus 4.8 <[email protected]>
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.
See it work
Proves the stream-plane crypto round-trips over real airc LAN transport (not a mock): two airc peers on a real TCP+TLS connection run the Ed25519-authenticated X25519 handshake (
airc_protocol::session_manager) and exchange ChaCha20-Poly1305-sealed frames both directions. Green.This is the exact shape of the two-machine M5⇄BigMama test — runnable in-process now, and the dogfood proof that the crypto works on the live wire before slice 3c folds the framing into a
SessionTransport<T>. airc is the byte pipe here; the SessionManager identities are independent of the airc peer ids. Also:SealedFramenow derivesSerialize/Deserialize(it rides the wire).Next
SessionTransport<T>so callers don't hand-carry the frames + dispatch oncrypto_modefor UDP/WebRTC.🤖 Generated with Claude Code