Commit Graph
7782 Commits
Author SHA1 Message Date
ReuvenandRuFlo 71ab7a282d feat(ruvocal): tool-call-aware dynamic follow-up suggestions
After every assistant turn that called MCP tools, the chat now
shows up to 4 contextually relevant follow-up prompt chips —
derived from which tools just ran, not just from the static
example prompts the user clicked initially.

Behavior:
- Static curated follow-ups (from mcpExamples / routerExamples)
  still take priority when the first user message matched an
  example prompt — same UX as before.
- When no static match (any user-typed prompt, any subsequent
  turn), follow-ups are generated by mapping the latest assistant
  message's tool_calls through followUpsForTool().
- Mappings cover the major tool families: memory (store /
  search / retrieve / list), system_status, performance_*,
  agent_spawn / swarm_init, hooks_route, analyze_diff*, github_*,
  hooks_trajectory_*, hooks_security_scan, search, web_research,
  guidance.
- Deduped to 4 max across all tool calls.

Renders in the existing follow-up chip UI — no new component, no
new styles. shouldShowRouterFollowUps relaxed to allow follow-ups
on every assistant turn (not just the first), but only when the
last message is from the assistant and we're not loading.

Closes the gap where typing your own prompt got zero suggestions
even though the assistant clearly demonstrated which tools were
relevant.

svelte-check: 0 new errors.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 17:16:45 -04:00
ReuvenandRuFlo f95b48d6da docs(readme): drop "Welcome screen preview" details block
Redundant with the main ruVocal.png banner above the section, and
the welcome screenshot was hidden behind a <details> toggle most
readers don't open. The action-shot tells the story better.

Asset file v3/docs/assets/ruVocal-welcome.png stays on disk for
potential reuse.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 17:08:40 -04:00
ReuvenandRuFlo d3c0f3c531 fix(docs): correct ruvLLM link to RuVector/examples/ruvLLM subdirectory
Was linking to a non-existent github.com/ruvnet/ruvllm repo. Actual
location is https://github.com/ruvnet/RuVector/tree/main/examples/ruvLLM
— ruvLLM lives as an example/subproject within the RuVector repo.

Updated in both README.md (Web UI emoji table) and
RufloHelpModal.svelte (under-the-hood callout).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 17:08:25 -04:00
ReuvenandRuFlo 099290d417 docs(readme): add 🔌 "Bring your own MCP servers" row to Web UI table
The MCP (n) pill in the chat input already opens a server manager
that supports adding any MCP endpoint (HTTP, SSE, stdio). README
didn't mention this — significant gap given that "MCP" is in the
section name.

New row sits between the built-in tool count and the parallel-call
capability, where "but can I add my own?" naturally lands.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 17:07:39 -04:00
ReuvenandRuFlo 162b45c7f7 docs(readme): reframe Web UI as self-hostable, hosted demo at flo.ruv.io
Was treating the three URLs (flo.ruv.io / ruflo.ruv.io /
ruvocal.ruv.io) as if they were the product. They're just my
hosted demo — RuFlo's Web UI is meant to be self-hosted.

- Drop the "Three URLs, one app" row entirely (was a deployment
  detail, not a user-facing feature).
- Replace with 🏠 "Self-hostable" row that points readers at the
  Dockerfile and cloudbuild.yaml.
- Heading reads "Web UI (Beta) — self-hostable, hosted demo at
  flo.ruv.io" instead of listing the three aliases.
- Closing call-to-action splits into "Try the hosted demo" and
  "Run your own" with paths to the source + cloudbuild.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 17:06:38 -04:00
ReuvenandRuFlo 357338ec34 docs: surface "any model, local or remote" + ruvLLM in Web UI section
Was overselling the curated cloud lineup as "the" supported set.
Reality: any OpenAI-compatible endpoint works (vLLM, Ollama, LM
Studio, Together, Groq, self-hosted). Plus native ruvLLM — RuFlo's
self-learning local model layer with MicroLoRA + SONA — for
fully-offline / privacy-sensitive workflows.

README:
- Reframe the 🧠 row as "Any model, local or remote" — keep the 6
  curated cloud models as defaults, list the supported runtimes
  underneath.
- New 🦾 row dedicated to ruvLLM with link to ruvnet/ruvllm.

RufloHelpModal.svelte:
- Add a green callout below the Models table noting OpenAI-compat
  support for vLLM/Ollama/LM Studio/Together/Groq/self-hosted, with
  a ruvLLM blurb and link.
- Adjusts the existing "All models route through OpenRouter" note
  to "Cloud models route through OpenRouter".

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 17:05:16 -04:00
ReuvenandRuFlo e89a3a20d9 docs(readme): move Web UI section after What You Get + emoji feature table
README:
- Web UI section now lives directly after the "What You Get"
  capability table (was wedged between MCP Server install and What
  You Get). Better narrative flow: install paths → what RuFlo gives
  you → live demo to try it.
- Bullets replaced with a 7-row emoji table (🧠 / 🛠️ / ⚡ / 💾 / 📘 /
  🌍 / 🚀) using friendly language: "Tools run in parallel" instead
  of "fan out tool_calls"; "Memory that sticks" instead of
  "persistent storage via AgentDB + HNSW".
- All three domain aliases listed in the heading (flo.ruv.io,
  ruflo.ruv.io, ruvocal.ruv.io). Welcome screenshot moved into a
  collapsed <details> block.

RufloHelpModal.svelte:
- Added "Tool-call cards — what the icons mean" legend (✓ Called
  tool, Step N — M tools completed, Retry, AUTO green/gray).
- Added "Under the hood" 8-row stack table (SvelteKit, OpenRouter,
  ruflo backend, ruvector backend, AgentDB+HNSW+ONNX, rvagent-wasm,
  embedded MongoDB, Cloud Run).
- Added "Domain aliases" section listing all 4 URLs (3 custom + raw
  Cloud Run) with notes on Cloudflare DNS and managed cert.
- Added "Keyboard shortcuts" mini-table (Enter, Shift+Enter, Esc,
  ?worker=1 flag).
- Two extra example prompts added (search+web_research parallel,
  diff analysis on a real PR).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 17:03:41 -04:00
ReuvenandRuFlo 43a514237e docs(readme): SEO-optimize Web UI section with welcome screenshot
- Add ruVocal-welcome.png as the primary section banner (520px,
  centered, clickable → flo.ruv.io). Smaller and more brand-focused
  than ruVocal.png — better fit for GitHub's social card.
- Move ruVocal.png into a collapsed <details> block ("See it in
  action") that shows the parallel-tool-calling indicator. Keeps the
  scroll-tax low while still demonstrating real functionality.
- Rewrite the lead sentence to load with searchable keywords:
  "multi-model AI chat with built-in Model Context Protocol (MCP)
  tool calling".
- Bullet list now leads with model count, mentions HNSW vector
  search and OpenRouter explicitly, and ties the parallel-tool
  feature to the "Step N — M tools completed" indicator visible in
  the screenshot.
- Both <img> tags carry SEO-rich alt text covering: multi-agent AI,
  MCP, persistent vector memory, AgentDB + HNSW, parallel tool
  calling, and the model lineup.
- Trailing keywords blockquote for index coverage on terms like
  "Model Context Protocol", "agent swarms", "OpenRouter".

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 16:58:41 -04:00
ReuvenandRuFlo 671149c75d docs(readme): add Web UI screenshot above the flo.ruv.io section
Embeds v3/docs/assets/ruVocal.png as a clickable banner that links to
flo.ruv.io. Image shows real tool execution in the UI:
ruflo__memory_store + ruflo__memory_search firing in parallel with
the "Step 1 — 2 tools completed" indicator, the thinking process
panel, and Qwen 3.6 Max selected as the active model.

Also updates the bullet list under the section to match the current
deployed lineup (Qwen 3.6 Max as default, Opus removed) and adds a
cross-reference from the parallel-tool-calling bullet to the
indicator visible in the screenshot.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 16:54:58 -04:00
ReuvenandRuFlo e813bb1de4 feat(ruvocal): expand RuFlo Capabilities modal
- Header subtitle now reflects the full picture: ~210 MCP tools · 5
  server groups · 18 in-browser WASM tools · 6 frontier models · parallel
  tool calling
- Quick start: default updated from "Gemini 2.5 Flash" → "Claude Haiku
  4.5" (matches deployed config); 5 numbered steps now mention the
  parallel-tool-calling cards and the MCP (n) pill explicitly
- NEW "Models available" section: 6-row table with provider, strength,
  per-model "best for" notes, and a default-row highlight (Haiku 4.5)
- Tool groups reworked with richer per-group intros (e.g. WASM section
  notes the 588 KB bundle size and ?worker=1 flag) and more accurate
  per-tool descriptions
- NEW "Try these" section with 4 copy-paste example prompts in mono
  font that exercise memory, parallel system probing, swarm spawning,
  and route+spawn flows
- Tips expanded from 5 short bullets to 6 deeper ones, including an
  explicit "Parallel tool calls" tip explaining the Promise.all
  behavior and the "Step N — M tools completed" cards
- Resources section adds issue #1689 (UI capabilities & roadmap)
- Modal width bumped from max-w-2xl → max-w-3xl, max-h 85vh → 88vh to
  fit the new sections without crowding

svelte-check: 0 new errors.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 16:48:39 -04:00
ReuvenandRuFlo 6e048a5117 docs(adr-033): consolidate mid-iteration changes + follow-up matrix
- Mark the homepage 500 issue as RESOLVED (.gcloudignore root cause)
- New "Mid-Iteration Updates" section: provider switch to Claude Sonnet
  4.6 / OpenRouter, mcp-bridge service deploy + 120s init timeout +
  pinned warm instance, Web Worker (opt-in), custom domains, help icon
  + RuFlo example prompts, search-empty-query guard, cloudbuild env
  preservation, DOCKER_BUILDKIT
- New Follow-Up Work table (P1/P2/P3) tracked in issue #1689:
  worker mode as default, persistent MongoDB, Google OAuth, parallel
  tool-call visualization parity, real rvagent_wasm in worker,
  help-modal copy fix, LLM router (Omni mode)
- References section updated with follow-up issue, .gcloudignore,
  worker files, help modal, live URLs

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 13:22:53 -04:00
ReuvenandRuFlo 43f4173ae1 fix(ruvocal): make WASM worker self-contained, drop $app/environment
Build v8 failed with:
  Rollup failed to resolve import "__sveltekit/environment" from
  "/app/node_modules/@sveltejs/kit/src/runtime/app/environment/index.js"
  file: /app/src/lib/wasm/workerClient.ts

Root cause: wasm.worker.ts imported loadWasm from $lib/wasm/index, which
transitively pulls $app/environment — a SvelteKit page-bundle module
not resolvable in worker context.

Inline a worker-safe mock WasmMcpServer + WasmGallery (same surface as
the index.ts mock used by the main thread today). The real rvagent_wasm
bundle still ships in static/wasm/; integrating it into the worker via
dynamic import is tracked in #1689.

Local `npm run build` now succeeds. Worker file bundles cleanly via
Vite's `new URL("./wasm.worker.ts", import.meta.url)` resolver.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 11:58:13 -04:00
ReuvenandRuFlo 4b6186c70d feat(ruvocal): off-main-thread WASM MCP via Web Worker (opt-in)
Adds a Web Worker that owns the WASM MCP server and exposes a
JSON-RPC + gallery surface to the main thread via postMessage.

- src/lib/wasm/wasm.worker.ts — owns WasmMcpServer + WasmGallery,
  handles the JSON-RPC initialize handshake during load, dispatches
  callMcp / gallery.{list,search,get,setActive,getActive,count,
  getCategories,listByCategory} requests
- src/lib/wasm/workerClient.ts — main-thread RPC client with
  auto-incrementing IDs, Vite `new URL(..., import.meta.url)` worker
  loader, idempotent ensureReady(), feature-flag (localStorage
  "ruflo:wasm-worker"=true OR ?worker=1)
- src/lib/stores/wasmMcp.ts — callMcp now routes through the worker
  when the flag is enabled, falls back to the in-process path
  otherwise

Behind a flag so existing behavior is unchanged for default users
while we validate the worker path. Tracking issue #1689 lists the
remaining gallery / IDB integration work to make worker mode the
default.

svelte-check: 0 new errors.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 11:51:54 -04:00
ReuvenandRuFlo 5cb4ca4f94 docs(readme): mention Web UI Beta after MCP Server + add to capability table
Adds a "Web UI (Beta) — flo.ruv.io" subsection right after MCP Server
with the multi-model lineup, MCP tool count, parallel-tool-calling,
persistent memory, and help-modal highlights. Cross-references ADR-033.

Also adds the UI as a row in the "What You Get" capability table.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 11:44:35 -04:00
rUvandReuven 6e68c93ac6 feat(ruvocal): integrate WASM-MCP layer from RuVector upstream (ADR-033) (#1687)
* feat(ruvocal): add WASM-MCP layer from RuVector upstream (ADR-033)

Adds in-browser WASM MCP server (rvagent-wasm) to local ruvocal:
- src/lib/wasm/ — loader, IndexedDB persistence, capability tests
- src/lib/components/wasm/GalleryPanel.svelte — template gallery UI
- src/lib/components/FoundationBackground.svelte
- src/lib/stores/wasmMcp.ts — Svelte store for WASM MCP lifecycle
- src/lib/constants/rvagentPresets.ts
- src/lib/server/textGeneration/mcp/wasmTools.test.ts
- static/wasm/ — compiled rvagent_wasm.{js,wasm} (~588 KB)
- config/branding.env.example

Pure additions; no existing files modified in this commit. Source:
ruvnet/RuVector/ui/ruvocal main as of 2026-05-01.

See ruflo/docs/adr/ADR-033-RUVOCAL-WASM-MCP-INTEGRATION.md for the
overlay strategy and integration plan.

Co-Authored-By: RuFlo <ruv@ruv.net>

* feat(ruvocal): wire WASM-MCP types into stores and Settings/Tool

Overlays from RuVector upstream needed for GalleryPanel.svelte:
- src/lib/stores/mcpServers.ts — adds WASM_SERVER_ID, loadWasmTemplate,
  getWasmGalleryTemplates exports
- src/lib/types/Settings.ts — adds wasm-related settings fields
- src/lib/types/Tool.ts — adds wasm tool types

svelte-check: 0 new errors introduced. 104 pre-existing errors in
untouched files (RuFloUniverse, migrations, server tests) are
unchanged and out of scope for this ADR.

ADR-033

Co-Authored-By: RuFlo <ruv@ruv.net>

* feat(ruvocal): add Cloud Run deploy stub + document infra prereqs (ADR-033)

- cloudbuild.yaml builds ruvocal Dockerfile and deploys to Cloud Run.
  Wired to existing ruv-dev secrets (ANTHROPIC_API_KEY, GOOGLE_AI_API_KEY,
  OPENROUTER_API_KEY) per ADR-029 pattern.
- ADR-033 updated with deployment plan and explicit MongoDB blocker:
  Cloud Run can't run Mongo natively. Operator must provision either
  Atlas free tier (M0) or a Cloud Run sidecar before first deploy.
- Notes that the thin src/chat-ui/Dockerfile wrapper is unsuitable for
  this integration — it can only patch the upstream HF base image with
  static files, not include compiled WASM source.

Deploy is staged but blocked on mongo. Local validation already passed:
WASM MCP server initializes with 18 tools, IDB persistence works.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruvocal): use INCLUDE_DB=true for embedded mongo on Cloud Run

The local Dockerfile already supports INCLUDE_DB=true via the
multi-stage 'local_db_true' path that copies mongod from the
official mongo:7 image. Setting --build-arg INCLUDE_DB=true and
MONGODB_URL=mongodb://localhost:27017 makes Cloud Run deploys
self-contained — no external Atlas, no sidecar, no service-YAML
rewrite.

Tradeoff: Cloud Run filesystem is ephemeral, so chat history is
lost on cold starts. Acceptable for validating the WASM-MCP
integration; production deploys should follow up with Atlas
or persistent storage (tracked separately).

ADR-033

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruvocal): enable DOCKER_BUILDKIT for Cloud Build

Dockerfile uses COPY --link and RUN --mount=type=cache (BuildKit
syntax). Without DOCKER_BUILDKIT=1 in the build env, Cloud Build's
docker daemon parses the file in legacy mode and fails with
"Unknown flag: link" before any build step runs (build baf645f5
died at 17 seconds).

Co-Authored-By: RuFlo <ruv@ruv.net>

* docs(adr-033): document Cloud Run deployment outcome

Records what's confirmed working on the deployed instance at
https://ruvocal-875130704813.us-central1.run.app and surfaces the
known /api/v2/models 500 (HF chat-ui SSR edge case unrelated to
WASM integration). WASM bundle reachable at /wasm/* with 200 OK.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruvocal): anchor .dockerignore models/** so route dirs survive

The unanchored `models/**` pattern was matching ANY path containing
'models/' — including src/routes/api/v2/models/, src/routes/models/,
and src/lib/server/models/__tests__/. SvelteKit's production build
inside Docker was therefore missing those routes entirely, while
local `npm run build` outside Docker built them correctly. Result:
Cloud Run revisions returned 404 for /api/v2/models which the layout
load function turned into a 500 on the homepage.

Anchoring with a leading slash limits the pattern to the top-level
models/ directory only. This unblocks the deployed homepage and
fully validates the WASM-MCP integration in production.

ADR-033

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruvocal): remove models/** from .dockerignore entirely

Earlier anchor fix `/models/**` still produced images missing the
/api/v2/models route. Confirmed by `docker run --entrypoint=ls` against
gcr.io/ruv-dev/ruvocal:v2 — /app/build/server/entries/endpoints/api/v2/
did not exist, manifest contained 0 references to /api/v2/models, while
/api/v2/conversations and /api/v2/user were present.

Removing the line entirely. The placeholder models/ dir at the repo root
contains only a single 'add-your-models-here.txt' file — letting it into
the build context costs nothing.

ADR-033

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruvocal): cloudbuild deploy preserves env vars across rebuilds

Each rebuild was nuking DOTENV_LOCAL, OPENAI_API_KEY (mapped from
OPENROUTER_API_KEY secret), and other manual config because
`gcloud run deploy --set-env-vars` REPLACES rather than merges.

Drop the env/secret args from the deploy step entirely so subsequent
deploys keep whatever was set via `gcloud run services update`.
Initial env config is set out-of-band per ADR-033.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(ruvocal): add .gcloudignore so model routes survive Cloud Build upload

ROOT CAUSE of the production 500 errors: gcloud builds submit
falls back to .gitignore when no .gcloudignore is present.
.gitignore line 16 is `models/*` (unanchored), which matches
EVERY models/ directory in the tree:
  - src/routes/api/v2/models/* (REAL ROUTES)
  - src/routes/models/* (REAL ROUTES)
  - src/lib/server/models/__tests__/ (tests)

Result: source tarballs uploaded to Cloud Build had EMPTY models/
directories. Production builds shipped without /api/v2/models,
/api/v2/models/refresh, /api/v2/models/[namespace], etc. The
homepage Layout.load called /api/v2/models which 404'd, the layout
chain converted that to a 500, and /favicon.ico (also unmatched at
root, since the assets/ exclusion is unrelated) returned 500 too.

Verified by `gsutil cp` of build c07ba163 source tarball:
  $ tar tzf build-source.tgz | grep models
  src/routes/models/        (empty dir)
  src/routes/api/v2/models/ (empty dir)

After adding .gcloudignore, the v4 source tarball includes all
+server.ts files for those routes.

ADR-033

Co-Authored-By: RuFlo <ruv@ruv.net>

* docs(adr-033): record provider config + ruvocal.ruv.io custom domain

- Gemini 2.5 Flash via Google's OpenAI-compatible endpoint with
  GOOGLE_AI_API_KEY (HF router 401 was due to user-token vs router
  auth mismatch; OpenRouter base URL × HF token combo also failed)
- ruvocal.ruv.io mapped to Cloud Run, Cloudflare CNAME unproxied so
  Google manages the cert; 15-30 min provisioning window

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(mcp-bridge): 120s initialize timeout for Cloud Run cold starts

Bridge was hitting a hardcoded 30s RPC timeout on `initialize` while
ruflo and ruvector backends took 45-60s to boot on Cloud Run cold
start (full claude-flow / ruvector kernel + npx fetch). Backends
were marked "failed to start" but actually came up after the
timeout fired and ran as zombies — bridge served 0 backend tools.

Init gets 120s; other RPC methods stay at 30s (post-init they're
snappy).

Co-Authored-By: RuFlo <ruv@ruv.net>

* feat(ruvocal): replace HF default examples with RuFlo capabilities

Welcome screen now shows 8 prompts that exercise actual ruflo / ruvector
MCP tools (swarm spawn, memory save/recall, task routing, diff analysis,
system status, WASM gallery, GOAP planning, neural training) instead of
HuggingChat defaults like "Generate an image" or "Latest world news".

Co-Authored-By: RuFlo <ruv@ruv.net>

* feat(ruvocal): add help icon + RuFlo capabilities modal

Question-mark icon next to the theme toggle in the sidebar opens a
modal with:
- Quick-start instructions (4 steps)
- All 6 tool groups (Memory, Agents, Intelligence, DevTools, Core,
  WASM) as expandable sections with per-tool descriptions
- 5 tips (MCP pill, AUTO toggle, trajectories, memory, prefixes)
- Resource links to ruflo, ADR-033, ruvector

Closes the user-visible "system doesn't seem to know its tools" gap
by surfacing what's available without forcing the user to open
Settings → Application.

Co-Authored-By: RuFlo <ruv@ruv.net>

* feat(ruvocal): replace router-mode default examples with RuFlo themes

The welcome screen has TWO example sources: mcpExamples (when all
base MCP servers are enabled) and routerExamples (otherwise). Earlier
commit only rewrote mcpExamples, leaving HF defaults like "HTML game"
visible whenever users hadn't toggled all servers on.

Router examples now cover: coding swarms, memory/recall, migration
planning, diff review, HNSW, topology choice, horizon tracking, WASM
vs bridge tools — all answerable without tool calls if needed.

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(mcp-bridge): return structured error on empty search query

When Gemini emits a `search` tool_call with no `query` field, the
bridge was sending an empty prompt to Gemini's generateContent
endpoint and returning the resulting 400 verbatim. The model then
treated it as opaque and gave up.

Validate query upfront and return a hint object the model can use
to retry with a real query.

Co-Authored-By: RuFlo <ruv@ruv.net>

* docs(readme): link banner to flo.ruv.io and add UI Beta button

The Ruflo banner image now links to the live UI at flo.ruv.io. A new
"Try the UI Beta" badge sits below it for explicit click-through.
The Cloud Run cert is still propagating but DNS resolves; CNAME is
unproxied through Cloudflare so Google can issue the managed cert.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-05-01 11:40:45 -04:00
rUvandReuven 1976c57ccd fix(federation): publish @claude-flow/plugin-agent-federation@1.0.0-alpha.3 with ruflo-federation bin (#1685)
Same class of bug as iot-cognitum: source existed (325 tests passing) but
unpublished, and ruflo-federation marketplace plugin's skills called
`npx @claude-flow/cli@latest federation <subcmd>` — federation isn't a
CLI subcommand. End result: every federation skill failed.

Plugin source (v3/@claude-flow/plugin-agent-federation):
- New src/bin.ts: standalone CLI shim that bootstraps AgentFederationPlugin
  in-memory, parses argv, resolves multi-word commands (federation peers
  add, federation peers remove, etc.), aliases short flags, dispatches to
  CLICommandDefinition handlers. Loads .env for FEDERATION_NODE_NAME,
  FEDERATION_BIND_HOST, FEDERATION_BIND_PORT, FEDERATION_TRUST_LEVEL.
- package.json: add bin {ruflo-federation: dist/bin.js}, files whitelist,
  homepage. Move workspace deps to devDependencies (all imports are
  `import type`, erased at compile — zero runtime workspace dep).
- New README.md with subcommand reference and .env config.

Marketplace plugin (plugins/ruflo-federation):
- Bulk-rewrote 5 files (3 skills + commands/federation.md +
  agents/federation-coordinator.md): now call
  `npx -y -p @claude-flow/plugin-agent-federation@latest ruflo-federation <subcmd>`

Other minor fix:
- plugins/ruflo-swarm/README.md: pin `npx @claude-flow/cli swarm` →
  `npx @claude-flow/cli@latest swarm` for consistency with the other 31 plugins.

Audit result post-fix: 32/32 plugins use working invocation patterns.
- 12 verbs against @claude-flow/cli@latest (all exist: memory, hooks,
  security, neural, swarm, doctor, init, embeddings, status, daemon,
  config, plus session)
- @claude-flow/plugin-iot-cognitum (alpha.5 published)
- @claude-flow/plugin-agent-federation (alpha.3 published — this PR)
- neural-trader (2.7.1 on npm)
- ruvector (0.2.25 on npm)

Smoke test: `npx -y -p @claude-flow/plugin-agent-federation@latest
ruflo-federation status` returns Node ID + session count + healthy flag.

Caveat: the 11 plugins that depend on mcp__claude-flow__* MCP tools
(adr, aidefence, autopilot, browser, daa, goals, plugin-creator, ruvllm,
sparc, wasm, workflows) require the MCP server to be connected — not
audited here.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 16:26:23 -04:00
rUvandReuven 8b8127d75e feat(iot): COGNITUM_SEED_TOKEN bearer auth via .env (1.0.0-alpha.5) (#1684)
The bin shim now loads .env from CWD (or any parent) without overwriting
existing env vars, then reads COGNITUM_SEED_TOKEN. When present:
  - Default endpoint switches from http://169.254.42.1 (link-local, no auth)
    to https://169.254.42.1:8443 (LAN/HTTPS, bearer)
  - The token is passed as the pairing/bearer token on `register`
  - All subsequent SDK calls use the bearer-authenticated session

Verified end-to-end against a live Seed: bearer-authed register, status,
mesh, witness, query all work over HTTPS:8443. Self-signed dev cert is
tolerated via NODE_TLS_REJECT_UNAUTHORIZED=0 in the smoke harness;
plugin/SDK tolerance via tlsInsecure config (default true).

Smoke results with bearer: 22/25 pass. The 3 remaining failures are
real Seed-side state (rate-limited pair window from prior runs, SDK
trust-score circuit breaker after repeated unauthorized attempts in
the same in-process run, and store/ingest correctly classified as
needing a write-scoped token vs. our read-scoped one).

Plugin source (src/bin.ts):
- New loadDotenv() walks up from CWD looking for .env, parses KEY=VALUE
  lines (handles quoted values, comments, blanks), sets process.env
  without overwriting.
- SEED_DEFAULT_ENDPOINT = COGNITUM_SEED_ENDPOINT ?? (token ? lan : link-local)
- register handler auto-injects --token from env if not explicitly passed
- --help banner shows token status and endpoint mode

Smoke harness:
- Loads same .env, picks endpoint+token automatically
- pair-window opener now checks status first (avoids HTTP 429 on already-open),
  passes bearer when available
- ingest failure now classified as expected-on-read-scope-tokens

Plugin README documents .env setup, COGNITUM_SEED_TOKEN, optional
COGNITUM_SEED_ENDPOINT/IOT_FLEET_ID/IOT_ZONE_ID/IOT_TLS_INSECURE overrides,
and the read-vs-write token scope distinction.

Bump to 1.0.0-alpha.5; published to npm (alpha + latest).

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 13:25:52 -04:00
rUvandReuven 0575962559 feat(iot): full-coverage smoke + iot query/ingest fixes; link to cognitum.one (1.0.0-alpha.4) (#1683)
Drove the live-Seed smoke harness from 11/24 to 24/25 covered, then 21/25
passing on link-local HTTP (the remaining 4 are real Seed security
boundaries, not plugin bugs).

Plugin source fixes (cli-commands.ts):
- iot query: handler now accepts --vector "[..]" JSON arg and parses to
  number[] (was: passed empty array; result was always nearest-neighbour
  to origin)
- iot ingest: handler now accepts --vector "[..]" --metadata "{..}" OR a
  JSON array on stdin (was: stub that always passed []; the SDK rejected
  empty arrays). Uses the SDK's expected {values, metadata} shape.
- New parseVector helper validates JSON array of numbers.

Smoke harness (__tests__/integration/full-plugin-smoke.mjs):
- Rewrote to 25 commands across 7 tiers (init/lifecycle, read-only,
  vector ops, pair round-trip, fleet ops, firmware reads, deregister).
- Pair flow opens pair window via direct API call first (the plugin
  doesn't expose pair-window control yet — known gap).
- Bearer-required failures (unpair, ingest write) classified as expected
  on link-local; firmware deploy/advance/rollback explicitly skipped
  (OTA-can-brick).
- Pass-through dArgs() helper handles cli-commands.ts arg-style
  inconsistency (some handlers read args._[0], others args['device-id']).

Cognitum.one mention (per user request):
- v3/@claude-flow/plugin-iot-cognitum/package.json: description now
  includes "Get a Seed at https://cognitum.one"; added homepage field.
- New README.md for the npm package — full command reference with
  cognitum.one link prominent at the top.
- plugins/ruflo-iot-cognitum/README.md: "Hardware" section added with
  cognitum.one link and link-local + LAN endpoint reference.

Bump to 1.0.0-alpha.4. Published to npm (alpha + latest).

Known gaps for follow-up (not blockers, real Seed limits):
- ingest/unpair require bearer auth via https://...:8443 — plugin doesn't
  support the bearer transport yet
- pair window opening isn't exposed as a CLI command
- iot pair triggers Seed rate-limiter (HTTP 429) when called repeatedly
- SDK's witness.chain() returns 0 length while raw API shows 49,138
  entries — different endpoint shape

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 13:15:42 -04:00
rUvandReuven 0277a5a0ed fix(iot): register client under both endpoint and device-id during registration (#1682)
The IoTCoordinator.registerDevice() flow was broken: it stored the SeedClient
under the endpoint key only, but DeviceLifecycleService.registerDevice() makes
two SDK calls — getStatus(endpoint) which works, then getIdentity(device_id)
which throws "Device <id> not registered with coordinator" because the client
isn't reachable under the device-id key yet. End result: register always
failed even when the Seed responded correctly.

Fix: pre-fetch the device-id via client.status() in the coordinator, then
register the client under both keys (endpoint and device-id) before invoking
the lifecycle service. After lifecycle returns, drop the endpoint key and
keep the device-id mapping.

Verified end-to-end against a live Cognitum Seed device (firmware 0.8.1):

  $ npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot register
  [info] No --endpoint supplied; defaulting to http://169.254.42.1
  Device registered: ecaf97dd-fc90-4b0e-b0e7-e9f896b9fbb6
    Endpoint:  http://169.254.42.1
    Trust:     registered
    Firmware:  0.8.1

Full-suite live smoke (register → status → mesh → witness → witness verify
→ anomalies → baseline → fleet create/list) all pass. Trust score 0.800
(certified). 239 unit tests still pass.

Bumps to 1.0.0-alpha.3, published to npm (alpha + latest).
Adds __tests__/integration/full-plugin-smoke.mjs as the chained-command
integration harness (the published bin is one-shot; this script bootstraps
the plugin once and exercises device-aware commands in a single process).

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 11:50:58 -04:00
rUvandReuven ec563de2a1 feat(iot): ship @claude-flow/plugin-iot-cognitum@1.0.0-alpha.2 with cognitum-iot bin (#1681)
ADR-079 was implemented (239 tests passing across 19 test files) but never
shipped as an installable npm package — the marketplace plugin's skills
referenced `npx @claude-flow/cli@latest iot ...` which the CLI never exposed.

Plugin changes (v3/@claude-flow/plugin-iot-cognitum):
- Add src/bin.ts: standalone CLI shim that bootstraps the plugin in-memory,
  parses argv, resolves multi-word commands (iot fleet add, iot firmware
  deploy, etc.), aliases short flags, and dispatches to CLICommandDefinition
  handlers. Defaults `iot register` endpoint to http://169.254.42.1 (the
  Cognitum Seed link-local USB Ethernet address).
- package.json: add `bin: {cognitum-iot: dist/bin.js}`, declare files
  whitelist, bump to 1.0.0-alpha.2, move @claude-flow/shared to
  devDependencies (all imports are `import type`, erased at compile)

Marketplace plugin changes (plugins/ruflo-iot-cognitum):
- Replace 10 files' `npx @claude-flow/cli@latest iot ...` invocations with
  `npx -y -p @claude-flow/plugin-iot-cognitum@latest cognitum-iot ...`
- iot register endpoint argument now optional with documented default

Published @claude-flow/plugin-iot-cognitum@1.0.0-alpha.2 to npm
(tags: alpha + latest). Smoke-tested init / list / fleet list / register
default-endpoint via npx end-to-end.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 11:42:04 -04:00
rUvandReuven 26f3230da2 fix: register 12 missing plugins in marketplace.json (#1680)
The marketplace registry only listed 20 of 32 plugin source directories,
so users running /plugin marketplace add ruvnet/ruflo never received the
remaining 12 — including ruflo-iot-cognitum, leaving /iot unreachable.

Added: ruflo-adr, ruflo-cost-tracker, ruflo-ddd, ruflo-federation,
ruflo-iot-cognitum, ruflo-knowledge-graph, ruflo-market-data,
ruflo-migrations, ruflo-neural-trader, ruflo-observability,
ruflo-ruvector, ruflo-sparc.

Marketplace now lists all 32 plugins matching the source tree.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 11:22:44 -04:00
rUvandReuven 643ed0024c chore: bump to v3.6.12 — RuFlo branding, portable MCP server config (#1679)
- Bump @claude-flow/cli, claude-flow umbrella, and ruflo to 3.6.12
- init mcp-generator: spawn `npx ruflo@latest mcp start` (was @claude-flow/cli@latest)
  for cleaner branding via the ruflo wrapper package
- init settings-generator: emit RuFlo-branded attribution
  (Co-Authored-By: RuFlo <ruv@ruv.net>; Generated with [RuFlo])
- Project .claude/settings.json: replace hardcoded /workspaces/... MCP path
  with portable npx ruflo@latest, wire statusLine.command to existing helper,
  drop invalid hook events (TeammateIdle, TaskCompleted, SubagentStart),
  drop ruv-swarm from enabledMcpjsonServers (not configured)

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 11:15:25 -04:00
rUvandReuven 1405eab669 fix: rename plugin commands to avoid built-in conflicts; bump default Opus to 4.7 (#1678)
* chore: bump all packages to v3.6.11 — published to npm

SmartRetrieval integration + 4 bug fixes (#1604, #1605, #1606, #1616).

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix: rename plugin commands to avoid built-in conflicts; bump default Opus model

- Rename 9 plugin commands/skills whose bare names collided with built-in
  Claude Code slash commands and skills (/doctor, /loop, /schedule, /browser,
  /status, /cost, /memory, /docs, /sparc) to ruflo-* prefixed names
- Update ruflo init to default to claude-opus-4-7 (was 4.6) in
  settings.json modelPreferences and statusline display
- Update statusline pkgVersion fallback 3.5 -> 3.6 to match published version
- Add plugin showcase GIF above Quick Start in README

Co-Authored-By: claude-flow <ruv@ruv.net>

---------

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 10:56:47 -04:00
rUvandReuven 0d9f9b1fe9 chore: bump all packages to v3.6.11 — published to npm
SmartRetrieval integration + 4 bug fixes (#1604, #1605, #1606, #1616).

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 00:40:10 -04:00
rUvandReuven c1eb37d535 fix: 4 high-priority bugs — browser ENOENT, memory path, stdio crash, settings (#1604, #1605, #1606, #1616)
#1605: Guard browser_* MCP tool registration behind agent-browser
availability check. Tools are no longer advertised when the binary
is missing.

#1604: Align memory-tools.ts MEMORY_DIR with memory-initializer.ts
(.swarm/memory.db). Legacy migration now correctly reads from the
old .claude-flow/memory/ path.

#1606: Wrap ensureInitialized() in try/catch to prevent unhandled
exceptions from killing the stdio transport. Fix cli.js outer catch
to return -32603 (internal error) instead of -32700 (parse error)
for handleMessage failures.

#1616: Rename .claude/settings copy.json → settings.json.bak so
VSCode Copilot no longer treats it as an active settings file.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 00:33:27 -04:00
rUvandReuven d663581497 feat: wire SmartRetrieval (ADR-090) into production memory pipeline
Integrates the 5-phase SmartRetrieval pipeline into production:
- Export smartSearch + types from @claude-flow/memory package index
- Add `smart` flag to memory_search MCP tool
- Add `--smart` / `-s` flag to CLI `memory search` command
- Update ruflo-rag-memory plugin skill and README

Pipeline: query expansion → RRF fusion → recency boost → MMR diversity → session round-robin.
11/11 tests pass, both packages build clean.

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-04-30 00:24:52 -04:00
Reuvenandclaude-flow 37372f53ca docs: organize 32 plugins into grouped categories with plain language
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-30 00:11:27 -04:00
Reuvenandclaude-flow 000eec8800 docs: update plugin count to 32 in both READMEs
The "All 21 plugins" summary was stale after adding 11 new plugins.
Updated to "All 32 plugins" with the full table in both root and CLI READMEs.

Co-Authored-By: claude-flow <ruv@ruv.net>
v3.6.10
2026-04-30 00:08:06 -04:00
rUv a47c96fadb feat: upgrade ruflo plugins — npm package integration & SOTA retrieval
feat: upgrade ruflo plugins — npm package integration & SOTA retrieval
2026-04-30 00:03:16 -04:00
Reuvenandclaude-flow 7ed18b8335 feat: upgrade neural-trader, ruvector, rag-memory plugins to wrap npm packages
- ruflo-neural-trader: wrap npx neural-trader (v2.7+), add market-analyst
  and backtest-engineer agents, add trader-regime/train/risk skills (4 agents, 6 skills)
- ruflo-ruvector: wrap npx ruvector — FlashAttention-3, Graph RAG, hybrid
  search, DiskANN, 103 MCP tools, Brain AGI
- ruflo-rag-memory: SOTA upgrade — hybrid search (sparse+dense RRF),
  Graph RAG multi-hop, MMR diversity, adaptive chunking, consolidation
- plugins/README.md: add npm package integration section

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-30 00:02:40 -04:00
Reuvenandclaude-flow f25bcf2073 feat: add 10 new ruflo plugins, optimize all 32, add READMEs and user guide
New plugins: ruflo-adr (ADR lifecycle), ruflo-ddd (domain-driven design),
ruflo-sparc (SPARC methodology), ruflo-neural-trader (trading strategies),
ruflo-ruvector (vector embeddings), ruflo-knowledge-graph (entity graphs),
ruflo-market-data (OHLCV ingestion), ruflo-migrations (schema management),
ruflo-observability (logging/tracing), ruflo-cost-tracker (token budgets).

Optimizations across all 32 plugins:
- All pass `claude plugin validate` (removed invalid manifest arrays)
- 51/51 skills have argument-hint frontmatter
- Model routing: 4 haiku, 24 sonnet, 2 opus (cost-optimized)
- Neural learning hooks on 25/30 agents
- Cross-references between 6 related plugin pairs
- Pathfinder graph traversal algo for researcher agent
- READMEs for all 32 plugins + plugins/README.md catalog
- discover-plugins skill updated with full 32-plugin catalog

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 23:46:54 -04:00
Reuvenandclaude-flow ef7369aaf8 feat: @claude-flow/plugin-iot-cognitum — real device bridge with 24 passing tests
Implements ADR-079 device-agent duality: every Cognitum Seed becomes a
Ruflo agent. 12 MCP tools, 9 CLI commands, 1 agent type, DDD layering
with SeedClient factory. 24 integration tests validated against real
Seed hardware at 169.254.42.1 (22K vectors, 45K witness chain entries).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 19:46:35 -04:00
Reuvenandclaude-flow 36e9b4d61f feat: ADR-079 IoT Cognitum plugin — device-agent duality for Seed hardware
Defines @claude-flow/plugin-iot-cognitum bridging Cognitum Seed IoT devices
into Ruflo agent/swarm model. 18 MCP tools, 30+ CLI commands, 5 agent types,
5-tier device trust, HNSW telemetry federation, IEC 62443 compliance.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 19:29:08 -04:00
Reuvenandclaude-flow c44f527a1e feat: lean CLAUDE.md generator with SendMessage-first coordination
Rewrites claudemd-generator.ts from ~577 to ~280 lines (~50% token reduction).
Adds agent comms (SendMessage pipeline) as core section in every template.
Updates root CLAUDE.md to v3.6.10 with comms-first agent teams section.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 19:29:02 -04:00
Reuvenandclaude-flow 0f7c750237 fix: rewrite federation tests to use actual source — no mocks
Replace all 7 mock-based test files with tests that import and exercise
the real source classes. Previously tests defined local reimplementations
with divergent APIs (kebab-case types, wrong actions, different fields),
so they validated the spec but not the implementation.

Source fixes:
- Add missing `address` entry to PII policy matrix (14/14 types)
- Add @claude-flow/aidefence to plugin dependencies

Test count: 202 → 325 (all passing, 179ms)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 19:14:16 -04:00
rUv 3d8f17198b feat: Agent LLM Federation Plugin (#1668)
feat: ADR-078 Agent LLM Federation Plugin
2026-04-29 19:00:10 -04:00
Reuvenandclaude-flow b239c6246c feat: ruflo-federation native plugin, registry entry, README overhaul
- Add ruflo-federation to plugins/ (21st native Claude Code plugin)
  with federation-coordinator agent, /federation command, and 3 skills
  (federation-init, federation-status, federation-audit)
- Register @claude-flow/plugin-agent-federation in discovery.ts
  (official, featured, trending, newest, realNpmPackages)
- README: rewrite intro, add "Slack for Agents" federation section
  with ASCII comms diagram, capabilities table, install commands,
  update plugin count to 21+21

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 18:57:35 -04:00
Reuvenandclaude-flow ecdbe801df feat: @claude-flow/plugin-agent-federation — scaffold, tests, README
Add the Agent LLM Federation Plugin implementing ADR-078:

Plugin scaffold (17 source files, 3,021 lines):
- Domain entities: FederationNode, FederationSession, FederationEnvelope, TrustLevel
- Domain services: PIIPipelineService (14 PII types, confidence scoring, adaptive
  calibration), DiscoveryService, HandshakeService, RoutingService, AuditService
- Application layer: TrustEvaluator (scoring formula with hysteresis),
  FederationCoordinator, PolicyEngine
- Plugin class: 9 MCP tools, 10 CLI commands, 1 agent type
- Clean DDD architecture: domain/application/infrastructure/api layering

Test suite (8 files, 202 tests, all passing):
- Trust scoring formula verification
- PII detection across 14 types with confidence thresholds
- Federation envelope HMAC signing/verification
- Capability gates per trust level
- Audit service with HIPAA/SOC2/GDPR compliance modes
- Routing mode selection (direct default, BFT for state mutations)
- Plugin interface compliance

README updated with federation plugin entry linking to issue #1669.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 18:25:20 -04:00
Reuvenandclaude-flow 41957d0f13 feat: strengthen ADR-078 with trust scoring, PII calibration, consensus optimization
Add strategic feedback to the federation ADR:
- Trust scoring formula (0.4*success + 0.2*uptime + 0.2*threat + 0.2*integrity)
  with hysteresis thresholds and automatic downgrade triggers
- PII confidence scoring with adaptive calibration from operator overrides
- Consensus mode splitting: direct default, BFT only for state mutations
- RuVector/MinCut/RVF stretch direction (Section 9)
- Validation benchmark: 10k messages, zero PII leaks, malicious node isolation
- Updated failure modes: over-engineering, PII too strict, trust too complex
- Strategic framing as "TCP/IP layer for agent trust"
- Architecture evaluation scoring and business impact analysis

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 18:01:40 -04:00
Reuvenandclaude-flow f3ea2d7781 feat: ADR-078 Agent LLM Federation Plugin
Proposes @claude-flow/plugin-agent-federation — a cross-installation
agent federation system with graduated trust, PII-gated data flow,
AI defence scanning, Byzantine fault tolerance, and compliance-grade
audit logging (HIPAA/SOC2/GDPR).

5-phase delivery plan across 16 weeks, building on existing ruflo
capabilities: aidefence, security, claims, hive-mind consensus,
and the plugin sandbox system.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-29 17:46:02 -04:00
rUv ccb062f9bc Merge pull request #1665 from ruvnet/fix/loop-review-validation
fix: monorepo-wide test fixes + v3.6.9 publish
2026-04-28 09:31:31 -04:00
Reuvenandclaude-flow e0a4bfbd77 chore: bump all packages to v3.6.9 — published to npm
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 09:30:57 -04:00
Reuvenandclaude-flow 5151aa9b24 fix: monorepo-wide test fixes — all 20 packages green (5,370 tests)
Fixes across 8 packages to achieve 100% test pass rate:

- shared: sql.js getAsObject([]) fix for event-store stats; ESM fs import
- memory: hybrid-backend tests tolerate degraded health status
- embeddings: infinite-loop fix in chunking (overlap >= maxChunkSize);
  euclidean similarity test; vitest config cleanup
- hooks: guidance-provider test timeout (5s → 15s)
- browser: test mock corrected to execFileSync call signature
- plugins: HookBuilder missing when/handle/transform methods; TestPlugin
  state shadowing fix; dep version parsing (name@version); conflict error
  propagation; namespace strategy renames both entries; restoreState API
- integration: getCompactContext DB error handling; topology always
  hierarchical (anti-drift); batch size cap at 5
- aidefence/deployment/integration/providers: local vitest.config.ts
  to discover src/__tests__/ test files

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 09:27:25 -04:00
Reuvenandclaude-flow 3983d8aad5 fix: browser args comma-join + proper ESM fs import for sysctl (v3.6.8)
Bug D final: args.join(',') not args.join(' ') — agent-browser expects
comma-separated single string: --args "--no-sandbox,--disable-dev-shm"

Bug E final: readSysctl used require('fs') which fails silently in ESM.
Now uses top-level import { readFileSync, existsSync } from 'node:fs'.
AppArmor check was already present but never executed due to require().

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 00:44:17 -04:00
Reuvenandclaude-flow d7e05b443c fix: update commands-deep test for PERF-03 lazy loading architecture
Test expected synchronous exports for daemonCommand et al. and ≥15
commands in the sync array, but PERF-03 moved advanced commands to
lazy loading. Now tests check async getters and expects ≥10 core
commands.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 00:41:36 -04:00
Reuvenandclaude-flow c2c21f6ae5 fix: browser --args flag + AppArmor detect + guidance ab-test executor (v3.6.7)
Bug D: --arg → --args (agent-browser CLI expects plural flag with
joined args string, not per-arg iteration).

Bug E: needsNoSandbox now checks apparmor_restrict_unprivileged_userns
in addition to unprivileged_userns_clone for Ubuntu 24.04+.

Issue #1652: DefaultHeadlessExecutor now implements IContentAwareExecutor
with setContext(). Config A removes CLAUDE.md, Config B writes provided
content. Backup/restore ensures original file is preserved.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 00:38:58 -04:00
Reuvenandclaude-flow 911bd4e940 fix: browser ENOENT/args/hover + RaBitQ bridge store alignment (v3.6.6)
Browser MCP: ENOENT fallback to npx, --args passthrough with Linux
sandbox auto-detect, hover @eN ref parity with click/fill.

RaBitQ: buildRabitqIndex now reads through bridge (better-sqlite3)
first so it sees WAL data from memory_store. Fixes vectorCount: 0
after store. embeddings_search defaults to namespace 'all'.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 00:33:36 -04:00
Reuvenandclaude-flow 234e3cee10 chore: bump to v3.6.5
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 00:24:07 -04:00
Reuvenandclaude-flow ca4d1f0a4d feat: add RaBitQ 1-bit quantized search + fix HNSW/RRF bugs (v3.6.5)
- Integrate @ruvector/rabitq-wasm for 32x vector compression and
  Hamming-scan pre-filtering in the memory search pipeline
- Add 3 MCP tools: embeddings_rabitq_build, _search, _status
- Fix: bridgeStoreEntry now returns rawEmbedding for HNSW sync
- Fix: storeEntry adds to HNSW index after bridge store succeeds
- Fix: bridgeStorePattern adds to HNSW in bridge-fallback path
- Fix: RRF scoring uses pure BM25 when row has no embedding
  (prevents 0.3x crush of keyword scores below threshold)
- Fix: pattern-store recognizes bridge-fallback for hnswIndexed

Closes #1659

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 00:22:17 -04:00
Reuvenandclaude-flow bd280a79b8 refine: expand ruflo-goals agents with full methodology and MCP tool guidance
- goal-planner: GOAP algorithm, OODA loop, 3 execution modes, planning
  principles, MCP tool references for persistence and learning
- deep-researcher: 7-step methodology, evidence grading rubric, research
  principles, memory namespace conventions
- horizon-tracker: session check-in/check-out protocol, 5 drift detection
  categories, milestone lifecycle, memory persistence patterns

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-28 00:03:36 -04:00