Files
ruflo/v3/docs/adr
Reuven ef1f296c25 docs(adr): ADR-098 — plugin capability sync + token/perf/intel/self-opt pass
Audits all 32 plugins under plugins/ruflo-* and proposes a 5-part
remediation plan. Implementation rolls out in follow-up iterations.

Findings (auto-extracted via inventory script + grep audit):

  1. CAPABILITY SYNC GAP — only ruflo-federation references any
     post-3.6.13 ADR (096/097). 6 other plugins should reference
     them too: aidefence, security-audit, rag-memory, rvf,
     cost-tracker, agentdb / knowledge-graph (G7 controllers).

  2. TOKEN-COST OUTLIERS — 4 agent prompts > 80 lines (cost-analyst
     105, adr-architect 96, domain-modeler 93, device-coordinator
     ~80). Each prompt-line is ~12 tokens × every spawn. Reference
     tables belong in skills (on-demand load) or REFERENCE.md.

  3. MODEL-TIER MISMATCH — 3 agents on model:opus. federation-
     coordinator + neural-trader/trading-strategist are justified;
     security-auditor is debatable — propose drop to sonnet.

  4. INTELLIGENCE/LEARNING GAP — 7 of 43 agents (16%) lack a
     `hooks post-task --train-neural true` call. Standardize the
     ~3-line tail across all plugins.

  5. SELF-OPTIMIZATION ABSENT — no plugin currently dispatches
     background workers (optimize / audit / testgaps / document /
     benchmark) on completion. Targeted dispatch table per agent
     class lands as Part 5.

Each part is independently shippable. Acceptance criteria:
  - 6 plugins gain ADR references
  - 4 prompts shrink to ≤ 60 lines
  - 1 model:opus → sonnet
  - 43/43 agents have post-task neural training
  - ≥ 8 work-producing agents fire the right background worker
  - No regression in /plugin install resolution

Trade-offs documented:
  - Skills/REFERENCE.md over inline tables (load on-demand)
  - Selective per-plugin minor bumps over bulk 0.2.0 (signals which
    plugins materially changed)
  - Hooks-dispatch over in-process worker trigger (hooks are the
    existing surface; no new API)

Risks called out:
  - Skill/REFERENCE refactor breaking implicit-context agents
  - Sonnet drop affecting security-audit quality (one-cycle trial)
  - Worker dispatch firehose if every agent fires (cap if needed)

This ADR makes no runtime code changes — only edits under
plugins/ruflo-*/ when the parts roll out. Task #29 tracks
implementation across iterations.
2026-05-03 21:54:18 -04:00
..
2026-02-08 17:21:23 +00:00

Claude Flow V3 - Architecture Decision Records

All ADRs are located in /v3/implementation/adrs/.

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

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