Minor bump: this release folds in PR #2956 (MetaHarness hardening — repair
the dependency contract, strict sequential promotion evidence, ADR-381) plus
a follow-up commit on that PR fixing 3 concurrency/epoch-boundary bugs found
during review that could silently violate the <=5% family-wise
false-promotion guarantee. All backward-compatible additions (new
optionalDependencies, new doctor checks, new CLI/MCP surface) — no breaking
changes, hence minor not major.
Also fixes a stale test assertion in distill-oracle.test.ts: the darwin
bench-run command now embeds the pinned @metaharness/darwin version
(MH_DARWIN_PIN) per the #2561 cold-npx regression guard, so the test's bare
'darwin bench run' substring check no longer matched the intentional pinned
output ('darwin@0.8.3 bench run').
Three-package lockstep bump (@claude-flow/cli, claude-flow, ruflo) per
CLAUDE.md's Publishing Rules, backed by scripts/audit-umbrella-version-lockstep.mjs.
CHANGELOG.md documents ADR-378/379/380 (AGNTCY runtime, npm Trusted
Publishing workflow, statusline segments) and the SLIM alpha-pin fix,
carried in main since the 3.33.0 release.
Co-Authored-By: RuFlo <ruv@ruv.net>
Adds the live Ruflo capability brain, governed federation and Cognitum product planes, source-bound concurrent harness contracts, ADRs 325-329, and the v3.32.28 guarded release train.
* fix(metaharness): pin @metaharness/darwin + add pin-drift guard (ruflo analog of #142/#149)
Upstream agent-harness-generator #142 (darwin caret-locked to 0.2.x, 3 majors
behind) and #149 (META_PROXY_VERSION pinned with no watcher) are both silent
pin-drift failures. Ruflo had the same latent gap on its own metaharness deps:
- distill-oracle.ts invoked `npx --yes @metaharness/darwin` with NO version pin,
so the Tier-1 mechanical oracle floated to whatever npm `latest` was — a
breaking darwin release could change eval behavior mid-run. Pinned via a new
`MH_DARWIN_PIN = '0.8.0'` constant used by all three npx call sites.
- Declared `@metaharness/darwin: ^0.8.0` in optionalDependencies (subprocess-
invoked, kept optional per ADR-150/321) so the pin has a single source of truth
and installs cache-warm.
- Fixed a stale `@metaharness/darwin@~0.3.1` doc comment (darwin is 0.8.0).
New guard (the #149 analog ruflo lacked):
- scripts/check-metaharness-pins.mjs — diffs each declared range (metaharness,
@metaharness/router, @metaharness/darwin) against npm `latest`, plus a
lock-step check that MH_DARWIN_PIN satisfies the declared darwin range. Exit 1
on drift; network flakes surface as a warning, never a false positive.
- .github/workflows/metaharness-pin-drift.yml — runs the guard weekly + on PRs
touching the pins; opens/updates a tracking issue when a pin falls behind,
and hard-fails PRs that introduce drift.
All pins are current (guard exits 0); router API-surface compat 9/9; CLI builds
clean. Lockfile reconciled for the new optionalDep (frozen-lockfile verified).
Refs: ruvnet/agent-harness-generator#142, #149; ADR-150, ADR-321.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(release): bump to 3.32.25 (metaharness pin-drift guard)
Co-Authored-By: RuFlo <ruv@ruv.net>
Patch release covering the statusline/memory-integrity fix batch
merged in #2746, #2747, #2748, #2749 (issues #2733, #2735, #2736,
#2737, #2742).
Also fixes an npm EOVERRIDE conflict this batch introduced:
v3/@claude-flow/cli/package.json had gained both a direct
optionalDependency on better-sqlite3 (^12.9.0, from #2748) and a
self-referential override pinned to an exact "12.9.0" (from #2736)
for the same package — npm publish rejects an override that doesn't
match its own direct dependency's spec string. Aligned the override
to the same "^12.9.0" range so the dedup guarantee holds without the
conflict.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(security): dedup better-sqlite3 to patched 12.9.0 across dependency tree
Fixes#2736 (defense-in-depth mitigation).
SQLite's documented WAL-Reset Bug (sqlite.org/wal.html §11) is a race
between overlapping checkpoint operations and a WAL-resetting commit
that can make a later checkpoint skip a committed transaction, silently
losing acknowledged writes and/or corrupting index/table structure.
Affects SQLite 3.7.0-3.51.2; fixed in 3.51.3, backported to 3.44.6 and
3.50.7.
agentdb's own published dependency floor (`better-sqlite3@^11.8.1`,
confirmed in this tree resolving to 11.10.0, which bundles vulnerable
SQLite 3.49.2) created a mixed-engine tree alongside this repo's own
direct dependency on better-sqlite3 12.9.0 (patched SQLite 3.53.0, via
v3/@claude-flow/memory). Multiple concurrent connections (daemon, MCP
servers, CLI invocations) issuing wal_checkpoint(PASSIVE) after every
memory-bridge store is exactly the race precondition this bug requires.
This forces a single deduplicated better-sqlite3 build tree-wide via
pnpm overrides, pinned to the exact version this repo's own
@claude-flow/memory package already depends on directly (12.9.0,
bundling patched SQLite 3.53.0) — no new version to vet, just true
deduplication of agentdb's nested resolution into the already-patched
copy.
Changes (following this repo's existing #2112-lesson override
convention — multiple package.json files, each consumed a different
way):
- v3/package.json: pnpm.overrides (the v3 pnpm workspace root — this
is where agentdb's better-sqlite3@11.10.0 actually lived pre-fix)
- v3/@claude-flow/cli/package.json: npm-style overrides (effective
when @claude-flow/cli is npm-installed standalone via npx)
- package.json (root "claude-flow" umbrella): bumped the existing
">=12.8.0" override to an exact "12.9.0" pin, AND added a
pnpm.overrides block — the bare "overrides" key alone is silently
ignored by pnpm (only read by npm), so the pre-existing override was
a no-op for local `pnpm install` at repo root despite being present
in package.json for a while
- ruflo/package.json: bumped ">=12.8.0" to exact "12.9.0" (npm-style,
effective for `npx ruflo@latest`)
- v3/pnpm-lock.yaml, pnpm-lock.yaml: regenerated via `pnpm install`
Verification:
- `pnpm why -r better-sqlite3` (v3/) and `pnpm why better-sqlite3`
(root): exactly one resolved version, 12.9.0, everywhere
- Confirmed via realpath resolution (not hoisted symlink) from each of
the 4 installed agentdb versions' own on-disk directories
(1.6.1, 2.0.0-alpha.3.4, 2.0.0-alpha.3.7, 3.0.0-alpha.17) that each
now binds the same deduplicated better-sqlite3@12.9.0 copy
- `db.prepare('select sqlite_version()').get()` from that binding
returns 3.53.0 (>= 3.51.3 patched floor)
- v3/@claude-flow/memory test suite: 438/442 passing; the 4 failures
are pre-existing Windows path-separator and perf-threshold issues
unrelated to SQLite (none of the failing test files touch
better-sqlite3/sqlite at all)
Not fixed here (upstream, out of reach from this repo):
- agentdb's own published package.json floor (`^11.8.1`) is
unchanged — this override is a same-repo mitigation, not a fix to
agentdb itself. agentdb needs the same bump upstream.
Not touched here (explicitly out of scope, separate/riskier change):
- The wal_checkpoint(PASSIVE)-after-every-store pattern in
memory-bridge.ts (#2558) is left as-is; the issue calls that
"defense-in-depth" / optional, and dedup alone removes the
mixed-engine race precondition regardless.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(deps): regenerate package-lock.json for better-sqlite3 dedup override
package.json pins the better-sqlite3 override to 12.9.0 (patched,
fixes the WAL-reset bug) but package-lock.json still resolved a stray
top-level better-sqlite3@12.10.0 and was missing the nested
better-sqlite3@12.9.0 entries under @claude-flow/memory, agentdb, and
agentic-flow — causing npm ci to fail in CI with "Missing:
better-sqlite3@12.9.0 from lock file".
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(deps): restore better-sqlite3 as direct root optionalDependency
The #2736 dedup fix pinned better-sqlite3 to 12.9.0 via a pure
"overrides" entry (no direct dependency), which removed the top-level
hoisted node_modules/better-sqlite3 that used to exist under the
looser ">=12.8.0" override. That silently broke the "graph schema
smoke (ADR-130 P1)" CI job: its "npm rebuild better-sqlite3" step
(and graph-edge-writer.ts's bare `await import('better-sqlite3')`,
which Node resolves by walking up node_modules from the importing
file) had nothing at the root to rebuild/resolve, so _openDb() failed
closed and insertGraphEdge() silently returned false — 8/22 assertions
failing.
Restoring the direct optionalDependency (matching what this file
already had historically, before the override-only refactor) gives
npm a concrete anchor to hoist a single deduplicated copy back to
root node_modules, preserving the override's version pin while
keeping the graph-edge-writer's resolution path intact. Regenerated
package-lock.json accordingly.
Verified locally: `npm rebuild better-sqlite3` now finds and rebuilds
the root copy, and a direct insertGraphEdge() call against a real
better-sqlite3 handle returns true.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(deps): resync v3/pnpm-lock.yaml specifier after merging main
Merging main (which carries #2748's direct better-sqlite3 dependency
on @claude-flow/cli) forward into this branch left the recorded
lockfile specifier at the pre-override "^12.9.0" while this branch's
own overrides.better-sqlite3 pin ("12.9.0", exact) is now the
effective spec pnpm resolves against — a one-line drift causing
`pnpm install --frozen-lockfile` to fail across the whole v3-ci.yml
matrix. Regenerated to match.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(memory): force WAL checkpoint before close in graph-edge-writer
The "graph schema smoke (ADR-130 P1)" CI job started failing
deterministically on Linux runners after the better-sqlite3 dedup
(this branch) pinned a single 12.9.0 build tree-wide: TEST 2/3
insert-then-reread assertions found embedding_ref/source_id undefined
immediately after _resetBridgeDb() closed the write connection.
_resetBridgeDb()'s close() relied on SQLite's implicit "last
connection close" PASSIVE auto-checkpoint to flush the WAL into the
main file before a same-process sql.js reader re-reads the raw file.
That's best-effort, not guaranteed synchronous, and evidently more
prone to leaving data in the WAL under Linux CI's I/O/lock timing than
on Windows (did not reproduce locally). Not a correctness regression
in 12.9.0 itself — a latent timing assumption the dedup made newly
observable by changing which exact build backs every connection.
Force a blocking `wal_checkpoint(TRUNCATE)` before close so the main
file always reflects committed writes before any other reader (same
process or otherwise) touches it, regardless of platform timing.
Co-Authored-By: RuFlo <ruv@ruv.net>
Brings all three packages back into version lockstep (claude-flow had
been stuck at 3.32.2 while @claude-flow/cli and ruflo advanced to
3.32.7), fixing the "Plugin package install-safety" CI violation.
Bundles the pnpm-lock.yaml drift fix (#2719/#2717) and the
memory_search namespace-default fix (#2646), both already merged to
main, into this release.
Windows-only mitigation for anthropics/claude-code#67888 — Claude Code's Bash tool spawns cmd.exe/bash.exe without cleaning up child conhost.exe handles, so a long session accumulates dozens (observed live: 26+ orphaned conhost.exe after a ~4h session; each holds a kernel object + ~1MB). Combined with memory pressure this measurably slows the machine.
The new flag runs a targeted PowerShell cleanup that only touches conhost.exe (safe — Windows respawns on demand). Deliberately does NOT kill cmd.exe/bash.exe/node.exe: those can be the invoking shell or an active MCP server, and killing them would 255 the caller or disconnect ruflo's own MCP tools.
Reports before/after conhost count + free RAM delta. Early-return short-circuits the full health-check flow. On non-Windows platforms, prints a friendly "not applicable" and exits 0.
Also fixes a latent parser-quirk bug: `--fix-handles` was read as `ctx.flags['fix-handles']` but the arg parser camelCases kebab-case flag names to `ctx.flags.fixHandles`. (Init.ts's `no-codex-detect` / `no-skills-sh` reads probably have the same latent bug — filed as follow-up.)
Bumps @claude-flow/cli, claude-flow, and ruflo to 3.32.0 (MINOR — new flag on existing command, backward-compatible addition per CLAUDE.md semver policy).
Co-Authored-By: RuFlo <ruv@ruv.net>
Before 3.31.3, autoRefreshHelpersIfStale only touched <cwd>/.claude/helpers. But Claude Code's global settings.json falls back to ~/.claude/helpers/statusline.cjs when no project-local override exists (executor.ts:460-462), and that global file was frozen at whatever version was current when the user last ran `ruflo init` — nothing refreshed it. So when the 2026-07-13 funnel/promo Line-3 row shipped (PR #2622), users who init'd earlier couldn't see it even after upgrading @claude-flow/cli — their global statusline literally didn't have the render code.
Fix:
- Extract per-dir refresh into refreshOneHelpersDir()
- Add alsoRefreshGlobal: boolean opt-in to autoRefreshHelpersIfStale — defaults FALSE so tests don't touch $HOME
- Real CLI entry (src/index.ts) passes alsoRefreshGlobal:true, activating the global pass in production
- Same forward-only semver.gte downgrade guard applies to both passes
- Result type gains optional `global` sub-object; top-level fields still describe the project pass (API compat)
Test additions: two new cases in helper-refresh.test.ts — one exercises the global pass end-to-end under a redirected HOME (proves the fix works), one asserts alsoRefreshGlobal:false is the default and never scaffolds under $HOME (invariant that keeps every other test in this file safe). All 9 tests pass.
Bumps @claude-flow/cli, claude-flow, and ruflo to 3.31.3 (PATCH — behavior extension, no API surface change; existing single-object return shape unchanged for callers that don't opt in).
Co-Authored-By: RuFlo <ruv@ruv.net>
3.31.1's `maybeInstallSkillsSh` fired unconditionally on every `ruflo init`, including `--force` reinits and `init upgrade`. Each call clones the ~50MB ruvnet/ruflo repo (skills CLI clones internally) and sends a fresh install telemetry event to skills.sh — silently inflating our own GitHub unique-cloners metric (rough estimate: +20-80%/day) and our skills.sh leaderboard rank, plus wasting user bandwidth.
Add an idempotency check: if `.agents/skills/ruflo` already exists in cwd, log a dim skip note and return. First init on a project → real registration + real signal; every subsequent init → no-op.
PATCH — behavior change corrects the over-firing, no API surface change.
Co-Authored-By: RuFlo <ruv@ruv.net>
3.31.0's `maybeInstallSkillsSh` called `npx skills add ruvnet/ruflo` with no filter, which discovered 267 skills across 30+ plugins and installed them all into the target project's .agents/skills/ — invasive for a user who just wanted the platform's cross-agent entry point.
- New: SKILL.md at repo root — a single canonical `ruflo` skill describing the platform (what it is, when to invoke, three-command getting-started, MCP tool namespaces, plugin discovery, cross-agent install path)
- Changed: init now runs `npx skills add ruvnet/ruflo --skill ruflo --yes` — installs ONLY the platform skill (~1 file). Users who want all 267 plugin skills can run `npx skills add ruvnet/ruflo --all` themselves; init prints that as a discoverable next step.
- Documentation strings + fallback retry command updated to reflect the narrower install.
PATCH — behavior change corrects an overreach, no API surface change.
Co-Authored-By: RuFlo <ruv@ruv.net>
Adds a post-init step (maybeInstallSkillsSh) that runs `npx --yes skills add ruvnet/ruflo` at the end of every `ruflo init`, exposing ruflo's 134 skills to whatever agent the project uses (Claude Code, Cursor, Copilot, Gemini, Cline, ...). Best-effort — never fails the primary init; on any error prints a soft retry line. Uses windowsHide to avoid Windows console-flash on the spawn.
- New: skills.sh.json at repo root with 34 groupings (one per plugin), 134 skills total, controlling how ruflo displays on skills.sh
- New: --no-skills-sh flag (also honors RUFLO_NO_SKILLS_SH=1) to opt out
- Skipped under --skip-claude and --format json, matching the existing maybeAutoDetectCodex sibling pattern
Bumps @claude-flow/cli, claude-flow, and ruflo to 3.31.0 (MINOR — new flag + new default behavior, backward-compatible addition per CLAUDE.md semver policy). All 400 commands-deep tests pass.
Co-Authored-By: RuFlo <ruv@ruv.net>
Sonnet 5 joined the Claude 5 adaptive-thinking family and removed temperature/top_p/top_k like Fable 5, Opus 4.8, and Opus 4.7 — the Anthropic API returns 400 'Extra inputs are not permitted' when any is present. The `modelRejectsSamplingParams` regex in agent-execute-core.ts didn't include sonnet-5, so callAnthropicMessages() would forward its 0.7-default temperature and get rejected on any Sonnet 5 call (including the internal routing that 3.30.4 just bumped `sonnet` → `claude-sonnet-5`).
Test coverage extended: sonnet-5 added to both the alias-check and the request-body drop test (32 tests pass, up from 30).
Bumps @claude-flow/cli, claude-flow, and ruflo to 3.30.5 (PATCH — bug fix, no API change).
Co-Authored-By: RuFlo <ruv@ruv.net>
- MODEL_MAP: `sonnet` alias bumped from claude-sonnet-4-6 → claude-sonnet-5 (matches the current Claude 5 family default). Prior pin remains reachable via new `sonnet-4.6` alias for back-compat.
- DEFAULT_ANTHROPIC_MODEL and `inherit` now resolve to claude-sonnet-5.
- ruflo init template (settings-generator.ts): top-level `model` set to claude-sonnet-5 (previously commented out with a stale sonnet-4-5 hint); `claudeFlow.modelPreferences.default` bumped from opus-4-8 → claude-sonnet-5.
- Project `.claude/settings.json` synced with the new template output (model + modelPreferences); removed the stale skillListingBudgetFraction rationale comment (kept the 0.06 value — #1834 still has 358 SKILL.md duplicates, workaround is still load-bearing).
- Test updates for #2232 / #1906 regression guards to assert the new sonnet-5 resolution and the new `sonnet-4.6` back-compat alias.
Bumps @claude-flow/cli, claude-flow, and ruflo to 3.30.4 (PATCH — no API change, default-model refresh only). All 30 model-resolution/sampling-params tests + 400 commands-deep tests green.
Follow-up: sampling-params regex in agent-execute-core.ts (#2357) may need `sonnet-5` added if Sonnet 5 rejects temperature/top_p/top_k like the rest of the Claude 5 family — not touched here because I don't have that behavior confirmed.
Co-Authored-By: RuFlo <ruv@ruv.net>
The spawnDetachedHookRefresh() call in v3/@claude-flow/cli/.claude/helpers/hook-handler.cjs was missing windowsHide: true. On Windows, npx.cmd's cmd.exe wrapper flashed a visible console window every time SessionStart fired the background funnel/advisor refresh. Matches the fix already in place at line 158 in the same file (firstRunAutoEnable path).
Bumps @claude-flow/cli, claude-flow, and ruflo to 3.30.3 (PATCH — Windows-only visible bug, no API change).
Co-Authored-By: RuFlo <ruv@ruv.net>
PATCH bump (3.30.0 → 3.30.1) — fixes#2679 statusline generator drift:
generator now reads .claude/helpers/statusline.cjs as its single source
of truth instead of an inline 1000-line template. Every future edit to
the helper propagates to `ruflo init` output automatically. No user-facing
behavior change — fresh installs get the same helper content that was
already shipping in the deployed .claude/helpers/statusline.cjs.
CI: three static-regression guards updated for the read-and-substitute
pattern. All three now grep the helper (where the content lives) with a
paired assertion that the generator still reads it.
Related: PR #2680, issue #2679, v3.30.0 (74bc81f8e / fea1d9e95).
Co-Authored-By: RuFlo <ruv@ruv.net>
Ruflo-side companion to anthropics/claude-code#70200 tracking in #2669.
Adds two new user-facing subcommands, one visual+click improvement to the statusline promo
row, and layered Windows subprocess-flash mitigations.
CLI additions (semver MINOR — additive, backward-compatible):
- ruflo funnel accept — backdates disclosure firstShownAt past the 24h grace so promo
rotation starts immediately on the next render, without waiting a full day. Refuses
cleanly if funnel is disabled or disclosure was declined.
- ruflo funnel open — reads ~/.ruflo/statusline-promo.json, validates the URL against
a hardcoded allowlist (never trusts the user-writable memo), and opens it in the
default browser via execFile (no shell interpretation) with windowsHide. Works
independently of whether the terminal renders OSC 8 hyperlinks — critical for hosts
like VS Code integrated terminal where left-click pastes and Ctrl+Click hits Quick
Open instead of following the link.
- recordDisclosureAccepted() helper in disclosure.ts, exported from funnel/index.ts.
Statusline row 3 (getPromoRow):
- Ellipsis on truncation instead of silent mid-word chop.
- Command portion styled bright-white + bold so it visually reads as "shell command
to type" (as the design comment always intended) instead of getting lost in the
row's kind-color.
- Visible dim "(domain)" suffix after the label, showing the final destination host
even on terminals that strip the click-redirect wrapper. Both label AND domain
wrapped in OSC 8 hyperlinks — two click targets per row.
- Whole assembled row wrapped in ONE OSC 8 hyperlink so a click anywhere on the row
opens the URL. Command styling deliberately NOT underlined so it still reads as
"type this" not "click me"; clicking opens the URL, does not execute the command.
Windows console-flash mitigations (upstream tracking anthropics/claude-code#70200,
ruflo tracking issue #2669):
- windowsHide: true on statusline.cjs execSync (CLI JSON delegation) + safeExec
helper (sqlite/git subshells) + hook-handler.cjs detached spawn (background
funnel/context refresh). Silences flashes from OUR subprocess grandchildren.
Cannot silence Claude Code's own spawn of the hook wrapper — that needs the
upstream fix.
- statusline cache TTL bumped 60s → 300s so the outer wrapper spawn (which is
Claude Code's, not ours) fires 5x less often. Rendering still responsive because
the promo/insight rotation has its own tighter 20s clock.
Tests: 121/122 funnel invariants pass; 1 unrelated pre-existing perf timer flake
on Windows (attributionUrl <100ms for 1000 builds, got 191ms — no relation to
these changes).
Closes some UX symptoms tracked in #2669; the upstream Claude Code bug is the
authoritative fix.