* fix(security): vulnerable zod pin in claude-flow umbrella
The zod 4 migration (#5021) describes bumping the root claude-flow
package from zod 3.25.76 to 4.6.7, but the root package.json and
package-lock.json still pin 3.25.76, which is affected by
GHSA-mrhx-c7xc-m3w5 (memory exhaustion while validating oversized
constrained collections, high). The umbrella ships the cli and shared
dist, which resolve zod from the umbrella's own dependency, so this pin
is what claude-flow users get, and it also leaves the migrated zod 4
code running against zod 3.
Pin zod 4.6.7 (matching every @claude-flow/* leaf) and update the
lockfile. npm deduped the nested zod 4 copies onto the hoisted one and
synced the stale @claude-flow/shared workspace version (3.0.8 -> 3.0.9)
in the lockfile. Remaining zod 3 copies come only from agentic-flow and
the published plugin-gastown-bridge.
Test: tests/root-zod-advisory-pin.test.mjs fails on main, passes here.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVLCpRTZEbZUYnwDgWy
* fix(security): missing auth on /ws in shared MCP HTTP transport
@claude-flow/shared ships its own HttpTransport (exported via MCPServer
and createTransport). #4962 hardened the @claude-flow/mcp copy, but the
shared copy still accepted every /ws upgrade when token auth was
enabled, and nothing after the upgrade checked a token. Token auth is
the setting that lets the transport bind beyond loopback, so that
configuration exposed every registered MCP tool over /ws without
credentials. The HTTP check also accepted any bearer token when the
token list was empty or unset, and compared tokens in non-constant time.
- verifyClient authenticates the upgrade when auth is enabled
(Authorization: Bearer, or ?token= for browsers, parsed against a
fixed base URL; never throws).
- Token matching fails closed on an empty list, skips unset entries,
and compares SHA-256 digests with timingSafeEqual, no early exit.
Test: shared/__tests__/mcp/http-transport-ws-upgrade-auth.test.ts
(2 of 4 cases fail on main, all pass here).
shared is a non-bundled leaf: it needs a standalone publish to reach
direct consumers.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVLCpRTZEbZUYnwDgWy
* fix(security): keep legacy v3/mcp tools compiling on zod 4
Follow-up to the root zod 4.6.7 pin: zod 4 removed the single-argument
z.record(value) form, so the 17 call sites in v3/mcp/tools added type
errors to the root tsc build. Use z.record(z.string(), z.unknown()),
the same rewrite #5021 applied to the @claude-flow packages. The root
build error set is now identical to origin/main.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVLCpRTZEbZUYnwDgWy
* chore(shared): 3.0.10 for the /ws auth fix; CLI pins it
The shared transport fix is publishable source in a non-bundled leaf, so
the leaf-package-publish gate requires a version bump. Bump shared to
3.0.10 and the CLI's exact pin (pnpm lock specifier only; it stays a
workspace link).
Not done here, because it needs the published tarball: the root
claude-flow pin and package-lock.json entry stay at 3.0.9 until
@claude-flow/shared@3.0.10 is on npm (the lockfile needs its integrity
hash). Until then audit-leaf-versions-published and
audit-wrapper-dep-ranges report the unpublished pin, as designed.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVLCpRTZEbZUYnwDgWy
* fix(security): claude-flow umbrella pins @claude-flow/shared 3.0.10
shared 3.0.10 (the /ws auth fix) is now published; the umbrella's exact
range must include it or audit-wrapper-dep-ranges fails and npx installs
resolve two shared copies.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: r <r@x>
Move the external agentic-qe-fleet entry from v3.15.16 (4edfa469) to
v3.15.17 (b177b2315521376b83f2eed40e4994fd7581d067), so its MCP server
runs agentic-qe@3.15.17. The plugin folder changed only its version and
MCP pin. Updates the README links, the external-plugins test fixture and
the ADR-484 evidence section with the re-run install results.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Move the external agentic-qe-fleet entry from v3.15.15 (1d0cc766) to
v3.15.16 (4edfa469d8f957b45bc0ea25424eb831b134f129), so its MCP server
runs agentic-qe@3.15.16. The plugin folder changed only its version and
MCP pin. Updates the README links, the external-plugins test fixture and
the ADR-484 evidence section with the re-run install results.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Move the external agentic-qe-fleet entry from v3.15.11 (221d6de1) to
v3.15.12 (90a91fe3), the current npm latest, and update the README links,
the external-plugins test fixture and ADR-484.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Move the external agentic-qe-fleet entry from v3.15.10 (e5814a2f) to
v3.15.11 (221d6de15c73bb385961e4e649d8fcc1f5dc2dea). The plugin folder
changed only its version and its MCP pin (agentic-qe@3.15.11). Updates
the README links, the external-plugins test fixture and ADR-484.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(release): 3.58.0 version bumps and changelog
Minor release: new memory peek command, Codex activity viewer, configurable
MCP rate limits, plus the #4303 install-breaking fix and a round of
correctness fixes merged since 3.57.2. Also bumps ruflo-console 0.44.4 ->
0.44.5 for the #4305 TUI fix, which shipped to main without a plugin version
bump (the same gap already documented as a past mistake in the console's own
changelog for 0.44.3/0.44.4).
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ruflo-console): update smoke.sh's hardcoded version check to 0.44.5
The plugin.json version bump to 0.44.5 (for the #4305 TUI fix) broke the
smoke contract's own hardcoded expectation of 0.44.4 in step 1. Update the
step name and grep pattern to match.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ci): sync the smoke-workflow regression test to the real 15-minute timeout
#3950 bumped .github/workflows/all-plugins-smoke.yml's smoke-all job from
timeout-minutes 10 to 15 (the job now also checks out and smokes the first
external git-subdir marketplace entry, agentic-qe-fleet) but never updated
this test's hardcoded expectation of 10, breaking the Test Suite job on
every PR since.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(memory): resolve sql.js's wasm dist path directly, not via package.json
fts5.test.ts located sql-wasm.wasm via require.resolve('sql.js/package.json')
then string-replaced the suffix. sql.js 1.14 tightened its exports map to
"." and "./dist/*" only, so that package.json subpath resolve throws
ERR_PACKAGE_PATH_NOT_EXPORTED even though the wasm file is present on disk —
caught by the existing try/catch and misreported as "sql.js isn't installed",
failing all 4 SqlJsBackend FTS5 tests with "sql.js/dist/sql-wasm.wasm not
found". Resolve 'sql.js/dist/sql-wasm.wasm' directly instead, which the
"./dist/*" export already permits.
Verified: 6/6 passing locally (was 4 failed before the fix).
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ci): move pod-tick.test.mjs to the node:test exclusion list
Same fix as #4308: this file imports test() from node:test (not vitest)
and documents itself as "Run with: node --test" in its own header, but
was miscategorized into ci-test-baseline.txt. Running it under vitest's
shared worker process correlates strongly with the ERR_IPC_CHANNEL_CLOSED
crash hit 4/6 times on this PR's own CI (#4307). Applying here directly so
this release doesn't wait on #4308 to merge first.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ci): cap the ratchet's vitest worker count to 2
#4307: Test Suite (ubuntu-latest) intermittently crashes with tinypool's
ERR_IPC_CHANNEL_CLOSED at three different, unrelated points across 7 runs
on this PR, after ruling out any specific file as the cause (one
candidate, pod-tick.test.mjs, was fixed separately for an unrelated
reason and the crash still recurred at a different file). The pattern
(crash location varies, happens ~60-90s into a ~9500-test run) is more
consistent with cumulative memory pressure across the default fork
pool (one fork per CPU, ~4 on a standard runner) than a single bad
test. Capping workers at 2 trades some wall-clock time for headroom
while the real cause is still open in #4307.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(graph-intelligence): build the optional cli import specifier from parts
#4307 investigation, round 8: once the worker-cap fix (3739f3a9) stopped
the random tinypool crash, Test Suite started failing deterministically
on plugins/ruflo-graph-intelligence/tests/phase4-adapters.spec.ts —
"./src/memory/graph-edge-writer.js" is not exported, even though that
spec file's own tests never execute the real GraphEdgesSource.listEdges()
(they all use inline fake listEdges() test doubles). The spec file does
statically import knowledge-graph-adapter.ts at module level, though, so
vitest's module-graph crawl sees the string literal and (CI-only, not
reproduced locally in 2/2 attempts) appears to eagerly resolve it outside
this method's own try/catch during collection.
Build both the primary and fallback specifiers from joined array parts
instead of literals, so no bundler's static import-specifier scan can
find and pre-resolve them — the actual resolution still only happens at
the real `await import(...)` call site, same as before.
Verified: full plugin suite green, 104/104 (was 8/8 on the one affected
file already — this closes the only CI-only gap).
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ci): baseline token-optimizer.test.ts — real, pre-existing, unrelated bug
v3/@claude-flow/integration/src/token-optimizer.ts calls
this.agentBooster.editCode(...), but the real agentic-flow/agent-booster
module's AgentBooster/EnhancedAgentBooster class has no editCode method
at all (its real API is apply/applyBatch/prefetch/...). Confirmed by
enumerating the class prototype directly. Not a version-pin issue, not
caused by anything in this release — @claude-flow/integration isn't even
part of the release train. Filed as #4311 with the real-fix suggestion
(rewrite optimizedEdit() against the actual API) for whoever owns that
integration layer; baselining here so the Test Suite ratchet reflects
reality instead of blocking an unrelated release on pre-existing debt.
Co-Authored-By: RuFlo <ruv@ruv.net>
* docs(changelog): record the CI-reliability fixes found validating 3.58.0
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* feat(marketplace): list Agentic QE (agentic-qe-fleet) as an external, pinned plugin
The ruflo marketplace now lists agentic-qe-fleet by a git-subdir source pinned
to agentic-qe v3.15.0 (1363bc7d), so `/plugin install agentic-qe-fleet@ruflo`
installs the plugin from its own repository: 11 QE agents, 9 skills, 9 commands,
the agentic-qe MCP server pinned to 3.15.0, and the aqe-mod guard.
Tooling that assumed every entry is a local ./plugins folder now handles an
external one:
- validate-marketplace.yml checks an external entry (git-subdir, https url,
path without .., full sha, description) instead of failing on it
- smoke-all-plugins checks out each external entry at its sha and runs its own
scripts/smoke.sh (--skip-external to omit); the workflow also runs when
marketplace.json changes
- ruflo-console 0.40.9: plugin-map line (Dev Tools), the coverage test requires
a line for every external entry, and the Plugin Catalog reads an external
plugin from its install path in installed_plugins.json (EXT badge)
- README and plugins/README rows; ADR-484 records the decision and evidence
* docs(adr-484): record what Claude Code before 2.1.69 does with the external entry, and main's existing floor
* fix(ci): fence the external-plugin smoke: github-only sources, realpath containment, scrubbed env and cwd, read-only token
Review findings 1 and 2 on #3950:
- scripts/external-plugins.mjs: sources must be https://github.com/<owner>/<repo>(.git);
the plugin folder, its manifest and smoke.sh must stay inside the checkout after realpath;
the external smoke.sh runs with only PATH, LANG, TERM and CI kept (no GITHUB_TOKEN,
ACTIONS_*, *_TOKEN, *_KEY, *SECRET*), a temporary HOME, and its checkout (in a temp
folder outside the workspace) as cwd; git fetch runs with the same env
- validate-marketplace.yml applies the same github-only allowlist and path rule
- all-plugins-smoke.yml: permissions contents: read, persist-credentials: false,
runs tests/external-plugins.test.mjs
- tests/external-plugins.test.mjs: non-github host and lookalikes refused by both
validators, symlink escapes refused, child env has no GITHUB_TOKEN and cwd is outside
the workspace
* ci(all-plugins-smoke): raise the smoke-all timeout from 10 to 15 minutes
Review finding 4 on #3950: green runs on main take 9m40-9m50s, so the job sat on the
10-minute cap and was cancelled at 10m16s on this PR.
* test(console): an external plugin's description, version, source line and docs are stripped of escapes and bidi controls
Review finding 3 on #3950: the catalog reader already passes every external manifest
string through plain() (ESC/CSI/OSC sequences, C0/C1 controls, U+202A-202E and
U+2066-2069 removed); this test holds it to that.
* ci(test-ratchet): tests/external-plugins.test.mjs runs under node --test, not the root vitest
all-plugins-smoke.yml runs it with node --test; vitest reported "No test suite found".
* feat(marketplace): move the agentic-qe-fleet pin to v3.15.1 (4f0f8412)
agentic-qe v3.15.1 changes only the aqe-mod guard (#920: hardened, still tighten-only,
same engine API and events as 3.15.0) and pins agentic-qe@3.15.1 in .mcp.json.
* docs(adr-484): install evidence re-run at the v3.15.1 pin
* feat(marketplace): move the agentic-qe-fleet pin to v3.15.2 (9db36edf)
agentic-qe v3.15.2: aqe-mod reports its real version, keeps guard totals and the last
refusal across sessions (additive totals/lastRefusal in status.json), and never reads or
writes its status file through a symlink (adds $.fs.read and $.fs.stat); guard judging
unchanged. .mcp.json pins agentic-qe@3.15.2. ADR-484 evidence re-run at this pin.
* fix(marketplace): plain-name paths for external plugins, pin-review note, one marketplace for agentic-qe-fleet
- both validators (scripts/external-plugins.mjs, validate-marketplace.yml) require the
plugin path to match ^[A-Za-z0-9._-]+(/[A-Za-z0-9._-]+)*$ with no . or .. segment:
%2e%2e, a\..\b, a//b and a trailing slash are refused; tests cover both validators
- ADR-484: every pin bump needs a review of the pinned scripts/smoke.sh
- READMEs: install agentic-qe-fleet from the agentic-qe or the ruflo marketplace, not both
* feat(marketplace): move the agentic-qe-fleet pin to v3.15.3 (d7e5ffa7)
The plugin at v3.15.3 differs from v3.15.2 only in its version and its MCP
pin (agentic-qe@3.15.3). ADR-484's evidence records the install re-run at
the new pin.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(plugins): pin agentic-qe to v3.15.4 (bec02b13)
The plugin at v3.15.4 differs from v3.15.3 only in its version and its MCP
pin (agentic-qe@3.15.4). ADR-484's evidence records the install re-run at
the new pin.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(plugins): pin agentic-qe to v3.15.5 (d65ede14)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(console): leave the console version bump to the maintainer at merge
The console version and CHANGELOG entry collided with every console release on
main (four rebases on 2026-10-12, each only plugins/ruflo-console/CHANGELOG.md).
plugin.json, hooks/version.ts, scripts/smoke.sh and CHANGELOG.md now match
main; ADR-484 and its index row say 'next console release'.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(plugins): pin agentic-qe to v3.15.6 (0fa34d24)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(plugins): pin agentic-qe to v3.15.7 (7f2d091d)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(plugins): pin agentic-qe to v3.15.8 (d9ce98f7)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(plugins): pin agentic-qe to v3.15.9 (d1c33d2b)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* chore(plugins): pin agentic-qe to v3.15.10 (e5814a2f)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: rUv <ruv@ruv.net>
* fix(ruflo-mods): trust gate also treats the agent.spawn, prompt.submit, tool.call, command.run, session.append and agent.register calls and the tool.describe and session.append hooks as risky (#3787, #3801)
Adversarial review of the previous commit: risk was checked per scanned
`calls` and `events` separately, and only the events side had agent.spawn
and prompt.submit, so a mod CALLING $.agent.spawn / $.prompt.submit /
$.tool.call still loaded under refuse-risky ("no risky calls or hooks").
session.append and agent.register, and the tool.describe and
session.append hooks (rewriting what the model reads).
Docs follow the code: README hardening note lists the first-party mods that
now need modTrustAllow under refuse-risky (agentdb, ruos, intelligence,
graph-intelligence, goals, iot-cognitum beside swarm and console), the
modTrust row and plugin.json description name the categories, and the
create-mod skill's list matches.
* fix(ruflo-mods): trust gate judges a glob or negation by what it selects; covers prompt sections/context, peer receive, model requests (#3801)
Re-review: the scan reports hook patterns as written, and riskOf matched
names exactly, so `on('tool.*')` or `on('!tool.describe')` loaded under
refuse-risky with "no risky calls or hooks" and could answer tool
permission verdicts (shown: tool.check returned allow). A glob now maps to
every risky event it selects, a negation to `*`, and any classic.* pattern
to the classic risk. Lookups use Object.hasOwn.
Same-category hooks added: prompt.section, prompt.context,
prompt.attachment, skill.prompt, session.receive, turn.step, and hooks on
process.run / http.fetch / mcp.call (they can answer other mods' calls).
Docs: every first-party mod with function hooks (43 of 43) is risky under
the gate's sets, so the README now says to allow-list each ruflo mod you
use under refuse-risky and points to `claude plugin validate`.
* fix(ruflo-mods): a hook on a risky call is a risky hook (fs.write, env.set, process.spawn, ...) (#3801)
Third review: every $ call is also an event a hook above the caller can
rewrite or answer for every other mod. Under refuse-risky a mod hooking only
fs.write loaded clean and redirected ruflo-mods' own heartbeat write to
.claude/settings.json; one hooking env.set rewrote RUFLO_MODS_OWNS; one on
process.spawn rewrote an allow-listed mod's argv; fs.* loaded too.
Hook risk is now derived: every RISKY_CALLS entry is also a risky event
("can rewrite or answer another mod's <call>"), on top of RISKY_EVENTS
(+ tool.register). Globs match against the union. Tests: fs.write, env.set
and fs.* refused (each fails on the previous head); the harmless-glob
control is clock.*, since command.run is a risky call. README and the
create-mod skill say so.
* fix(ruflo-mods): trust gate treats hooks that forge what other mods read, or replace the conversation, as risky (#3801)
Fourth review: a mod hooking only fs.stat (answer ENOENT for the policy
projection) or fs.read (return an empty observe projection) loaded under
refuse-risky and turned ruflo's own enforced deny into allow; one hooking
session.compact replaced the whole conversation. Added fs.read, fs.stat,
fs.exists, fs.list, settings.read, env.get, session.compact, prompt.edit
and attribution.text to the risky hooks; three tests (each fails on the
previous head). README states the gate is a list over the 2.1.289 engine
API, so an event added later is not judged until listed.
* fix(ruflo-mods): session.root, session.cwd, fs.ancestors and command.register hooks are risky; docs name ruflo-ruos (#3801)
Fifth review: a mod hooking only session.root moved ruflo-mods' project
root, so the enforced policy projection was read from elsewhere and a deny
became allow (the round-4 exploit through another input). Added those
inputs and command.register (consistent with tool.register), with a
root-forger test (fails on the previous head). Derived messages read
"another mod's fs.write, which writes files ..." instead of nesting
parentheses.
Docs: ruflo-ruos hooks only prompt.submit, so it is newly risky under
refuse-risky (#3787); README and PR body said every first-party mod was
already risky via a status file or tool.call, which was false for it.
* test(router): seed Thompson sampler convergence trajectory
* ci: retain one plugin smoke execution and its report
* Register smoke workflow test with its dedicated Node runner
* Prevent same-millisecond hierarchy embedding index collisions
Keeps the newer serialized-record index fix (#4030) and the other RVF fixes from #4061.
An oversized length prefix is no longer accepted silently: the bytes are kept and append()
rejects explicitly (opt-in repairOversizedTail truncates). appendRecord() refuses records
replayFile() could never read back. Adds the tail-shape matrix regression tests.
Co-Authored-By: RuFlo <ruv@ruv.net>