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>
- 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>
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>
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>
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>
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>
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>
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>
#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>
#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>
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>
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>
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>
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>
#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>
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>
* 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>
* 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>
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>
`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>
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>
- @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>
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>
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>
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>
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>
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>
Readers checked against 0.3.13 output (hooks stats, hooks route, rvf
examples, identity show): same shapes as 0.3.12. Console smoke 21/21;
claude plugin test 255/260, the same 5 mission-control / compact-nav /
goal-length failures as on main (noted in #4842), none in the vector page.
Co-authored-by: r <r@x>
Follows #4842. Smoke 14/14 against 0.3.13; DiskANN build + search round
trip run with the diskann extra. 0.3.13 registers 118 MCP tools (adds
diskann_build, diskann_search) and moves to @ruvector/attention ^2.2.3
(GHSA-p62c-q7fc-qmg9) and @ruvector/sona ^0.1.11. The agent listed
sona_*, attention_* and gnn_* MCP tools that ruvector never registered;
they are CLI-only. Documents ruvector add extras and
RUVECTOR_RABITQ_THRESHOLD. Removes the benchmark limitation, which no
longer reproduces.
Co-authored-by: r <r@x>
On npm 10 / Node 20, @ruvector/ruvllm-gpu-loop (engines node >=22) fails as an
optional install. npm then drops @ruvector/ruvllm and ruvector with it, and
also @ruvector/attention, because the umbrella reached it only through
optional edges. On main, a non-optional dev path kept 0.1.31 at the root,
which hid the problem. CI's Test Suite (ubuntu, Node 20, npm 10.8.2) then
failed with "Cannot find module '@ruvector/attention'" in the performance
tests.
attention has no install scripts and its platform binaries stay optional,
so a regular dependency cannot fail an install. It also guarantees the
2.2.3 security fix is present even where the ruvector subtree is dropped.
Verified in node:20: npm ci installs attention 2.2.3 and it loads.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(security): path traversal in hooks_build-agents
outputDir passed validatePath, which allows absolute paths, and format was
spliced unvalidated into each config file name, so an MCP caller could make
the tool create directories and overwrite files outside the project.
Contain the real output directory in the real project root and restrict
format to yaml/json.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVKUis3yTcrY8a2cNer
* fix(security): argv option injection and URL scheme check in browser adapter
AgentBrowserAdapter passed caller values (selectors, text, URLs, paths)
straight into agent-browser's argv, which parses options anywhere, so a
value beginning with -- was read as an option. open/newTab also accepted
any URL scheme, letting the exported browser MCP tools read local files.
Reject unexpected options in command argv and allow only web URLs,
mirroring the CLI's browser-argv guard.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVKUis3yTcrY8a2cNer
---------
Co-authored-by: Claude <noreply@anthropic.com>