Files
ruflo/plugins/ruflo-core
ruv e4bd9bbcbe fix(verify+memory+browser): #1880, #2019, #2015 — three precondition/contract fixes + CI guards
Three small but recurring bugs ship together because they share the
same anti-pattern: a try/catch (or a missing flag) silently turned a
clear precondition failure into a vague "verification failed" /
"controller disabled" / "rvf create failed" outcome that downstream
consumers couldn't act on.

#1880 — witness verify exits 1 on source-only checkouts
  - The 12h scheduled verification has been filing a duplicate
    "HIGH — verification broken" issue every cron run since 2026-05-10
    because the runner does a source-only checkout (no @noble/ed25519
    install, no `npm run build`) and verify.mjs lumped that into the
    same exit-1 bucket as a real signature regression.
  - verify.mjs now reserves exit 2 strictly for precondition misses:
      * @noble/ed25519 not installed                → exit 2
      * every manifest entry missing AND manifest   → exit 2
        references /dist/ paths (= "dist not built")
    Real failures (signature invalid, specific marker regressed)
    keep exit 1. The scheduled runner can now distinguish
    "needs install/build" from "we broke something".
  - New CI guard: scripts/smoke-witness-verify-precondition.mjs
    drives all three shapes (missing dep, all-files-missing,
    built tree) and asserts the exit code contract.
  - Wired into v3-ci.yml as witness-verify-precondition-smoke and
    into witness-verify's `needs:` so a contract break blocks publish.

#2019 — vectorBackend controller permanently disabled
  - @claude-flow/memory's controller-registry.ts calls
    agentdb.getController('vectorBackend'). agentdb@3.0.0-alpha.14's
    getController switch only handles memory/reflexion/skills/causal
    and throws `Unknown controller: vectorBackend` for everything else
    — silently swallowed, leaving the controller `enabled: false`
    even though `agentdb.vectorBackend` is a real field on the
    instance (assigned in AgentDB.initialize()).
  - Registry now probes `agentdb[name]` directly first, falls back to
    getController only when the field is absent. Applied to all three
    accessor paths (initializeController, get, isEnabled).
  - RuntimeConfig gains an optional `agentdb` injection field so
    tests and consumers with a pre-built AgentDB can govern it via
    the registry.
  - Two new tests in controller-registry.test.ts cover both branches
    (direct property wins; falls back to getController when absent).
  - Full controller-registry suite stays green (67 tests).

#2015 — ruflo-browser session_record fails every call
  - ruvector@0.2.25 makes `-d, --dimension <n>` required on
    `rvf create`. The browser_session_record MCP tool wrapper invoked
    `rvf create … --kind browser-session` WITHOUT the flag, so every
    call returned `{ success: false, error: "rvf create failed" }`.
  - All five call sites updated to pass `--dimension 384` (matches
    MiniLM-L6 / AgentDB index default):
      v3/@claude-flow/cli/src/mcp-tools/browser-session-tools.ts
      plugins/ruflo-browser/scripts/replay-spike.sh
      plugins/ruflo-browser/agents/browser-agent.md
      plugins/ruflo-browser/skills/browser-record/SKILL.md
      plugins/ruflo-browser/docs/adrs/0001-browser-skills-architecture.md
  - New CI guard: scripts/smoke-browser-rvf-create-flags.mjs
    statically scans every `rvf create … --kind browser-session`
    invocation across the repo (TS, dist, shell, markdown) and
    fails if any is missing --dimension / -d.
  - Wired into v3-ci.yml as browser-rvf-create-flags-smoke and into
    witness-verify's `needs:` so a regression blocks publish.

Cases covered by guards: source-only checkout (no deps), source-only
checkout with build, built tree, missing dimension flag on TS/dist/
shell/markdown call sites. The smokes are independent jobs so the CI
summary names the specific contract that broke.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-16 08:44:51 -04:00
..

ruflo-core

Foundation plugin. Registers the ruflo MCP server (300+ tools), provides three generalist agents (coder, researcher, reviewer), three first-run helpers (init-project, ruflo-doctor, discover-plugins), and a curated catalog covering all 30+ sibling plugins.

Install

/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-core@ruflo

What's Included

  • MCP Server: 300+ tools via @claude-flow/cli (memory, agentdb, embeddings, hooks, neural, autopilot, browser, aidefence, agent, swarm, system, terminal, github, daa, coordination, performance, workflow, …)
  • CLI Commands: 26 commands with 140+ subcommands for agent orchestration
  • 3-Tier Model Routing: Agent Booster (WASM), Haiku, Sonnet/Opus with automatic cost optimization
  • Session Management: Persistent sessions with cross-conversation learning
  • Hooks: PreToolUse / PostToolUse / PreCompact / Stop wired to claude-flow's auto-routing + learning loop. Defined at plugins/ruflo-core/hooks/hooks.json so the per-plugin loader picks them up on /plugin install ruflo-core@ruflo (per-plugin layout — fixes #1748 Issue 1; the marketplace-root copy at .claude-plugin/hooks/hooks.json is preserved for claude --plugin-dir <repo-root> users).

Configuration

The MCP server starts automatically when this plugin is active. Override environment variables in .mcp.json as needed.

Compatibility

  • CLI: pinned to @claude-flow/cli v3.6 major+minor. The .mcp.json invocation uses @latest for dynamic resolution; the smoke contract verifies the resolved CLI matches the v3.6 line.
  • Verification: bash plugins/ruflo-core/scripts/smoke.sh is the contract.

MCP server contract

The registered ruflo MCP server exposes 300+ tools across these families. Runtime truth is mcp tool call mcp_status:

Family Notable tools Plugin documenting it
memory_* memory_store, _search, _search_unified, _import_claude, _bridge_status ruflo-rag-memory
agentdb_* 15 tools for hierarchical / pattern / causal storage ruflo-agentdb
embeddings_* 10 tools incl. RaBitQ 32× quantization ruflo-agentdb, ruflo-ruvector
hooks_* (incl. hooks_intelligence_*) 19+ tools — routing, learning, transfer, metrics, explain ruflo-intelligence, ruflo-autopilot
aidefence_* 6 tools — PII / prompt-injection / sanitization ruflo-aidefence
neural_* 6 tools — train, predict, patterns, compress ruflo-intelligence
autopilot_* 10 tools — autonomous loops + learning ruflo-autopilot
browser_* (+ new browser_session_*) 23 + 5 = 28 tools — Playwright + RVF lifecycle ruflo-browser
ruvllm_sona_* / ruvllm_microlora_* 4 tools — adaptive learning ruflo-intelligence, ruflo-ruvllm
agent_*, swarm_* spawn, list, status, orchestrate ruflo-swarm
system_*, terminal_* system + terminal session ops this plugin

For every other plugin's tool surface, see its docs/adrs/0001-*.md.

Sibling contracts

This foundation plugin defers to seven sibling ADRs that own specific cross-cutting contracts. New plugins (and consumers of ruflo-core) should reference these instead of re-deriving:

Contract Owner
Pinning + smoke as contract (general pattern) ruflo-ruvector ADR-0001
Namespace convention (<plugin-stem>-<intent>, reserved namespaces) ruflo-agentdb ADR-0001
Session-as-skill architecture (RVF + trajectory + 3 AIDefence gates) ruflo-browser ADR-0001
4-step intelligence pipeline (RETRIEVE → JUDGE → DISTILL → CONSOLIDATE) ruflo-intelligence ADR-0001
3-gate AIDefence pattern (PII pre-storage, sanitization, prompt-injection) ruflo-aidefence ADR-0001
270s cache-aware /loop heartbeat ruflo-autopilot ADR-0001
ADR plugin contract (token-optimization via REFERENCE.md) ruflo-adr ADR-0001

Verification

bash plugins/ruflo-core/scripts/smoke.sh
# Expected: "10 passed, 0 failed"

Architecture Decisions