Rebased onto main, where ControllerRegistry and AgentDBBackend build AgentDB
inside withAgentdbLockRecovery(); useHostSqliteDriver() now runs inside that
closure right after each `new AgentDB`, so the instance a stale-lock retry
creates also opens its handle with getHostSqliteDriver(). Tests drive the
retry path for both sites.
@claude-flow/memory 3.0.3 was published by 3.56.3 without the driver, so
this ships as 3.0.4 and the CLI pins 3.0.4. The #3693 memory-owner test
now reports a skip when no native addon is available instead of passing.
Follow-up to the AgentDB driver change. shared-sqlite.ts (#3693/#3883)
resolved better-sqlite3 from agentdb's location so CLI handles share
AgentDB's native copy. With AgentDB now opened through
@claude-flow/memory's better-sqlite3, that put graph-edge-writer, the
memory-initializer repair paths, backup restore, distillation, tuning and
the attestation log back on agentdb's nested 11.x: `hooks post-task` still
loaded both addons (and aborted on Node 24), and mixing copies on one file
can delete the -wal/-shm sidecars under AgentDB's live handle.
- @claude-flow/memory exports getHostSqliteDriver(), the one source of the
constructor; useHostSqliteDriver() opens AgentDB with it and reports
whether it replaced the loader.
- shared-sqlite resolves better-sqlite3 from @claude-flow/memory when the
installed memory carries agentdb-native-driver.js, else from agentdb as
before, so either memory version keeps one copy per process.
- @claude-flow/memory 3.0.3, CLI pin 3.0.3 (leaf-publish gate).
Tests: identity between AgentDB's handle constructor and
loadBetterSqlite3(); #3693 owner model for the memory holder and the
pre-3.0.3 fallback; both AgentDB construction sites; routing against a
real nested copy; a drift guard on agentdb's initializeDatabase contract.
agentic-flow 3.0.0-alpha.1/.2 call their CLI main() at the bottom of
dist/index.js with no is-main guard (2.x has one). Importing the root as a
library therefore parses the host's process.argv: with `--help` it prints
agentic-flow's help and exits the host, with `mcp start` it would start its
MCP server, and with no agentic-flow flag it runs its demo agents with
whatever model credentials are in the environment, plus a health server on
:8080 and a runtime patch that rewrites files under node_modules.
The root import was only ever a fallback or a probe for exports that no
published root has (`embeddings`, `createAgenticFlow`, `VERSION`,
`configTuning`; checked 2.0.14, 2.1.4, 3.0.0-alpha.1/.2):
- cli memory-initializer: drop the dead root `embeddings` fallback.
- cli hooks token-optimize: drop the root availability fallback; the root
re-exports the same reasoningbank module the subpath check already loads.
- integration TokenOptimizer: detect agentic-flow from the reasoningbank /
agent-booster subpaths instead of the root.
- integration AgentAdapter, SwarmAdapter, AgenticFlowBridge: stop importing
the root for a `createAgenticFlow` factory no release exports; keep the
existing local-implementation path and events.
- integration SDKBridge: use the baseline version instead of a root VERSION
export that does not exist.
- Point the "for ML embeddings" comments at agentic-flow/reasoningbank.
The regression test runs the CLI source in a child process with loader
hooks that replace the root entry with a marker, and scans v3 sources for
any root-entry import.
PluginManager.upgrade copied the new version's claude-flow hooks and
commands straight into the manifest, so hooks withheld at install were
registered on upgrade, and an upgrade to a version declaring elevated
permissions was never gated. It also kept running npm lifecycle scripts
for any install recorded with scriptsRun:true (including legacy entries),
even though that flag can come from unverified registry vouching.
- Re-run applyTrustPolicy on the upgraded package.json; record trust,
permissions, withheld hooks/commands and verification like install does.
- Install the new version with --ignore-scripts unless --trust is passed for
this upgrade; the original install's trust is not carried over.
- `plugins upgrade` gains --verify/--no-verify and --trust, and reports
skipped scripts and withheld hooks.
v3/plugins/agentic-qe (@claude-flow/plugin-agentic-qe) re-implemented
quality-engineering tools behind Zod schemas and never imported the real
agentic-qe package; its package.json (3.0.0-alpha.5) and plugin.yaml
(3.5.59) disagreed and it had not changed since May. Nothing in the
workspace, CI, or CLI imports it.
- remove v3/plugins/agentic-qe
- drop its built-in demo registry entry (fabricated CID/checksum and
security-audit claim) and its featured/trending/newest/official ids
- drop it from publish-registry's package list
- point docs at the maintained agentic-qe npm package and the
agentic-qe-fleet Claude Code plugin; mark ADR-030 superseded
- test: demo registry has no shim entry and curates only listed ids
task_update stored any string as a task's status, so an agent writing
"complete" left a finished task every reader misread: the ruflo-console
Automation kanban listed it under PENDING (offering assign/cancel), and
Mission Control derived it as ready, so nextTask() would hand finished work
to Claude again as a new billed turn.
CLI (mcp-tools/task-tools.ts)
- statusOf(): trimmed, case-insensitive, aliases complete/done/canceled/
running/in-progress; anything else (incl. "" and prototype keys) is
refused with the allowed list and the task is left unchanged.
- No schema enum on purpose: the HTTP/WebSocket registry validates enums
before the handler, which would refuse aliases there but not over stdio.
- Completing through task_update now finishes the task as task_complete
does (progress 100, completedAt, worker idle and counted once per
hand-out); cancelling frees workers as failing already did. Worker
effects run after the task store is saved.
Console
- taskStatusOf() reads the spellings older CLIs already stored; used by the
kanban lanes and verbs, Mission Control derive (no re-dispatch), mission
cancel, workflow links and the workflow guide.
Co-Authored-By: Ruflo & AQE
Claude-Session: https://claude.ai/code/session_01CGoza3gyxBjpaiMPhGHcHs
The status backfill set modified=true even when the UPDATE touched 0 rows, so
every open of an up-to-date store re-exported and rewrote the whole image; with
encryption at rest each write uses a fresh nonce, so read-only commands such as
'memory stats' changed the RFE1 bytes every call. Gate on getRowsModified().
Co-Authored-By: RuFlo <ruv@ruv.net>
The anchor mirror and trust key were resolved with userInfo().homedir, which
ignores a throwaway HOME, so tests wrote into the developer's real
~/.config/ruflo/policy-trust and later failed closed on a reused path.
Resolve from the environment at call time (XDG_CONFIG_HOME when absolute,
else os.homedir()/.config; legacy location kept for XDG users who already
have trust state there). mcp-client-guardrail.test.ts now uses a scratch
cwd and HOME.
Co-Authored-By: RuFlo <ruv@ruv.net>