Commit Graph
1689 Commits
Author SHA1 Message Date
rUv ca74bd4f79 Merge pull request #3967 from rudycelekli/fix/active100-ruflo-screen-20261010
fix(tasks): synchronize workers when task_update reassigns a task
2026-10-10 08:03:12 -07:00
rUv 24774b9087 Merge pull request #3951 from ruvnet/fix/plugin-upgrade-trust-gate
fix(plugins): apply the #3557 trust policy on plugins upgrade (security review in PR comments)

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-10 07:51:09 -07:00
rUv c75a1ed34c Merge pull request #3955 from ruvnet/fix/node24-better-sqlite3-abort
fix(memory): open AgentDB with our better-sqlite3 so Node 24 does not abort
2026-10-10 07:50:41 -07:00
rUv 2145a31f0d Merge pull request #3958 from ruvnet/fix/agentic-flow-root-import
fix(cli,integration): never import the agentic-flow root entry (it runs agentic-flow's CLI)
2026-10-10 07:50:39 -07:00
rUv 840c716115 Merge pull request #3947 from ruvnet/chore/retire-legacy-agentic-qe-plugin
chore(plugins): retire legacy agentic-qe shim and fabricated demo registry entry
2026-10-10 07:50:35 -07:00
Rudy Celekli 02f4c87dd9 fix(tasks): validate reassignment and preserve retained worker ownership
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
2026-10-10 10:30:31 -04:00
Dragan Spiridonov c536e77fda fix(memory): reroute the stale-lock retry AgentDB too; memory 3.0.4
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.
2026-10-10 09:49:07 +02:00
Dragan Spiridonov d4458abdff fix(memory,cli): keep the CLI's better-sqlite3 handles on AgentDB's copy
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.
2026-10-10 09:44:50 +02:00
Rudy Celekli 7ce0efe815 fix(workflows): validate the agent bindings used by the runtime
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
2026-10-09 22:46:36 -04:00
Rudy Celekli 3b66a3abbd fix(tasks): synchronize workers when task_update reassigns a task
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
2026-10-09 22:46:34 -04:00
randRuFlo 01fa240e7c wip(memory): agentdb alpha.20 floor + sql.js lock/concurrency guard
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-09 17:17:36 -04:00
Dragan Spiridonov 74669662f7 fix(cli,integration): never import the agentic-flow root entry
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.
2026-10-09 20:54:48 +02:00
Dragan Spiridonov e0f2e83a33 fix(plugins): apply the #3557 trust policy on plugins upgrade
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.
2026-10-09 20:07:35 +02:00
Dragan Spiridonov 8e7a8e90dc chore(plugins): retire legacy agentic-qe shim and its demo registry entry
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
2026-10-09 19:46:52 +02:00
Dragan SpiridonovandRuflo & AQE bc14216777 fix(task,console): task_update accepts only the five statuses; a task stored as "complete" is never shown pending or re-dispatched
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
2026-10-09 15:54:18 +02:00
rUv 6287f19938 Merge pull request #3901 from rudycelekli/fix/config-reset-section-20261007
fix(config): preserve unrelated sections during targeted reset
2026-10-08 20:42:02 -07:00
rUv f49ddd4f78 Merge pull request #3923 from ruvnet/fix/3918-encrypted-store-rewrite
fix(cli): ensureSchemaColumns no longer rewrites an up-to-date (encrypted) store (#3918)
2026-10-08 20:25:40 -07:00
rUv 9f8e37dac3 Merge pull request #3922 from ruvnet/fix/3919-policy-anchor-home
fix(cli): policy trust mirror/key honour HOME and XDG_CONFIG_HOME (#3919)
2026-10-08 20:25:37 -07:00
rUv 1a84aece9e Merge branch 'main' into fix/config-reset-section-20261007 2026-10-08 20:10:18 -07:00
randRuFlo 6625465a50 fix(cli): ensureSchemaColumns rewrites the store only when something changed (#3918)
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>
2026-10-08 22:50:40 -04:00
randRuFlo 1c10601716 fix(cli): policy trust mirror and key honour HOME/XDG_CONFIG_HOME; guardrail test runs in a scratch project (#3919)
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>
2026-10-08 22:47:14 -04:00
rUv 7ae3a6481e Merge branch 'main' into fix/config-reset-section-20261007 2026-10-08 19:46:50 -07:00
rUv 438f9189fb Merge branch 'main' into fix/config-cli-mcp-interop-20261007 2026-10-08 19:46:47 -07:00
randRuFlo e201290385 style(memory): move append-conditions imports below the file header (#3750 review nit)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-08 16:56:05 -04:00
r fa7e4a966c Merge branch 'pr-3750' into feat/release-3.56.0-batch 2026-10-08 16:55:50 -04:00
r d821c22653 Merge branch 'pr-3498' into feat/release-3.56.0-batch 2026-10-08 16:55:50 -04:00
r be5da99198 Merge branch 'pr-3904' into feat/release-3.56.0-batch 2026-10-08 16:55:50 -04:00
r a52b7877a1 Merge branch 'pr-3505' into feat/release-3.56.0-batch
# Conflicts:
#	v3/@claude-flow/cli/src/mcp-tools/workflow-tools.ts
2026-10-08 16:55:21 -04:00
r 8129a3d6f7 Merge branch 'pr-3495' into feat/release-3.56.0-batch
# Conflicts:
#	v3/@claude-flow/cli/src/mcp-tools/agent-execute-core.ts
2026-10-08 16:55:05 -04:00
r 3fb09bc31c Merge branch 'pr-3528' into feat/release-3.56.0-batch 2026-10-08 16:54:43 -04:00
r c2fc22ef1e Merge branch 'pr-3506' into feat/release-3.56.0-batch 2026-10-08 16:54:35 -04:00
r 9abd649b79 Merge branch 'pr-3502' into feat/release-3.56.0-batch 2026-10-08 16:54:35 -04:00
r 92c93ae9a8 Merge branch 'pr-3501' into feat/release-3.56.0-batch 2026-10-08 16:54:35 -04:00
r a187611c17 Merge branch 'pr-3500' into feat/release-3.56.0-batch 2026-10-08 16:54:35 -04:00
r a6e1cf3d93 Merge branch 'pr-3499' into feat/release-3.56.0-batch 2026-10-08 16:54:35 -04:00
r 27ed89b06d Merge branch 'pr-3497' into feat/release-3.56.0-batch 2026-10-08 16:54:35 -04:00
r 77a187aa41 Merge branch 'pr-3496' into feat/release-3.56.0-batch 2026-10-08 16:54:35 -04:00
r 9f2ce096d2 Merge branch 'pr-3494' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r b0e730d07c Merge branch 'pr-3493' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r f6f6d68548 Merge branch 'pr-3492' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r 5668f4c87b Merge branch 'pr-3491' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r e34e742e0f Merge branch 'pr-3490' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r feb362921e Merge branch 'pr-3489' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r 2083853282 Merge branch 'pr-3488' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r 729bb70d5f Merge branch 'pr-3484' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r 63a252fe9e Merge branch 'pr-3586' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r 4a133615c7 Merge branch 'pr-3523' into feat/release-3.56.0-batch 2026-10-08 16:54:34 -04:00
r 213c5c5635 Merge branch 'pr-3903' into feat/release-3.56.0-batch
# Conflicts:
#	v3/@claude-flow/cli/src/services/memory-backup.ts
2026-10-08 16:54:34 -04:00
r 0c824cd845 Merge branch 'pr-3907' into feat/release-3.56.0-batch 2026-10-08 16:54:20 -04:00
r 649c6c961b Merge branch 'pr-3910' into feat/release-3.56.0-batch 2026-10-08 16:54:20 -04:00