v3/implementation/adrs/ADR-063-deep-capability-audit-v3519.md
Date: 2026-03-17 Status: Accepted — Remediation In Progress Context: Comprehensive 4-agent parallel audit of all 98 CLI capabilities in Docker environment (ruflo@latest). Covers CLI commands, memory/neural, hooks/sessions, MCP/hive-mind, and known platform limitations.
Document all findings from the deep capability audit of v3.5.19. Categorize by severity (critical, moderate, known limitation) and track remediation status.
review/deep-capability-auditagent spawn -t coder resolves -t to wrong option (e.g., --text from another subcommand)buildAliases() iterates ALL commands/subcommands globally; last registered -t winsparser.ts — Pass 1 identifies command/subcommand, Pass 2 builds scoped aliasesv3/@claude-flow/cli/src/parser.ts (added buildScopedAliases(), getScopedBooleanFlags())--pattern-type flag ignored in neural trainneural train --pattern-type security always trains coordination patternspattern but parser normalizes --pattern-type to patternType (camelCase)ctx.flags.pattern and ctx.flags.patternTypev3/@claude-flow/cli/src/commands/neural.tsneural predict returns 0 results despite trained patternsneural train stores 15+ patterns, neural predict finds nothingv3/@claude-flow/cli/src/memory/intelligence.tshooks pre-task requires --task-id but docs say --description onlyhooks pre-task --description "Fix auth bug" fails with "Task ID required"--task-id marked as required: true in option definition--task-id optional with auto-generation via task-${Date.now().toString(36)}v3/@claude-flow/cli/src/commands/hooks.tshooks notify --message dumps help instead of executinghooks notify --message "Build complete" shows hooks help textnotify subcommand was never implemented (referenced in docs but missing)notifyCommand subcommand with --message, --level, --channel optionsv3/@claude-flow/cli/src/commands/hooks.tsagent metrics returns hardcoded demo data.swarm/agents/, swarm-activity.json, and memory.dbv3/@claude-flow/cli/src/commands/agent.tshooks explain flag collision with -thooks explain --topic "auth" fails when -t is used-t collision). Fixed by scoped alias resolution.session restore --latest not finding sessionssession listnew Date(undefined) when timestamp field is missingmigrate status shows stale v2→v3 statemcp list shows empty when servers are configuredworkflow create creates template but doesn't persistcoverage-gaps and coverage-route not usefulhooks intelligence stats disconnected from neural training@claude-flow/embeddings with ONNX model.@claude-flow/embeddings package is pruned from Docker imageembeddings init reports success but uses hash-fallback backendplugins install @claude-flow/embeddingssecurity audit showed fake timestamps from Jan 2024.swarm/ state files (FIXED in this ADR)| Category | Total | Fixed | Remaining |
|---|---|---|---|
| Critical | 7 | 6 | 1 (resolved by C-1) |
| Moderate | 8 | 0 | 8 (scheduled for v3.5.20) |
| Limitation | 5 | 2 | 3 (by design / planned) |
| File | Changes |
|---|---|
src/parser.ts | Two-pass scoped alias resolution |
src/commands/neural.ts | --pattern-type flag fix |
src/memory/intelligence.ts | Hash-fallback threshold lowering |
src/commands/hooks.ts | pre-task optional task-id, notify subcommand |
src/commands/agent.ts | Real metrics from .swarm/ state |
src/commands/security.ts | Dynamic audit log entries |
pre-task may complicate correlation with post-taskreview/deep-capability-audit