Commit Graph
8419 Commits
Author SHA1 Message Date
ReuvenandRuFlo fdc00cce34 chore(verify): regenerate witness for 3.6.23 (26 fixes)
Adds G7-mut (mutationGuard) and G7-att (attestationLog) markers.
Witness now covers ADR-093 F1-F12 + 4 issue fixes + ADR-094 +
ADR-095 G1, G3, G4, G6, G7-gnn/rvf/mut/att, G2-federation = 26 fixes.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 19:17:06 -04:00
Reuven 892f54a785 chore: bump to 3.6.23 (G7 mutationGuard + attestationLog activated) 2026-05-03 19:17:04 -04:00
ReuvenandRuFlo 9f38ecc41a feat(G7): activate MutationGuard + AttestationLog (4 of 6 now wired)
ADR-095 G7 progress: two more disabled AgentDB controllers now
constructed in memory-bridge.ts post-init.

- MutationGuard: probed clean construction with no args; the class
  exposes WASM-backed proof generation (proofsIssuedCount/denialsCount)
  for write-policy enforcement. Added to the candidates loop alongside
  gnnService and rvfOptimizer.

- AttestationLog: requires a better-sqlite3 / sql.js compatible db
  handle. Wired with a dedicated db at .swarm/attestation.db (kept
  separate from the main memory.db so the audit trail is isolated)
  using better-sqlite3 from the existing dep tree. Schema init runs
  inside the constructor and creates the mutation_attestations table
  + indexes if not present. Best-effort: if better-sqlite3 isn't
  resolvable in this install, skips silently.

G7 progress: 4 of 6 controllers now activated (semanticRouter from
F9, gnnService + rvfOptimizer from earlier, plus these two). Two
remaining (guardedVectorBackend needs key material; graphAdapter
needs a graph DB) still tracked for follow-up ADRs.

Build clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 19:11:52 -04:00
ReuvenandRuFlo a9421d068b chore(verify): regenerate witness manifest for 3.6.22 (24 fixes)
Updated witness covers ADR-093 F1-F12, GitHub issue fixes (#1697 #1698
#1691 #1721), ADR-094 transformers loader, and ADR-095 G1 / G3 / G4 /
G6 / G7-gnn / G7-rvf / G2 (federation crypto).

Manifest hash: 83a4cdf4d0ff8f28219a69dd71b4cd0090fd27e97acb80239517ed818adffaa3
Public key: fb5c9c3d8ef2b691880b558583416e2ecd87a0f3911bdc4bc57e3ad935d9aa6a
Verified: 24 / 24 at issuance against branch HEAD db210a93a.

`ruflo verify --manifest verification.md.json` reports pass: 23,
missing: 1 against the local source tree (the 1 missing is the
plugin-agent-federation dist file, which lives outside the cli's
node_modules in the source layout but resolves correctly in user
installs that have the plugin).

Releases this witness covers:
- @claude-flow/cli@3.6.22
- claude-flow@3.6.22
- ruflo@3.6.22
- @claude-flow/embeddings@3.0.0-alpha.15
- @claude-flow/plugin-agent-federation@1.0.0-alpha.4

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 19:03:36 -04:00
ReuvenandRuFlo db210a93a6 chore: bump to 3.6.22 + plugin-agent-federation@1.0.0-alpha.4
Batched publish: G1 agent_execute, G3 workflow runtime, G7 controller
activation (gnnService + rvfOptimizer), G4 WASM Anthropic fallback,
G2 federation Ed25519 signing/verification.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 19:01:40 -04:00
ReuvenandRuFlo 6f495369fa feat(G2): real Ed25519 signing + verification in agent-federation plugin
ADR-095 G2 (federation slice). The April audit (@roman-rr) flagged the
"verifySignature returns true unconditionally" stub as a critical
authentication-bypass smoking gun. Independent security audit log
(audit_1776483149979) reached the same conclusion. This commit
replaces the stubs with real Ed25519 cryptography end-to-end:

- Added @noble/ed25519 to plugin dependencies (already in tree).
- Generate or load a persistent Ed25519 keypair on plugin init.
  Persisted to .claude-flow/federation/key-<nodeId>.json with mode 0600
  so the same node identity survives restarts. Falls back to an
  ephemeral key if the file system is read-only — still real crypto.
- Real signChallenge / signManifest using ed.sign() with the local
  private key.
- Real verifySignature / verifyManifest using ed.verify() with the
  peer's public key carried in the message envelope.
- getLocalPublicKey now returns the actual hex-encoded public key
  rather than an empty string.
- coordConfig.publicKey wired to the real key (was '' — the federation
  trust path was effectively keyless before this).

Manifest signing uses a canonical JSON serializer (keys sorted, the
signature field itself excluded) so sign and verify produce
deterministic results across nodes.

Functional check passed: ed.verify() rejects tampered messages and
mismatched public keys, accepts correctly-signed ones. Build clean.

Closes the federation-side of ADR-095 G2. Hive-mind multi-process
transport is a separate effort — the in-process EventEmitter
consensus handler still needs a real transport layer (separate ADR).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 18:26:34 -04:00
ReuvenandRuFlo 591839304b feat(G4): WASM agent prompt routes to Anthropic when WASM echoes input
ADR-095 G4 close-out. The audit (@roman-rr) measured wasm_agent_prompt
returning "echo: <input>" — the bundled @ruvector/rvagent-wasm doesn't
ship an LLM, only a sandbox + echo handler.

Fix: detect the echo stub at the JS layer (response matches
"echo: <input>" prefix) and route the prompt through Anthropic's
Messages API instead. The WASM agent's sandbox (virtual filesystem,
write_file/read_file/edit_file via wasm_agent_tool) still works — we
only patched the missing-LLM hole, not the sandbox.

Two changes:

1. agent-execute-core.ts now exports a generic callAnthropicMessages()
   helper plus resolveAnthropicModel() that handles the WASM-style
   model prefix ("anthropic:claude-...") in addition to the logical
   names (haiku/sonnet/opus). No agent-registry coupling.

2. agent-wasm.ts:promptWasmAgent() detects the echo stub and falls
   through to callAnthropicMessages with the WASM agent's configured
   model + instructions. If ANTHROPIC_API_KEY is not set, returns the
   stub output verbatim with a note pointing at the env var (matches
   prior failure mode rather than throwing).

Failure semantics: WASM agent state stays consistent (idle on success,
error on throw); echo-stub fallback is transparent to callers — the
returned string is the real LLM output, not a wrapper.

Build clean. The audit's "wasm_agent_prompt echoes input" finding is
closed: when the env is configured for real LLM access, users get
real LLM responses; when not, they get the stub with an honest hint.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 18:19:44 -04:00
ReuvenandRuFlo 9c511cf035 feat(G7): activate gnnService + rvfOptimizer via file:// imports
ADR-095 G7 partial close-out. Two of six previously-disabled AgentDB
controllers are now wired into the registry on post-init:

- gnnService — agentdb's graph neural net service (constructs no-arg)
- rvfOptimizer — RVF format optimizer (constructs no-arg)

Both load via direct file:// URL imports from the cli's bundled
agentdb dist tree, sidestepping agentdb's strict exports field
(which doesn't expose these subpaths). The earlier attempt to patch
agentdb's exports field via postinstall didn't work reliably across
pnpm-hoisted multi-version trees — file URL imports avoid that
hoisting problem entirely.

Postinstall script extracted to v3/@claude-flow/cli/scripts/postinstall.cjs
(was inlined as a one-liner in package.json). Added scripts/ to the
files array so it ships in the published tarball. The script also
walks all reachable agentdb installations (top-level + .pnpm/agentdb@*
+ deep node_modules) and applies the existing #1721 sibling-copy fix
to every one — covers npm/pnpm/yarn install layouts.

Remaining four disabled controllers (mutationGuard, attestationLog,
guardedVectorBackend, graphAdapter) stay off pending per-controller
activation ADRs because each constructor needs config / key material
/ db handle the registry doesn't safely pass blindly. Tracked in
ADR-095 G7.

Build clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 18:17:20 -04:00
ReuvenandRuFlo 6206b93dab feat(G3): real workflow runtime — task/wait/condition step execution
ADR-095 G3 close-out, depends on G1.

Extracted the agent execution path into agent-execute-core.ts so both
the agent_execute MCP tool and the workflow runtime use the same wire
to api.anthropic.com. agent-tools.ts now delegates to the helper.

workflow_execute is no longer a state-only stub. It walks the steps
in source order and dispatches each by type:

- task: reads { agentId, prompt, [systemPrompt, maxTokens, temperature,
  timeoutMs] } from step.config, runs interpolation on prompt /
  systemPrompt ({{var}} references workflow.variables and prior step
  outputs), calls executeAgentTask, writes the result back into
  workflow.variables[stepId.output] and lastStepOutput.
- wait: sleeps for config.ms (capped at 60s).
- condition: evaluates a constrained expression (var === 'literal' or
  var === number) against workflow.variables; jumps to thenStep /
  elseStep step indices if specified.
- parallel/loop: honestly marked as 'skipped' rather than mock-
  completing — these need a proper runtime extension and are tracked
  for follow-up.

Variable interpolation: {{name}} resolves to workflow.variables[name],
or {{stepId.output}} resolves to the prior step's output. Output
piping enables multi-step LLM chains.

Pause / cancel: the loop reloads the workflow store between steps. If
status flips to 'paused' or 'failed' externally, the runtime halts
and persists currentStep so workflow_execute can resume from there.

Failure semantics: a failed step persists status='failed' on the
workflow record with the error message, marks the failing stepId,
returns durationMs and per-step results. No silent failures.

Build clean. The audit's "workflow_execute returns { error: 'Workflow
not found' } even when called with a workflow ID that DOES exist"
finding is closed — workflow_execute now actually runs the steps.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 18:08:01 -04:00
ReuvenandRuFlo 8b586363dc feat(G1): agent_execute wires real Anthropic Messages API to agent registry
ADR-095 G1 close-out. The April audit (@roman-rr) called this "the
missing wire": agent_spawn registered metadata, but no MCP tool
actually dispatched work to a provider, so spawned agents stayed idle
forever with taskCount=0 and lastResult=null. AnthropicProvider
existed in @claude-flow/providers but was never imported by the agent
path.

New MCP tool: agent_execute(agentId, prompt, [systemPrompt, maxTokens,
temperature, timeoutMs]).

Implementation:
- Reads ANTHROPIC_API_KEY from env at call time (not spawn time, so
  rotating the key doesn't require re-spawning).
- Maps the agent's logical model (haiku|sonnet|opus|inherit) to a
  Claude model ID, defaulting to claude-3-5-sonnet-latest.
- Direct fetch to https://api.anthropic.com/v1/messages — no mock,
  no shell, no echo stub.
- Marks the agent busy + bumps taskCount before the call; restores
  status to idle and persists lastResult on completion (or restores
  state on failure).
- Returns the model output, usage, durationMs, and the upstream
  message ID so callers can correlate.
- Honest error path: missing API key, terminated agent, or
  upstream HTTP errors all return success:false with a
  remediation hint.

agent_spawn's response note now lists the three execution paths
explicitly: (1) agent_execute, (2) Claude Code Task tool, (3)
claude -p headless.

The wire from registry → provider is now real. Build clean.

Closes the G1 row of ADR-095. G3 (workflow runtime) was blocked on
this; can proceed in the next iteration.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 18:05:00 -04:00
Reuven 0f5d415e80 chore: bump to 3.6.21 (verify command) 2026-05-03 18:03:00 -04:00
ReuvenandRuFlo 6d37a5ff97 feat(cli): add 'ruflo verify' for signed witness manifest verification
New CLI command that:
- Fetches verification.md.json from the live repo (or accepts a local
  --manifest path) and parses the witness manifest.
- Re-derives the Ed25519 public key from the manifest's git commit
  using the documented seed: sha256(gitCommit + ':ruflo-witness/v1').
- Verifies the manifest's SHA-256 hash + Ed25519 signature.
- Walks each fix entry, locates the corresponding installed file in
  node_modules, recomputes its SHA-256, and checks the marker
  substring is still present.
- Reports per-fix status as pass / drift / regressed / missing:
  - pass: SHA-256 matches AND marker present
  - drift: marker present but SHA-256 differs (file was edited;
    inspect the diff — could be benign)
  - regressed: marker absent (the fix has been rolled back or
    refactored out)
  - missing: file not found in node_modules

Exit codes:
  0 — all pass and signature valid
  1 — any regression, missing file, or invalid signature

Output formats: human-readable table (default) or `--json` for CI.

Self-tested locally against branch HEAD's verification.md.json:
  pass: 18
  drift: 0
  regressed: 0
  missing: 0

This closes the loop on the verification workflow: users now have a
single command to confirm their installed ruflo matches the
cryptographically-witnessed manifest, AND the same command runs in CI
for regression detection across releases.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 18:00:50 -04:00
ReuvenandRuFlo 3c6d126b75 feat: add verification.md witness manifest for regression monitoring
Cryptographically-witnessed proof manifest covering 18 fixes across
ADR-093 F1-F12, GitHub issue fixes (#1697 #1698 #1691 #1721), ADR-094
transformers loader, and ADR-095 G6 auto-memory dedup.

Each fix entry has:
- file path relative to repo root
- SHA-256 of that file at issuance time
- expected marker substring in the file
- verification flag

The whole manifest is hashed (SHA-256) and signed (Ed25519). Signing
key is derived deterministically from the git commit via
sha256(gitCommit + ':ruflo-witness/v1') so anyone with the same commit
can re-derive the public key and verify the signature without a
committed private key.

verification.md is the human-readable rendering with embedded JSON.
verification.md.json is the canonical manifest for tooling consumption.

Coverage: 18/18 verified at issuance against branch HEAD (43fda1110).
Releases: @claude-flow/cli@3.6.20, claude-flow@3.6.20, ruflo@3.6.20,
@claude-flow/embeddings@3.0.0-alpha.15.

How to verify:
1. Reproduce file SHA-256s from a clean install.
2. Re-derive the publicKey from the git commit.
3. Verify the Ed25519 signature against the manifest hash.

If markerVerified ever flips to false in a future release, the fix
has regressed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:56:20 -04:00
Reuven 43fda11104 chore: bump to 3.6.20 (G6 auto-memory dedup) 2026-05-03 17:53:14 -04:00
ReuvenandRuFlo 6b46946dce fix(intelligence): G6 — content-hash dedup + hoist trigram cache
ADR-095 G6: the April audit (@roman-rr) measured 5,706 entries in
auto-memory-store with only ~20 unique by content; 5,686 dupes were
the same MEMORY.md sections imported from sibling project dirs with
different IDs. graph-state.json grew to 100MB. PageRank on a near-
complete graph between near-identical duplicates returned uniform
~0.02 across all nodes — meaningless signal injected into Claude's
context on every message.

Two fixes:

1. New `deduplicateByContent(entries)` using FNV-1a 64-bit fingerprint
   on whitespace-normalized content. Run alongside deduplicateById()
   inside buildIndex() before constructing the graph. When duplicates
   collide the entry with the higher accessCount wins.
   Verified: 500 entries (5 unique × 100 dupes) → 5 entries (99%
   reduction). Matches the audit's reported scenario.

2. buildEdges trigram-cache hoist. The inner loop used to recompute
   `trigrams(tokenize(group[j].content))` on every i — O(n²) extra
   work in addition to O(n²) edges. Now compute trigrams once per
   entry (triCache[i]), reuse across the inner loop.

Combined effect for typical workloads: 100MB graph-state → kilobytes,
edge count drops from O(dupes²) to O(unique²), PageRank produces
useful (non-uniform) ranks that surface real signal.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:50:09 -04:00
ReuvenandRuFlo 6369151ace chore: bump to 3.6.19 + @claude-flow/embeddings@3.0.0-alpha.15
Batched publish of iteration #11 (suppression-via-side-effect-module),
iteration #14 (ADR-094 transformers loader: try-prefer
@huggingface/transformers, fall back to @xenova).

Verified in clean smoke install:
- `ruflo --version` clean (no [AgentDB Patch] noise)
- `memory init --force` clean
- transformers-loader.js shipped in @claude-flow/embeddings dist
- ADR-094 inline logic shipped in cli memory-initializer.js

The protobufjs <7.5.5 CVE chain still shows in npm audit because
@huggingface/transformers is an OPTIONAL dep — users opt in via
`npm install @huggingface/transformers` and the loader picks it up.
Once installed, the legacy chain drops and audit clears.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:46:36 -04:00
ReuvenandRuFlo 21f668c550 feat: implement ADR-094 transformers migration + ADR-095 gap tracking
ADR-094 — transformers loader (try-prefer-fallback):
- New v3/@claude-flow/embeddings/src/transformers-loader.ts exposes
  loadTransformersPipeline() that prefers @huggingface/transformers
  (clears protobufjs <7.5.5 critical RCE chain), falls back to legacy
  @xenova/transformers for backwards compat. Caches the resolved
  source so repeated callers don't re-import.
- Updated v3/@claude-flow/embeddings/src/embedding-service.ts:387 to
  use the loader instead of direct @xenova import.
- Updated v3/@claude-flow/cli/src/memory/memory-initializer.ts:1539
  with inlined try-prefer-fallback (avoids circular optional-dep at
  install time).
- v3/@claude-flow/embeddings/package.json: added @huggingface/transformers
  to optionalDependencies (^4.2.0) and peerDependenciesMeta.optional.

Both packages build clean. The loader uses a string-variable specifier
in dynamic import so tsc doesn't try to resolve types at compile time
(both packages are runtime-optional).

ADR-095 — architectural gap tracking from April audit (@roman-rr):
- Documents the 7 gaps the May audit/ADR-093 honesty work didn't
  address: G1 agent_spawn no subprocess, G2 single-process consensus,
  G3 workflow runtime missing, G4 WASM echo stub, G5 transformers
  CVE chain (now ADR-094), G6 auto-memory graph 100MB bloat for 20
  unique entries, G7 6 disabled AgentDB controllers.
- Reserves ADR-096..ADR-107 numbers for the per-gap follow-up ADRs.
- Explicit "tracking only — no decisions" status so gaps don't dilute
  through the issue tracker.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:44:11 -04:00
ReuvenandRuFlo c32ddead28 docs(adr-094): migration plan for @xenova → @huggingface/transformers
Documents the last-remaining audit-blocked critical CVE chain
(protobufjs <7.5.5 via onnxruntime-web via @xenova/transformers).

Verified migration is viable:
- Only 2 call sites use @xenova/transformers (both dynamic + try/catch)
- 472 shared exports between xenova@2.17 and huggingface@4.2 including
  pipeline / env / AutoTokenizer / AutoModel
- API-compatible: same pipeline('feature-extraction', model) signature

Plan: introduce loadTransformersPipeline() helper that prefers
@huggingface/transformers, falls back to @xenova/transformers,
reports source via embeddings_status.ruvectorStatus.

Validation:
1. Byte-identical 384-dim vectors for same input across both
2. HNSW round-trip cosine >0.99
3. Mixed-install scenarios (HF-only, xenova-only, neither)
4. Re-run 6-agent verification swarm
5. npm audit confirms protobufjs CVE chain drops

Implementation queued for next /loop cycle.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:37:38 -04:00
ReuvenandRuFlo aeeeff72f5 fix(cli): extract suppression to side-effect module imported FIRST
3.6.18 smoke test caught that the [AgentDB Patch] warning still leaked
through the ruflo wrapper — even after iteration #11's "move to
src/index.ts" attempt. Root cause: ES module imports hoist above any
top-level code in the same module, so the inline suppression block
ran AFTER `import { commands } from './commands/index.js'`, by which
point agentic-flow had already been loaded transitively and emitted
its warning.

Fix: extracted the patch into `src/log-filters.ts` as a side-effect
module and imported it as the FIRST import statement in src/index.ts:

  import './log-filters.js';     // ← evaluated first in import graph
  import { readFileSync } from 'fs';
  import { commands } from './commands/index.js';
  ...

ES module evaluation order is the source order of imports, so
log-filters.js runs its side effect (patches console.warn/log) before
any sibling import can transitively load agentic-flow.

bin/cli.js and bin/mcp-server.js keep their inline suppression as
defense-in-depth (covers cases where the bin file's own crypto/etc.
imports run before src/index.js loads).

Verified via ruflo wrapper:
  $ node ruflo/bin/ruflo.js --version
  ruflo v3.6.18    # no warning prefix anymore

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:34:22 -04:00
ReuvenandRuFlo 28fed919bd fix(cli): move [AgentDB Patch] suppression to dist/src/index.js
Iteration #9 audit caught the cosmetic warning still leaking through
when ruflo was invoked via the ruflo wrapper script. Root cause: the
suppression patch lived only in v3/@claude-flow/cli/bin/cli.js and
v3/@claude-flow/cli/bin/mcp-server.js. The ruflo wrapper bypasses both
and imports dist/src/index.js directly, so console.warn/log were not
patched when the cosmetic warning fired.

Fix: move the same tight-match suppression into the top of
src/index.ts so it runs on every entry point — bin/cli.js,
bin/mcp-server.js, ruflo/bin/ruflo.js (which imports dist/src/index.js),
tests, and any future entry. The bin patches remain as defense-in-depth
for cases where bin/* runs before src/index.js loads.

Tight match preserved: still requires BOTH "[AgentDB Patch]" AND
"Controller index not found" — other [AgentDB Patch] messages flow
through unchanged.

Verified locally: `node ruflo/bin/ruflo.js --version` prints
`ruflo v3.6.17` with no warning prefix (was emitting the warning
in iteration #9 audit).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:31:04 -04:00
ReuvenandRuFlo ea312c8508 fix(aidefence): quick-mode PII detection + wrapper-level stats counters
Two related audit findings from the May verification swarm:

1. aidefence_scan quick mode missed obvious PII (email + API key combo
   returned safe:true). Quick mode used defender.quickScan(input) which
   focuses on prompt-injection / jailbreak patterns and skips PII.
   Fix: layer a fast defender.hasPII(input) check on top so quick-mode
   covers both threat classes; surface piiDetected and
   promptInjectionDetected as separate fields so callers can see what
   triggered the verdict.

2. aidefence_stats stayed at 0 regardless of has_pii / is_safe / scan-
   quick calls. Those tools bypass the underlying defender's stats
   tracking — only the full detect() path increments stats.
   Fix: added wrapper-level counters (wrapperStats) tracking calls and
   hits/threats for each lightweight tool. aidefence_stats now returns
   both the underlying defender stats AND a wrapper sub-object so the
   user sees real activity from the lightweight paths.

Bonus: aidefence_is_safe previously did `import('@claude-flow/aidefence')
.isSafe(input)` which bypassed the singleton entirely. Now routes
through getAIDefence() and combines the prompt-safety verdict with a
PII check so a safe verdict requires BOTH (matching common defender
expectations).

Build clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:26:29 -04:00
ReuvenandRuFlo bc399dc9a2 sec: tighten npm overrides for protobufjs (critical RCE), tar, uuid
Re-audit of published 3.6.17 in clean install showed three root-level
CVEs that overrides could address:

- protobufjs <7.5.5 — CRITICAL — Arbitrary code execution
  Comes through @opentelemetry/otlp-transformer in the agentdb
  observability suite. Pinning >=7.5.5 (latest 8.0.3 in registry).

- tar <=7.5.10 — HIGH — Hardlink path traversal / arbitrary file write
  Previous override said >=7.5.0 but the CVE actually applies through
  7.5.10. Tightened to >=7.5.11 (latest 7.5.13).

- uuid <14.0.0 — MODERATE — Missing buffer bounds check in v3/v5/v6
  when buf is provided. Pinning >=14.0.0.

Same caveat as the previous overrides commit: npm overrides only apply
at the install root, so these primarily protect our CI/dev environment
and downstream apps that put ruflo in their root deps. Transitive CVEs
through @xenova/transformers chain remain blocked on upstream.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:23:47 -04:00
ReuvenandRuFlo 32c46c2b94 fix(install): #1721 — postinstall script copies all dist/src/* siblings
@claude-flow/cli ships a postinstall script that copies the agentdb
package's dist/src/controllers/ to dist/controllers/ so callers using
the legacy `agentdb/dist/controllers/...` import path resolve. The
script copied only `controllers/`, but the controllers themselves
import from sibling dirs (`../core/`, `../services/`, `../types/`,
`../utils/`). Without those, `import { cosineSimilarity } from
'../utils/vector-math.js'` in HierarchicalMemory.js failed with
ERR_MODULE_NOT_FOUND, breaking hierarchical memory consolidation
silently in the daemon path.

Fix: postinstall now enumerates every directory under dist/src/ and
copies each to dist/<name>/ (skipping dirs that already exist).
controllers, core, services, types, utils, plus any others — all
reachable from the legacy import root.

Reproduced and verified against published 3.6.17:

  $ npm install ruflo@3.6.17
  $ ls node_modules/@claude-flow/cli/node_modules/agentdb/dist/utils/vector-math.js
  -rw-r--r-- ... vector-math.js   # ← previously missing

  $ node -e "import('.../agentdb/dist/controllers/HierarchicalMemory.js')
              .then(m => console.log('PASS'))"
  PASS — module loaded, exports: [ 'HierarchicalMemory' ]

Bumps to 3.6.17 across @claude-flow/cli, claude-flow umbrella, and
ruflo umbrella with all dist-tags (alpha, latest, v3alpha) updated.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:19:42 -04:00
ReuvenandRuFlo 2c9e7e3604 chore: bump to 3.6.16
Batched publish of iterations #6 (parallel post-init wiring) and
#7 (tight cosmetic warning suppression).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:16:25 -04:00
ReuvenandRuFlo e884b11eeb fix(cli): tight match for cosmetic [AgentDB Patch] noise + cover console.log
Two related issues fixed:

1. The "[AgentDB Patch] Controller index not found" warning printed on
   every command despite the previous suppression code, because the
   underlying call site uses console.log not console.warn. The override
   was patching console.warn only, so it was effectively a no-op for
   this warning. Now patches both.

2. Audit log audit_1776483149979 flagged the previous suppression as
   too broad: "Console.warn override suppresses legitimate warnings.
   Could mask security-relevant warnings." Tightened the predicate
   to require BOTH "[AgentDB Patch]" AND "Controller index not found"
   so any other future [AgentDB Patch] message (real issues) still
   reaches the user.

Verified locally:
- `ruflo memory init --force` no longer prints the noise line.
- `ruflo --version` is clean.
- `console.log('[AgentDB Patch] some other future warning')` still
  prints (sanity check) — only the specific cosmetic phrase is filtered.

Cosmetic warning has no functional impact on the 8/23 disabled
controllers (those remain disabled per ADR-093 F9 and require separate
ADRs for activation). This commit only stops the noise; controller
enablement is still tracked separately.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:11:33 -04:00
ReuvenandRuFlo bd55cd7cb5 perf(memory-bridge): parallelize post-init wiring (intelligence + agentdb)
The post-registry-init step previously chained four serial awaits:
  1. import('./intelligence.js') + initializeIntelligence
  2. register reasoningBank + learningSystem (depends on 1)
  3. import('agentdb') + register SkillLibrary
  4. import('agentdb') again + probe SemanticRouter/IntentRouter/TaskRouter

Steps 1+2 are independent of 3+4. Step 3 and 4 share the same agentdb
import. Now:

- Two top-level Promises (intelligencePromise, agentdbPromise) run in
  parallel via Promise.allSettled — a single failing path doesn't tear
  down the other.
- agentdb is imported once per registry init and reused for both the
  SkillLibrary registration and the F9 router probe (was importing
  twice).
- Each path keeps its own try/catch so partial failures degrade
  gracefully (matches the previous semantics).

Local cold memory init dropped from prior measurements; verify the
change against published artifact post-3.6.16 in the next /loop
verification swarm pass.

No behavioral change beyond timing — same controllers register, same
fall-through paths, same failure modes. Build clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:07:36 -04:00
ReuvenandRuFlo 53409aba5f fix(embeddings): handle agentic-flow shape change in 3.0.0-alpha.14
Regression caught by 3.6.15 smoke test: with agentic-flow auto-installed
as an optional dep, `import('agentic-flow/embeddings')` succeeds but
the loaded module exposes `clearEmbeddingCache`/`computeEmbedding`/
`computeEmbeddingBatch`/`getEmbeddingDimensions` — no `downloadModel`.

3.0.0-alpha.13 only handled the "package missing" path. With agentic-
flow present but the function absent, it threw `downloadModel is not a
function` straight up to the CLI's `embeddings init` action, which
reported `[ERROR] Initialization failed: downloadModel is not a function`.

3.0.0-alpha.14 checks `typeof downloadFn === 'function'` before
calling and falls through to the same lazy-fetch warning otherwise.
@xenova/transformers downloads on first generate() either way.

Verified in clean smoke install with cache cleaned:
  $ ruflo embeddings init --force
  Initialize Embedding Subsystem
  ...
  Next steps:
    - embeddings generate -t "test text"  - Test embedding generation
    ...

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:04:31 -04:00
ReuvenandRuFlo e3528f206a fix: F9 — actionable bridgeSemanticRoute error + multi-version router probe
ADR-093 F9 (last item from the May audit). Investigation:

The 8 disabled AgentDB controllers (vectorBackend, mutationGuard,
gnnService, attestationLog, semanticRouter, guardedVectorBackend,
rvfOptimizer, graphAdapter) ship disabled because their constructors
require either external dependencies, key material, or a sqlite db
handle the registry does not expose.

For semanticRouter specifically: the API renamed across agentdb alpha
versions — alpha.10 exported SemanticRouter; alpha.11 (the version
@claude-flow/cli@3.6.14 resolves to via ^3.0.0-alpha.11) dropped it
in favor of @ruvector/router as a separate package. So the previous
F9 attempt to construct SemanticRouter would silently fail in current
builds.

Two changes:

1. memory-bridge.ts post-init: probe multiple constructor names
   (SemanticRouter / IntentRouter / TaskRouter) to handle both legacy
   and future agentdb versions. Wire only if the constructed instance
   has a working `route` method. All wrapped in try/catch so a missing
   class doesn't tear down post-init.

2. bridgeSemanticRoute: when the router is genuinely missing, return
   an actionable error pointing callers at bridgeRouteTask (which IS
   wired and works) and hooks_model-route (ADR-026 model selection).
   Replaces the previous unhelpful "SemanticRouter not available"
   one-liner that left callers without a next step.

Other disabled controllers (mutationGuard, attestationLog, gnnService,
guardedVectorBackend, rvfOptimizer, graphAdapter) remain disabled and
tracked in code comments. Each needs a separate ADR for activation
because their requirements (config / key material / heavy deps / db
handle) are non-trivial and have security implications.

Build passes. bridgeSemanticRoute({input:"…"}) now returns:
  { route: null, error, recommendation, controller: "none" }

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:00:33 -04:00
ReuvenandRuFlo 565681fff8 fix: F7 coordination_orchestrate honesty + F11 neural_predict classifier
Iteration #3 of /loop.

ADR-093 F7 — coordination_orchestrate stops lying about completion time:
- Removed hardcoded `estimatedCompletion: "${agents.length * 50}ms"` —
  the tool never actually executed an orchestration. It scheduled an
  orchestration record and pretended it would finish in 50ms.
- Now persists the orchestration record to the coord store (last 100
  retained), returns `status: "scheduled"` with `executor: "none"`, and
  surfaces `_note` pointing callers at agent_spawn + the Task tool or
  hive-mind_spawn for real multi-agent execution.

ADR-093 F11 — neural_predict gets a real classifier head:
- Pattern labels: extract from common semantic fields (label, category,
  class, tag, intent, name, title) before falling back to the input text
  itself, then to a stable model:type:index id. Eliminates the audit-
  flagged "label is the raw JSON dump of training data" behavior.
- Confidence: replaced raw cosine clamp with a real classifier head —
  k-NN with cosine distance, then temperature-softmax (tau=0.1) over the
  top-K so confidence is a proper distribution that sums to 1.
- Surface `cosineSimilarity` alongside `confidence` so callers can
  distinguish "this is the closest match" from "this is the closest
  match AND the embedding actually agrees". Top-level `topPrediction`,
  `topConfidence`, `topSimilarity` for callers that want the head.
- `_classifierHead: 'knn-cosine+softmax(tau=0.1)'` declares the method.

Build clean. No publish (batched per loop directive).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 16:51:07 -04:00
ReuvenandRuFlo e4b4a3e1e0 fix: security overrides + F8 perf metrics + F10 attention placeholder
Iteration #2 of /loop. Three concrete improvements, no publish (batched
for the next release per the loop directive).

Security (npm audit baseline):
- Add overrides for high/critical CVEs in claude-flow umbrella and ruflo:
  @hono/node-server >=1.19.10 (auth bypass), flatted >=3.4.0 (DoS),
  tar >=7.5.0, picomatch >=4.0.3, path-to-regexp >=8.2.1,
  undici >=7.18.0, minimatch >=10.0.0, @isaacs/brace-expansion >=5.0.1,
  cacache >=20.0.0, make-fetch-happen >=15.0.0, express-rate-limit >=8.4.1.
  npm overrides only apply at the install root, so these primarily
  protect our own CI/dev environment and signal intent to consumers.
  Transitive CVEs through @xenova/transformers/onnxruntime-web/protobufjs
  remain blocked on upstream releases.

ADR-093 F8 — performance_metrics fixtures replaced with self-measured
latency:
- Probe a tiny CPU+memory loop with process.hrtime.bigint, derive avg
  and p50/p95/p99 from real recent samples instead of the hardcoded
  50/40/100/200ms defaults.
- Throughput now reports actual ops/second from samples in the last 60s
  instead of an arbitrary +1/+10 increment per call.

ADR-093 F10 — hooks_intelligence_attention now attends over real stored
patterns when available:
- searchEntries(query) -> top-K stored patterns become the attention
  keys/values; labels include pattern IDs and excerpted content.
- When no patterns exist yet, falls back to the previous cosine-harness
  but labels them honestly as "(synthetic harness) pattern #N" and
  reports implementation: 'real-flash-attention+synthetic-harness'.
- Eliminates the audit-flagged "Flash attention target #1/2/3" placeholder
  strings with uniform 0.333 weights when stored patterns are present.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 16:48:24 -04:00
ReuvenandRuFlo 4f2f68d52c fix(embeddings): graceful agentic-flow fallback in downloadEmbeddingModel
#1700 item 2: `embeddings init` failed with `Cannot find package
'agentic-flow'` because downloadEmbeddingModel did not catch the dynamic
import error, even though agentic-flow is declared as an optional peer.
Now logs an informative warning and returns the target dir as a no-op
success — @xenova/transformers fetches the model lazily on first
embeddings_generate call.

Bumps @claude-flow/embeddings to 3.0.0-alpha.13. ruflo@3.6.14 picks it
up automatically via caret range.

Verified in clean /tmp install:
  $ node -e "import('@claude-flow/embeddings').then(m =>
    m.downloadEmbeddingModel('Xenova/all-MiniLM-L6-v2', '/tmp/test-models'))"
  [embeddings] agentic-flow not installed — skipping eager model download.
  Models will be fetched lazily by @xenova/transformers on first generate.
  downloadEmbeddingModel returned: "/tmp/test-models"
  PASS — graceful fallback worked

Previously this threw "Cannot find package 'agentic-flow' imported from
.../@claude-flow/embeddings/dist/neural-integration.js".

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 16:42:47 -04:00
ReuvenandRuFlo c5915a718d fix(mcp): ADR-093 — remediate 7 audit findings, ship 3.6.14
Six-agent verification swarm against 3.6.13 surfaced mocks, broken tools,
and partial fixes. ADR-093 documents the findings and decisions; this
commit implements F1, F2, F3, F4, F5, F6, F12 (the in-scope subset).

- F1: hooks_metrics now reads getIntelligenceStatsFromMemory + routing
  outcomes instead of substring-matching memory keys. The 3.6.13 #1686
  fix landed in v3/mcp/tools/hooks-tools.ts but the runtime uses
  v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts — counters now actually
  increment after hooks_post-task.
- F2: hooks_worker-dispatch detects daemon presence via .claude-flow/
  daemon.pid and returns honest verdicts (`queued`, `no-daemon`,
  `synthetic-completed`) instead of the audit-flagged status:"completed"
  in 0ms (#1700 item 1).
- F3: hive-mind_init schema now exposes `consensus` (raft|byzantine|
  gossip|crdt|quorum, default raft per anti-drift posture) and persists
  consensusStrategy into HiveState; hive-mind_status surfaces the
  persisted value (#1700 item 4).
- F4: agentdb_pattern-store falls back to memory_store when the
  ReasoningBank registry is unavailable, instead of silently failing
  with "AgentDB bridge not available" while agentdb_health.reasoningBank.
  enabled === true.
- F5: embeddings_status adds a structured ruvectorStatus field
  ({available, enabled, version}) so callers can distinguish "package
  not installed" from "not wired into the pipeline" (#1698 partial
  regression at MCP boundary).
- F6: session_list now accepts both writer shapes (`{sessionId, name,
  savedAt}` from session_save and `{id, startedAt}` from the auto-session
  writer); previously the second shape collapsed to empty objects.
- F12: config_list enumerates the full union (defaults + stored + every
  scope) with accurate `source` labels, matching config_export totals.

Deferred (separate ADRs): F7 coordination_orchestrate stub,
F8 performance_metrics latency/throughput fixtures, F9 disabled AgentDB
controllers (route/feedback/semantic-route), F10 hooks_intelligence_
attention placeholder, F11 neural_predict classifier head.

Bumps @claude-flow/cli, claude-flow umbrella, and ruflo umbrella to
3.6.14 with all dist-tags updated. Smoke-tested in clean /tmp install:
ruflo memory init still 6/6 ✓; ruflo --version reports 3.6.14.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 16:36:56 -04:00
ReuvenandRuFlo a10a13e623 fix(cli,ui): resolve five issues from May 1-3 reports
Bumps all three packages to 3.6.13 with the following fixes:

- #1697 (rvf-wasm SyntaxError): pin @ruvector/rvf-wasm to 0.1.5 via
  npm overrides in root and ruflo umbrella package.json. Upstream
  republished 0.1.6 with the missing exports map, so fresh installs
  also work — the override is defense-in-depth for cached resolves.
- #1698 (HNSW false-negative): await getHNSWIndex() before reading
  status in `embeddings index status` and `performance benchmark`.
  Differentiate "package not installed" vs "index empty" in the
  remediation hint instead of always pointing to npm install.
- #1686 (metrics zeros + null.toFixed crash): pass dbPath to
  ReasoningBank so post-* writes persist to .swarm/memory.db,
  normalize CLI dashboard against both `statistics`/`stats` and
  `executionTime`/`duration` shapes, and add ?? 0 guards on every
  toFixed call.
- #1691 (Windows daemon spawn): replace spawn(process.execPath,...,
  {shell:true}) with fork(cliPath, ...) so cmd.exe never sees the
  spaced node.exe path. Also removes the [DEP0190] security warning.
  macOS regression-checked against published 3.6.13.
- #1694 (UI auto-execute): remove 500ms auto-call to executeResearch
  in goal_ui/Index.tsx and add an explicit "Start Research" gate
  button so the plan is reviewable. Validated in Playwright with
  zero console errors.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 15:22:46 -04:00
rUv 43c8fd7948 Update README.md
rUv updated
2026-05-02 22:29:31 -04:00
ReuvenandRuFlo 9b16981484 docs(ruvocal): rebrand README from HuggingFace chat-ui to RuVocal (RuFlo Web UI)
The README at ruflo/src/ruvocal/ still read as the upstream HuggingChat
README (chat-ui banner, hf.co/chat as the running example, hf.co router as
the default endpoint). Rewritten to orient around RuVocal as RuFlo's Web UI
at flo.ruv.io.

What changed
- New highlights table: parallel MCP tool calls, ~210 RuFlo tools, 6
  curated frontier models via OpenRouter, AgentDB-backed memory,
  Capabilities modal, ruvLLM support, self-hostable
- Quick Start reordered: hosted demo first, then local dev (with the
  OpenRouter env block we actually use), Docker, Cloud Run via cloudbuild
- MCP Tools section shows the 5 RuFlo server groups + π shared brain
- Architecture one-pager points at the actual file paths (MCP bridge,
  WASM worker, toolInvocation.ts, RufloHelpModal, ChatWindow follow-ups)
- "Related" links: parent RuFlo repo, Goal Planner UI, ADR-033, issue
  #1689, upstream chat-ui acknowledgement

Upstream chat-ui content (router/Omni config, theming env vars, MongoDB
options) preserved — those still apply to RuVocal since the SvelteKit
core was forked from chat-ui v0.20.0.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 18:09:23 -04:00
ReuvenandRuFlo ddfbcc03b8 fix(readme): add goal.png banner + RuFlo Research top badges
- Commit v3/docs/assets/goal.png (1280×582, 163 KB) referenced by
  the Goal Planner UI section in README; was overlooked in PR #1693
  causing the banner to break on github.com.
- Add two badge links at top of README:
  - 🎯 Goal Planner → https://goal.ruv.io/
  - 🤖 Live Agents → https://goal.ruv.io/agents

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-01 17:53:48 -04:00
rUvandReuven e58154a426 feat(goal_ui): RuFlo Research at goal.ruv.io — rebrand + cleanup (#1693)
* feat(goal_ui): import goap-ui-main (GOAP research UI)

Unzipped from v3/goal_ui/goap-ui-main.zip — a Vite + React + Supabase
research planning UI. 354 files including:
- React UI (src/, components.json, tailwind, vite config)
- Supabase Edge Functions (generate-action-items, generate-research-
  goal, optimize-research-config, research-api, research-step)
- Widget build pipeline (build-widget.sh)
- Deployment notes (DEPLOYMENT*.md, netlify.toml)

.env is intentionally force-committed (overrides root .gitignore
entries on lines 61 + 161). It contains only Vite's VITE_* prefixed
client-public Supabase config:
  VITE_SUPABASE_PROJECT_ID
  VITE_SUPABASE_PUBLISHABLE_KEY  ← Supabase publishable/anon key
  VITE_SUPABASE_URL

These values ship in every Vite client bundle by design — RLS on the
Supabase project is the actual access gate, not key secrecy. No
sk-*, JWT, or service_role keys in the file (verified with secret
heuristic regex).

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

* refactor(goal_ui): flatten goap-ui-main/ into goal_ui/

The previous import nested everything under v3/goal_ui/goap-ui-main/
— two folders for one project. Move all 354 files up one level so
the layout reads:

  v3/goal_ui/
    .env
    package.json
    src/
    supabase/
    ...

instead of the redundant v3/goal_ui/goap-ui-main/...

Build output dist/ removed (it was untracked and shouldn't ship —
generated by `npm run build`).

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

* feat(goal_ui): rebrand to RuFlo Research, clean up scaffolding, drop Lovable favicon

- Rebrand v3/goal_ui as RuFlo Research (https://goal.ruv.io/)
  - package.json: name → @ruflo/research, drop lovable-tagger
  - vite.config.ts: remove componentTagger / lovable-tagger import
  - index.html: SEO/OG/Twitter meta retargeted to goal.ruv.io
  - src/widget.tsx + Demo.tsx + WidgetCustomizer.tsx + widget-embed.html:
    window.GOAPWidget* → window.RufloResearchWidget*
    container id → ruflo-research-widget-container
- Replace Lovable purple-gradient favicon.ico (PNG) with RuFlo SVG mark
- Drop unreferenced placeholder.svg boilerplate
- Move docs into v3/goal_ui/docs/ (DEPLOYMENT, WIDGET-INTEGRATION, WIDGET_SETUP)
- Delete out-of-scope plans/agentic-flow/, duplicate WIDGET-INTEGRATION.md,
  bun.lockb (npm-only project), TEMPLATE_README, SETUP_GUIDE, DEPLOYMENT-FIX,
  nested CLAUDE.md, and stale .claude/.github duplicates from flatten residue
- Rewrite v3/goal_ui/README.md as RuFlo Research overview
- Update root README "What You Get": add RuFlo Research row pointing at goal.ruv.io
- Drop SEO keyword spam lines from Web UI and Goal Planner sections

Algorithm references to GOAP (goapPlanner.ts, GOAPPlanner, parseGoal) preserved
— GOAP is the algorithm name, not the brand.

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

---------

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-05-01 17:40:27 -04:00
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