Files
ruflo/v3/docs
rUvandReuven cecd31085f docs(adr): ADR-120 — cross-port agentic-flow QUIC bridge into midstream + Rust in-flight agentics (#2006)
Answers the user's question: "can we update ruvnet/midstream using
agentic-flow's QUIC implementation and republish, then integrate
into ruflo with Rust-based inflight agentics?"

Short answer: yes, and the path is short because both repos already
share quinn 0.11. The three-step plan:

1. Upstream (ruvnet/midstream): cross-port agentic-flow-quic's
   working TS bridge (UDP dgram ↔ WASM sendMessage/recvMessage)
   + handshake state machine into midstream's npm-wasm/ build.
   Keep midstreamer-quic's better Rust crate (OS trust store via
   rustls-platform-verifier, proptest coverage). Republish
   midstreamer@0.3.0 with real QUIC instead of the current
   counter stub.

2. Ruflo (loader): extend ADR-108's loader pattern with one new
   env flag (MIDSTREAMER_QUIC_NATIVE=1) and one new module path.
   Behind a flag, so no default-behavior change.

3. Ruflo (in-flight agentics): new crate
   v3/crates/ruflo-federation-peer/ that composes midstreamer-quic
   + aimds-{core,detection,analysis,response} into one Rust binary
   per federation peer. Collapses today's Node-bridge → Node-MCP →
   Rust-crate path into a single process. Federation hop + 3-gate
   AIDefence run in-process. Dispatches to local agents via the
   existing stdio MCP path.

Resolves both ADR-108 (waiting on native QUIC binding) and
ADR-119's "revisit when an N-API binding lands." Backward-
compatible: WebSocket fallback (ADR-104) stays first-class,
WireGuard mesh (ADR-111) unchanged, 3-gate MCP surface
(ADR-118) unchanged.

Built on the agentic-flow QUIC-STATUS.md (Oct 17 2025) showing
100% complete with validated 53.7% latency improvement vs HTTP/2
and 91.2% 0-RTT reconnection improvement.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-05-14 22:11:47 -04:00
..