Commit Graph
7783 Commits
Author SHA1 Message Date
ruv 91ea1b524e fix(memory): disclose the sibling AgentDB store on partial hits too (#3566)
`memory search` and `memory retrieve` disclosed the sibling AgentDB store
(.swarm/agentdb-memory.db, written by the MCP path) only in their
empty-result branches, so a partial hit ("Found 1 results") read as
complete while the other store's rows went unread. The disclosure now
runs on every search path (semantic, hybrid, keyword-only, text and
JSON) and on a found retrieve, worded as "Partial result: N matches
came from the store read here". Warnings go to stderr, so --format json
and --value-only stdout stay parseable.

Also: `memory import` reported "Vectors: 0" while every value was
re-embedded. The memory_import tool now counts the vectors storeEntry
actually wrote.

Fixes #3566

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-30 17:56:03 -04:00
rUv 3bcf7e96a9 Merge pull request #3574 from ruvnet/release/plugins-3.0.1
chore(release): @claude-flow/plugins 3.0.1 (gnn.ts SQL-injection fix)
@claude-flow/plugins@3.0.1
2026-09-30 17:03:08 -04:00
ruv 23672dc649 chore(release): @claude-flow/plugins 3.0.1
Ships the gnn.ts SQL-injection fix (#3531, merged in #3564) to npm. The
registry's 3.0.0 predates the fix and still interpolates node ids and
schema/table/column identifiers into executed SQL.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-30 16:54:06 -04:00
rUv a3dee4ff8b fix(plugins): parameterize gnn.ts SQL generation to close SQL injection gap (#3564)
BaseGNNLayer.toSQL, GraphOperations' kHopNeighborsSQL/shortestPathSQL/
pageRankSQL/communityDetectionSQL, and GNNSQLGenerator's static SQL
builders interpolated schema/table/column identifiers and node id/
algorithm string values directly into executed SQL. TypeScript types
are erased at runtime, so any caller passing through untrusted input
reached executed SQL (CWE-89).

Adds sqlIdent/sqlLiteral/sqlNumber/sqlInt/sqlJson/sqlParamPrefix
helpers mirroring attention.ts's existing sqlNumber/sqlBool hardening
(PR #3530): identifiers are validated against ^[A-Za-z_][A-Za-z0-9_]*$
and quoted, string values are single-quote-escaped, numeric params are
validated finite/integer, and JSON config blobs are escaped before
embedding in a jsonb literal (a `'` inside a config value could
previously break out of the surrounding SQL string).

Adds __tests__/gnn-sql-injection.test.ts (24 tests, mirroring the
existing attention-sql-injection.test.ts pattern): byte-identical SQL
for legitimate input, and a TypeError for each malicious identifier/
value/numeric field. Verified baseline-fails/candidate-passes via
stash isolation (22/25 new tests fail against the unpatched file, all
pass against the fix). Full plugins suite: 473 passed/3 skipped both
before and after, tsc --noEmit clean.

Fixes #3531
2026-09-30 10:22:00 -04:00
rUv 49da6ecc44 Merge pull request #3554 from ruvnet/docs/readme-drop-flo-goal-links
docs(readme): remove flo.ruv.io and goal.ruv.io
2026-09-29 14:41:13 -04:00
ruv 9ce71021d7 docs(readme): remove flo.ruv.io and goal.ruv.io
Drop the flo.ruv.io and goal.ruv.io badges, the two capability-table rows,
and the Web UI (Beta) and Goal Planner UI showcase sections from the README
and its mirrors (README.zh-CN.md, ruflo/README.md, the npm-published
v3/@claude-flow/cli/README.md). The apps' own READMEs (ruflo/src/ruvocal,
v3/goal_ui) are unchanged.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-29 14:39:50 -04:00
rUv 2a3d407f50 Merge pull request #3551 from ruvnet/fix/ci-flake-reasoningbank-and-macos-gyp
fix(ci): deterministic browser pattern ids (flaky test) + macOS node-gyp Python
2026-09-29 13:21:13 -04:00
ruv 07fc94197a fix(ci): deterministic browser pattern ids; macOS node-gyp Python for Build V3
reasoningbank-adapter: generatePatternId() appended Date.now(), so a repeated
successful trajectory merged into its existing pattern only when both calls
fell in the same millisecond. Otherwise it created a duplicate pattern with
usageCount 1 (the adapter never learned from repeats), and the
"update existing pattern" test failed intermittently in CI. The id is now a
pure function of the goal (slug + FNV-1a of the full normalized goal). A new
test pins Date.now to two different values; it fails on the old code.

v3-ci Build V3 (macos-latest): when the better-sqlite3/hnswlib-node prebuild
download times out, node-gyp compiles from source and macos-latest's Python
3.12 has no distutils. Pin Python 3.11 on macOS so the fallback works.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-29 12:54:20 -04:00
rUv 1e814f47a6 fix(ai-team): enlarge workspace rail and restore evidence view (#3550) 2026-09-29 12:41:03 -04:00
rUv 45dcdc76a1 feat(ai-team): unify ChatGPT workspace navigation (#3549) 2026-09-29 12:34:09 -04:00
rUv f208bdf633 feat(ai-team): style board as ruOS desktop workspace (#3546) 2026-09-29 12:17:14 -04:00
rUv 3c8141dbc7 Merge pull request #3540 from ruvnet/fix/baseline-x-gateway-claude-directory-test
ci: baseline x-gateway claude-directory test (main Test Suite red since #3534)
2026-09-29 12:10:35 -04:00
rUv da315a834c feat(ai-team): add ChatGPT team board and run completion (#3545) 2026-09-29 12:07:33 -04:00
rUv 9016dd6720 fix(ai-team): verify ChatGPT MCP resource audience (#3544)
* fix(ai-team): verify ChatGPT MCP resource audience

* fix(ai-team): keep public MCP discovery available with stale bearer
2026-09-29 11:19:55 -04:00
ruv 2dccf29085 ci: baseline x-gateway claude-directory node:test file (main Test Suite red since #3534)
#3534 added plugins/ruflo-x-gateway/test/claude-directory.test.mjs, a
node:test file. Root vitest finds no suite in it and the ratchet fails on
main and on every PR since. Same treatment as its three sibling files; the
plugin's own `npm test` passes 84/84.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-29 09:51:23 -04:00
rUv fce8e6da5a feat(plugin): add multi-tenant RuFlo AI Team service (#3536)
* feat(plugin): add multi-tenant RuFlo AI Team service

* fix(plugin): isolate AI Team validation from root test discovery

* fix(plugin): document deployment option precedence

* fix(plugin): satisfy Claude directory manifest and tool scoping

* fix(plugin): isolate Claude directory review bundle

* fix(plugin): include Claude MCP endpoint declaration

* docs(plugin): complete Claude directory listing links

* docs(plugin): disclose personal data and retention

* feat(plugin): publish complete RuFlo Claude marketplace
2026-09-28 23:32:27 -04:00
rUv 124196478d fix(gateway): make Claude tool descriptions directory compliant (#3535) 2026-09-28 22:18:51 -04:00
rUv 795058ba18 feat(gateway): add Claude directory MCP profile (#3534) 2026-09-28 22:01:24 -04:00
rUv bd42d873b0 Merge pull request #3530 from ruvnet/chore/stable-leaf-versions
release 3.48.0: stable internal @claude-flow/* leaves + land 3.47.0 federation registration on main
v3.48.0
2026-09-28 19:10:59 -04:00
ruv af6d49a3bd release 3.48.0: re-sign helper manifest, re-anchor witness, baseline x-gateway registration test
- helpers.manifest.json re-signed for 3.48.0
- witness #1825 marker re-anchored to `"@claude-flow/memory": "3.` (the
  stable pin removed the `3.0.0-alpha.` string it quoted); all three OS
  manifests regenerated on a clean, fully built tree: 117/117 each
- plugins/ruflo-x-gateway/test/registration.test.mjs joins its siblings in the
  ratchet baseline: root vitest cannot resolve the plugin's own deps
  (nostr-tools). Its own `npm test` passes 74/74. This was the only CI failure
  on #3510.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-28 17:20:09 -04:00
ruv 2764e49173 release 3.48.0: stable internal leaves + guarded federation registration (3.47.0) on main
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-28 17:17:36 -04:00
ruv 0423eaf7fb fix(release): preserve archives and refresh version witnesses 2026-09-28 17:16:02 -04:00
ruv e69bc340cf feat(federation): add guarded public registration and release 3.47.0 2026-09-28 17:16:02 -04:00
ruv 643f415db3 chore(release): point consumers at the stable internal leaves
All 18 internal @claude-flow/* leaves are now published at stable versions
(3.0.0; cli-core 3.7.0; plugin-agent-federation and plugin-iot-cognitum 1.0.0).
This moves every consumer onto them:

- cli: exact pins to the stable leaves (deps + optionalDeps)
- root package.json and codex: same
- audit-leaf-package-publish: drop the shared waiver, now resolved
- v3/.npmrc: prefer-workspace-packages=true. Without it pnpm replaced
  link:../cli with registry cli@3.47.1 (released from a branch not on main)
  and pulled its alpha cli-core/neural/memory deps into the lockfile.
- both lockfiles regenerated; only @claude-flow entries change
- CLAUDE.md: leaves follow the stable policy (embeddings excepted), the
  bundled four are dual-distributed, files allowlist / no publishConfig.tag
  rule, and the lockfile no longer proves a leaf was published

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-28 17:13:43 -04:00
ruv 7307d1d86a chore(release): move 18 internal leaf packages from alpha to stable semver
Every @claude-flow/* leaf still on X.Y.Z-alpha.N moves to its stable X.Y.Z
(3.0.0, cli-core 3.7.0, the two plugins 1.0.0), matching the public train's
move to stable at 3.7.0. @claude-flow/embeddings is deliberately excluded:
its registry `latest` (3.0.0-alpha.45) was built from a branch not on main,
and publishing from main would drop 139 exported names.

Validated before publish:
- API surface: each package's main build compared against its published
  `latest` tarball (files, exports/bin keys, exported names). All 18 are
  equal-or-superset; no export removed.
- Every package builds; ~7.8k tests across 17 suites pass (cli-core has no
  suite of its own and is exercised through the CLI's).

Packaging fixes made along the way:
- publishConfig.tag v3alpha/alpha removed so stable versions land on
  `latest` rather than only the legacy channel tag.
- `files` allowlists (dist + README) on the 7 packages that had none. Their
  published tarballs shipped local runtime state: .claude-flow daemon logs
  and pids, settings.json, .swarm/memory.db, headless-worker prompt logs.
  A secret scan of every affected published version found no credentials.
  mcp shrinks from 335 files to 70, and no longer ships the .claude/
  helpers copy that #3411 concerned.
- plugins/providers/testing pointed every `types` condition at a
  nonexistent `.d.js` file; now `.d.ts`, so consumer type resolution works.
- Removed three subpath exports whose targets were never built (plugins
  ./examples/*, performance ./benchmarks/*); they could only throw
  ERR_MODULE_NOT_FOUND.
- Intra-leaf ranges normalised to ^<stable>, including a `file:../security`
  and a `workspace:*` devDependency that npm publish would ship verbatim.

Security: harden attention toSQL against injection (plugins)
The 13 attention SQL builders interpolated caller-supplied vectors and
config values into SQL that AttentionExecutor executes. TypeScript types do
not exist at runtime, so a string element could break out of the quoted
vector literal. Every interpolated value is now proven finite-numeric or
boolean. A differential run of 195 legitimate inputs across all 13
mechanisms produced byte-identical SQL; the new test fails 11/13 on the
original code (which emitted DROP TABLE for 5 payloads) and passes 13/13.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-28 16:54:24 -04:00
rUv b636802d8c Merge pull request #3514 from rudycelekli/fix/analyze-import-redos-3511
fix(analyze): prevent import parser ReDoS on ordinary source text
2026-09-28 15:47:50 -04:00
rUv 3dce4664dd fix(gateway): align ChatGPT tool annotations with behavior (#3525)
Correct all four MCP hint classifications for the multi-owner federation relay, synchronize submission justifications, and add regression coverage.
2026-09-28 12:17:21 -04:00
rUv fa61df2ef2 fix(hive-mind): dispatch submitted tasks to workers and record results (#3524)
Three defects kept a hive task pending with its worker idle forever:

1. Nothing consumed the queue. `hive-mind task` only wrote a pending row;
   workers are records, not processes. New `hive-mind work` claims the
   oldest pending hive task, assigns it to an idle hive worker, runs it
   through `claude -p --output-format json`, and records the outcome via
   task_complete (or task_update status=failed).

2. task_assign/task_complete/task_cancel synced only
   `.claude-flow/agents/store.json`, but hive workers live in
   `.claude-flow/agents.json` (#1916). Assignment never marked a hive
   worker busy and completion never counted it. They now update
   whichever store holds the agent. task_update gains `result` and
   frees workers on `failed`.

3. `spawn --claude` fell back to passing `~/.claude.json` as
   --mcp-config. Where that file has no top-level `mcpServers` (a fresh
   desktop), Claude exits with "Invalid MCP configuration: mcpServers:
   Invalid input". The worker config is now always generated: servers
   are extracted from the source config, a `ruflo` server pinned to the
   running CLI is guaranteed, and CLAUDE_FLOW_CWD points it at the
   dispatcher's stores.

Also fixes the "Track with: hive-mind task-status" hint, which named a
subcommand that does not exist.
2026-09-28 11:38:57 -04:00
rUv 635bbff020 Merge pull request #3515 from rudycelekli/fix/security-scan-machine-output-3511
fix(security): produce valid JSON and SARIF scan output
2026-09-28 11:24:57 -04:00
Rudy Celekli 80460a5e5e test(analyze): cover each supported import clause shape 2026-09-28 02:30:22 -04:00
Rudy Celekli 62265fa4ce test(analyze): isolate cached graph fixtures by unique directory 2026-09-28 02:19:46 -04:00
Rudy Celekli 1a9c5b678d test(analyze): resolve tsx across workspace install layouts 2026-09-28 02:19:00 -04:00
Rudy Celekli 650af44d22 fix(security): honor JSON and SARIF scan output formats 2026-09-28 02:15:56 -04:00
Rudy Celekli 153c7bcd04 fix(analyze): prevent exponential import regex backtracking 2026-09-28 02:10:56 -04:00
rUv b14c79e6f7 Merge pull request #3487 from ruvnet/integrate/community-fixes-2026-09-27
fix: integrate 37 community bug fixes (memory, config, mcp, adr, learning, tasks, sessions)
2026-09-27 16:02:47 -04:00
ruv 8761c96a27 fix(ci): warm up the AgentDB registry before ADR-130 P3's timed assertions
graph-trajectory-hooks-smoke failed 3/3 times in CI on unmodified #3467
code (reverted my own unrelated attempt at a fix in the process — see
prior commit). Root cause identified: bridgeRecordFeedback()'s first-ever
call opens the AgentDB ControllerRegistry (new ControllerRegistry().
initialize({ embeddingModel: ... })), which resolves/attempts the ONNX
embedding pipeline before falling back to mock embeddings — a real,
one-time-per-process bootstrap cost. TEST 1 (trajectory-step on a
never-started trajectory) never reaches that code path, so TEST 2
(post-task) was the first and only call to pay it, entirely inside its
own <200ms budget: ~1000-1250ms on GitHub Actions' cold filesystem
cache, 20-46ms locally with a warm one. Added an explicit, untimed
warm-up call before TEST 1 begins so the one-time cost is paid during
setup, matching how a real long-lived Ruflo session actually behaves
(bootstrap once at startup, not per call). Verified 3/3 clean local
runs post-fix, TEST 1 now measuring 1-2ms (down from paying the same
hidden cost intermittently).
2026-09-27 15:52:07 -04:00
ruv 850bd7991e Revert "perf(hooks): restore the in-memory fast path for trajectory lookups"
This reverts commit 5a45b76c8. The fast-path broke trajectory-recovery-3199's
own regression test ("reloads a clean cache after another process adds a
step"): with vi.resetModules() simulating separate processes, a first
process's clean-but-now-stale in-memory copy would win over the freshly
persisted cross-process step, since the fast path never re-read disk when
the local cache was merely clean rather than empty. That's the exact
scenario #3467 was written to fix — the "cost" the fast path removed was
the correctness guarantee, not just overhead. Local runs of the
unmodified #3467 code average 20-46ms on graph-trajectory-hooks-smoke's
200ms budget; the one observed 1171ms CI failure is far more likely
explained by that round's runner queue (this same PR's other jobs sat
queued 40+ minutes on ordinary infra load) than a real regression.
2026-09-27 15:24:21 -04:00
ruv 5a45b76c80 perf(hooks): restore the in-memory fast path for trajectory lookups
#3467 made loadPendingTrajectory() always do two DB reads (completed +
pending) before returning, even when the trajectory is already tracked
cleanly in-process — turning every trajectory-step/post-task call into
a synchronous round-trip instead of a Map lookup. CI's
graph-trajectory-hooks-smoke (ADR-130 P3, <200ms budget) failed once on
a loaded runner at 1171ms; local runs stayed at 20-46ms, so this was
likely a transient load spike, but the always-hit-disk path was real
overhead regardless. Skip both reads when the id is already a clean
(non-dirty) in-memory hit — the case #3467 didn't change (same-process,
not-yet-restarted). The disk-recovery path #3467 added still runs
exactly when it's needed: on a cache miss (e.g. after an MCP restart).
2026-09-27 15:07:49 -04:00
ruv 0d0ebbe305 fix(ci): add two new node:test-only ADR files to the vitest ratchet baseline
#3432 and #3437 add plugins/ruflo-adr/scripts/__tests__/import-root-exit-3097.test.mjs
and verify-read-safety-3147.test.mjs, both node:test-only (unlike
parser-relations-3096.test.mjs's dual-mode shim). Root vitest can't discover a
test suite in either, which the CI ratchet correctly flagged as 2 new
unexpected failing files. Same documented class as the plugin's four other
baselined test files (see the file's own comment on plugins/ruflo-x-gateway).
2026-09-27 13:40:58 -04:00
ruv 1d79068c56 fix(ci): repair CI regressions surfaced by the integrated community fixes
- plugins/ruflo-adr smoke step 20: #3432 correctly split the memory-db
  cwd into a more precise DB_ROOT (nearest .git/.swarm ancestor of ROOT),
  but the smoke check still only recognized the literal `cwd: ROOT`
  string. Accept `cwd: DB_ROOT` too.
- plugins/ruflo-core smoke step 6: #3428 replaced the old "pinned to
  v3.6" CLI compatibility line with an accurate description of the new
  resolve-installed-before-npx-fallback contract. Updated the smoke
  check to verify that contract's env vars are documented instead of a
  version pin that no longer exists.
- session-tools.ts: CodeQL flagged Math.random()-derived session IDs as
  insecure randomness in a security context, newly reachable through
  #3486's activate path. Switched both session ID generators to
  randomUUID(), matching the convention already used in mcp-server.ts
  and autopilot-state.ts.
2026-09-27 13:30:29 -04:00
ruv b23bf44820 chore(security): re-sign helpers manifest after helper content changes from #3433 2026-09-27 13:20:50 -04:00
ruv 2d8bab762f Merge PR #3486: fix(session): restore imported state before reporting activation 2026-09-27 13:15:52 -04:00
ruv 4dc4045111 Merge PR #3485: fix(memory): enforce TTL when retrieving and searching live rows 2026-09-27 13:15:52 -04:00
ruv b9f60a948c Merge PR #3483: fix(tasks): preserve current agent ownership during task retirement 2026-09-27 13:15:51 -04:00
ruv e62e96cc43 Merge PR #3482: fix(session): honor memory exclusion when exporting snapshots 2026-09-27 13:15:51 -04:00
ruv 6161543407 Merge PR #3481: fix(memory): evict cached entries after namespace purge 2026-09-27 13:15:50 -04:00
ruv 1be3f4ca37 Merge PR #3480: fix(memory): preserve namespace and key identity in entry cache 2026-09-27 13:15:50 -04:00
ruv b757009733 Merge PR #3479: fix(session): honor component selectors before restoring stores 2026-09-27 13:15:50 -04:00
ruv c53284abed Merge PR #3478: fix(tasks): align CLI assignment and listing with persisted handlers 2026-09-27 13:15:49 -04:00
ruv 3b379389e5 Merge PR #3477: fix(cli): preserve formatter receivers in threat and cycle reports 2026-09-27 13:15:49 -04:00