mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
The dispatch-side edit that closes the SelfEvolvingRouter parallel-
logging pipeline. ADR-150 status: Implemented.
THE EDIT
- Lazy-loader for router-parallel-recorder added beside the existing
router-trajectory + neural-router lazy loaders (same pattern).
- One fire-and-forget call inside the existing if (abEnabled) block,
beside the A/B disagreement counter. Env-gated:
if (process.env.CLAUDE_FLOW_ROUTER_PARALLEL_LOG === '1') {
loadParallelRecorder().then(mod => {
try { mod.recordPair({task, bandit, ser}); } catch {}
}).catch(() => {});
}
Both arms tagged at the call site:
bandit.backend = 'thompson-bandit'
ser.backend = neuralPrior
? 'metaharness-router-hybrid'
: 'bandit-only'
ZERO DEFAULT-PATH OVERHEAD
The env flag is OFF by default. Without it set:
- process.env lookup: one string compare on each route() call
- loadParallelRecorder() never invoked
- dynamic import never resolved
- No filesystem I/O
- No JSON serialization
The routing hot path is byte-identical to before iter 12 when the
env flag is unset.
ADR-150 ARCHITECTURAL CONSTRAINTS (preserved)
#1 Removable — recordPair is dynamic-imported lazily; the .catch()
on the import promise means a missing @metaharness/kernel never
surfaces to the routing path.
#2 Optional — env-gated, off by default; no static import added.
#3 Graceful degradation — try/catch around recordPair, .catch() on
import promise. The routing decision NEVER blocks or throws
because of the recorder.
#4 CI gate — smoke step 17f asserts the call site, env gate, lazy
loader, both arm tags, and try/catch presence.
END-TO-END PIPELINE NOW WIRED
route() → recordPair() → .swarm/router-parallel.jsonl
→ router-parallel-analyze.mjs
→ 3-criteria AND-gate verdict
ADR-150 STATUS UPDATE: Accepted → Implemented
All Phase 1 + Phase 2 items shipped across 12 /loop iterations. The
only outstanding work is the KRR retrain from production trajectory
data — explicitly noted as pending in the status field.
Smoke: 21 → 22. Fleet: 33/33. tsc clean.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude Flow V3 - Architecture Decision Records
All ADRs are located in /v3/implementation/adrs/.
Quick Links
| ADR | Title | Status |
|---|---|---|
| ADR-001 | Adopt agentic-flow as Core Foundation | Complete |
| ADR-002 | Domain-Driven Design Structure | Complete |
| ADR-003 | Single Coordination Engine | Complete |
| ADR-004 | Plugin Architecture | Complete |
| ADR-005 | MCP-First API Design | Complete |
| ADR-006 | Unified Memory Service | Complete |
| ADR-007 | Event Sourcing | Complete |
| ADR-008 | Vitest Testing | Complete |
| ADR-009 | Hybrid Memory Backend | Complete |
| ADR-010 | Node.js Only | Complete |
| ADR-011 | LLM Provider System | Complete |
| ADR-012 | MCP Security Features | Complete |
| ADR-013 | Core Security Module | Complete |
| ADR-014 | Workers System | Complete |
| ADR-015 | Unified Plugin System | Complete |
| ADR-016 | Collaborative Issue Claims | Complete |
| ADR-017 | RuVector Integration | Complete |
| ADR-018 | Claude Code Integration | Complete |
| ADR-019 | Headless Runtime Package | Complete |
| ADR-020 | Headless Worker Integration | Complete |
| ADR-046 | Dual Umbrella: claude-flow + ruflo | Accepted |
| ADR-047 | Fast Mode Integration | Proposed |
Summary Documents
- ADR Status Summary - Implementation status overview
- V3 ADRs Master - Complete ADR document
- Full README - Detailed index with roadmap
Performance Targets
| Metric | Target | Status |
|---|---|---|
| HNSW Search | 150x-12,500x faster | ✅ Achieved |
| Flash Attention | 2.49x-7.47x speedup | ✅ Achieved (alpha.102) |
| Memory Reduction | 50-75% | ✅ Achieved |
| MCP Response | <100ms | ✅ Achieved |
| CLI Startup | <500ms | ✅ Achieved |
Neural Features (alpha.102+)
| Component | Status | Lines | Notes |
|---|---|---|---|
| SONA Optimizer | ✅ Real | 841 | Pattern learning from trajectories |
| EWC++ Consolidation | ✅ Real | ~600 | Fisher matrix, prevents forgetting |
| MoE Router | ✅ Real | ~500 | 8 experts with gating network |
| Flash Attention | ✅ Real | ~500 | O(N) block attention |
| LoRA Adapter | ✅ Real | ~400 | 128x compression (rank=8) |
| Hyperbolic Embeddings | ✅ Real | - | Poincaré ball model |
| Int8 Quantization | ✅ Real | - | 3.92x memory savings |
Security Status
| CVE | Severity | Status |
|---|---|---|
| CVE-2 | Critical | ✅ Fixed |
| CVE-3 | Critical | ✅ Fixed |
| HIGH-1 | High | ✅ Fixed |
| HIGH-2 | High | ✅ Fixed |
Security Score: 10/10
Last Updated: 2026-01-14 CLI Version: @claude-flow/cli@3.0.0-alpha.104