Readers checked against 0.3.13 output (hooks stats, hooks route, rvf
examples, identity show): same shapes as 0.3.12. Console smoke 21/21;
claude plugin test 255/260, the same 5 mission-control / compact-nav /
goal-length failures as on main (noted in #4842), none in the vector page.
Co-authored-by: r <r@x>
Follows #4842. Smoke 14/14 against 0.3.13; DiskANN build + search round
trip run with the diskann extra. 0.3.13 registers 118 MCP tools (adds
diskann_build, diskann_search) and moves to @ruvector/attention ^2.2.3
(GHSA-p62c-q7fc-qmg9) and @ruvector/sona ^0.1.11. The agent listed
sona_*, attention_* and gnn_* MCP tools that ruvector never registered;
they are CLI-only. Documents ruvector add extras and
RUVECTOR_RABITQ_THRESHOLD. Removes the benchmark limitation, which no
longer reproduces.
Co-authored-by: r <r@x>
On npm 10 / Node 20, @ruvector/ruvllm-gpu-loop (engines node >=22) fails as an
optional install. npm then drops @ruvector/ruvllm and ruvector with it, and
also @ruvector/attention, because the umbrella reached it only through
optional edges. On main, a non-optional dev path kept 0.1.31 at the root,
which hid the problem. CI's Test Suite (ubuntu, Node 20, npm 10.8.2) then
failed with "Cannot find module '@ruvector/attention'" in the performance
tests.
attention has no install scripts and its platform binaries stay optional,
so a regular dependency cannot fail an install. It also guarantees the
2.2.3 security fix is present even where the ruvector subtree is dropped.
Verified in node:20: npm ci installs attention 2.2.3 and it loads.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(security): path traversal in hooks_build-agents
outputDir passed validatePath, which allows absolute paths, and format was
spliced unvalidated into each config file name, so an MCP caller could make
the tool create directories and overwrite files outside the project.
Contain the real output directory in the real project root and restrict
format to yaml/json.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVKUis3yTcrY8a2cNer
* fix(security): argv option injection and URL scheme check in browser adapter
AgentBrowserAdapter passed caller values (selectors, text, URLs, paths)
straight into agent-browser's argv, which parses options anywhere, so a
value beginning with -- was read as an option. open/newTab also accepted
any URL scheme, letting the exported browser MCP tools read local files.
Reject unexpected options in command argv and allow only web URLs,
mirroring the CLI's browser-argv guard.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVKUis3yTcrY8a2cNer
---------
Co-authored-by: Claude <noreply@anthropic.com>
- claude-flow 3.72.1 declared @ruvector/attention ^0.1.3, which resolves to
0.1.32, without the input-validation / NAPI panic fix in 2.2.3
(RuVector #1365). ruvector 0.3.12 also depended on ^0.1.3. ruvector
0.3.13 moves to attention ^2.2.3 and sona ^0.1.11.
- CLI and umbrella: ruvector ^0.3.13
- umbrella: attention ^2.2.3 and sona ^0.1.11
- ruflo override: ruvector ^0.3.13
- @claude-flow/neural 3.0.3 pins @ruvector/sona 0.1.11 (was 0.1.5, see #4844).
- neural benchmark: the attention benchmark never ran. import() of the
CommonJS package put the classes on `default`, and it called
computeRaw(), which no release has; the classes expose compute(). Each
ruflo attention call was checked on 0.1.32 and 2.2.3 with identical
results.
- v3/pnpm-lock.yaml: pnpm 8.15.0 --lockfile-only; every @claude-flow/* is
still link:, and rabitq-wasm still resolves 0.1.2 for the CLI.
Co-Authored-By: RuFlo <ruv@ruv.net>
@claude-flow/neural pinned @ruvector/sona at exactly 0.1.5, five releases
behind. The same probe was run against both versions with the wrapper's
SonaEngine.withConfig shape:
- applyMicroLora with a wrong-length vector: 0.1.5 panics in
crates/sona/src/lora.rs and aborts Node (exit 134); 0.1.10 throws
"input length 1 does not match hiddenDim 16", which the caller can catch.
- 30 trajectories + forceLearn, then findPatterns: 0.1.5 returns 0
patterns; 0.1.10 returns 3 (upstream #1258: MicroLoRA learns from
feedback, EWC++ takes effect).
neural is a non-bundled leaf, so the fix reaches users only through a
standalone publish of @claude-flow/neural@3.0.3. The CLI and umbrella
pins move to 3.0.3 with it. audit-leaf-versions-published fails until that
publish happens, and that failure is the intended gate.
Co-Authored-By: RuFlo <ruv@ruv.net>
- browser-session-tools / neural-tools: comments keep the versions they
describe (#2015 was found on 0.2.25; ONNX bundled since 0.2.27). The
embedder label no longer hardcodes a version the ^0.3.11 range may not
resolve to.
- Console vector page: npx --offline with only an older pin cached printed a
bare ENOTCACHED. The result now starts with the command that fixes it.
Spec added.
- ruflo-ruvector README: the "since 0.3.3" table says which rows were run.
The two MCP gates were exercised over stdio (refused without the variable,
allowed with it); 0.3.10/0.3.11 come from release notes. /vector-setup says
to re-register the server after upgrading.
Co-Authored-By: RuFlo <ruv@ruv.net>
The CLI has depended on ruvector ^0.3.11 since #4838. The plugins still pinned
older releases: 0.3.3 in ruflo-ruvector and the console vector page, and
0.2.27/0.2.25 in ruflo-browser and the CLI's browser-session npx fallback.
0.3.3 predates the 0.3.4 MCP security hardening.
- Every pinned command was run against 0.3.12: the ruflo-ruvector smoke
(14/14), the console vector page's read commands, and the browser-session
rvf + trajectory argv.
- Fix the ruflo-browser agent and browser-record recipes. They passed
--session-id/--task/--args/--verdict to `hooks trajectory-*`, which no
ruvector release accepts. They now use the argv the browser_session_* MCP
tools already use.
- ruflo-ruvector README: a "What changed since 0.3.3" table (MCP env gates,
per-project store, CRUD, `ruvector add`, rvf lock fix, graph-mincut fix),
a re-verified limitations table, and the correct ADR link and tool count.
/vector-setup documents RUVECTOR_MCP_ALLOW_INIT and RUVECTOR_MCP_ROOTS.
- Versions: ruflo-ruvector 0.4.0, ruflo-browser 0.3.8, ruflo-console 0.49.12.
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(cli,codex): wire ecosystem packages into real code paths + ecosystem skills
Every integration here has a reachable path (optional dep or lazy import,
graceful fallback) and a test that drives the real package.
- @ruvector/learning-wasm 0.1.29 (new optional dep): it was imported by
ruvector-training.ts, neural.ts and ruvector/index.ts but never declared,
so MicroLoRA always ran on the JS fallback. Now initializeTraining()
reports backend 'wasm'; `neural benchmark` measures ~2 us/adaptation at
256-dim. The benchmark's attention section (broken against
@ruvector/attention 2.x) no longer aborts the MicroLoRA numbers.
- ruvector ^0.2.27 -> ^0.3.11. ruvector 0.3 ships @ruvector/mincut-wasm and
its DynamicMinCut wrapper. New ruvector/mincut-bridge.ts folds duplicate and
reversed edges (the solver rejects them) and backs:
- agentdb_graph-pathfinder `dynamic-mincut`, previously a k-hop stub: exact
min cut of the seed's depth-hop neighbourhood, returns the seed's side
plus cut metadata (cutValue, cutEdges, backend). JS Stoer-Wagner
fallback for neighbourhoods <= 300 nodes.
- graph-analyzer loadRuVector(), which probed a nonexistent
ruvector.hooks_graph_mincut and @ruvector/wasm GraphAnalyzer. Measured
187 ms vs 6 s (JS) at 1,000 nodes, same cut value.
spectral-sparsify / connected-component-churn stay k-hop approximations
and now say so in the response (`implementation`).
- @ruvector/rabitq-wasm 0.1.0 -> 0.1.2: ruvector 0.3.11 declares an optional
peer >=0.1.1, and npm raises ERESOLVE against an exact 0.1.0 pin. Same API.
- agent-booster ^0.2.2 (new optional dep) backs a new hooks_fast-apply MCP
tool: merges a code snippet into a file or string (~ms, no LLM), with
project-root and symlink containment, dryRun and minConfidence. ADR-143
is respected: it is an applier for caller-supplied snippets, not a Tier-1
intent engine. The appliance bridge's tier-1 hint, labelled
'agent-booster' while being two regexes, is now labelled 'codemod' and
points at hooks_codemod. Path-containment helpers move from hooks-tools.ts
to realpath-containment.ts so both tools share them.
- ast-analyzer / diff-classifier / coverage-router imported @ruvector/ast,
@ruvector/diff, @ruvector/coverage, which were never published (npm 404).
ruvector 0.3's ASTParser needs native tree-sitter and is async-only;
parseDiff / parseIstanbulCoverage are plain JS equivalent to the local
parsers. The phantom imports are removed rather than swapped for a no-op hop.
- Skills: six new Claude Code skills (vector-quantization, graph-mincut,
sublinear-solver, injection-defense, fast-code-edits, lora-learning) in a
new SKILLS_MAP.ecosystem group, installed by default `ruflo init`
(`init skills --ecosystem`), and the Codex equivalents bundled in
@claude-flow/codex .agents/skills (built-in, installed by --full).
@claude-flow/codex 3.0.5 -> 3.0.6.
- no-cli-optdep-bloat-2561 guard: CLI_MAX 13 -> 17 and learning-wasm off the
FORBIDDEN list, with cold-install measurements (learning-wasm 0.38 s / 1
pkg / 104K; agent-booster 0.98 s / 67 pkgs / 5.8M).
Evaluated and not wired: sublinear-time-solver as a PPR accelerator (its
computePageRank took 1.2 s at 500 nodes and 68 s at 2,000, vs ms for the
built-in power iteration; 184 deps / 123 MB), strange-loops (pulls the same
tree), @ruvector/kge, @ruvector/cnn, @ruvector/rvlite, @ruvector/graph-wasm,
@ruvector/emergent-time, agentic-jujutsu, @ruvector/pi-brain (no existing
caller doing the job badly); @ruvector/diskann (see the memory PR).
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(deps): bound @ruvector/ruvllm away from the broken 4.0.x; ruvector override to ^0.3.11
@ruvector/ruvllm 4.0.0/4.0.1 were published from the wrong repository: an
ESM-only GPU-loop harness with no main entry and none of SonaCoordinator,
ContrastiveTrainer, TrainingPipeline or LoraAdapter. The open `>=2.6.0`
ranges in the root and ruflo overrides and the v3 pnpm.overrides let it
resolve, and every createRequire('@ruvector/ruvllm') caller (intelligence.ts,
sona-optimizer.ts, native-training.ts) then fell back to JS silently.
- root/ruflo overrides, v3 pnpm.overrides, providers peer:
`>=2.6.0 <4.0.0 || ^4.1.0` (2.6-3.x all export the four classes; 4.1.0 is
the restored runtime). Narrow to ^4.1.0 once it is on the registry.
- root/ruflo overrides: ruvector ^0.2.41 -> ^0.3.11. agentdb 3.3.0 itself
depends on ruvector ^0.3.5 and the CLI now on ^0.3.11, so the old override
forced both below their own ranges inside this repo's tree.
- ruflo overrides: agentdb `>=3.3.0` -> `^3.3.0`, agentic-flow `>=2.0.14` ->
`^2.0.14 || ^3.0.0` (no open-ended ecosystem ranges).
- providers/src/__tests__/ruvllm-runtime-contract.test.ts loads the installed
package through createRequire, asserts the four classes, constructs a
SonaCoordinator the way the CLI does, and checks the resolved version is in
range. Against 4.0.1, require() itself fails (no CJS entry).
Co-Authored-By: claude-flow <ruv@ruv.net>
* test: run ecosystem and ruvllm contract tests where the packages are installed
ci.yml's repo-root npm layout does not install the CLI's optional
dependencies, so those blocks skip there; the pnpm workspace that Test V3
Packages uses installs every one of them, so they run. The probe walks
node_modules only up to the repository root. A @ruvector/ruvllm that is
installed but does not load through require() still fails, and says which
copy and why.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(umbrella): claude-flow carries the CLI's new optional deps; rabitq-wasm 0.1.2
The claude-flow umbrella ships the CLI dist with its own dependency list.
With @ruvector/rabitq-wasm pinned at 0.1.0, npm could not hoist ruvector 0.3
(optional peer rabitq-wasm >=0.1.1) and nested it under agentdb/agentic-flow,
so the umbrella's copy of the CLI could not import('ruvector') and the mincut
path was dead there. rabitq-wasm -> 0.1.2 (same API) puts ruvector back at
the top level; ruvector ^0.3.11, @ruvector/learning-wasm 0.1.29 and
agent-booster ^0.2.2 join the umbrella's optionalDependencies so the WASM
MicroLoRA, min-cut and fast-apply paths are reachable from npx claude-flow too.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(security): @metaharness/darwin ^0.13.0 (GHSA-mjwg-5fm3-fx2p), metaharness ^0.4.20
@metaharness/darwin 0.13.0 fixes a high-severity sandbox bypass
(GHSA-mjwg-5fm3-fx2p); the CLI's `~0.12.0` could never resolve it.
- cli optionalDependencies @metaharness/darwin ~0.12.0 -> ^0.13.0; peer
metaharness ^0.4.1 -> ^0.4.20
- distill-oracle MH_DARWIN_PIN 0.12.0 -> 0.13.0 (npx tier-1 oracle calls)
- ruflo-metaharness helper pins: _darwin.mjs ~0.12.0 -> ~0.13.0,
_harness.mjs ~0.4.1 -> ~0.4.20 (tilde, as check-metaharness-pins requires);
plugin 0.4.0 -> 0.4.1
Checked against 0.13.0 before bumping (0.x minor): same exports
(., ./contrastive, ./gepa), same metaharness-darwin verbs ruflo surfaces
(evolve, evolve-numeric, bench create|verify, security bench), and the gepa
library calls (loadCand6Genome, validateGenome, buildSystemFromGenome)
return identical results to 0.12.0. Tier-2 evolution now runs in an isolated
child process upstream; ruflo already drives darwin as a subprocess. Note:
0.13.0 adds one runtime dependency (@babel/parser), where 0.12 had none.
check-metaharness-pins, metaharness-clean-install-test and the CLI's
metaharness/distill/darwin tests (80) pass.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(deps): @ruvector/ruvllm ^4.1.0 now that the restored runtime is published
4.1.0 is the dual CJS/ESM runtime again. Root and ruflo overrides, v3
pnpm.overrides and the providers peer move from `>=2.6.0 <4.0.0 || ^4.1.0`
to `^4.1.0`; both lockfiles now resolve 4.1.0. The contract test requires
>=4.1 <5 and passed against 4.1.0 (SonaCoordinator, ContrastiveTrainer,
TrainingPipeline, LoraAdapter, DEFAULT_SONA_CONFIG; SonaCoordinator
constructs), as did the CLI's neural-status/trajectory/learning tests.
Co-Authored-By: claude-flow <ruv@ruv.net>
* release: 3.72.1
@claude-flow/cli, claude-flow and ruflo 3.72.1 (ruflo pins cli 3.72.1),
carrying the ecosystem integrations, @claude-flow/memory 3.2.3, codex 3.0.6,
@ruvector/ruvllm ^4.1.0 and @metaharness/darwin ^0.13.0.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(metaharness): tilde-pin darwin ~0.13.0; smoke expects plugin 0.4.1
ruflo-metaharness smoke step 17z73 enforces tilde pins for @metaharness/*
(ADR-150 review: tilde stays on one minor). ~0.13.0 admits the same versions
as ^0.13.0 on a 0.x line and still resolves the GHSA-mjwg-5fm3-fx2p fix.
Smoke step 1 hard-codes the plugin version; it moves to 0.4.1 with the bump
that plugin-version-bump requires. smoke.sh: 128/128 locally.
Co-Authored-By: claude-flow <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* fix(memory): RvfBackend search through hnsw-index.ts (recall@10 0.09 -> 0.89)
RvfBackend's inlined HnswLite seeded every search from the first
efConstruction vectors in insertion order and BFS'd a flat neighbour graph,
and each insert was an O(n) brute-force scan. Measured against exact search
on 5,000 random unit vectors (cosine, 200 queries, seed 42):
index 384-dim recall@10 1536-dim clustered 384
HnswLite (before) 0.091 0.079 0.999
@ruvector/diskann 0.1.3 0.896 0.739 1.000
hnsw-index.ts, ef=200 0.888 0.744 0.990
DiskANN matched HNSWIndex on recall but a vector inserted after build() is
not searchable until a full rebuild (3.6-4.3 s at 1k vectors), which breaks
store()-then-search(). HNSWIndex is incremental and is the single HNSW
implementation ADR-125 asks for, so RvfBackend now uses it through a private
RvfVectorIndex (not exported; the prepublishOnly surface check still passes).
- indexes of <= 1000 vectors and dimension-mismatched queries use an exact scan
- distances map back to the old similarity scale; threshold filter unchanged
- re-storing an entry without an embedding removes its old vector
- update() re-indexes when an untyped caller passes an embedding
New rvf-backend-recall.test.ts drives the real RvfBackend.search: recall@10
>= 0.9 on 2000 random 64-dim vectors (HnswLite scored 0.294 there), exact
results at 300 vectors, delete/re-store correctness, recall after reopen.
@claude-flow/memory 3.2.2 -> 3.2.3.
Co-Authored-By: claude-flow <ruv@ruv.net>
* chore(memory): leave the version at 3.2.2 in this PR
audit-leaf-package-publish requires the CLI pin to cover the workspace
version, and audit-leaf-versions-published requires that pin to exist on the
registry. The 3.2.3 bump, its publish and the CLI pin move together in the
release that follows.
Co-Authored-By: claude-flow <ruv@ruv.net>
* release(memory): @claude-flow/memory 3.2.3, CLI pins it
The RvfBackend change has to reach users through a standalone publish:
memory is not bundled into the release tarballs (Publishing Rules).
@claude-flow/memory@3.2.3 is published from this branch's tree; the CLI pin
(dependencies + optionalDependencies) moves to it so audit-leaf-package-publish
and audit-leaf-versions-published both hold. The lockfile also gains the
@ruvector/sona 0.1.10 package entries pnpm reported missing.
Co-Authored-By: claude-flow <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
The bin launchers now import dist/src/mcp-protocol.js, so the two fixtures
that copy a launcher into a stub tree transpile it from source (as the
policy fixture already does for policy-enforcer). The dispatch-contract
regex accepts the forwarded trace context.
Co-Authored-By: RuFlo <ruv@ruv.net>
Minor bump: ADR-524 adds MCP 2026-07-28 support (server/discover, new
error codes, result fields). Supersedes the unpublished 3.71.5 bump.
Co-Authored-By: RuFlo <ruv@ruv.net>
All three stdio MCP servers (bin/cli.js, bin/mcp-server.js, MCPServerManager)
answered initialize with a hardcoded 2024-11-05 and knew nothing of the
2026-07-28 revision. They are now dual-era through one shared module,
src/mcp-protocol.ts:
- initialize echoes a supported legacy version (else 2025-11-25) and reports
the real package version
- server/discover answered with or without _meta (stdio probe)
- per-request _meta version: -32022 for unknown, -32602 when a modern request
lacks clientCapabilities
- modern results carry resultType and serverInfo; list results carry
ttlMs/cacheScope; legacy responses are unchanged
- tools/list sorted by name in both eras (stable prompt caches)
- resources/read uses -32602 for modern, -32002 for legacy
- validated W3C traceparent/tracestate forwarded into the tool-call context
Tasks extension, subscriptions/listen and the HTTP package are Phase 2.
Co-Authored-By: RuFlo <ruv@ruv.net>
cost-health started four subchecks at once, each running
npx -y @claude-flow/cli@latest. With a cold npm cache the four first
installs raced in one ~/.npm/_npx directory and left a broken install. Its
memory reads then exited 1, and budget/_sessions read that as no data, so
the budget check reported "no budget set" and Case 2 of the integration
test failed about half the time.
- health.mjs resolves the CLI once, serially, when it comes from npx
(HEALTH_SKIP_WARMUP=1 skips it).
- A non-zero memory list is reported as an error with the CLI's stderr
(exit 2) by budget, burn, anomaly and projection.
- New test-cli-failure-4711.mjs, in smoke step 48 and the CI workflow; the
integration test runs with RUFLO_DAEMON_AUTOSTART=0.
- ruflo-cost-tracker 0.31.2.
Closes#4711
Co-Authored-By: RuFlo <ruv@ruv.net>
The root CI job has no built aidefence, so aidefence_has_pii fell through to
the auto-install path and failed. The test covers the MCP wrapper, not the
detector.
Co-Authored-By: RuFlo <ruv@ruv.net>
The start command now reads the camelCase key the parser produces (#4814),
and the root vitest runs from v3/, where tsx is not hoisted (#4821).
Co-Authored-By: RuFlo <ruv@ruv.net>
pre-bash now blocks when it gets no command (#4743), so a host that delivers
hook input after 500 ms would have every Bash command blocked. The read ends
at EOF, so a prompt host waits no longer.
Co-Authored-By: RuFlo <ruv@ruv.net>
pre-bash exited 0 on every failure path, so a command passed whenever the
hook input arrived after the 500 ms stdin window, failed to parse, or
raised an exception, and when the 5 s safety timer fired.
pre-bash now exits 2 with a [BLOCKED] reason when no command string was
obtained, when stdin is not valid JSON, in the handler and main catch
paths, and from the safety timer. Every other hook keeps exiting 0.
Fixes#4743
Unset keeps the current options exactly. true/false or a comma list of pack
names is passed to createAIDefence in every load and retry branch; any other
value is refused with a clear error.
Closes#4785
Co-Authored-By: RuFlo <ruv@ruv.net>
vitest resolves 'fs' and 'node:fs' to one module, so the second mock
(existsSync: () => false) won and 8 tests failed on Linux.
Co-Authored-By: RuFlo <ruv@ruv.net>
Polling a corrupt store made a new .corrupt-<ts> copy on every read (#4779
review). A backup with identical bytes is now reused.
Co-Authored-By: RuFlo <ruv@ruv.net>