10248 Commits
Author SHA1 Message Date
rUv 6dafdf327e Merge pull request #4891 from ruvnet/release/3.73.0
release: 3.73.0
v3.73.0
2026-11-08 19:20:17 -06:00
randRuFlo a8b3304b1e release: ship plugin-agent-federation 1.0.7 (GHSA-vcv2-r9jh-99m5 peer range)
#4890 bumped the bundled federation leaf to 1.0.7 (published) but left the
CLI and root pins at 1.0.6. Move both pins (and the lock specifiers) so the
bundled copy and its declared version agree.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-08 19:50:33 -05:00
r 86d8be7bae Merge remote-tracking branch 'origin/main' into release/3.73.0 2026-11-08 19:49:28 -05:00
rUv 089f4a5da3 Merge pull request #4890 from ruvnet/weaver/ruflo-agentic-flow-range
fix(deps): exclude agentic-flow <= 2.0.13 (GHSA-vcv2-r9jh-99m5) from v3 manifests
2026-11-08 18:40:02 -06:00
randRuFlo dbce4740ba fix(init): keep the ADR-150 metaharness score tip in init's closing hint
#4871 replaced the Next-steps list, which dropped the metaharness tip that
the ruflo-metaharness smoke (17k) asserts; the path-filtered metaharness
CI only ran on the release PR. One dim line under the snapshot.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-08 19:24:27 -05:00
ruv 7fdf3c5a9c chore(deps): federation devDependency agentic-flow 2.0.14 (minimal lockfile change)
The suite mocks agentic-flow, so a 3.x devDependency only churned both
lockfiles (it re-hoisted the root tree and moved the cli to 3.4.x in the
pnpm lockfile) without testing anything extra. 2.0.14 is the first patched
release. Lockfiles regenerated from main's, so only the federation entries
move. 3.4.x compatibility is verified against the published tarball instead.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 19:17:06 -05:00
randRuFlo 11773a290a fix(cli): make agentic-flow a regular dependency so Node 20 keeps ruvector
On npm 10 / Node 20, agentic-flow -> fastmcp -> mcp-proxy pulls the
optional pipenet (engines node >=22). npm skips it, then deletes every
package reachable only through optional edges from that failure: all of
agentic-flow, ruvector, @ruvector/attention and @huggingface/transformers.
3.72.2 is affected the same way. Making agentic-flow a regular dependency
(rUv: agentic-flow stays) stops the cascade at pipenet; verified on a
fresh node:20 install of the packed 3.73.0 tarball: all present, 1.5 GB,
same tree as Node 22.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-08 18:56:51 -05:00
ruv 58db0ec6d9 fix(deps): leave integration's agentic-flow peer for a follow-up
With @claude-flow/integration resolved to a patched agentic-flow (2.1.5),
plugins/ruflo-cost-tracker/scripts/compact.mjs prints its result and then
never exits: agentic-flow/reasoningbank leaves a timer alive. That makes
optional-module-resolution-trust.test.ts time out at 60 s. The fix (exit
explicitly in compact.mjs) belongs in the plugin, so integration keeps its
current peer range and lockfile resolution here.

pnpm-lock.yaml regenerated from main's lockfile so integration keeps its
existing resolution.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 18:52:47 -05:00
randRuFlo 0876443637 release: 3.73.0
Bumps @claude-flow/cli, claude-flow and ruflo to 3.73.0 (ruflo pins cli
3.73.0; ruflo/server.json follows). Minor: init first-win, opt-in
activation events with --no-telemetry-prompt, plugin-surface tagging.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-08 18:43:27 -05:00
ruv f99f044e8e chore(lock): sync root package-lock for the federation workspace (agentic-flow 3.4.1, ws 8.21)
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 18:05:45 -05:00
ruv 1e481c6a4b fix(deps): exclude agentic-flow <= 2.0.13 (GHSA-vcv2-r9jh-99m5) from v3 manifests
agentic-flow <= 2.0.13 has an OS command injection in its MCP server tools,
fixed in 2.0.14. Several v3 manifests still admitted the vulnerable versions:

- plugin-agent-federation peer `>=2.0.12-fix.8 <4.0.0` -> `^2.0.14 || ^3.0.0`
  (devDependency 2.0.12-fix.8 -> ^3.4.1 so the suite runs against 3.x);
  ws ^8.20.0 -> ^8.21.0 (GHSA-96hv-2xvq-fx4p). Version 1.0.7.
- browser dependency ^2.0.13 -> ^2.0.14 (lockfile resolves 2.1.5)
- embeddings peer ^2.0.0 -> ^2.0.14
- integration peer ^2.0.0-alpha -> ^2.0.14

pnpm-lock.yaml regenerated with pnpm 8 (--lockfile-only). The cli keeps its
exact `@claude-flow/plugin-agent-federation: 1.0.6` pin, so the lockfile now
resolves that one from the registry; the cli release lane bumps the pin.

Adds a manifest regression test asserting the federation ranges reject the
vulnerable versions and admit the patched ones.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 18:03:11 -05:00
rUv b56da1f084 Merge pull request #4868 from ruvnet/weaver/ruflo-plugin-deps
chore(deps): federation midstreamer ^0.3.2, aidefence agentdb ^3.6.0, watermark private
2026-11-08 16:51:55 -06:00
rUvandr 3fe9d70ba7 fix(init): print the project snapshot after the optional prompts (#4875)
#4870 added the telemetry opt-in after capability enrollment, which left
the #4871 snapshot and paste-ready prompt above two questions. Move it
below them so it is the last thing init prints.

Co-authored-by: r <r@x>
2026-11-06 16:11:14 -06:00
rUv 583181d441 Merge pull request #4863 from ruvnet/weaver/ruflo-stable-release-ci
ci(stable-npm-release): wait for npm processing before the integrity check
2026-11-06 15:34:21 -06:00
rUvandr 3a10b918f7 feat(ruflo): prepare the io.github.ruvnet/ruflo MCP registry entry (#4874)
The official MCP registry only lists io.github.ruvnet/claude-flow at
2.0.0-alpha.107 (Sep 2025, '87 MCP tools'); ruflo has no entry. Adds
ruflo/server.json (validated against the 2025-10-17 schema) and the
mcpName field the registry checks on the published npm package. The
lockstep audit now fails if server.json's version or name drifts from
ruflo/package.json. Listing goes live at the next release via
mcp-publisher.

Co-authored-by: r <r@x>
2026-11-06 15:33:18 -06:00
rUv d33fa58fab Merge pull request #4865 from ruvnet/weaver/ruflo-security-1452
fix(browser): postinstall installs the pinned agent-browser range
2026-11-06 15:13:41 -06:00
rUvandr 50f6819cbd docs: Chinese README quick start + comparison page (#4873)
* docs: add comparison page and update Chinese README quick start

TASK A: Update README.zh-CN.md top section to match PR #4869 English version
- Replace old intro with "Get started in one command"
- Promote `npx ruflo@latest init` as primary install path
- Add example task for Claude Code
- Update Star badge to point to ruvnet/ruflo (not claude-flow)
- Add animated GIF and collapsed "Other ways to install" section

TASK B: Create new docs/compare.md comparison page
- Comparison table: Ruflo vs Claude Code built-in agents vs CrewAI vs LangGraph vs AutoGen
- Rows: what it is, language/runtime, how agents run, persistent memory, install
- Strict fact-checking: all competitor info from official docs, "—" for unverified cells
- "When to pick which" section with decision criteria
- No adjectives, benchmarks, or star counts for Ruflo (facts only)
- Under 120 lines with official sources list

Link docs/compare.md from:
- docs/index.md "Links" section
- README.md Documentation table

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

* docs(compare): correct competitor facts against their own docs

AutoGen is archived (Microsoft points to Agent Framework) and its 0.2 install
line was stale; Claude Code subagents are not version-gated at 2.1.287 and
have an optional memory field; LangGraph is an agent orchestration library,
not 'workflow without agents'. Every competitor cell re-checked 2026-11-06,
sources listed.

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

---------

Co-authored-by: r <r@x>
2026-11-06 15:00:05 -06:00
rUvandr 657a4ff81c feat(funnel): count plugin-only users via the ruflo-core MCP launch (#4872)
* feat(funnel): count plugin-only users via the ruflo-core MCP launch

Plugin-only users never run init, so no SessionStart hook refreshes the
funnel cache and they are invisible in the usage numbers. The ruflo-core
launcher now sets RUFLO_LAUNCH_SURFACE=plugin; mcp start (stdio) makes the
existing 6h-cached /v1/messages fetch off the start path, gated on
resolveFunnelEnabled(), and the User-Agent gains ' surface/plugin' from a
closed allowlist. Nothing is written to stdout. LIA updated.

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

* fix(ruflo-core): keep RUFLO_MCP_SPAWN inside the env-precedence audit window

The four-line insertion pushed the existing RUFLO_MCP_SPAWN read past the
audit's 20-line function-signature heuristic. Collapse it to one line and
move the explanation to the header comment.

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

---------

Co-authored-by: r <r@x>
2026-11-06 15:00:01 -06:00
rUvandr c29732ed35 feat(init): end init with a snapshot of the user's repo and one prompt to paste (#4871)
Replaces the five-command 'Next steps' list with a local, time-capped snapshot
(tracked files, top languages, most-changed code file over 90 days, test
command) and one ready-to-paste Claude Code prompt about that file. git runs
with argument arrays and a 2s timeout; any failure prints the generic prompt.
Skipped for --format json and --start-all/--start-daemon.

Co-authored-by: r <r@x>
2026-11-06 14:41:05 -06:00
rUv 2d700b957a Merge pull request #4867 from ruvnet/weaver/ruflo-security-2142
fix(transfer): Ed25519 signatures for pattern store publish/download
2026-11-06 14:36:53 -06:00
rUvandr a77418e12f docs(readme): one recommended install path at the top (#4869)
`npx ruflo@latest init` plus a concrete first task leads the page; the
plugin-only, MCP-only and terminal-UI routes move into a collapsed
'Other ways to install' block. The star badge points at ruvnet/ruflo.
Part of the adoption plan: 59% of weekly active clients are seen once.

Co-authored-by: r <r@x>
2026-11-06 14:36:17 -06:00
rUvandr a1549850ec feat(funnel): activation funnel events and a one-time telemetry question in init (#4870)
Measures activation, not just installs (adoption plan item 3). All events
are recorded only with explicit telemetry consent (ADR-302/309), are
daily-bucketed, and carry no paths, prompts or code.

- init_completed: every successful `ruflo init` (main and wizard).
- first_agent_run: first agent spawn or swarm init on this machine, from
  the CLI commands and the agent_spawn / swarm_init MCP tools. Once ever.
- session_active: at most once per UTC day, from the SessionStart
  refresh-funnel, so 7-day retention can be computed server-side.
- Once-ever and once-per-day markers live in funnel-activation.json, because
  a successful flush removes sent events from the queue.
- `ruflo init` asks once, in an interactive terminal only, never in CI or
  when the funnel is disabled: "Share anonymous usage telemetry?" (default
  No). Skippable with --no-telemetry-prompt. Separate from enrollment, which
  must never toggle telemetry (ADR-302).

Server side: cognitum-one/ruflo-funnel-api#1 adds these names to the
allowlist; until it deploys, the server drops them individually.

Co-authored-by: r <r@x>
2026-11-06 14:26:56 -06:00
rUv fb9623ff62 Merge pull request #4864 from ruvnet/weaver/ruflo-security-1436
fix(healthcare-clinical): SHA-256 query fingerprint in audit entries
2026-11-06 14:07:31 -06:00
ruv e3e5f77106 chore(deps): federation midstreamer ^0.3.2, aidefence agentdb ^3.6.0, watermark private
- @claude-flow/plugin-agent-federation 1.0.6: optional peer midstreamer
  >=0.3.1 -> ^0.3.2. 0.3.1 ships no wasm or entry point, so it can't be
  imported; 0.3.2 is the first importable release.
- @claude-flow/aidefence 3.1.1: optional peer agentdb >=2.0.0-alpha.1 ->
  ^3.6.0, matching the ecosystem's agentdb 3.6 convergence.
- @claude-flow/cli: pins @claude-flow/aidefence 3.1.1 and
  @claude-flow/plugin-agent-federation 1.0.6, and agentdb ^3.6.0. Root
  claude-flow pins federation 1.0.6. These ride the next cli release.
- @claude-flow/watermark: private. ruvnet/ai-text-watermark publishes
  @claude-flow/watermark from 0.3.0 on (npm latest 0.4.1); this 0.2.0 copy
  is stale and must never be published over it.

Both released tarballs are byte-identical to 3.1.0 / 1.0.5 apart from
package.json. v3/pnpm-lock.yaml regenerated with pnpm 8.15.0, root
package-lock.json with npm --package-lock-only.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-06 12:27:47 -05:00
ruvandWhitetigersavage 7b51de78a7 fix(transfer): Ed25519 signatures for pattern store publish/download
publish signed with an HMAC and labelled it ed25519; download checked
it with an HMAC keyed by the public key, fell back to a length check on
any error, and only logged a failed check. Sign and verify with
@noble/ed25519 (strict RFC 8032), and refuse to write a pattern whose
signature does not verify. Re-applies the transfer/store part of #2142.

Co-authored-by: Whitetigersavage <bryanjmorrissey@gmail.com>
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-06 12:26:47 -05:00
ruvandsjursky eae0767527 fix(browser): postinstall installs the pinned agent-browser range
The postinstall fallback ran `npm install -g agent-browser@latest`.
It now installs the range from the package's own dependencies
(^0.41.0), so the global CLI cannot drift from the tested version.
Re-applies #1452 (its 0.6.0 pin had gone stale).

Co-authored-by: sjursky <10976569+sjursky@users.noreply.github.com>
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-06 12:25:26 -05:00
ruv fb0449f2df ci(stable-npm-release): wait for npm processing before the integrity check
Runs 36345167527 (3.47.0) and 36445956751 (3.47.1) uploaded all three
archives, then failed "does not match the verified archive integrity"
after ~30 s of polling. The registry had not finished processing the
uploads: the packument records 3.47.0 about 5 minutes and 3.47.1 about
14 minutes after `npm publish` returned, and both carry exactly the
verified integrity. Because the step failed, dist-tags were never moved
and the release-3-47-0 / release-3-47-1 candidate tags are still set.

- Read version and integrity straight from registry.npmjs.org with
  Cache-Control: no-cache instead of `npm view`, polling with backoff for
  up to 30 minutes (the 10-minute loop on main is still shorter than the
  14 minutes observed for 3.47.1).
- Keep failing immediately on a readable, different integrity.
- Make reruns safe: the "already published" probe is uncached, and a
  publish refused as previously published falls through to the wait.
- Verify dist-tags from the uncached dist-tags endpoint for up to 5 min.
- Raise the job timeout from 30 to 75 minutes to fit the wait.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-06 12:24:58 -05:00
ruv d4e995a84a fix(healthcare-clinical): SHA-256 query fingerprint in audit entries
The audit log's queryHash used a 32-bit rolling hash, so distinct
queries could share one fingerprint. Use SHA-256 from node:crypto.
Re-applies the remaining hunk of #1436; the backend JSON parsing
hunks already landed in e50df6722 (#1558).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-06 12:24:50 -05:00
rUv 09bd1bf304 Merge pull request #4860 from ruvnet/feat/funnel-telemetry-stats
feat(funnel): opt-outs stop the messages fetch, opt-in telemetry wired, clone tracker stops recording 0
2026-11-06 10:37:42 -06:00
randRuFlo a826682ac1 docs(adr-310): name the test that verifies opt-outs; the packet-capture gate does not exist yet
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-06 11:14:45 -05:00
randRuFlo 53f95e36e6 feat(funnel): honor opt-outs in the messages fetch, wire opt-in telemetry, fix clone tracker
Operational telemetry (ADR-309, legitimate interest):
- `hooks refresh-funnel` (SessionStart) checked only the RUFLO_FUNNEL env
  kill switch. `ruflo funnel disable`, project config, enterprise policy and
  a declined disclosure all still called funnel.ruv.io every session. It now
  resolves the full funnel precedence and makes no request when disabled.
- The fetch's User-Agent adds the CLI release and OS/CPU family only:
  `ruflo-funnel/messages ruflo/<v> (<platform>; <arch>)`, sanitized to token
  characters. The live endpoint accepts it.
- docs/privacy/funnel-legitimate-interest-assessment.md is the assessment
  ADR-309 requires. ADR-309 links it, and ADR-310's acceptance rule now names
  the one documented default request.

Opt-in telemetry (ADR-302/305):
- `ruflo funnel telemetry on|off|status` is the only way to grant the
  telemetry consent domain. Nothing granted it before, so the event queue
  never left the machine.
- With consent, refresh-funnel flushes queued events once per session.
- `funnel disable` and `telemetry off` revoke consent and delete the ID and
  the local queue.

Clone tracker:
- A failed traffic fetch was recorded as 0 clones (snapshots #15-#18 read 0
  while GitHub reported ~258k in 14 days). The script now exits 1 and writes
  nothing.
- The workflow reads TRAFFIC_TOKEN, falling back to GITHUB_TOKEN, because
  the traffic API needs push access.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-06 11:05:25 -05:00
rUv 776385ab7c fix(deps): cap open ranges in plugins + performance; marketplace agentic-flow 3.4.0 (#4858)
Caps published open ranges: prime-radiant 0.1.6 / gastown-bridge 0.1.5 peers ^3.0.0-0; cognitive-kernel, financial-risk, hyperbolic-reasoning, neural-coordination, quantum-optimizer, test-intelligence 3.0.0-alpha.2 drop the >= ruvector-upstream peer; performance 3.0.2 @ruvector/attention ^2.2.3 + sona ^0.1.11; ruvector-upstream wasm peers caret; marketplace agentic-flow -> d19737b (3.4.0). aidefence deferred to the cli release (exact-pin gate).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-06 09:03:20 -06:00
rUv b7bc909d5f Merge pull request #4857 from ruvnet/release/3.72.2
release: 3.72.2 — @ruvector/attention ^2.2.3 (ruvector ^0.3.13), neural 3.0.3 / sona 0.1.11
v3.72.2
2026-11-06 07:56:29 -06:00
rUvandr adef54c386 chore(ruflo-console): Vector Lab pin follows ruflo-ruvector to ruvector 0.3.13 (0.49.13) (#4856)
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>
2026-11-06 07:28:20 -06:00
rUvandr b9f32453f3 feat(plugins): agentdb 3.4, ruvllm 4.1 runtime, sublinear-core, injection guard in plugins + marketplace pins (#4843)
* feat(plugins): ecosystem releases in agentdb, ruvllm, aidefence, intelligence, graph-intelligence + marketplace pins

ruflo-ruvllm 0.4.0: new ruvllm-runtime skill telling apart ruvllm-wasm (MCP
tools), @ruvector/ruvllm ^4.1.0 (restored SonaCoordinator/LoraAdapter/
TrainingPipeline runtime) and @ruvector/ruvllm-gpu-loop 1.1.x; warns off the
wrong-repo 4.0.x. ruflo-agentdb 0.4.12: agentdb 3.4 capabilities (pathfinder
dynamic-mincut, AGENTDB_INJECTION_GUARD, where RaBitQ lives for ruflo), and
the agentdb-specialist ruvector pin line from #4842. ruflo-aidefence 0.3.4:
agentdb guard + agentic-flow prompt_injection_scan. ruflo-intelligence 0.4.6:
learning-wasm / ruvllm 4.1 backends, links lora-learning and fast-code-edits.
ruflo-graph-intelligence 0.3.0-alpha.1: declared solver dep
sublinear-time-solver -> @ruvnet/sublinear-core (never imported; lockfile
1,015 -> 77 packages; tsc + vitest 104/104), new sublinear-core skill,
supply-chain allowlist updated.

Marketplace: external agentdb -> plugin-v3.4.0 (agentdb@3.4.0); external
agentic-flow -> aa5b11e (plugin 3.3.0, agentic-flow@3.3.0, ecosystem tools).

ruflo-ruvector is left to #4842; additions on top follow after it merges.
The six CLI ecosystem skills are linked, not duplicated; no v3/ changes.

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

* fix(plugins): keep the two new skill descriptions under 300 chars (ADR-507)

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

---------

Co-authored-by: r <r@x>
2026-11-06 07:28:16 -06:00
rUvandr 459dea5a55 feat(ruflo-ruvector): pin ruvector 0.3.13 — DiskANN CLI/MCP, RaBitQ hook recall; drop MCP tools the server never had (0.4.1) (#4855)
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>
2026-11-06 07:17:36 -06:00
randRuFlo 578bcb1b9c fix(deps): claude-flow declares @ruvector/attention as a dependency, not optional
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>
2026-11-06 08:15:57 -05:00
rUvandClaude bccf17adfa fix(security): daily scan 2026-11-06 — 2 fixes (#4846)
* 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>
2026-11-06 07:10:38 -06:00
randRuFlo 3ce46cfa57 chore(lock): root package-lock resolves @claude-flow/neural 3.0.3, ruvector 0.3.13, @ruvector/attention 2.2.3
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-06 07:49:23 -05:00
randRuFlo 1755052ddf fix(deps): @ruvector/attention ^2.2.3 via ruvector ^0.3.13; neural sona 0.1.11; release 3.72.2
- 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>
2026-11-06 07:41:59 -05:00
randRuFlo 68c8d74b23 fix(neural): move @ruvector/sona 0.1.5 -> 0.1.10 (@claude-flow/neural 3.0.3)
@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>
2026-11-06 07:36:26 -05:00
rUv 206e59259a Merge pull request #4842 from ruvnet/feat/ruvector-0312-plugins
feat(plugins): ruvector 0.3.12 across ruflo-ruvector, ruflo-browser and the console vector page
2026-11-05 23:02:09 -06:00
randRuFlo 357c06dfa0 test(plugins): smoke contracts expect ruflo-agentdb 0.4.12 and ruflo-browser 0.3.8
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-05 22:42:49 -05:00
randRuFlo 13432299e5 fix(plugins): keep history in comments, hint on an uncached pin, scope the verified claim
- 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>
2026-11-05 22:29:05 -05:00
randRuFlo 8ecb115eef chore(ruflo-agentdb): 0.4.12 for the ruvector pin note
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-05 22:21:11 -05:00
randRuFlo 4ed8aa3926 feat(plugins): move ruflo-ruvector, ruflo-browser and the console vector page to ruvector 0.3.12
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>
2026-11-05 22:20:36 -05:00
rUvandr 29b327ee5f feat(cli,codex): ecosystem integrations + skills; darwin ^0.13.0, ruvllm ^4.1.0; release 3.72.1 (#4838)
* 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>
2026-11-05 20:50:18 -06:00
rUvandr 722232566a fix(memory): RvfBackend search through hnsw-index.ts (recall@10 0.09 → 0.89) (#4836)
* 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>
2026-11-05 19:27:51 -06:00
rUv c6061039da Merge pull request #4837 from ruvnet/feat/mcp-2026-07-28
feat(mcp): MCP 2026-07-28 dual-era stdio servers (ADR-524) + release 3.72.0
v3.72.0
2026-11-05 19:03:18 -06:00
rUv dcc8e8deb1 Merge pull request #4827 from ruvnet/fix/4711-cost-health-cold-npx
fix(cost-tracker): warm an npx CLI once before parallel subchecks; a failed CLI read is an error (#4711)
2026-11-05 18:44:32 -06:00