Files
ruflo/v3/docs/adr
ruv 45f951143e feat(browser): #2041 ADR-122 Phase 6 + substrate reframing — Session Capsule + adapters + risk classes
ADR-122 reframed as **RuFlo Browser Substrate**: ruflo becomes the memory,
policy, replay, distributed-planning layer underneath browser agents. Stagehand,
Browser Use, Playwright, Browserbase, Surfer-H become execution targets — not
competitors. Added Architecture section: layered system, 6 runtime services,
risk-class taxonomy, Session Capsule schema, production-aware UCT, SOTA rubric.

Phase 6 implementation (substrate primitives):
- domain/session-capsule.ts — full SessionCapsulePayload with origins[],
  reusePolicy (allowedOrigins, allowedTaskClasses, maxReplays, requireFreshMfa,
  allowCrossDevice/Installation), consentProof (signed statement),
  browserProfile, witnessChainHead, expiry, replays counter. RiskClass enum
  (read-only / authenticated-read / draft-write / external-submission /
  financial / account-mutation / destructive) + AUTONOMOUS_CLASSES set.
- application/session-capsule-service.ts — create() with PII-scan gate,
  verify() with schema+signature+trust-list+expiry+maxReplays checks, mount()
  that increments replays + rolls witness chain head, revoke(), per-class
  RiskClassifier with verb+target regex taxonomy.
- domain/browser-adapter.ts — BrowserExecutionAdapter interface (single
  surface above the tool wars: open/snapshot/click/fill/type/screenshot/wait/
  getUrl/getTitle/getText/close/observe).
- infrastructure/agent-browser-execution-adapter.ts — first concrete adapter
  wraps existing AgentBrowserAdapter; future Phase 6.5+ adds Stagehand,
  Browserbase, local Chrome.
- 20 new tests: clean+PII create, tamper rejection, expired capsule, trust
  list, mount replays + chain head, maxReplays cap, origin/taskClass policy
  enforcement, revoke, RiskClassifier for all 7 classes (Class 1-3 autonomous,
  Class 4-7 human approval), inline-state PII detection regression fix
  (string-spread bug that prevented SSN regex matching).

218/218 tests passing (+20 for Phase 6). Build + typecheck clean.

Beyond SOTA: no public browser-agent system ships a signed-state capsule with
origin scope, consent proof, replay counter, witness chain, AND risk-class
gating. Stagehand v3 portability + Browserbase persistence + Surfer-H vision
are all *execution-layer* — ruflo is the substrate that sits above them.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-18 19:28:31 -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