mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
Phase 6.5 — Wedge 12: StreamingBridge
application/streaming-bridge.ts — couples a registered SublinearAdapter
with solve_on_change so event-driven graphs pay only O(nnz(delta) · log N)
per event. Maintains prev_solution in memory; pushDelta applies the
delta or falls back to full re-solve when the delta ratio exceeds the
threshold (default 0.05) or refresh-cap (default 50) hits. Cold-start
produces a full-solve baseline. Reset clears cached state.
Phase 7 — Witness-signed PR artifacts (BEYOND-SOTA WEDGE)
domain/signed-artifact.ts — SignedPageRankPayload + Envelope schema.
Embeds complexity_class + coherence_score + resultHash echoes so
verification covers provenance + budget compliance + input stability.
Solver version pinned to sublinear-time-solver@1.7.0.
infrastructure/witness-signer.ts — Ed25519 sign/verify via node:crypto
(no new deps). canonicalJSON skips undefined keys for round-trip
determinism. Trust-list filtering. Three integrity checks before
signature verify: resultHash echo, coherenceScore echo,
complexityClass echo — all three must match the embedded PageRankResult
or the artifact is rejected as tampered.
98/98 tests passing (+18 since Phase 6):
- phase6_5-streaming.test.ts: 6 (cold-start, sparse delta, full-resolve
fallback, refresh-cap, getCurrentSolution, reset)
- phase7-signed-artifact.test.ts: 12 (canonicalJSON determinism +
undefined-key skip, round-trip, 4 tamper-detection scenarios, trust
list accept/reject, byte-deterministic signing, signature changes
with content)
No competing memory framework (LangGraph, AutoGen, Letta, MemGPT, Mem0,
HippoRAG) ships signed graph-reasoning artifacts. The combination of
ADR-103 witness chain + ADR-104 federation transport + sublinear's
deterministic forward-push composes into a primitive structurally
unavailable to systems without these three substrate primitives.
Co-Authored-By: RuFlo <ruv@ruv.net>