Commit Graph
4008 Commits
Author SHA1 Message Date
rUv 024bb49a7b Merge pull request #4913 from ruvnet/fix/4880-4876-persist-and-search
fix(cli): report failed pattern persistence and unified-search namespace errors (#4880, #4876)
2026-11-09 14:38:15 -05:00
rUv 55df93a644 Merge pull request #4912 from ruvnet/fix/tool-schema-limits
fix(cli): advertise the real input limits in aidefence_scan, hierarchical-store and post-task schemas
2026-11-09 14:38:10 -05:00
rUv 861ae9e3c8 Merge pull request #4909 from ruvnet/fix/4888-atomic-short-write
fix(cli): write every byte in writeFileAtomic before rename (#4888)
2026-11-09 14:38:05 -05:00
randRuFlo ffb8cb6f90 test(cli): import the MCP schema validator from source
CI runs vitest from the repo root, where @claude-flow/mcp is not
resolvable as a package, so the import failed and the file counted as a
new failure in the test ratchet.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 12:14:59 -05:00
randRuFlo 550691ab7c fix(cli): advertise the real input limits in aidefence_scan, hierarchical-store and post-task schemas
Schema and description metadata only; validation logic and limits are unchanged.

- aidefence_scan.input (#4886): maxLength 10000, description states the
  bound is 10000 UTF-16 code units (validateText default) and that JSON
  Schema maxLength counts code points.
- agentdb_hierarchical-store.value (#4892): minLength 1, maxLength 10000,
  same UTF-16 note. The only input that reaches the "max 100KB" error is
  the empty string (validateText refuses >10000 first), so that message
  now states the effective 10000-character limit.
- hooks_post-task taskId/agent/parentAgentId (#4887): a pattern
  equivalent to cli-core IDENTIFIER_RE, maxLength 128, `not: {enum}` for
  the CLI's reserved names, and descriptions saying these are registered
  native IDs, not host paths like /root/x. agent's pattern also accepts
  '' because the handler treats an empty agent as omitted and the HTTP
  transport enforces pattern/minLength at runtime.

Adds __tests__/tool-schema-limits.test.ts, which checks each schema with
ajv and with @claude-flow/mcp's runtime validateSchema against the real
validators and handlers.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 10:33:59 -05:00
randRuFlo ca838868be fix(cli): report unified-search namespace errors and elapsed time (#4876)
memory_search_unified:
- searchTime is now elapsed time ("12.34ms"), not a Date.now() timestamp.
- Per-namespace failures (thrown errors and success:false results such as
  "Database not found") are returned as namespaceErrors with
  namespacesSearched / namespacesFailed counts. success stays true for
  partial coverage and is false only when every namespace failed.
- Namespaces are searched concurrently, at most 4 at a time, through a small
  in-handler pool. Each search is a read of the same store with no shared
  mutable state. Results are slotted by namespace position and flattened in
  namespace order before the existing stable sort, so ranking and ordering
  match the sequential loop.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 10:32:54 -05:00
randRuFlo c05262236b fix(cli): report failed pattern persistence instead of claiming success (#4880)
LocalReasoningBank.flushToDisk() caught write errors such as ENOSPC, logged
them and left the bank dirty, but returned void, so recordTrajectory() still
returned true for patterns that only existed in memory.

- flushToDisk() now returns a boolean: true when persisted or nothing to
  write, false when the write failed (state stays dirty). It still never
  throws, so the debounce timer path is unchanged. The lock/merge/temp-file
  + rename algorithm is untouched.
- The last flush error and attempt time are recorded and exposed read-only
  through getFlushState() and getPersistenceStatus() (dirty, lastFlushError,
  lastFlushAt). A successful flush clears the error.
- recordTrajectory() and flushPatterns() return the flush result.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 10:32:54 -05:00
randRuFlo aad51af948 fix(cli): write every byte in writeFileAtomic before rename (#4888)
writeFileAtomic called writeSync once and ignored the returned byte count,
then fsynced and renamed the temp file over the target. A short write
(allowed by POSIX) published a truncated file and returned success.

Loop on writeSync's return value, advancing the buffer offset and file
position until every byte is written; throw if a call makes no progress.
The fsync, close, rename, chmod, directory fsync and cleanup-on-error
sequence is unchanged.

Fixes #4888

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 10:27:42 -05:00
randRuFlo 2dab8d94b1 fix(swarm): honor enableFailover and maxDelegationAttempts in QueenCoordinator (#4902)
QueenCoordinatorConfig declared enableFailover (default true) and
maxDelegationAttempts (default 3), but selectBackupAgents() ignored both
and hardcoded a cap of 2 backups.

selectBackupAgents() now returns no backups when enableFailover is false
and caps backups at max(0, maxDelegationAttempts - 1), counting the
primary as the first attempt. The defaults give 2, so default behavior is
unchanged.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 10:27:42 -05:00
randclaude-flow 1228287f96 fix: move @claude-flow/shared to its own PR; codex VERSION 3.0.7; floor tests survive the root ratchet
- @claude-flow/shared is a registry-resolved leaf of the cli
  (audit-leaf-package-publish): a shared version bump has to land in the same
  PR as the cli's pin, which belongs to the release lane. Its zod 4 port moves
  to a separate PR, and this one leaves shared exactly as on main.
- codex exports VERSION; it now matches package.json 3.0.7
  (audit-codex-integration).
- The repo-root test ratchet runs the v3 plugin tests against the root
  install, which hoists zod 3. The floor tests now assert the declared range
  statically, and run their runtime checks only when the resolved zod
  satisfies it, so they still fail on main's source (both checks red) and
  skip, rather than test the wrong library, under the root install.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 02:49:13 -05:00
randclaude-flow f3a5d14414 docs(readme): ADR-356 quickstarts for the 18 published packages in this batch
Each README gets the package's one job in its first paragraph, supported
environments, a quickstart whose expected output was captured by running it
against a freshly installed `npm pack` tarball, a link to the related
package, and the ruv.io footer. Packages above 1,000 downloads a month
(shared, hooks, mcp, codex, gastown-bridge, hyperbolic-reasoning,
perf-optimizer) get an animated SVG of their data flow (CSS keyframes, no
scripts, reduced-motion aware).

perf-optimizer's README named a package that does not exist on npm
(@claude-flow/plugin-performance-optimizer); it now names
@claude-flow/plugin-perf-optimizer.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 02:31:40 -05:00
randclaude-flow ab18c33548 fix(deps): zod ^4.6.7 floor, integration agentic-flow ^2.0.14, mcp/codex/shared advisory floors
zod (GHSA-mrhx-c7xc-m3w5): shared, claims, the twelve v3 plugins,
ruvector-upstream, plugins/ruflo-{arena,ai-team,chatgpt-federation,x-gateway}
and goal_ui move to zod ^4.6.7. hooks declared zod but never imported it, so
the dependency is dropped.

gastown-bridge drops uuid/@types/uuid (GHSA-w5hq-g745-h8pq).

integration: peer agentic-flow ^2.0.0-alpha -> ^2.0.14 || ^3.0.0
(GHSA-vcv2-r9jh-99m5). The repo source already matched the published 3.0.2,
so this ships as 3.0.3. A patched agentic-flow leaves a ReasoningBank timer
alive, which made plugins/ruflo-cost-tracker/scripts/compact.mjs print its
result and never exit; compact.mjs now exits after stdout drains, guarded by
scripts/smoke-compact-exit.mjs (hangs on main, passes here) in
cost-tracker-smoke.

Stale ranges outside the cli: mcp ws ^8.21.0 (GHSA-96hv-2xvq-fx4p), express
^4.22.3 (GHSA-qw6h-vgh9-j6wx), ajv ^8.20.0 (GHSA-2g4f-4pwh-qvx6); codex yaml
^2.8.3 (GHSA-48c2-rrv3-qjmp); shared express ^4.22.3 || ^5.1.0. Each package
gets an advisory-ranges test over its own manifest.

ADR-356 metadata on every published manifest: homepage https://ruv.io,
canonical repository with directory, bugs, 8-20 keywords, description
<= 200 characters.

Versions: shared 3.0.8, hooks 3.0.3, claims 3.0.1, integration 3.0.3,
mcp 3.1.7, codex 3.0.7, gastown-bridge 0.1.6, prime-radiant 0.1.7, other
v3 plugins one alpha up. Marketplace plugin.json bumps for the five changed
plugins. The cli, claude-flow and ruflo pins are left for the release lane.

Lockfiles: v3/pnpm-lock.yaml drops the agentic-flow@2.0.0-alpha tree;
standalone plugin locks were regenerated with npm 11 (npm 10 crashed on a
stale optional peer in four of them).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 02:21:15 -05:00
2d789faadc fix(zod4): port shared and v3 plugin schemas to zod 4; gastown convoy IDs from crypto.randomUUID
zod < 4.6.6 can exhaust memory validating oversized constrained collections
(GHSA-mrhx-c7xc-m3w5, high) and has no 3.x fix. This ports the zod 3 APIs
that break under zod 4:

- ZodError.errors -> .issues (shared config validator, gastown sanitizers,
  validators, sync bridge)
- one-argument z.record(value) -> z.record(z.string(), value)
- z.ZodType<Out, ZodTypeDef, In> -> z.ZodType<Out, In>
- prime-radiant: `.default({})` no longer parses the default under zod 4, so
  nested defaults were dropped; the default now parses `{}`
- gastown: MCP inputSchema conversion reads zod 4's `_def.shape`/`_def.type`

The shared and plugin source ports are taken from #4535 by Dragan
Spiridonov (proffesor-for-testing), applied onto current main.

gastown-bridge also drops `uuid` (GHSA-w5hq-g745-h8pq): it only generated
v4 convoy IDs, now `crypto.randomUUID()`.

Tests: every v3 plugin gets a red/green zod floor test against its real
input schema. An oversized bounded array of invalid elements yields one
`too_big` issue under zod >= 4.6.6 and one issue per element below it; the
tests fail on main's source with zod 3.25.76 and pass here.

Co-authored-by: Dragan Spiridonov <spiridonovdragan@gmail.com>
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 02:20:56 -05:00
rUv 2d590fc041 Merge pull request #4900 from ruvnet/fix/3.74.1-stale-helpers
fix(release): refuse stale helpers at publish; release 3.74.1
2026-11-09 00:32:48 -06:00
randRuFlo ee2f94ad07 fix(release): refuse to publish helpers that differ from HEAD; release 3.74.1
@claude-flow/cli@3.74.0 shipped 3.63.4 .claude/helpers. The committed
package stamp (.helpers-version) reads 3.57.1, so hook-spawned daemons
running an older checkout's CLI (3.63.4) saw the worktree's helpers as
stale and rewrote them between prepare and npm publish. verify-helpers
passed because it signs and checks whatever is on disk.

prepare-publish now diffs .claude/helpers against HEAD before signing
and again after verifying, and throws if any helper content changed
(the regenerated manifest and stamp are excluded). Tested: a dirtied
helper is refused, and a live daemon overwrite during a clean run was
caught.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 01:06:05 -05:00
ruv 4ef02ef12c test(pagerank): skip the sublinear-core cases where the optional package is not installed
The repo-root CI run (npm workspaces) does not install @claude-flow/memory's
optional dependencies, so the backend assertions for sublinear-core failed
there. The in-tree cases still run everywhere; the sublinear-core cases run
in the package's own suite.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 00:58:08 -05:00
ruv 4791f07685 chore(release): @claude-flow/memory 3.2.6, @claude-flow/plugins 3.0.3; cli pins memory 3.2.6
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 00:58:08 -05:00
ruv 37eca9892f fix(pagerank): converge MemoryGraph PageRank; fix GraphOperations teleport and weights
MemoryGraph.computePageRank (memory-graph.ts) stopped on a per-node change
below 1e-6 within 50 iterations. On a 10k-node graph it exited after 10
iterations with an L1 error of 1.46e-4 (max 3.95e-7) against an exact
solution. It now stops on the L1 change (default 1e-10, up to 200
iterations): 30 iterations, L1 error 2.76e-11.

GraphOperations.pageRank (plugins gnn.ts) had three mass leaks:
- personalization: nodes missing from the map still got the uniform 1/n
  teleport on top of the personalization weights, so a single-seed run
  summed to 1.98;
- isolated nodes lost their mass (global runs summed to 0.983);
- weighted runs divided by the neighbour count instead of the neighbour's
  total edge weight (scores summed to ~8e12 on a weighted test graph).
Teleport is now the normalized personalization restricted to graph nodes,
dangling mass is redistributed by it, and weights are normalized by
out-strength.

Both use @ruvnet/sublinear-core (^1.0.1, zero deps) as an optional
dependency, loaded lazily via createRequire, with an in-tree fallback of
the same semantics (pagerank.ts, one copy per package).

Tests: both backends sum to 1 and match an independent power iteration
within 1e-9 (global, personalized, weighted, MemoryGraph), and the fallback
is used when the package is absent.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 00:57:55 -05:00
rUv bc480847d8 Merge pull request #4898 from ruvnet/feat/darwin-dependency
feat(metaharness): @metaharness/darwin as a regular dependency, in-process (ADR-526); release 3.74.0
2026-11-08 23:34:08 -06:00
randRuFlo 4467066de4 test(cli): find the hoisted darwin CLI in the ADR-526 parity test
CI's root npm install hoists @metaharness/darwin to the repo root, so the
package-local node_modules path did not exist and beforeAll failed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-08 23:51:30 -05:00
randRuFlo 9b46f57c58 feat(metaharness): @metaharness/darwin as a regular dependency, used in-process (ADR-526); release 3.74.0
- darwin moves to dependencies (ADR-526 amends ADR-150 rule 2 for darwin
  only); the smoke gate, doctor check and clean-install test accept it.
- src/metaharness/darwin-lib.ts: cached import; metaharness_bench verify and
  every metaharness_gepa op run in-process with the scripts' exact payloads
  and exit codes, falling back to the scripts when darwin does not import.
- ruflo-metaharness 0.5.0: bench.mjs verify imports darwin directly (bare
  import, no tool-time install) and falls back to the installed darwin CLI.
- Parity test vs the plugin scripts; benchmark script + measured runs.
- Version 3.74.0.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-08 22:01:25 -05:00
ruv 7404888a50 fix(cli-core): accept zod 4's invalid_value for custom agent types; cli-core 3.7.6
validateAgentSpawn() runs @claude-flow/security's SpawnAgentSchema and
skips the enum miss for custom agent types by matching
`invalid_enum_value`. That is zod 3's code; zod 4 reports
`invalid_value`, so with security on zod 4 every custom agent type was
rejected. agent_spawn and the hive-mind suites failed in CI (5 files).
It now accepts both codes.

cli-core resolves from the registry (non-bundled leaf), so this bumps it
to 3.7.6, which is already published, and moves the cli and claude-flow
pins and the root lockfile to it.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 21:50:20 -05:00
ruv d77ecbe0bd fix(security): migrate input-validator to zod ^4.6.7 (GHSA-mrhx-c7xc-m3w5)
zod < 4.6.6 can exhaust memory while validating oversized constrained
collections (high severity). @claude-flow/security declared zod ^3.22.0,
so every consumer of it (memory, hooks, codex, federation and the cli
bundle) carried a vulnerable zod. A fresh `npm i @claude-flow/memory@3.2.4`
reports 3 high findings via @claude-flow/security -> zod 3.25.76.

API changes handled:
- z.setErrorMap(fn(issue, ctx)) -> z.config({ customError }), with
  invalid_string/validation becoming invalid_format/format. Messages given
  to a check still take precedence; undefined falls back to zod's default.
- z.string().ip({version}) -> z.ipv4() / z.union([z.ipv4(), z.ipv6()]),
  keeping the messages.
- z.record(value) -> z.record(z.string(), value).
- SafeParseReturnType/ZodSchema -> ZodSafeParseResult/ZodType.

The workspace lockfile also drops zod 4.3.5 (vulnerable). Version 3.0.7,
and the cli and claude-flow pins move to 3.0.7. Publishing
@claude-flow/security only; the cli and claude-flow ride the release lane.

Tests: the existing 631 pass. input-validator-zod4.test.ts pins the
installed zod at >= 4.6.6, the IP schemas, message precedence, the global
map and the record schemas.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 21:11:43 -05:00
ruv e83c3ab6fd chore(release): @claude-flow/memory 3.2.5 (agentdb ^3.7.2); cli pins memory 3.2.5
agentdb ^3.0.0-alpha.20 -> ^3.7.2 (filtered search and in-memory
isolation the backends rely on). Workspace lockfile now resolves agentdb
3.7.2 everywhere. memory@3.2.5 is published before merge, which
audit-leaf-versions-published requires.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 20:44:49 -05:00
ruv 554399de7f fix(memory): RvfBackend filtered search returns k results (recall@10 0.008 -> 1.0)
search() fetched k*2 neighbours from the HNSW graph and then dropped
entries that failed the namespace/tags/type filters, and
query({type: 'semantic'}) intersected a fixed top-`limit` with the
filter (and returned the survivors in insertion order). Selective filters
therefore returned fewer than k results.

Measured on 3,000 random 64-dim unit vectors, 25 queries, k=10:
- 1% namespace filter: 2/250 results, recall@10 0.008 -> 250/250, 1.000
- 35% tag filter:      178/250, 0.712 -> 250/250, 1.000
- query({type:'semantic', namespace}) with 1% selectivity: 0 hits -> 10,
  ranked by similarity

Both paths now rank the filtered candidates. Candidate sets up to
max(1000, 8k) are scored exactly with the index metric. Larger ones widen
the HNSW fetch (k*2, then x4) until k candidates are found or the index is
exhausted. search() and the brute-force path now honour the same filter
fields as query() (they ignored memoryType, keyPrefix, ownerId, ...).
Expiry handling in search() is unchanged.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 20:44:17 -05:00
ruv 1979a92053 chore(release): @claude-flow/memory 3.2.4; cli pins memory 3.2.4 and plugin-agent-federation 1.0.7
The SQLiteBackend migration is in @claude-flow/memory, which the CLI
resolves from the registry, so the leaf-package publish audit (#3335)
requires a bump and a matching CLI pin. memory@3.2.4 is published right
after this merges. The federation pin moves to the 1.0.7 already on npm
(GHSA-vcv2 peer range, #4890).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 20:21:25 -05:00
ruvanddskarasev 238ce5b32a fix(memory): migrate CLI-created memory_entries in SQLiteBackend; memory_store metadata (#1426)
Re-applies dskarasev's #1426 on current main.

SQLiteBackend: a memory.db created by the CLI's memory-initializer DDL has no
access_level, version or "references" column. CREATE TABLE IF NOT EXISTS left
that table alone, so every store() failed with "table memory_entries has no
column named access_level". initialize() now adds the missing columns (and
access_count / last_accessed_at for older DDLs) with createDefaultEntry()
defaults.

memory_store: accepts an optional `metadata` object and persists it on both
write paths (AgentDB bridge and sql.js fallback), which both hard-coded '{}'.
Arrays, null and scalars are rejected at the MCP boundary.

Tests: sqlite-backend-legacy-schema.test.ts (fails on main with the
no-such-column error) and memory-store-metadata-1426.test.ts (sql.js path,
bridge path, input check; 6 of 7 fail on main).

Co-Authored-By: dskarasev <dskarasev@users.noreply.github.com>
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-08 20:21:18 -05: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
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 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 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 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 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 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
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
2026-11-06 07:56:29 -06: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 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