CRITICAL — affected user reported load average 49 / jetsam / kernel
watchdog panic on macOS 26.1 / 48 GB. Pre-#2337 init wrote
`npx @claude-flow/cli@latest hooks <sub>` into ~/.claude/settings.json
for both the statusLine and the per-action hooks. Each invocation cold-
spawns a Node process (~130 MB) plus an npm registry round-trip to
re-resolve @latest. The statusLine refires every few hundred ms; hooks
fire per tool use. They stack faster than they exit.
The current source already emits the local-helper form
(`sh -c '… exec node "$D/.claude/helpers/<helper>" <sub>'`), but
executor.ts:362 preserved the user's existing `statusLine.command`
verbatim on re-init — so anyone who installed pre-#2337 and upgraded
to 3.13.2 still has the runaway commands.
Two changes:
1. v3/@claude-flow/cli/src/init/executor.ts
- Detect the broken `npx @claude-flow/cli@latest hooks …` pattern
in `existing.statusLine.command` AND walk every hooks.<event>[]
hooks[].command — regenerate to the local-helper form when
matched. Idempotent on already-correct settings.
- Captures the subcommand from the broken string (pre-bash,
post-edit, route, etc.) so the regenerated command preserves
the user's intent.
2. v3/@claude-flow/cli/src/commands/doctor.ts
- New `checkStaleSettingsNpx` health check. Scans both
project-local AND $HOME/.claude/settings.json for the broken
pattern in statusLine + hooks. Reports `fail` with file path
+ offending sections when found, with fix instruction
(`npx ruflo init` to migrate). Reports `pass` otherwise.
- Registered as `stale-settings` in the component map so users
can run `ruflo doctor --component stale-settings` directly.
Smoke-verified against a synthetic fixture containing all three
offender shapes (statusLine, PreToolUse hook, UserPromptSubmit hook
with --prefer-offline prefix). Doctor correctly flagged all three.
Release: 3.13.2 → 3.13.3 (PATCH per semver — pure bug fix).
Published with all three dist-tags (latest/alpha/v3alpha) for
@claude-flow/cli, claude-flow, and ruflo.
Closes#2448.
Co-Authored-By: RuFlo <ruv@ruv.net>
Surgical edits to top 50 lines per industry-trends review (no changes
below "Quick Start"). Three changes:
1. **Definition-first opening.** Replaces "Multi-agent AI harness for
Claude Code and Codex" with the now-standard "Agent = Model + Harness"
mental model, then locks in "Ruflo is the harness" with what's
actually in it. Matches how Databricks, LangChain, Hugging Face
define this layer in 2026.
2. **Two-tier badge clustering.** Top tier (4 for-the-badge badges) =
what first-time visitors actually act on: Try UI, npm install, License,
GitHub Star. Bottom tier (7 flat-square badges) = ecosystem context:
Goal Planner, Live Agents, RuVector, downloads, clones, Claude Code
plugin, Codex plugin. Cuts the wall-of-CTAs problem at the top.
3. **Origin story collapsed.** Moved the "Claude Flow is now Ruflo —
named by rUv..." block from page 1 into a <details> "Background"
block right above the GIF. Visible, but doesn't compete for attention
with the value prop.
Also removed the redundant RuVector badge that appeared on two strips,
and standardized en-dashes in the "New to Ruflo?" callout.
No content removed — every link, image, and structural section below
"Quick Start" is identical. Diff is +22/-21 in one file.
Co-Authored-By: RuFlo <ruv@ruv.net>
Picks up upstream agentdb fix for the SqlJsRvfBackend MEMFS safety net
(ruvnet/agentdb#9, ruvnet/agentdb#10) — FinalizationRegistry now reclaims
MEMFS files when a backend wrapper is GC'd without explicit close().
This is the upstream-side fix complementing ruflo's downstream-side fix
in v3.13.1 (PR #2444): the downstream PR closed prior controllers on
replacement; the upstream PR adds a belt-and-suspenders safety net so
even consumers who forget close() don't leak.
Combined effect: the #2432 leak class is closed at BOTH layers.
Version bumps:
- agentdb 3.0.0-alpha.16 → 3.0.0-alpha.17 (upstream)
- @claude-flow/cli 3.13.1 → 3.13.2 (pin bump)
- claude-flow umbrella 3.13.1 → 3.13.2
- ruflo wrapper 3.13.1 → 3.13.2
Co-Authored-By: RuFlo <ruv@ruv.net>
PATCH per semver — pure bug fixes, no API changes.
Fixes:
#2432 — Unbounded sql.js MEMFS leak (~36 GB observed in production)
Root cause: ControllerRegistry.initController() called controllers.set(name, ...)
without closing the prior instance. SqlJsRvfBackend wrappers held an
Emscripten MEMFS file (~11 MB each = sizeof memory.db) that only releases
on explicit .close() — JS GC of the wrapper does NOT reclaim MEMFS because
the sql.js module is a process singleton.
Fix: added closePriorIfAny(name) helper, called before every controllers.set()
site in v3/@claude-flow/memory/src/controller-registry.ts. Best-effort close
(catches errors so replacement always proceeds).
#2431 — graph-edge-writer.ts dual-write corrupts memory.db (ADR-130 regression)
Root cause: sql.js opened memory.db, did in-memory writes, then called
fs.writeFileSync(dbPath, db.export()) after every edge insert. This
whole-file flush overwrote memory.db while the better-sqlite3 bridge was
writing through its WAL — exactly the dual-write race that ADR-068 (#1257)
removed. Symptom: PRAGMA integrity_check reports "database disk image is
malformed (11)" after a single memory_store + causal-edge sequence.
Fix: ported v3/@claude-flow/cli/src/memory/graph-edge-writer.ts from sql.js
to better-sqlite3 + WAL mode. Same native engine as the bridge, no whole-file
fsync, no race. Public API unchanged. Smoke-tested: 50 concurrent insertGraphEdge()
calls + PRAGMA integrity_check → ok.
Note: this is the minimum-safe fix. The architecturally cleaner fix (route
edge writes through the bridge's controller layer per ADR-068) is deferred
to a future ADR. The current fix removes the race by ensuring both writers
share the same WAL-coordinated SQLite engine.
Version bumps:
- @claude-flow/memory 3.0.0-alpha.20 → 3.0.0-alpha.21
- @claude-flow/cli 3.13.0 → 3.13.1 (pins memory ^3.0.0-alpha.21)
- claude-flow umbrella 3.13.0 → 3.13.1
- ruflo wrapper 3.13.0 → 3.13.1
Published to npm with all three dist-tags (latest, alpha, v3alpha) for each
of the four packages. Verified post-publish: every package × every tag = 3.13.1
(memory at alpha.21).
Co-Authored-By: RuFlo <ruv@ruv.net>
Two bugs in checkMetaharnessIntegration():
1. **Path resolution** — only walked up from process.cwd() and checked one
hard-coded node_modules path. Missed the two installations users actually
run from:
(a) `npx @claude-flow/cli@<tag>` → resolves under `~/.npm/_npx/<hash>/...`
(b) `npm install -g @claude-flow/cli` → lives under `$(npm prefix -g)/lib/...`
Fix: walk up from this module's own location via `import.meta.url` —
the plugins/ dir is always a sibling of the package root regardless of
where it was installed.
2. **Severity** — reported `fail (✗)` when the plugin was genuinely absent.
But MetaHarness is in optionalDependencies per ADR-150 constraint #2;
a missing optional dep warrants `warn (⚠)`, not `fail`. The runtime
path already returns {degraded: true, exit 0} — doctor should reflect
the same posture so a clean install of the cli alone doesn't report
"Some checks failed".
Reserved `fail` for the case where the plugin SHOULD be present but
has broken/missing required files — that's a genuine misconfiguration.
Also extends the required-files list with the v3.13.0 Darwin Mode surfaces
(ADR-153): _darwin.mjs, evolve.mjs, security-bench.mjs, bench.mjs and
their three skill SKILL.md files. Gates against silent deletion.
Closes#2437.
Co-Authored-By: RuFlo <ruv@ruv.net>
Both plugins live in plugins/ on disk but were missing from
.claude-plugin/marketplace.json, so `/plugin marketplace add ruvnet/ruflo`
in Claude Code did not surface them.
Adds:
- ruflo-metaharness (ADR-148/149/150) — score, genome, mint, mcp-scan,
threat-model, oia-audit; optional dep, never required at runtime
- ruflo-arena (ADR-147/148) — competitive ruliology arenas, tournaments,
adaptive co-evolution of program strategies
Manifest now lists 35 plugins, matching the 35 ruflo-* directories under
plugins/. JSON validated with python3 -m json.tool.
Co-Authored-By: RuFlo <ruv@ruv.net>
Upstream agentic-flow 2.0.14 fixes CWE-78 OS command injection in its
MCP server tools (standalone-stdio, http-sse, http-streaming-updated,
stdio-full, claude-flow-sdk, poc-stdio, plus fastmcp tools/agent/swarm
sinks). Attacker-influenceable MCP tool parameters (agent, task, name,
language, agentdb args) were template-interpolated into shell command
strings passed to execSync(); a value like
x"; touch INJECTED; echo "
broke out of the surrounding quotes. The fix routes every shell-out
through execFileSync('npx', argv, { shell: false }) so argv elements
hit execve(2) without shell parsing.
This commit bumps the root agentic-flow dep to ^2.0.14 and refreshes
package-lock.json. Verified post-install: node_modules/agentic-flow
is at 2.0.14 with zero execSync() call sites remaining in
dist/mcp/standalone-stdio.js.
Upstream commit: agentic-flow a0f9c2b
Advisory: CWE-78 / OS Command Injection in MCP server tools
Co-Authored-By: RuFlo <ruv@ruv.net>
Side finding from the @metaharness/* package review: @metaharness/kernel@0.1.2
declares 5 per-platform NAPI-RS native packages in optionalDependencies but
NONE are published to npm. Runtime evidence on darwin-arm64:
$ npm install ruflo@3.12.3
$ node -e "(await import('@metaharness/kernel')).loadKernel().then(k => console.log(k.backend))"
wasm
The WASM fallback path is functional; the README's advertised "wasm primary,
NAPI-RS native fallback" is currently inverted (WASM is the only path).
Decision: ACCEPT the WASM-only state as the supported configuration. No code
change needed — `loadKernel()` already does the right thing. Add a smoke gate
that asserts `backend === 'wasm'` so we'll know when upstream ships the
natives (the gate fires `kernel-now-native-rebaseline-perf-docs` and we
re-baseline perf docs).
This is a descriptive ADR, not a behavioral change. Documents:
* Current state (5 native packages NOT_PUBLISHED)
* Runtime impact (WASM-only path works; no user-visible breakage)
* Why not block on upstream (functionality intact, perf ceiling not binding)
* Smoke gate to catch upstream publish + re-baseline trigger
* Cross-link from any user-facing doc that cites kernel perf
Paired with ADR-153 (Darwin Mode integration) as part of the @metaharness/*
ecosystem review.
Co-Authored-By: RuFlo <ruv@ruv.net>
Proposed integration of @metaharness/darwin@0.1.0 as ruflo's
harness-evolution layer. Closes the read-write loop that ADR-150
opened: where ADR-150 describes a harness (score, genome, mcp-scan,
threat-model, similarity, drift), Darwin Mode evolves it
(population-based self-improvement of 7 policy surfaces under a
sandbox + safety inspector + promotion gate).
Same architectural pattern as ADR-150 — four constraints:
1. Removable — npm ls --without @metaharness/darwin still works
2. Optional in package.json — never `dependencies`
3. Graceful degradation — MODULE_NOT_FOUND emits standard payload
4. CI gate — no-metaharness-smoke covers absence
Surfaces proposed (Phase 1 MVP):
* CLI: npx ruflo evolve <repo> [--generations N --children N ...]
* MCP: mcp__claude-flow__metaharness_evolve
* Script: plugins/ruflo-metaharness/scripts/evolve.mjs
* Doctor: --component metaharness extended
Explicit non-goals:
* No model fine-tuning (model is frozen; harness evolves)
* No auto-evolve in CI (user-initiated operation)
* No bypass of existing CVE/threat-model/mcp-scan checks
* No cross-repo promotion (federation is Phase 3)
* No mutation of ruflo's own surfaces in-place
Phase 2-4 tracked as follow-ups (witness-signed archives, federation,
per-repo policy file).
Upstream: @metaharness/darwin@0.1.0 — MIT, zero runtime deps, 266 KB,
published 2026-06-17 by ruvnet, mirrors ADR-070..075 in
ruvnet/agent-harness-generator/packages/darwin-mode.
Phase 1 implementation tracked as a checklist in the ADR; this commit
is the ADR only, no code changes yet.
Co-Authored-By: RuFlo <ruv@ruv.net>
Closes#2395 — MCP `memory_store` emitted persistent 128-dim mock
(hash-fallback) embeddings instead of the real 384-dim ONNX
embeddings, while the standalone CLI worked correctly. The CLI vs
MCP divergence wasted any benefit of vector memory and silently
corrupted similarity recall.
ROOT CAUSE
`bridgeGenerateEmbedding` (v3/@claude-flow/cli/src/memory/memory-bridge.ts)
called `embedder.embed(text)` and unconditionally returned the result
labeled `model: 'Xenova/all-MiniLM-L6-v2', backend: 'onnx'`. The model
name promises 384-dim, but AgentDB's vectorBackend controller may
initialize as `enabled: false` (e.g., when ruvector isn't yet wired
into its neural substrate) and silently substitute a 128-dim hash
stub. The stub doesn't expose `isMock=true`, so the existing
`isMock` check let it through with a wrong `'onnx'` label.
Downstream `generateEmbedding` saw the non-null bridge result and
returned it immediately, skipping the local ONNX chain
(transformers.js / ruvector) which DOES produce 384-dim correctly.
FIX
Add a dimensional sanity check: if `emb.length !== 384`, the bridge
result is definitively a stub (the model name we hardcode always
produces 384). Return null instead. Caller falls through to
`generateLocalEmbedding` which routes via the local ONNX chain.
This is conservative: the only behavior change is that a previously-
misclassified 128-dim "onnx" path now becomes a 384-dim real-ONNX
path (when the local chain has transformers.js or ruvector) OR a
clearly-labeled 128-dim hash fallback (when local ONNX also fails).
Either way the backend label now matches the actual semantics.
Co-Authored-By: RuFlo <ruv@ruv.net>
Published with two bundled fixes from PRs #2408 + #2397:
#2407 (CRITICAL — kernel-panic culprit) — atomic O_EXCL lockfile +
drop init.ts:424 shell `&`. Concurrent `daemon start` invocations
can no longer race the PID-file dedup → no more 39-zombie-daemon
accumulations.
#2403 — `security cve` subcommand was a stub printing "No CVE
database configured". Now delegates to `npm audit --json` (same
GitHub Advisory DB source as `security scan`), extracts CVE IDs,
supports --check CVE-X and --severity filters.
#2397 (community contributor @tjaiyen) — harden memory/hook
helpers: real timeout via Promise.race, signal cleanup, truncation
transparency, cross-platform slug. 248+/49− across 8 files.
Dependabot bumps (3 of 5 merged cleanly): @types/node, vitest, agent-browser
in /v3/@claude-flow/browser + /plugins/ruflo-graph-intelligence.
Co-Authored-By: RuFlo <ruv@ruv.net>
Closes#2403 — `security cve` was a stub that just printed "No CVE
database configured" and pointed users at `security scan`. Now it
actually does the work: invokes `npm audit --json` (same GitHub
Advisory DB source as scan), extracts CVE IDs from the `via` field
titles + URLs, filters by --check CVE-ID and/or --severity, and
renders a table.
Behavior:
cve → list all affected packages with their CVE IDs
cve --check X → filter to a specific CVE-XXXX-NNNN
cve -s critical → filter by severity (critical/high/medium/low)
Local verify on this repo:
$ npx ruflo security cve
Found 37 affected package(s):
HIGH @grpc/grpc-js (no CVE id) — A malformed request ...
MEDIUM @opentelemetry/core ...
...
Exit 0 either way (informational). Source attribution surfaced in
output footer for transparency.
Co-Authored-By: RuFlo <ruv@ruv.net>
Closes#2407 — daemon proliferation racing the PID-file dedup
accumulated 39 zombie daemons (~8.5 GiB resident) on a long-running
Mac and contributed to the 2026-06-15 21:06 kernel panic
(compressor 27 GiB, configd watchdog timeout).
ROOT CAUSE (2-stage race)
Stage 1 — init.ts:424 used `daemon start ... &` (shell background).
execSync returned the instant the shell forked, before the daemon
wrote its PID file. Concurrent init invocations (devcontainer setup +
VS Code task + MCP hook firing within ~500 ms) all hit Stage 2 with
an empty PID file.
Stage 2 — daemon.ts:95-105's dedup read the PID file and forked
startBackgroundDaemon non-atomically. N concurrent callers all saw
an empty PID, all proceeded, all forked their own daemons. Last
write to the PID file won; the other N-1 ran orphaned.
FIX
(1) init.ts: drop the shell `&`. `daemon start` (default non-foreground
mode) already handles its own detached background fork via
startBackgroundDaemon AND writes the PID file synchronously before
returning. execSync without `&` waits long enough for the dedup-
relevant PID-file write. Timeout bumped 10s → 30s for npx cold-
cache scenarios.
(2) daemon.ts: wrap the dedup + spawn in an O_EXCL atomic lockfile
(`.claude-flow/daemon.lock`). Winner reads PID file, spawns or
short-circuits. Losers see EEXIST, poll for up to 5s waiting for
the winner's PID to land, then return "already running" cleanly.
Stale lockfile (crashed mid-spawn) is recovered by unlinking after
timeout and falling through to killStaleDaemons.
VALIDATION
Race test — 5 concurrent `node cli.js daemon start` invocations
against a fresh /tmp/race-test2 workspace:
Before fix: 3 surviving daemons (all 3 forked, race resolution failed)
After fix: 1 surviving daemon (PID 84773), 2 callers saw
"Daemon already running in background", killStaleDaemons
swept 2 mid-spawn crashes.
Local repro of the 3-daemon scenario was tested against the v3.12.1
dist before the fix — three of three init invocations spawned
independent daemons. After the fix, only one survives regardless of
how many parallel callers race.
NEXT STEPS
The MacOS memory guard at ~/scripts/mac-memory-guard.sh (built during
the kernel-panic diagnosis) remains as the second-line defense
against this and other memory leaks. The first-line fix is here.
Co-Authored-By: RuFlo <ruv@ruv.net>
Two README updates in both root + ruflo/ mirrors.
(1) metaharness blurbs — rewrite to be understandable
Previous wording — "10 ruflo metaharness * subcommands + 9 MCP
tools — harness readiness scoring, MCP security scanning, threat
modeling, composite audits, genome similarity, one-command drift
detection — plus ruflo eject ..." — leaned on jargon and surface
counts that don't tell a user what value they get.
New wording, in 3 places:
"What You Get" capability row:
"Audit your AI agent setup before you ship. Grade readiness
(1-100), scan tool configs for security issues, snapshot the
whole project to catch regressions over time, and find templates
that match your repo. ruflo eject turns a ruflo project into a
standalone agent toolkit with its own name."
Plugin list (Architecture & Methodology section):
"Grade your agent setup, scan tool configs for security risks,
and track changes over time"
Documentation table:
"How to grade your agent setup, scan tool configs for security,
detect changes between runs, and eject a project into a
standalone agent toolkit. The audit-my-setup doc."
(2) Badge counts — refresh against live data
Live npm queries (last-year window across the 9 main ecosystem
packages — ruflo, claude-flow, @claude-flow/cli + codex + guidance,
agentic-flow, agentdb, ruvector, ruv-swarm) total 8.13M downloads.
The 22.2M+ badge was a stale manual figure with no source-of-truth
computation.
Live GitHub clone-traffic API across the 5 tracked repos
(ruvnet/{ruflo, agentdb, agentic-flow, ruvector, ruv-FANN}) totals
105,742 in the trailing 14d window. The 115k badge came from the
2026-05-19 ledger snapshot (4 weeks stale); the most recent
2026-06-14 snapshot had fetch-failed entries so the ledger wasn't
updated.
Updated:
ecosystem downloads 22.2M+ → 8.1M+
git clones (14d) 115k → 106k
Both linked to the same data/ sources (proof.json + ledger.json).
Co-Authored-By: RuFlo <ruv@ruv.net>
Per user direction: keep the README user-facing, no ADR references in
the metaharness blurbs. Touched only the 4 lines I added in the prior
two commits (capability table row, plugin list row, docs table row,
section row in both root + ruflo/ READMEs).
Pre-existing ADR mentions (ADR-123 graph-intelligence, ADR-033 ruvocal)
are left in place since they predate this work and aren't about
metaharness.
Co-Authored-By: RuFlo <ruv@ruv.net>
Right answer to "is it in the collapsed list?" was: no. Adding it:
* Inserted under "Architecture & Methodology" (sits naturally with
ruflo-adr, ruflo-ddd, ruflo-sparc — all meta-analysis / methodology
tooling)
* Bumped collapsed-list header "All 33 plugins" → "All 34 plugins"
* Bumped capability table "32 native Claude Code plugins" → "33"
(the marketplace count excludes ruflo-core)
* Cross-linked the plugin README + the metaharness-user-guide
Mirrored to both root README.md (relative paths) and ruflo/README.md
(absolute GitHub URLs since the wrapper ships standalone to npm).
Co-Authored-By: RuFlo <ruv@ruv.net>
Added docs/metaharness-user-guide.md — the deep-dive doc for ADR-150's
metaharness integration. ~400 lines covering:
* Quick start + the 10 CLI subcommands with example invocations
* The 9 MCP tools + handler contract
* The 4 ADR-150 architectural constraints (removable / optional /
graceful / CI-gate)
* Common workflows: daily drift check, weekly cron, PR audit gate,
template ranking
* ADR-152 §3.1 similarity math (cosine + categorical + jaccard
weighted blend) + verdict thresholds
* Router integration (ADR-148/149) + parallel-logging promotion gate
* `ruflo eject` safety semantics
* Troubleshooting (the v3.12.0 → 3.12.1 plugin-path issue, degraded
mode, cold-cache slowness, etc.)
* Internals + cross-references (ADRs, tracking issue, upstream
`ruvnet/agent-harness-generator`)
Linked from both README.md and ruflo/README.md in two places:
1. "What You Get" table — new row between Federation and Web UI
2. "Documentation" table — new row between User Guide and Benchmarks
The ruflo wrapper README uses absolute github.com links since the
file is shipped on its own to npm; the root README uses relative paths
since docs/ ships alongside it.
Co-Authored-By: RuFlo <ruv@ruv.net>
3.12.0 shipped the CLI dispatcher + 9 MCP tools but DID NOT ship the
plugin scripts that the dispatcher delegates to. Real-user impact:
$ npx ruflo metaharness score --path .
metaharness: plugins/ruflo-metaharness/scripts/ not found.
Install ruflo with `npm i ruflo` or run from the ruflo repo.
The CLI's locator walks 8+ paths looking for the plugin under
node_modules/@claude-flow/cli/plugins/ruflo-metaharness/scripts/, but
@claude-flow/cli's package.json `files` field only listed dist/, bin/,
scripts/, .claude/, README.md — plugins/ never made it into the
published tarball.
Fix is two-part:
1. files[] — add "plugins" so npm pack includes the dir
2. prepublishOnly — copy ../../../plugins/ruflo-metaharness into
local plugins/ before pack, since the source lives at repo root
not inside the cli package directory
End-to-end verified on a fresh npm install:
$ npm install ruflo@3.12.1
$ find node_modules -path "*ruflo-metaharness/scripts*" | head
node_modules/@claude-flow/cli/plugins/ruflo-metaharness/scripts
node_modules/@claude-flow/cli/plugins/ruflo-metaharness/scripts/score.mjs
...
$ npx ruflo metaharness score --path .
{ "harnessFit": 53, ... } ✓
Tarball size: 1310 → 1348 files (+38 plugin scripts).
Published 3.12.1 to all 3 packages × 3 dist-tags in lockstep.
Co-Authored-By: RuFlo <ruv@ruv.net>
Recurring failure pattern: pnpm install triggers postinstalls
(onnxruntime-node, sharp) that download CDN binaries; GH runners
observed ECONNRESET mid-fetch and pnpm exits non-zero with no
auto-retry. Both have happened on this PR's run already:
onnxruntime-node postinstall: Error: read ECONNRESET
ELIFECYCLE Command failed with exit code 1
Set npm/pnpm fetch-retry env vars so transient blips get 5x retry
with 1s→60s exponential backoff. This is the standard remedy when
CI runners hit flaky CDN connectivity (matches the existing pattern
in v3-ci.yml's wizard-init-regression-guard job).
npm_config_fetch_retries=5
npm_config_fetch_retry_mintimeout=1000
npm_config_fetch_retry_maxtimeout=60000
npm_config_fetch_retry_factor=2
Applied to all 4 build-step blocks via replace_all.
Co-Authored-By: RuFlo <ruv@ruv.net>
iter 134's `pnpm rebuild sharp` didn't actually rebuild the native
binary — pnpm 8.15's store layout makes the rebuild a no-op when the
package's vendored download script isn't allowed by the postinstall
sandbox. Result: similarity-tests + eject-dryrun still fail at CLI
bootstrap with:
Cannot find module '../build/Release/sharp-linux-x64.node'
Direct fix: find sharp's location inside `node_modules/.pnpm/`, cd
into it, and `npm install --ignore-scripts=false`. npm honors sharp's
own install script which downloads the prebuilt binary for the
current platform. Verifies the .node file exists after; tolerates
failure (the CLI optional-path is its own degradation).
Co-Authored-By: RuFlo <ruv@ruv.net>
router-compat CI step pipes the bench's --format json output to
JSON.parse, but the script always emitted a markdown header
`# bench-recordpair-overhead` + iterations line BEFORE the JSON body.
Result:
SyntaxError: Unexpected token '#', "# bench-re"... is not valid JSON
Same fix-class as iter 87 for bench-similarity. Guard the header
output behind `ARGS.format !== 'json'` so --format json emits pure JSON.
Local: pipes cleanly into JSON.parse — OK.
Co-Authored-By: RuFlo <ruv@ruv.net>
#2405 PR run and manual re-run both canceled at exactly the wall-clock
limit (router-compat at 5m0s, no-metaharness-smoke at 10m0s). Not flake —
consistent perf on shared GH Actions runners.
- router-compat: 5m → 12m (parallel-pipeline e2e + bench step)
- no-metaharness-smoke: 10m → 20m (full optionalDependencies drill)
Both factors track the iter-131 precedent of doubling wall-clock budgets
for chain-tool / cold-cache jobs.
Co-Authored-By: RuFlo <ruv@ruv.net>
iter 133 bumped the claude-flow umbrella's @claude-flow/mcp and
@claude-flow/shared pins to match the workspace siblings, but I
didn't regenerate package-lock.json. Witness verify smoke (#1880)
runs `npm ci` which then fails:
npm error Invalid: lock file's @claude-flow/mcp@3.0.0-alpha.8
does not satisfy @claude-flow/mcp@3.0.0-alpha.9
npm error Invalid: lock file's @claude-flow/shared@3.0.0-alpha.7
does not satisfy @claude-flow/shared@3.0.0-alpha.8
Regenerated via:
npm install --no-audit --no-fund --ignore-scripts --package-lock-only
Net diff: ±16 lines (just the version bumps + transitive resolutions).
Co-Authored-By: RuFlo <ruv@ruv.net>
eject-dryrun + similarity-tests jobs failed at CLI runtime with:
Error: Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp-linux-x64.node'
pnpm 8.15 sandboxes some postinstall scripts in CI, leaving sharp@0.32.6
without its linux-x64 .node binary. The CLI's transitive agentic-flow
chain require()'s sharp at bootstrap, so eject + similarity dispatch
fail at runtime even though sharp is technically optional.
Explicit `pnpm rebuild sharp` after install runs sharp's vendored
download script and pulls the right prebuilt .node for linux-x64.
`|| true` because if it fails, the worst case is the pre-existing
missing-binary state which the runtime CLI already error-handles.
Applied to all 4 build-step blocks in metaharness-ci.yml via the same
template (replace_all).
Co-Authored-By: RuFlo <ruv@ruv.net>
audit-wrapper-dep-ranges.mjs (#2127 guard) flagged 2 violations:
✗ claude-flow's "@claude-flow/mcp": "3.0.0-alpha.8" does NOT include
the workspace's actual version 3.0.0-alpha.9. Bump the range.
✗ claude-flow's "@claude-flow/shared": "3.0.0-alpha.7" does NOT
include the workspace's actual version 3.0.0-alpha.8. Bump the range.
The metaharness branch pinned umbrella deps to exact versions during
iter 1, but the workspace siblings have since bumped:
mcp: alpha.8 → alpha.9
shared: alpha.7 → alpha.8
Bump the umbrella's pins to match.
Local audit:
ok: all wrapper ranges include their published target versions
Co-Authored-By: RuFlo <ruv@ruv.net>
audit-tool-descriptions.mjs failed with "no-guidance: count 9 exceeds
baseline 0". The 9 new metaharness_* MCP tool descriptions used
non-matching phrases like "Use BEFORE...", "Use this BEFORE...",
"Use to..." which don't satisfy the ADR-112 audit's regex set:
/Use when/i
/Prefer .* over/i
/use .* over (native|the )/i
/Pair with/i
/fall back/i
/native .* is (fine|wrong)/i
Updated each description to include "Use when ... <alternative> is
wrong because ..." per the ADR-112 template, preserving existing
content + adding the discoverability guidance. Several also added
explicit "Pair with metaharness_*" cross-references for handoffs
between tools (score+genome, audit_list→audit_trend, oia_audit→
drift_from_history).
Local audit:
Total tools scanned: 336
With Use-when guidance: 336
Without guidance: 0
OK — 336 tools, 336 with guidance, all gates pass.
Co-Authored-By: RuFlo <ruv@ruv.net>