plugins/ruflo-intelligence/docs/adrs/0001-intelligence-surface-completeness.md
ruflo-intelligenceThe plugin (v0.1.0) wraps "intelligence" capabilities loosely. Six files:
.claude-plugin/plugin.json:4 — version: "0.1.0", keywords intelligence, sona, neural, learning, routingREADME.md:5 — claims wrapping of neural_*, hooks_intelligence_*, hooks_model-* MCP families. No tool inventory or count.agents/intelligence-specialist.md:15-19 — names four tool prefixes (neural_*, hooks_intelligence_*, hooks_route/hooks_model-route, ruvllm_sona_*)commands/intelligence.md — calls hooks_intelligence_stats, neural_status, hooks_model-stats onlycommands/neural.md — dispatches neural_train/status/patterns/predict/optimizeskills/intelligence-route/SKILL.md:5 — allowed-tools enumerates 8 toolsskills/neural-train/SKILL.md:5 — allowed-tools enumerates 13 toolsCounted directly from source:
| Family | Plugin coverage | Real count | Source |
|---|---|---|---|
neural_* | 5 of 6 | 6 (neural_train, neural_predict, neural_patterns, neural_compress, neural_status, neural_optimize) | v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts:195, 312, 413, 539, 651, 706 |
hooks_intelligence_* (and dispatcher / reset) | 6 of 10 | 10 (hooks_intelligence, hooks_intelligence-reset, hooks_intelligence_trajectory-start/step/end, hooks_intelligence_pattern-store, hooks_intelligence_pattern-search, hooks_intelligence_stats, hooks_intelligence_learn, hooks_intelligence_attention) | v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts:2093, 2226, 2296, 2355, 2404, 2556, 2634, 2741, 2952, 3027 |
Routing & meta hooks (hooks_route, hooks_explain, hooks_pretrain, hooks_build-agents, hooks_metrics, hooks_transfer) | 1 of 6 (only hooks_route) | 6 | hooks-tools.ts:884, 1062, 1420, 1499, 1593, 1664 |
hooks_model-* | 2 of 3 | 3 (hooks_model-route, hooks_model-outcome, hooks_model-stats) | hooks-tools.ts:3797, 3844, 3879 |
ruvllm_sona_* + ruvllm_microlora_* | 2 of 4 (only sona_create / sona_adapt) | 4 | v3/@claude-flow/cli/src/mcp-tools/ruvllm-tools.ts:142, 169, 192, 222 |
| Total | ~14 of 29 | 29 | — |
The plugin documents roughly half the intelligence-related surface that the CLI actually exposes. Specifically missing or underspecified:
hooks_intelligence_attention — attention-mechanism dispatch (the same primitive ruflo-ruvector surfaces via attention list). Plugin makes no mention.hooks_intelligence_learn — the "learn from outcomes" tool, the heart of the self-learning loop.hooks_intelligence-reset — clears intelligence state. Useful for testing and fresh runs.hooks_metrics — metrics dashboard. Plugin's /intelligence command should call it.hooks_explain — routing-decision rationale. Critical for trust ("why did the system pick this agent?").hooks_build-agents — generates optimized agent configs from learned patterns.hooks_transfer — IPFS-based pattern transfer between projects. Genuine differentiator, totally invisible in the plugin.ruvllm_microlora_create / ruvllm_microlora_adapt — MicroLoRA adaptation. Plugin only mentions SONA.neural_compress — neural-pattern compression for storage efficiency.README.md:20 claims "EWC++ consolidation" as a feature. The plugin nowhere says how to invoke it. The actual EWC++ semantic lives in agentdb_consolidate and ruvllm_microlora_adapt --consolidate (per the ruvector adaptive embedder). The plugin should map the feature claim to the tool that delivers it.
agents/intelligence-specialist.md:9 mentions "SONA and MoE". SONA gets two tool calls; MoE gets none. hooks_intelligence accepts enableMoe and mode, but the plugin never tells you the modes (balanced, sona, moe, hnsw).
CLAUDE.md describes the 4-step intelligence pipeline (RETRIEVE → JUDGE → DISTILL → CONSOLIDATE). The plugin never surfaces this pipeline in user-facing form, even though it's the conceptual frame the whole substrate revolves around.
ruflo-agentdb ADR-0001 (just landed) introduced a namespace convention with three reserved namespaces: pattern (ReasoningBank fallback), claude-memories (Claude Code bridge), default. The intelligence pipeline writes to pattern (via agentdb_pattern-store and the hooks post-task --train-neural path). The plugin should explicitly cite the convention so consumers don't reinvent it.
There's also a pluralization gotcha worth surfacing here: ruvector's neural/pretrain hooks write to patterns (plural), distinct from ReasoningBank's pattern. ruflo-agentdb documents this; ruflo-intelligence should reference the documentation.
ruflo-intelligence is the user-facing surface for the self-learning system that the rest of the plugin family relies on. Documentation drift here means:
hooks_transfer's IPFS-based cross-project pattern sharing — a genuine differentiator — is invisible.neural_train without understanding RETRIEVE/JUDGE/DISTILL/CONSOLIDATE as distinct steps.ruflo-browser ADR-0001 references trajectory recording; ruflo-agentdb references pattern namespace writes) lose their anchor doc.We just fixed analogous drift in ruflo-ruvector (ADR-0001) and ruflo-agentdb (ADR-0001). Same pattern applies here.
Six changes. Each is plugin-local; no CLI source modifications.
plugin.json moves 0.1.0 → 0.3.0 (matches the ruflo-agentdb cadence and reflects that this is a substantial scope expansion, not a patch). Keywords gain microlora, ewc, attention, moe, pattern-transfer, model-routing, mcp. Description rewrites to explicitly enumerate the three families and the IPFS transfer.
The README becomes the canonical entry point with these new sections:
hooks_transfer documented end-to-end (IPFS publish, fetch, apply). This is the single most undersold capability of the plugin family.post-task --train-neural, pretrain, pre-task to which intelligence tools fire. References ruflo-agentdb's reserved namespaces (pattern for ReasoningBank, patterns for neural-train).ruflo-agentdb ADR-0001 §"Namespace convention"; reproduces the pluralization gotcha (pattern vs patterns).agentdb_consolidate and ruvllm_microlora_adapt --consolidate.hooks_intelligence modes (balanced / sona / moe / hnsw) enumerated.@claude-flow/cli v3.6 (matches ruflo-agentdb).agents/intelligence-specialist.md gains a routing matrix that maps user intent to the specific MCP tool: "user wants routing rationale → hooks_explain"; "user wants pattern compression → neural_compress"; etc. Replaces the bullet list of prefixes with a decision table. Drops the free-form memory store --namespace routing-outcomes line (the tools handle this).
/intelligence — calls hooks_intelligence_stats + hooks_metrics + hooks_model-stats + neural_status + hooks_explain (when invoked with a --why <task> arg). Becomes a real dashboard, not a 4-step list./neural — adds neural_compress to the dispatch table.intelligence-route/SKILL.md — adds hooks_explain as the post-routing rationale step. Updates the 3-tier routing table to match the actual hooks_model-route output shape.neural-train/SKILL.md — adds MicroLoRA section (ruvllm_microlora_create / _adapt) with EWC++ consolidation. Adds neural_compress for pattern compaction.intelligence-transfer — hooks_transfer IPFS workflow. Covers transfer store, transfer load, transfer from-project. This is the single biggest gap in the current plugin.scripts/smoke.sh (new file). Structural checks against the documented surface — no live MCP calls. The contract:
0.3.0 with the new keywords.neural_* tools referenced somewhere in plugin docs.hooks_intelligence_*-family tools referenced.hooks_route, hooks_explain, hooks_pretrain, hooks_build-agents, hooks_metrics, hooks_transfer) referenced.hooks_model-* tools referenced.intelligence-transfer skill exists with allowed-tools enumerated and references hooks_transfer.pattern vs patterns) — defers to ruflo-agentdb.@claude-flow/cli v3.6.Plus three doc invariants checked by single-line greps:
grep -q "4-step intelligence pipeline" plugins/ruflo-intelligence/README.mdgrep -q "hooks_transfer" plugins/ruflo-intelligence/skills/intelligence-transfer/SKILL.mdgrep -qE "RETRIEVE.+JUDGE.+DISTILL.+CONSOLIDATE" plugins/ruflo-intelligence/README.mdPositive:
ruflo-agentdb is explicit; downstream plugins inherit one consistent story.Negative:
memory store --namespace routing-outcomes pattern from the agent file. Updating them is a separate cleanup.intelligence-transfer skill assumes hooks_transfer is wired to a working IPFS endpoint (Pinata or similar). If the endpoint is unconfigured, the skill returns a structured error — but agents reading the skill MD may be surprised. We document the prerequisite.Neutral:
routing-outcomes namespace) is replaced. Consumers of that namespace should migrate to hooks_model-outcome which is the typed equivalent.bash plugins/ruflo-intelligence/scripts/smoke.sh
# Expected: "16 passed, 0 failed" (13 contract checks + 3 doc invariants)
plugins/ruflo-ruvector/docs/adrs/0001-pin-ruvector-0.2.25.md — pinning + smoke-as-contract precedentplugins/ruflo-agentdb/docs/adrs/0001-agentdb-optimization.md — namespace convention + reserved namespaces (pattern/claude-memories/default); pluralization gotcha; hook integration tableplugins/ruflo-browser/docs/adrs/0001-browser-skills-architecture.md — uses ruvector trajectory hooks (a primary learning input for this plugin)v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts — 6 neural tool definitionsv3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts — 19 hooks-family tools (intelligence, route, model, transfer, metrics, explain, pretrain, build-agents)v3/@claude-flow/cli/src/mcp-tools/ruvllm-tools.ts — 4 SONA + MicroLoRA tools