mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
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>