ruflo init wrote memory.persistPath: .claude-flow/data into .claude-flow/config.yaml, but getMemoryRoot() only reads the JSON config candidates (claude-flow.config.json and .claude-flow/config.json) and otherwise uses .swarm. The YAML key was dead text: editing it moved nothing and could mislead users into thinking a new store location was active (#3193 part b).\n\nRemove the ignored key and point the YAML at the JSON key that actually controls the store. Add an init regression test that fails on the old YAML and asserts the generated file no longer advertises persistPath.
* fix(memory): distinguish recent dead locks from live writers
inspectAgentdbLock() labeled a dead holder as 'live' when the lock was younger than the 10s stale threshold. The same state then produced 'another process is writing this database' guidance, so callers could wait for a writer that did not exist or leave a recoverable lock in place indefinitely (#3979 item 5).\n\nAdd a distinct 'recent' LockState for dead-PID locks still inside the stale window, clamp clock-skewed ages to zero, and give withAgentdbLockRecovery a precise retry message. The guard still refuses to clear the lock until it is old enough; only the diagnosis changes.
* chore(memory): bump @claude-flow/memory to 3.0.9
The leaf-package-publish audit correctly requires a version bump whenever publishable @claude-flow/memory source changes. Bump the leaf and both CLI dependency pins, and update the pnpm importer specifier, matching the #4279/#4152 release pattern.
The parser stores `--no-browser` as `browser: false`, and the declared
`no-browser` option defaults `noBrowser` to `false`, so
`noBrowser ?? ['no-browser']` was always false and the login used the
loopback browser flow unless the host looked headless. Treat
`browser: false` as the opt-out too.
The parser stores `--no-color` as `color: false`, and the declared
`no-color` option leaves `noColor` at its default of `false`. The
statusline action only read `no-color` and `noColor`, so
`hooks statusline --full --no-color` and `ruflo --no-color hooks
statusline` still printed ANSI escape codes. Also check
`color === false`, as index.ts and init.ts already do.
* fix(daemon): read config_set's values envelope in config.json reader
Fixes#3192
config_set's default-scope handler writes {"values": {key: val}, ...},
but the daemon's readDaemonConfigFromFile() only ever checked
scopes.project or the file's flat root — never `values`, which is where
config_set actually puts default-scope writes. As a result,
config_set daemon.idleSecs 0 silently had no effect on the running
daemon, even though it "succeeded" and updated config.json.
Add raw?.values as a fallback between scopes.project and the flat-root
read, matching the fix the issue reporter verified against the pinned
upstream sha.
* fix(daemon): resolve each config key independently (scopes.project > values > root)
Addresses review feedback on #3239 (Copilot): picking one whole object
as "cfg" meant a key only present in the values envelope was still
missed whenever scopes.project existed at all, even for unrelated
keys, because cfg resolved to scopes.project and the per-key fallback
only ever dropped to raw (root), never to raw.values.
Resolve each daemon.* key independently through
scopes.project -> values -> root so a config.json with keys spread
across more than one shape (e.g. one project-scoped config_set call
and one default-scope call) still resolves correctly.
---------
Co-authored-by: SID-6921 <99672439+SID-6921@users.noreply.github.com>
2.0.0-alpha.5's own optionalDependencies claimed
@agntcy/slim-bindings-linux-arm64-musl@2.0.0-alpha.5, but that platform
package was never published upstream (confirmed via the live npm registry:
every 2.0.0-alpha.*/2.0.0/2.1.0 release has the same defect; the musl
package's own version history starts at 2.1.1-rc.2). npm tolerates an
unresolvable optional dependency and silently skips it, so this never
surfaced in CI, but strict resolvers (mise's aube backend) fail the whole
install.
2.1.1 is the earliest release where every platform's optional package
actually exists at that exact version (verified against the registry for
all 8 platforms), chosen over the current latest (3.3.8) to minimize
API-drift risk relative to the previously verified 2.0.0-alpha.5. Verified
live: the dynamic import resolves under plain Node against the real
installed 2.1.1 package, and the full agntcy-commands.test.ts suite (19
tests, including the real-resolution "configured: true" case) passes.
Also found and filed #4376: transport.ts/swarm-join.ts/publish.ts call
createSlimTransport/joinGroup/publishAgentRecord, none of which exist on the
real SDK at either version — a pre-existing gap this pin change does not
introduce or worsen.
Co-authored-by: r <r@x>
Bumps @claude-flow/cli, claude-flow, and ruflo to 3.59.14, carrying:
- fix(mcp): let memory tools target an explicit store (#4350)
- fix(cli): report every stored workflow in workflow_list total, not just the limited page (#4372)
Co-authored-by: r <r@x>
The CLI accepts an explicit --path, and memory_stats/import/export already accept dbPath, but memory_store, memory_retrieve, memory_search, memory_delete and memory_list ignored an explicit store and always used the MCP default (the AgentDB sibling). An MCP caller that knew the project store could not select it, so reads and writes landed in a different backend (#3196).\n\nAdd an optional dbPath to those five tool schemas, skip default initialization when it is supplied, and thread it through storeEntry/getEntry/searchEntries/deleteEntry/listEntries (including SmartRetrieval's raw search and near-miss paths). No dbPath keeps the existing MCP default; this is deliberately not an implicit CLAUDE_FLOW_DB_PATH override because the native/encrypted CLI store and the AgentDB sibling are separate backends.\n\nAdd sql.js fixture tests with a populated default store so selecting the wrong store is observable. Baseline (source stashed) fails 4/4; the fix passes 4/4. Existing related memory suites pass 37/37.
Bumps @claude-flow/cli, claude-flow, and ruflo to 3.59.13, carrying:
- fix(claims): anchor MCP claims store to project cwd (#3210)
- fix(hooks): resolve globally-installed ruflo before falling back to npx (#3368) (#4368)
Co-authored-by: r <r@x>
* fix(hooks): resolve globally-installed ruflo before falling back to npx (#3368)
hook-handler.cjs's resolveCliBinForHook() only probed project-relative
locations, so on a machine with `npm install -g ruflo` every SessionStart
refresh (refresh-funnel, refresh-advisor) and the first-run spinner enable
fell back to `npx --prefer-offline @claude-flow/cli`: a second copy of the
CLI that follows the registry's latest instead of the pinned global, and
that cannot start offline on a cold npx cache.
After the existing candidates miss, look for a global install:
1. npm's global prefix, resolved in npm's own precedence (npm_config_prefix
env, user npmrc, npm's builtin npmrc, default) without spawning npm. It
matches `npm prefix -g` in 12 of 14 configurations compared; the other
two are an npmrc npm itself rejects and an undefined ${VAR}, which this
keeps literal so the relative value is refused rather than followed.
2. `ruflo` / `claude-flow` on PATH, which covers yarn and bun globals. Only
a symlink into a package that declares one of the three published names
counts, so a wrapper script or a Volta shim is not mistaken for an
install, and npm's Windows folder layout is only probed on win32 — on
POSIX it would follow a Windows install through WSL's appended PATH.
Each package root maps to its CLI the way ruflo/bin/ruflo.js does, stopping
at the enclosing node_modules so a stray ~/node_modules is never reached,
and every hit must still pass the existing dist/src/index.js guard.
Project-local installs keep priority, and npx stays the last resort. The
lookup runs once per hook process (session-restore asks up to three times):
about 0.6 ms for that call, 0.000 ms after, against 70-80 ms for a
`npm prefix -g` spawn.
Both committed copies stay byte-identical (hook-handler-artifact-parity).
helpers.manifest.json is deliberately untouched: the new hook-handler.cjs
hash needs the maintainer's re-sign, and helper-signing.test.ts reports the
drift until then.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KTedGmPKpEdArVBMMn3JaP
* fix(hooks): also look in ~/.npm-global after the configured prefix and PATH (#3368)
resolveGlobalCliBin() still returned null on a real install: ruflo lived in
~/.npm-global (npm's documented no-sudo prefix), but the setting pointing npm
there sat where the hook's node never reads it, and the only `ruflo` on PATH
was a wrapper script, which the PATH lookup skips by design. Every hook then
fell back to `npx @claude-flow/cli@latest`.
~/.npm-global is now a third, last-resort lookup, checked only after the
configured prefix and PATH both miss, so it can never override either. The
prefix loop moves into cliUnderPrefix() so both lookups share it.
Tests: an end-to-end case for that exact setup (no npmrc prefix, wrapper
script on PATH), a unit pinning the order (configured prefix wins), and a
unit that an unbuilt ~/.npm-global install is ignored. The first two fail
on the previous helper; 35/35 pass with the fix. Both committed copies stay
byte-identical.
Co-Authored-By: ruflo <ruv@ruv.net>
* test(hooks): expect the npx fallback to carry --prefix <helper root> (#3368)
Since e625b7104 (3.56.4) cliSpawnArgs() resolves the npx fallback from the
helper's own install root: `npx --prefer-offline --prefix <helperRoot>
@claude-flow/cli hooks refresh-*`. The three "still falls back to npx" cases
asserted the older argv without --prefix and failed after rebasing onto
v3.56.9. For the sandbox's project-level helper the root is the project, so
expectFellBackToNpx() now takes the sandbox and checks that exact prefix.
21/21 pass.
Co-Authored-By: ruflo <ruv@ruv.net>
* chore(helpers): re-sign manifest for the global-CLI hook fix (#3368)
hook-handler.cjs changed in the prior commits; re-sign
v3/@claude-flow/cli/.claude/helpers/helpers.manifest.json so the
shipped-helpers integrity gate (helper-signing.test.ts) matches the new
content hash.
Co-authored-by: Mr. Mak <218673441+HF-teamdev@users.noreply.github.com>
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: Mr. Mak <218673441+HF-teamdev@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Mak Allen <mak@heroforge.ai>
Co-authored-by: r <r@x>
Ships #3341 (restores the `ruflo pair` command the bundled
pair-programming skill has depended on since v2 — every project with
that skill previously hit "Unknown command: pair" when activating any
mode).
Co-authored-by: r <r@x>
* feat(cli): restore the `pair` command the pair-programming skill depends on
The bundled pair-programming skill tells Claude Code to run
`claude-flow pair --start --mode tdd`, but the v3 CLI never shipped `pair`
(it was a v2 simple-command), so `ruflo pair` fails with "Unknown command"
and none of the skill's modes can be activated or switched.
Add a minimal, non-interactive `ruflo pair` that keeps session state in
`.claude-flow/sessions/pair/current.json`: start/status/switch/mode/end/
history, driver/navigator roles, switch-mode interval with a `switchDue`
signal. The v2 spellings (`pair --start`, `--end`, `--history`) still
work. The skill docs now describe how the agent reads `pair status --json`
each turn and act on it, and point at the new syntax.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* feat(cli): accept the pair mode as a bare word
`ruflo pair start tdd` silently started driver mode because only
--mode was read. A positional now wins over the option default.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Gilles Major <gilles@lizy.be>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: rUv <ruv@ruv.net>
Ships #4362 (appliance build/sign/update: read the parser's camelCase
flag keys instead of the raw kebab-case strings, same bug class as
#4330/#4349/#4353 in 3.59.10).
Co-authored-by: r <r@x>
The parser stores every long flag under its camelCase key and turns
`--no-foo` into `foo = false`, but the appliance commands read
kebab-case keys, so `--api-keys`, `--generate-keys`, `--key-dir`,
`--public-key` and `--no-backup` were silently ignored. With
`--public-key` ignored, `appliance update` never verified a patch
signature.
`appliance build` also passed `outputPath`/`apiKeysPath` where
RvfaBuilder reads `output`/`apiKeys`, so every build failed with
`The "paths[0]" argument must be of type string`. It now passes the
names the builder reads, leaves `models` unset when none were given so
the builder's per-profile default applies (an empty list gave hybrid no
local model), and prints `result.size` instead of the nonexistent
`totalSize`.
Same bug class as #2952.
Co-authored-by: rUv <ruv@ruv.net>
The parser stores long flags under camelCase keys and `--no-X` as
`X: false`, but `daemon start` read `ctx.flags['max-cpu-load']`,
`ctx.flags['min-free-memory']` and `ctx.flags['no-distill']`, which are
never set. All three flags were ignored, in the foreground daemon and in
the forked background child.
Read `maxCpuLoad` and `minFreeMemory`, and treat `distill: false` as the
distillation opt-out while still accepting the literal `no-distill` key.
Co-authored-by: rUv <ruv@ruv.net>
The parser stores `--no-signup` as `signup: false`, and the declared
`no-signup` option gives `noSignup` its default of `false`. The
enrollment step only read `ctx.flags['no-signup']` and
`ctx.flags.noSignup`, so the flag never took effect: in an interactive
terminal `ruflo init --no-signup` still asked "Create a free Cognitum
account now?" and saved the answer as the enrollment decision and an
`account` consent receipt.
Also treat `signup: false` as the opt-out, as init already does for
`--no-global`, `--no-codex-detect` and `--no-skills-sh`.
Co-authored-by: rUv <ruv@ruv.net>
Bundles two merged fixes:
- #4357: removed an unused toml dependency carrying two unpatched
high-severity CVEs (GHSA-82x6-q7mm-w9cf, GHSA-v5mp-jgw5-2x6j).
@iarna/toml is the TOML parser actually used; toml had zero
require/import sites in the codebase.
- #4359: picked up @metaharness/darwin@0.12.1, which fixes the
contrastive development loop's timeoutMs restarting per callback
instead of enforcing one deadline across a round (metaharness#424).
Co-authored-by: r <r@x>
toml@3.0.0 was declared as a direct dependency in three manifests
(root package.json, @claude-flow/cli, @claude-flow/codex) but never
imported anywhere in the codebase — @iarna/toml is the TOML parser
actually used (e.g. @claude-flow/codex/src/dual-mode/orchestrator.ts).
Confirmed via a real consumer install (`npm install ruflo@3.59.8` in
a scratch project) that toml reaches end users through this unused
dependency, carrying two unpatched high-severity advisories with no
non-breaking fix available:
- GHSA-82x6-q7mm-w9cf (Uncontrolled Recursion)
- GHSA-v5mp-jgw5-2x6j (Prototype Pollution via __proto__ key-path
desynchronization)
Since the dependency is dead weight, removing it is strictly safer
than bumping to a breaking major version of a package nothing calls.
Co-authored-by: r <r@x>
Bundles two merged fixes:
- #4351: memory_delete / purgeNamespace now scrub the tombstone payload
(content, embedding, tags, metadata) instead of leaving it recoverable,
and enable PRAGMA secure_delete on the sql.js and native delete paths.
- #4354: config_list's default-scope merge loop no longer short-circuits
the explicit scope's own precedence branch, so a value set only at a
non-default scope stops being silently dropped in the default view.
Co-authored-by: r <r@x>
memory delete is a soft delete so the UNIQUE(namespace,key) slot stays occupied and a later upsert can resurrect the row. Both write paths kept the payload on disk: the native bridge left content, embedding, tags and metadata intact, and the sql.js fallback only nulled embedding. A deleted value therefore remained readable by anyone opening memory.db/agentdb-memory.db directly (#3785 residual).\n\nScrub content, embedding, embedding_model, embedding_dimensions, tags and metadata in both the bridge SQL and the sql.js image path. content is NOT NULL in the schema, so use the empty string rather than SQL NULL; identity, namespace, status, provenance and timestamps remain for resurrection and audit. Enable PRAGMA secure_delete=ON before both soft-delete paths and namespace purges so SQLite overwrites the old cells instead of leaving the payload in free pages.\n\nAdd sql.js delete/purge regression tests that also scan the raw image, plus a native better-sqlite3 case that checks the columns and the image after a WAL truncate checkpoint. Baseline local cases fail on the raw markers; the fix passes, and related delete/purge/upsert/concurrency tests pass 25/26 (native case skipped locally).
Bundles PR #4343 (policy lock fails fast on path errors instead of
timing out). acquireLock() treated every openSync() error as lock
contention, so a permission error, missing parent directory, or a
directory/symlink/FIFO planted at the lock path waited the full 5s
lock budget on every MCP tool call before surfacing a misleading
policy-state-lock-timeout. The create now uses O_NOFOLLOW (where
supported) to close the create-through-a-symlink path; ELOOP and
any non-EEXIST errno surface immediately; an EEXIST path is lstat'd
and a non-regular target (directory/FIFO/symlink) fails immediately
rather than being treated as a reclaimable lock. Live/dead regular-
file lock handling is unchanged.
Validated before tagging:
- audit-umbrella-version-lockstep.mjs: ok (all three at 3.59.7, ruflo pins cli)
- audit-leaf-versions-published.mjs: ok (4/4 non-bundled leaves resolve on the registry)
- pnpm -r build: all 25 workspace packages build clean (one transient
tsc segfault on @claude-flow/cli, confirmed non-reproducing on retry)
- policy-lock-dead-owner.test.ts, memory-export-path-3196.test.ts,
distill-both-stores-3446.test.ts, hive-mind-init-persist-contract.test.ts,
memory-list-teardown-3226.test.ts, task-cancel.test.ts,
task-status-header.test.ts, tui-command.test.ts: 59 passed, 3 skipped
Co-authored-by: r <r@x>
acquireLock treated every openSync error as lock contention, so permission/path/IO failures and planted directories/symlinks waited the full LOCK_WAIT_MS and surfaced as policy-state-lock-timeout on every MCP call. It also used openSync('wx'), which can follow a dangling symlink at the lock path and create the target.
Create with O_EXCL|O_NOFOLLOW where supported, treat only EEXIST as contention, map ELOOP and non-regular lstat results to an explicit path-type error, and throw other codes immediately as policy-state-lock-error. Normal live/dead regular-lock behavior is unchanged. Extend the lock tests with directory and dangling-symlink cases and update the symlinked-FIFO case to assert an immediate path error with no target removal.
Bundles PR #4341 (memory export can target an explicit store,
#3196): memory export was the only primary memory subcommand
without --path, and memory_export had no dbPath input, so a
specific snapshot (agentdb-memory.db, an archive, a restored
backup) could not be exported from the CLI. An explicit dbPath
is now a true single-store read: it does not initialize or merge
the sibling default store. Default (no --path) behavior is
unchanged.
Validated before tagging:
- audit-umbrella-version-lockstep.mjs: ok (all three at 3.59.6, ruflo pins cli)
- audit-leaf-versions-published.mjs: ok (4/4 non-bundled leaves resolve on the registry)
- pnpm -r build: all 25 workspace packages build clean
- memory-export-path-3196.test.ts, distill-both-stores-3446.test.ts,
hive-mind-init-persist-contract.test.ts, memory-list-teardown-3226.test.ts,
task-cancel.test.ts, task-status-header.test.ts, tui-command.test.ts:
37 passed, 3 skipped
Co-authored-by: r <r@x>
memory export was the only primary memory subcommand without --path, and memory_export had no dbPath input. The handler always opened the default stores, so a specific snapshot (agentdb-memory.db, an archive, or a backup) could not be exported from the CLI; an explicit selection was silently impossible.
Add DB_PATH_OPTION to export, pass resolveDbPath() to memory_export, and teach the handler to treat an explicit dbPath as a single-store read: it skips default initialization/migration and does not merge the sibling. With no dbPath, the existing both-store merge is unchanged. Add CLI/schema and sql.js handler regression tests (explicit file only; missing file error).
Bundles PR #4338 (memory distillation now covers both project
stores, #3446): memory distill run and the daemon's consolidate
worker previously resolved only memory.db, which in an MCP-only
project often lacks the AgentDB target tables, so every tick
skipped while the actual corpus accumulated un-distilled in the
sibling agentdb-memory.db. Both stores are now resolved and
distilled (a per-store failure can't block the other); an explicit
--db still pins a single store.
Validated before tagging:
- audit-umbrella-version-lockstep.mjs: ok (all three at 3.59.5, ruflo pins cli)
- audit-leaf-versions-published.mjs: ok (4/4 non-bundled leaves resolve on the registry)
- pnpm -r build: all 25 workspace packages build clean
- distill-both-stores-3446.test.ts, hive-mind-init-persist-contract.test.ts,
memory-list-teardown-3226.test.ts, task-cancel.test.ts,
task-status-header.test.ts, tui-command.test.ts: 34 passed, 3 skipped
CI note: PR #4338's Test Suite (ubuntu-latest) needed 5 re-runs before
passing, each failure on a different file unrelated to the PR's diff
(mods-cli-bin.test.ts, swarm-status-id-and-stop.test.ts,
missions/store-replay.test.ts) — pre-existing CI flakiness, not a
regression from this change. Documented on issue #4307.
Co-authored-by: r <r@x>
memory distill run and the daemon's consolidate worker defaulted to .swarm/memory.db only. After the #2786 store split, MCP writes land in .swarm/agentdb-memory.db; in an MCP-only project memory.db has no AgentDB target tables, so the worker skipped every tick while the real corpus went un-distilled (#3446).
Resolve both stores from the same memory root (honoring CLAUDE_FLOW_MEMORY_PATH and CLAUDE_FLOW_DB_PATH), run the service against each, aggregate the reports without hiding a per-store skip, and expose per-store results in the CLI output and consolidation metrics. Explicit --db remains single-store. Add pure orchestration tests plus native CLI/daemon coverage for an agentdb-only project.
Bundles PR #4336 (hive-mind_init honors its advertised persistence
contract): declares maxAgents/memoryBackend/persist in the MCP schema,
validates all input before any filesystem write, skips saveHiveState()
and the bootstrap-secret write entirely when persist:false, and fixes
the legacy status fallback (byzantine -> raft, matching init's
documented default).
Validated before tagging:
- audit-umbrella-version-lockstep.mjs: ok (all three at 3.59.4, ruflo pins cli)
- audit-leaf-versions-published.mjs: ok (4/4 non-bundled leaves resolve on the registry)
- pnpm -r build: all 25 workspace packages build clean
- hive-mind-init-persist-contract.test.ts, memory-list-teardown-3226.test.ts,
task-cancel.test.ts, task-status-header.test.ts, tui-command.test.ts:
28 passed, 3 skipped
Co-authored-by: r <r@x>
hive-mind_init read persist/maxAgents/memoryBackend out of its input and echoed them in config, but the MCP schema declared none of them and saveHiveState() ran unconditionally. A persist:false caller was told persistence was off while state.json and the bootstrap secret were still written; invalid maxAgents values were accepted; and legacy state without a strategy reported byzantine even though init defaults to raft.
Declare the three inputs, validate them before any filesystem write, skip both saveHiveState() and ensureBootstrapSecret() when persist is false, persist the accepted config, and report the documented raft fallback. Add a contract regression suite; the hiveId round-trip remains tracked by #3241.
Bundles PR #4334 (Windows memory-list intermittent libuv crash fix,
merged as 134911452): the CLI's exit handler now sets process.exitCode
instead of calling process.exit(0), and best-effort awaits
shutdownBridge() to drain cached ControllerRegistry resources before
the event loop closes naturally.
Validated before tagging:
- audit-umbrella-version-lockstep.mjs: ok (all three at 3.59.3, ruflo pins cli)
- audit-leaf-versions-published.mjs: ok (4/4 non-bundled leaves resolve on the registry)
- pnpm -r build: all 25 workspace packages build clean
- memory-list-teardown-3226.test.ts, task-cancel.test.ts,
task-status-header.test.ts, tui-command.test.ts: 22 passed, 3 skipped
Co-authored-by: r <r@x>
* fix(cli): drain memory teardown instead of forcing process exit
The bin wrappers called process.exit(0) as soon as cli.run() resolved. On Windows that raced the memory ControllerRegistry/sql.js teardown and intermittently aborted with a libuv UV_HANDLE_CLOSING assertion after memory list had already printed its rows, turning a successful command into exit 127/0xC0000409 (#3226).
Call shutdownBridge() to release the ControllerRegistry, preserve any exit code the command set, and let the event loop drain. The ruflo wrapper gets the same treatment. Add a bin-level regression test that spawns both wrappers repeatedly against a sql.js store and also checks that a one-shot write still terminates.
* test(cli): keep the teardown regression test self-contained
Drop local-only bin overrides so the test uses the checked-out wrappers exactly as CI does. The prebuilt-install run was only a source-worktree verification aid.
Patch release bundling two task-command correctness fixes:
- task cancel: task_cancel claimed success (and printed "Previous
status: undefined") for a task id that doesn't exist or is already
completed/failed/cancelled, and overwrote a finished task's result
with the cancel reason. It now returns previousStatus, refuses to
touch a finished task, and the CLI exits 1 instead of printing
"cancelled" for either case (#4331).
- task status: the status box was titled "Task: undefined" for every
task — the command read result.id, but task_status returns taskId,
the field every other task tool uses (#4332).
Validated: both PRs' new test files (task-cancel.test.ts,
task-status-header.test.ts) pass (6/6), pnpm -r build clean, tsc
--noEmit clean, audit-umbrella-version-lockstep and
audit-leaf-versions-published both clean before publish.
Co-authored-by: r <r@x>
Patch release: npx ruflo tui now defaults mouse clicking on, instead of
requiring --mouse (#4328). --mouse had been opt-in since ADR-489 with
only a one-time startup notice (#4305), but users kept reporting that
clicking did nothing. --no-mouse remains available for terminals where
SGR mouse reporting fights native text selection.
Validated: v3/@claude-flow/cli/__tests__/tui-command.test.ts (16/16),
plugins/ruflo-console tests/tui-parity.spec.ts + tests/tui-nav.spec.ts
(30/30, confirming the runTui library's own default is unchanged for
every other caller), full pnpm -r build clean, tsc --noEmit clean.
Also verified live against the previously-published ruflo@3.59.0 with
a real pty: a raw SGR mouse-click escape sequence at the page-bar row
with --mouse passed switched the page.
audit-umbrella-version-lockstep and audit-leaf-versions-published both
clean before publish.
Co-authored-by: r <r@x>
--mouse was opt-in with a one-time startup notice (#4305), but users kept
reporting clicking does nothing without reading it. Flip the CLI's own
default to on; the runTui library itself still defaults mouse off
unchanged, so every other caller/test is unaffected — only the real
`ruflo tui` invocation now passes mouse:true unless --no-mouse is given.
--no-mouse remains for terminals where SGR mouse reporting fights native
text selection (the original tradeoff this flag exists for).
Co-authored-by: r <r@x>
Minor release (new backward-compatible flags: Grok Build CLI host
surface #3512, memory list/search tag filter #3526) bundled with a
round of correctness fixes merged since 3.58.1: memory delete-sync
(#4138), real AgentDB HNSWIndex replacing the dead getController('hnsw')
path with safe exact-search fallback (#4249/#4322), harness live-process
reporting (#3521), RaBitQ on-demand index build (#4318/#4319),
metaharness ADR-152 cost-dimension and verdict-band fix (#3520), swarm
idle-agent heartbeat false-positive (#4320), ephemeral-agent termination
idempotency (#4323), status/task_list field-mapping and total-count
fixes (#4321/#4324).
Also fixes the actual cause of broken images/links on
npmjs.com/package/ruflo: `ruflo/package.json`'s `repository.directory:
"ruflo"` field added an extra path layer on top of the README content
(the root README.md, copied in verbatim by `prepublishOnly` at publish
time, which is already written with repo-root-relative paths) — every
relative image/link resolved to e.g. `raw/main/ruflo/ruflo/assets/...`
instead of `raw/main/ruflo/assets/...`. Removed the `directory` field to
match claude-flow's own (directory-less) repository entry. A prior PR
(#4325) fixed `ruflo/README.md`'s own relative paths for anyone browsing
that file directly on GitHub, but that file is overwritten by the root
README at publish time and was never the actual npm-rendered content.
Published to npm: @claude-flow/cli@3.59.0, claude-flow@3.59.0,
ruflo@3.59.0, and standalone @claude-flow/memory@3.0.8 (the #4249 fix —
not part of the 3-package train, published separately per its own
leaf's npm presence). All three umbrella packages' latest/alpha/v3alpha
dist-tags verified pointing at 3.59.0.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(memory): adapt real AgentDB HNSWIndex with safe fallback
Verify actual native search, mutation lifecycle, concurrency and exact fallback.
Include source-bound regression and bounded benchmark evidence for #4249.
No persistence or package-release claim.
* fix(memory): preserve expiry and vector ownership across native search
Keep TTL-bearing semantic queries exact and detach stored/returned vectors.
Snapshot query vectors before awaits. Add three real-native regressions and
refresh the verification receipt: 645 tests pass; disclose transient timing miss.
* fix(memory): bump @claude-flow/memory to 3.0.8 for the real HNSW adapter
#4249's leaf-package-publish audit correctly flagged that
agentdb-backend.ts/agentdb-hnsw-adapter.ts changed source but the
package version was still 3.0.7. Bumps the leaf, the CLI's exact pin,
and the pnpm-lock.yaml specifier together so the fix actually ships.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* fix(swarm): make ephemeral agent termination idempotent
FederationHub terminateAgent() counted every call, completeAgent() counted again if followed by termination, and unregisterSwarm()/TTL cleanup re-terminated already settled agents. Guard terminated agents and skip stat/event/lifespan accounting when completion was already counted; make completeAgent() idempotent.
* test(ci): stabilize two unrelated full-suite checks
message-bus.event-driven waited a fixed 2ms for the first retry invocation; under a loaded worker it can arrive later. Poll for the invocation with a bounded timeout instead. mods-cli-bin skipped only on bin/cli.js, which always exists; require the built dist/src/index.js so source-only checkouts skip the built-CLI suite rather than failing it.
Review follow-up to #4318, which merged without coverage for two branches that
ensureRabitqIndex() relies on.
A missing @ruvector/rabitq-wasm now has a test: the first attempt fails and
sets autoBuildDisabled, and a second call ten minutes later (past the 60s
throttle) performs no further import, so the flag - not the throttle - is what
stops the retries.
Four concurrent ensureRabitqIndex() calls on a cold index: exactly one starts
the build, the index ends up with the right vector count, and it serves
searches afterwards.