10216 Commits
Author SHA1 Message Date
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
randRuFlo 096101e794 test(mcp): ship the protocol module in stdio stub fixtures (ADR-524)
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>
2026-11-05 18:41:18 -05:00
randRuFlo 4943f24efe release: 3.72.0
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>
2026-11-05 17:54:03 -05:00
randRuFlo 4afd1aa69a feat(mcp): serve MCP 2026-07-28 from the stdio servers (ADR-524)
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>
2026-11-05 17:52:44 -05:00
randRuFlo 7c0ad84e5e fix(cost-tracker): warm an npx CLI once before parallel subchecks; a failed CLI read is an error (#4711)
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>
2026-11-05 17:52:20 -05:00
rUv b31c844a3a Merge pull request #4825 from ruvnet/integ/contributor-sweep-3715
Contributor sweep: 39 PRs from the #4775 tracker + release 3.71.5
2026-11-05 16:51:27 -06:00
randRuFlo 2306c0adf4 test(cli): mock @claude-flow/aidefence in the #4767 wrapper tests
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>
2026-11-05 11:24:36 -05:00
randRuFlo 7acac7ad25 test(cli): use parser-shaped skipMcp in the start test; run the FIFO reader from the cli package
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>
2026-11-05 11:05:37 -05:00
randRuFlo 0995b028b5 test(hooks): pre-bash smoke expects fail-closed for empty and non-string commands (#4743)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-05 10:54:46 -05:00
randRuFlo 760d514112 fix(hooks): give pre-bash a 3 s stdin window and re-sign helpers (#4826)
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>
2026-11-05 10:42:57 -05:00
r f9063010a2 Merge PR #4826 2026-11-05 10:42:06 -05:00
Parman Mohammadalizadeh fd6c7c4864 fix(hooks): block pre-bash when the command cannot be validated
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
2026-11-05 16:36:13 +01:00
randRuFlo 95ec6e44e8 feat(aidefence): select MCP pattern packs with RUFLO_AIDEFENCE_PACKS (#4785)
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>
2026-11-05 10:03:51 -05:00
r dc79625daa Merge PR #4823 2026-11-05 10:02:24 -05:00
randRuFlo 6a7097a3ab release: 3.71.5
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-05 09:56:17 -05:00
randRuFlo 77ca18dcde fix(hive-mind): refuse a role outside worker/specialist/scout on spawn and join
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-05 09:55:58 -05:00
randRuFlo 08fb7acf88 fix(cli): re-sign helpers manifest for the statusline fix; drop the duplicate fs mock in the #4716 test
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>
2026-11-05 09:55:11 -05:00
r d1e4cb92d9 Merge PR #4821
# Conflicts:
#	v3/@claude-flow/cli/src/mcp-tools/memory-tools.ts
2026-11-05 09:54:40 -05:00
r 55603d7745 Merge PR #4820 2026-11-05 09:54:32 -05:00
r ff187f8402 Merge PR #4819 2026-11-05 09:54:32 -05:00
r 6183087803 Merge PR #4818 2026-11-05 09:54:32 -05:00
r ebc84e0c81 Merge PR #4817 2026-11-05 09:54:32 -05:00
r 9732dda7cd Merge PR #4809 2026-11-05 09:54:31 -05:00
r 4bfa874a13 Merge PR #4808 2026-11-05 09:54:31 -05:00
r 52ec160d5a Merge PR #4807 2026-11-05 09:54:31 -05:00
r 7a4129a418 Merge PR #4806 2026-11-05 09:54:31 -05:00
r fa5684cd42 Merge PR #4805 2026-11-05 09:54:31 -05:00
r a020194cee Merge PR #4804 2026-11-05 09:54:31 -05:00
r 84c0859689 Merge PR #4803 2026-11-05 09:54:31 -05:00
randRuFlo 704330e488 fix(cli): reuse an identical corrupt-store backup; bump workflows 0.7.2 and plugin-creator 0.4.5
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>
2026-11-05 09:53:38 -05:00
r 1aa99f258b Merge PR #4816 2026-11-05 09:52:46 -05:00
r b05e1c99f0 Merge PR #4815 2026-11-05 09:52:46 -05:00
r 433aa17e9a Merge PR #4814 2026-11-05 09:52:46 -05:00