Skip to content

test(stream-crypto): stream plane proven end-to-end over real airc LAN - #1264

Merged
joelteply merged 2 commits into
canaryfrom
feat/stream-session-lan-proof
Jun 20, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/stream-session-lan-proof

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.

✅ stream-plane crypto over REAL airc LAN (TLS+TCP):
   authenticated handshake + symmetric AEAD frames, both directions

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: SealedFrame now derives Serialize/Deserialize (it rides the wire).

Next

  • BigMama updates off her behind-branch → gets the crypto core → run this across two real machines.
  • slice 3c: SessionTransport<T> so callers don't hand-carry the frames + dispatch on crypto_mode for UDP/WebRTC.

🤖 Generated with Claude Code

joelteply and others added 2 commits June 20, 2026 16:38
… 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]>
@joelteply
joelteply merged commit 65823b6 into canary Jun 20, 2026
10 of 12 checks passed
@joelteply
joelteply deleted the feat/stream-session-lan-proof branch June 20, 2026 21:38
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]>
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.

1 participant