* fix(security): managed-agent tools refuse sessions this project did not create
managed_agent_prompt, status, events and terminate accepted any session id
in the Anthropic organisation, so a prompt-injected caller could read,
steer or delete sessions it never created. managed_agent_create now records
each session and its environment in .claude-flow/managed-workflows/sessions.json,
and the four tools refuse any session that is neither in that ledger nor in
RUFLO_MANAGED_CONTROL_SESSIONS, before any provider request. Terminate also
deletes only the environment recorded for the session, and forgets the
session once it is deleted.
Fixes#4751
* fix(managed-agent): keep the session ledger outside the workspace and check environments with the provider
The ledger moves to ~/.claude-flow/managed/<sha256(realpath(cwd))>.json (the
dispatch queue's state directory, RUFLO_AI_BUDGET_DIR honoured), so an agent
that can write project files cannot grant itself another session. Terminate
now asks the provider which environment a session runs in before deleting
one, and refuses when the ledger disagrees.
The ledger lock records its owner and is broken once older than 5 s, a
corrupt ledger is set aside as .corrupt-<ts> on write, and create warns when
the 1000-entry cap drops a session. The ruflo-agent managed-agent skill no
longer says to terminate stale sessions from list (ruflo-agent 0.4.3).
Tests cover a forged-ledger environment delete, a workspace ledger, a stale
and a live lock, a corrupt ledger, the cap, and eight processes creating at
once.
Refs #4751
* ci(env-audit): register RUFLO_MANAGED_CONTROL_SESSIONS as a host-only escape hatch
The managed-agent allowlist is a trust boundary (#4751): a caller must not be
able to widen it, so there is deliberately no CLI flag to take precedence.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
Co-authored-by: RuFlo <ruv@ruv.net>
* fix(hooks): read $(...) substitutions and parameter defaults in the root-delete guard
hasRootDelete parsed backtick substitutions but not $(...): the $ joined
the word and ( reset the rm being parsed, so rm -rf "$(echo)"/ and
rm $(:) -rf / passed while their backtick spellings were refused. A $(...)
body is now matched past quotes and nesting, scanned as its own command,
and dropped from the word, as a backtick one is. $((...)) is arithmetic:
its body is still scanned and a digit stands in for it. Once a $( never
closes, the rest of that scan reads ( and ) as separators, as before.
A parameter's default (X:-word, X-word, X:=word, X=word in dollar braces)
is now judged as the word the shell uses when the name is unset, so
rm -rf ${X:-/} is refused. Single quotes keep it literal.
Same change in both hook-handler.cjs copies, the generated fallback and
the ruflo-mods guard (0.16.3), with parity cases in mods-guard.test.ts.
The packaged helper is signed, so helpers.manifest.json needs a re-sign.
Fixes#4742
* fix(hooks): fail closed on an unclosed $( and read array/indirect defaults (ruflo-mods 0.17.2)
closeParen now skips $'...' strings with their escapes and # comments, so
rm -rf $(echo $'\'')/ and a ) inside a comment no longer end the scan early.
A $( that never closes in a command with an rm in it is refused instead of
read the old way. The parameter matcher takes an optional leading ! and a
[...] subscript, so ${A[0]:-/} and ${!X:-/} are refused. Same change in all
four guard copies, with the review's inputs as parity cases.
Refs #4742
* chore(helpers): re-sign the helpers manifest for the #4848 hook-handler guard
#4848 changes .claude/helpers/hook-handler.cjs, so the signed manifest's
hash no longer matched (guard: helper-signing.test.ts integrity mismatch).
Re-signed with the release key; helper-signing + mods-guard: 312/312.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: Parman Mohammadalizadeh <prmma23@gmail.com>
Co-authored-by: r <r@x>
* fix(mods): engine.create in the validator's form; claude plugin validate passes on Claude Code 2.1.323+ (0.17.1)
hooks/noun.ts returned { ...added, ...beneath } from engine.create. Claude Code
2.1.323 and later refuse that in `claude plugin validate` ("this engine.create
hook is outside its form: a spread of anything but the value of next(e)"), for
0.16.2 and 0.17.0 alike; 2.1.319 accepted it. Reading beneath.ruflo to keep an
earlier step's noun is refused as well ("$.ruflo is used as a value"), so the
hook now returns { ...beneath, ruflo }. No other plugin defines engine.create,
so $.ruflo is unchanged in practice. The mod loaded and ran on those versions
already; only validation failed.
Tests: claude plugin test plugins/ruflo-mods 209/209 before and after;
claude plugin validate fails before, passes after (2.1.323, 2.1.325, 2.1.326);
headless `claude -p --plugin-dir` probe loads it with plugin_errors null.
Co-Authored-By: ruflo <ruv@ruv.net>
* test(mods): smoke.sh expects 0.17.1
Step 1 pins the plugin.json version; the 0.17.1 bump needs it too
(same as the 0.17.0 bump in 1acb1fc98). smoke.sh: 17 passed, 0 failed.
Co-Authored-By: ruflo <ruv@ruv.net>
---------
Co-authored-by: ruflo <ruv@ruv.net>
* fix(ruflo-console): POSIX append keeps every batch under uutils dd (#4978)
The POSIX append script ran `dd bs=1M iflag=fullblock status=none >> "$1"`.
uutils dd 0.10.0 (the default coreutils on Ubuntu 26.04, now the
ubuntu-latest runner image) truncates its stdout to its own offset after
writing: strace shows `lseek(1, 0, SEEK_CUR)` then `ftruncate(1, pos)`. With
concurrent appenders that cuts off every batch another writer added in
between, so the "eight writers" spec lost whole 60-line batches
(1500/1680/1740 of 2400) and kept main's CI/CD Pipeline red.
Add `conv=notrunc` (POSIX dd; GNU, BSD and uutils all accept it). In an
ubuntu:26.04 container the spec fails 3/3 before (720, 721, 1080 lines) and
passes 3/3 after; GNU dd is unaffected. Linux hosts still run the GNU argv,
so the shipped Linux path was never affected; the script is the macOS/BSD
path. The POSIX whole-set digest is re-pinned; the GNU digest is unchanged.
ruflo-console 0.50.1 -> 0.50.2.
Fixes#4978
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(ruflo-console): smoke pins 0.50.2
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
/neural wsp, intelligence-specialist rows, and an intelligence-route step
that runs neural wsp check after the centroid artifact is replaced.
Co-Authored-By: RuFlo <ruv@ruv.net>
0.14.0 adds an opt-in numeric surrogate (ruv-fann as an optional peer).
Without the surrogate config, evolveNumeric behaves as in 0.13.1, and
exports are unchanged. Moves the CLI range, the plugin's
DARWIN_PIN_VERSION and MH_DARWIN_PIN together. v3/pnpm-lock.yaml gains
a darwin@0.14.0 entry; 0.13.0 stays for metaharness, ruvector and
ruvllm-gpu-loop, which still declare ^0.13.0.
Fixes#4952
Co-Authored-By: RuFlo <ruv@ruv.net>
The console's ADR-478 check parses a plugin's changelog once its version is
stable semver; every heading here was a prerelease, so the file didn't parse.
Co-Authored-By: RuFlo <ruv@ruv.net>
@claude-flow/cli, claude-flow and ruflo 3.75.3. Carries #4905 (shared 3.0.8,
zod 4), #4947 (memory 3.3.1 pin), #4943, #4935, #4934, #4936 and #4938.
ruflo-graph-intelligence plugin 0.3.1 (the version audit ignores prerelease
tags, so 0.3.0 did not count as a raise over 0.3.0-alpha.1).
Co-Authored-By: RuFlo <ruv@ruv.net>
DEGRADED_RX matched any 404 substring. When bench.mjs cannot import
darwin (CI's Test V3 Packages job installs only v3/ with pnpm, so the
plugin script finds no @metaharness/darwin and runs the cached darwin
CLI), darwin reports a tampered suite on stderr with both sha256 digests.
A digest containing "404", about 3% of tampered suites, made
classifyDegraded() report the tamper as "darwin not available", and the
script exited 0 instead of 1.
The 404 token now has to stand alone ("404 Not Found", "E404"). The
regression test runs classifyDegraded on a tamper message whose digests
contain 404, and checks that the npm 404 forms are still classified as
unavailable.
Refs #4930
Co-Authored-By: RuFlo <ruv@ruv.net>
bench.mjs now adds a top-level darwinSource field to every JSON payload
(library | cli-local | cli-cache | none). A degraded payload also carries
the darwin CLI's exit code and stderr tail. Existing fields and exit codes
are unchanged. runDarwin() returns the resolved bin source, and the shared
degraded emitter takes optional extra diagnostic fields.
darwin-inprocess-adr526 puts darwinSource, the degraded reason, and the
stdout/stderr tails in the assertion message when the bench.mjs
subprocess exit code is not the expected one.
Refs #4930
Co-Authored-By: RuFlo <ruv@ruv.net>
verify.mjs already exited 2 with precondition dist-not-built on a source-only
checkout, but the verdict was too broad and its message was misleading:
- A built tree with ONE dist file deleted was reported as "dist-not-built"
(exit 2) instead of a missing artifact (exit 1).
- A manifest with an invalid signature on an unbuilt checkout also exited 2.
- The text said "every manifest entry is missing" when 18 source entries had
been checked and passed; scheduled runners quoted that as an integrity failure.
Not-built is now reported only when the signature is valid, no source entry is
regressed or missing, and none of the manifest's dist/ entries exist on disk.
Anything else falls through to the normal exit-1 failure path.
JSON gains `status` ('ok' | 'fail' | 'not-built' | 'no-source-entries') on every
path, plus `notBuilt` {distEntries, sourceEntries, distDirs} and `results` on the
not-built path. `ok`, `scope`, `precondition`, `signature` and `summary` are
unchanged, and exit 2 + precondition dist-not-built are kept for existing
consumers (smoke-witness-verify-precondition.mjs Case 5).
Adds a vitest test (collected by the root CI ratchet) with a node:crypto-signed
fixture: unbuilt -> not-built; built+intact -> ok; marker removed -> fail;
dist file deleted in a built tree -> fail; source regression and tampered
signature on an unbuilt tree -> fail.
Co-Authored-By: RuFlo <ruv@ruv.net>
Package metadata only (ADR-356 distribution lane). No version bumps, no
dependency, script or source changes; it ships with each package's next
release.
- homepage https://ruv.io, repository {url ruvnet/ruflo, directory},
bugs ruvnet/ruflo/issues on @claude-flow/{memory,security,embeddings,
swarm,testing,plugins,performance,providers,deployment,
plugin-agent-federation,plugin-iot-cognitum} and
ruflo-graph-intelligence. Nine of these had no repository field at all,
so their npm pages link nowhere.
- 10-12 keywords per package, taken from each package's README features.
- ruflo-graph-intelligence description trimmed to 160 chars.
- memory and security READMEs: one-line job statement, supported
environments, a quickstart run against the published 3.3.0 / 3.0.7
with its real output, a link to the next package, and an animated SVG
(2.5 KB / 2.1 KB, prefers-reduced-motion aware) that shows that run.
Packages in #4897 (aidefence, browser, cli-core, guidance, neural,
teammate-plugin) are left alone to avoid conflicting with it.
Co-Authored-By: claude-flow <ruv@ruv.net>
The command catalog copy changed (#2640 command renames + catch-up
regeneration), so ruflo-console moves 0.50.0 -> 0.50.1 in plugin.json,
hooks/version.ts, scripts/smoke.sh and the CHANGELOG. The catalog is
regenerated on the merged tree (one entry changed by main) and copied to
the console again.
The single-host AGENTS.md snapshot follows main's #3153 change (#4918:
registered MCP tool names); no other line differs.
Co-Authored-By: RuFlo <ruv@ruv.net>
`ruflo catalog generate` + copy to the ruflo-console catalog (their digests
must match). Picks up memory-neural, stream-chain-run and swarm-orchestrate.
The committed catalog was already stale on main (243 entries; now 290: new
mod registrations and plugins since the last regeneration), so this also
carries that drift. The host-specific engine report is left as committed.
Co-Authored-By: RuFlo <ruv@ruv.net>
ruflo-federation's one `guard` switch gated both the secret refusal and
the SSN/card refusal, so an operator could not make PII informational
without also dropping secret screening. Add a `piiGuard` userConfig
option (default on: behaviour unchanged) wherever `guard` is declared:
- ruflo-federation 0.4.0: verdict() takes the options; the hasPii refusal
runs only while piiGuard is on. Secrets and input too large to screen
are still refused whenever guard is on.
- ruflo-intelligence 0.5.0: the hooks_transfer EMAIL refusal is gated by
piiGuard; the secret refusal is not. piiGuard joins the status file.
- ruflo-console 0.50.0: the mission screen gets a distinct `secret`
status from the local secret screen (blocks guidance even when
AIDefence is missing); `pii` blocks only while the new piiGuard option
is on, otherwise the finding is reported in a `safe` result's detail.
New tests per plugin: default refuses PII; piiGuard off lets PII-only
text through; a secret is still refused with piiGuard off; guard off
behaves as before.
Co-Authored-By: RuFlo <ruv@ruv.net>
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>
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>
- 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>
* 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>
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>
- browser-session-tools / neural-tools: comments keep the versions they
describe (#2015 was found on 0.2.25; ONNX bundled since 0.2.27). The
embedder label no longer hardcodes a version the ^0.3.11 range may not
resolve to.
- Console vector page: npx --offline with only an older pin cached printed a
bare ENOTCACHED. The result now starts with the command that fixes it.
Spec added.
- ruflo-ruvector README: the "since 0.3.3" table says which rows were run.
The two MCP gates were exercised over stdio (refused without the variable,
allowed with it); 0.3.10/0.3.11 come from release notes. /vector-setup says
to re-register the server after upgrading.
Co-Authored-By: RuFlo <ruv@ruv.net>
The CLI has depended on ruvector ^0.3.11 since #4838. The plugins still pinned
older releases: 0.3.3 in ruflo-ruvector and the console vector page, and
0.2.27/0.2.25 in ruflo-browser and the CLI's browser-session npx fallback.
0.3.3 predates the 0.3.4 MCP security hardening.
- Every pinned command was run against 0.3.12: the ruflo-ruvector smoke
(14/14), the console vector page's read commands, and the browser-session
rvf + trajectory argv.
- Fix the ruflo-browser agent and browser-record recipes. They passed
--session-id/--task/--args/--verdict to `hooks trajectory-*`, which no
ruvector release accepts. They now use the argv the browser_session_* MCP
tools already use.
- ruflo-ruvector README: a "What changed since 0.3.3" table (MCP env gates,
per-project store, CRUD, `ruvector add`, rvf lock fix, graph-mincut fix),
a re-verified limitations table, and the correct ADR link and tool count.
/vector-setup documents RUVECTOR_MCP_ALLOW_INIT and RUVECTOR_MCP_ROOTS.
- Versions: ruflo-ruvector 0.4.0, ruflo-browser 0.3.8, ruflo-console 0.49.12.
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(cli,codex): wire ecosystem packages into real code paths + ecosystem skills
Every integration here has a reachable path (optional dep or lazy import,
graceful fallback) and a test that drives the real package.
- @ruvector/learning-wasm 0.1.29 (new optional dep): it was imported by
ruvector-training.ts, neural.ts and ruvector/index.ts but never declared,
so MicroLoRA always ran on the JS fallback. Now initializeTraining()
reports backend 'wasm'; `neural benchmark` measures ~2 us/adaptation at
256-dim. The benchmark's attention section (broken against
@ruvector/attention 2.x) no longer aborts the MicroLoRA numbers.
- ruvector ^0.2.27 -> ^0.3.11. ruvector 0.3 ships @ruvector/mincut-wasm and
its DynamicMinCut wrapper. New ruvector/mincut-bridge.ts folds duplicate and
reversed edges (the solver rejects them) and backs:
- agentdb_graph-pathfinder `dynamic-mincut`, previously a k-hop stub: exact
min cut of the seed's depth-hop neighbourhood, returns the seed's side
plus cut metadata (cutValue, cutEdges, backend). JS Stoer-Wagner
fallback for neighbourhoods <= 300 nodes.
- graph-analyzer loadRuVector(), which probed a nonexistent
ruvector.hooks_graph_mincut and @ruvector/wasm GraphAnalyzer. Measured
187 ms vs 6 s (JS) at 1,000 nodes, same cut value.
spectral-sparsify / connected-component-churn stay k-hop approximations
and now say so in the response (`implementation`).
- @ruvector/rabitq-wasm 0.1.0 -> 0.1.2: ruvector 0.3.11 declares an optional
peer >=0.1.1, and npm raises ERESOLVE against an exact 0.1.0 pin. Same API.
- agent-booster ^0.2.2 (new optional dep) backs a new hooks_fast-apply MCP
tool: merges a code snippet into a file or string (~ms, no LLM), with
project-root and symlink containment, dryRun and minConfidence. ADR-143
is respected: it is an applier for caller-supplied snippets, not a Tier-1
intent engine. The appliance bridge's tier-1 hint, labelled
'agent-booster' while being two regexes, is now labelled 'codemod' and
points at hooks_codemod. Path-containment helpers move from hooks-tools.ts
to realpath-containment.ts so both tools share them.
- ast-analyzer / diff-classifier / coverage-router imported @ruvector/ast,
@ruvector/diff, @ruvector/coverage, which were never published (npm 404).
ruvector 0.3's ASTParser needs native tree-sitter and is async-only;
parseDiff / parseIstanbulCoverage are plain JS equivalent to the local
parsers. The phantom imports are removed rather than swapped for a no-op hop.
- Skills: six new Claude Code skills (vector-quantization, graph-mincut,
sublinear-solver, injection-defense, fast-code-edits, lora-learning) in a
new SKILLS_MAP.ecosystem group, installed by default `ruflo init`
(`init skills --ecosystem`), and the Codex equivalents bundled in
@claude-flow/codex .agents/skills (built-in, installed by --full).
@claude-flow/codex 3.0.5 -> 3.0.6.
- no-cli-optdep-bloat-2561 guard: CLI_MAX 13 -> 17 and learning-wasm off the
FORBIDDEN list, with cold-install measurements (learning-wasm 0.38 s / 1
pkg / 104K; agent-booster 0.98 s / 67 pkgs / 5.8M).
Evaluated and not wired: sublinear-time-solver as a PPR accelerator (its
computePageRank took 1.2 s at 500 nodes and 68 s at 2,000, vs ms for the
built-in power iteration; 184 deps / 123 MB), strange-loops (pulls the same
tree), @ruvector/kge, @ruvector/cnn, @ruvector/rvlite, @ruvector/graph-wasm,
@ruvector/emergent-time, agentic-jujutsu, @ruvector/pi-brain (no existing
caller doing the job badly); @ruvector/diskann (see the memory PR).
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(deps): bound @ruvector/ruvllm away from the broken 4.0.x; ruvector override to ^0.3.11
@ruvector/ruvllm 4.0.0/4.0.1 were published from the wrong repository: an
ESM-only GPU-loop harness with no main entry and none of SonaCoordinator,
ContrastiveTrainer, TrainingPipeline or LoraAdapter. The open `>=2.6.0`
ranges in the root and ruflo overrides and the v3 pnpm.overrides let it
resolve, and every createRequire('@ruvector/ruvllm') caller (intelligence.ts,
sona-optimizer.ts, native-training.ts) then fell back to JS silently.
- root/ruflo overrides, v3 pnpm.overrides, providers peer:
`>=2.6.0 <4.0.0 || ^4.1.0` (2.6-3.x all export the four classes; 4.1.0 is
the restored runtime). Narrow to ^4.1.0 once it is on the registry.
- root/ruflo overrides: ruvector ^0.2.41 -> ^0.3.11. agentdb 3.3.0 itself
depends on ruvector ^0.3.5 and the CLI now on ^0.3.11, so the old override
forced both below their own ranges inside this repo's tree.
- ruflo overrides: agentdb `>=3.3.0` -> `^3.3.0`, agentic-flow `>=2.0.14` ->
`^2.0.14 || ^3.0.0` (no open-ended ecosystem ranges).
- providers/src/__tests__/ruvllm-runtime-contract.test.ts loads the installed
package through createRequire, asserts the four classes, constructs a
SonaCoordinator the way the CLI does, and checks the resolved version is in
range. Against 4.0.1, require() itself fails (no CJS entry).
Co-Authored-By: claude-flow <ruv@ruv.net>
* test: run ecosystem and ruvllm contract tests where the packages are installed
ci.yml's repo-root npm layout does not install the CLI's optional
dependencies, so those blocks skip there; the pnpm workspace that Test V3
Packages uses installs every one of them, so they run. The probe walks
node_modules only up to the repository root. A @ruvector/ruvllm that is
installed but does not load through require() still fails, and says which
copy and why.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(umbrella): claude-flow carries the CLI's new optional deps; rabitq-wasm 0.1.2
The claude-flow umbrella ships the CLI dist with its own dependency list.
With @ruvector/rabitq-wasm pinned at 0.1.0, npm could not hoist ruvector 0.3
(optional peer rabitq-wasm >=0.1.1) and nested it under agentdb/agentic-flow,
so the umbrella's copy of the CLI could not import('ruvector') and the mincut
path was dead there. rabitq-wasm -> 0.1.2 (same API) puts ruvector back at
the top level; ruvector ^0.3.11, @ruvector/learning-wasm 0.1.29 and
agent-booster ^0.2.2 join the umbrella's optionalDependencies so the WASM
MicroLoRA, min-cut and fast-apply paths are reachable from npx claude-flow too.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(security): @metaharness/darwin ^0.13.0 (GHSA-mjwg-5fm3-fx2p), metaharness ^0.4.20
@metaharness/darwin 0.13.0 fixes a high-severity sandbox bypass
(GHSA-mjwg-5fm3-fx2p); the CLI's `~0.12.0` could never resolve it.
- cli optionalDependencies @metaharness/darwin ~0.12.0 -> ^0.13.0; peer
metaharness ^0.4.1 -> ^0.4.20
- distill-oracle MH_DARWIN_PIN 0.12.0 -> 0.13.0 (npx tier-1 oracle calls)
- ruflo-metaharness helper pins: _darwin.mjs ~0.12.0 -> ~0.13.0,
_harness.mjs ~0.4.1 -> ~0.4.20 (tilde, as check-metaharness-pins requires);
plugin 0.4.0 -> 0.4.1
Checked against 0.13.0 before bumping (0.x minor): same exports
(., ./contrastive, ./gepa), same metaharness-darwin verbs ruflo surfaces
(evolve, evolve-numeric, bench create|verify, security bench), and the gepa
library calls (loadCand6Genome, validateGenome, buildSystemFromGenome)
return identical results to 0.12.0. Tier-2 evolution now runs in an isolated
child process upstream; ruflo already drives darwin as a subprocess. Note:
0.13.0 adds one runtime dependency (@babel/parser), where 0.12 had none.
check-metaharness-pins, metaharness-clean-install-test and the CLI's
metaharness/distill/darwin tests (80) pass.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(deps): @ruvector/ruvllm ^4.1.0 now that the restored runtime is published
4.1.0 is the dual CJS/ESM runtime again. Root and ruflo overrides, v3
pnpm.overrides and the providers peer move from `>=2.6.0 <4.0.0 || ^4.1.0`
to `^4.1.0`; both lockfiles now resolve 4.1.0. The contract test requires
>=4.1 <5 and passed against 4.1.0 (SonaCoordinator, ContrastiveTrainer,
TrainingPipeline, LoraAdapter, DEFAULT_SONA_CONFIG; SonaCoordinator
constructs), as did the CLI's neural-status/trajectory/learning tests.
Co-Authored-By: claude-flow <ruv@ruv.net>
* release: 3.72.1
@claude-flow/cli, claude-flow and ruflo 3.72.1 (ruflo pins cli 3.72.1),
carrying the ecosystem integrations, @claude-flow/memory 3.2.3, codex 3.0.6,
@ruvector/ruvllm ^4.1.0 and @metaharness/darwin ^0.13.0.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(metaharness): tilde-pin darwin ~0.13.0; smoke expects plugin 0.4.1
ruflo-metaharness smoke step 17z73 enforces tilde pins for @metaharness/*
(ADR-150 review: tilde stays on one minor). ~0.13.0 admits the same versions
as ^0.13.0 on a 0.x line and still resolves the GHSA-mjwg-5fm3-fx2p fix.
Smoke step 1 hard-codes the plugin version; it moves to 0.4.1 with the bump
that plugin-version-bump requires. smoke.sh: 128/128 locally.
Co-Authored-By: claude-flow <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
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>
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>
44 of the 48 `plugins/*/.claude-plugin/plugin.json` manifests had no
`repository`, while the four that do already point at the repo URL their
`homepage` names. The field is what the directory listing and
`npm view` read, and its absence is invisible until something reads it.
Add it to the 44 that lack it, then make `scripts/audit-plugin-manifest.mjs`
enforce it so the next plugin cannot ship without one:
- check 6 in the script header, the violation in `auditManifest`, and the
clean-run summary line. A manifest may carry the repository as a string or
as an object's `url`; anything else is reported as missing, and a value that
is not an http(s) URL is reported separately.
- the required-field lists in `create-plugin` and `validate-plugin` skills, so
a scaffolded plugin passes the gate it is told to satisfy.
Verified with the repo's own gates:
- `node scripts/audit-plugin-manifest.mjs` scans 48 manifests, clean.
- removing the field from one manifest reports `repository field: missing or
empty` and exits 1; setting it to `ruvnet/ruflo` reports `repository is a URL`
and exits 1; restoring it exits 0.
- `node scripts/check-plugin-manifests.mjs` is unchanged by this diff (its two
nested-manifest findings belong to `ruflo-ai-team/directory` and
`ruflo-x-gateway/directory`, which this change does not touch).
- `node scripts/audit-plugin-secrets.mjs` clean, 48 manifests.
No plugin version is bumped: the installed artifact's behaviour does not change
and no user-visible surface reads the field from an installed copy, so there is
nothing for a version bump to deliver. The `Plugin version bump` workflow will
flag the 44 manifests it sees as shipped files, and this PR needs the
`skip-plugin-version-check` label rather than 44 unrelated version bumps that
would collide with each plugin's own release cadence.
Closes#4774
.claude-flow/data stores committed to a cloned repository are no longer read
as this machine's learned patterns or synced into the user's Claude Code
memory, and are never rewritten. Surfaced entries are flattened to one line
(control, bidi and zero-width characters removed) and the block ends with a
line saying they are project notes, not instructions. Same change in the
generated fallback helper and the ruflo-mods routeContext block (0.16.2).
Helper manifest re-signed.
Co-Authored-By: RuFlo <ruv@ruv.net>