Commit Graph
4780 Commits
Author SHA1 Message Date
randRuFlo 8421e87322 chore(release): 3.75.3
@claude-flow/cli, claude-flow and ruflo 3.75.3. Carries #4905 (shared 3.0.8,
zod 4), #4947 (memory 3.3.1 pin), #4943, #4935, #4934, #4936 and #4938.
ruflo-graph-intelligence plugin 0.3.1 (the version audit ignores prerelease
tags, so 0.3.0 did not count as a raise over 0.3.0-alpha.1).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:09:19 -05:00
r baa3041a52 Merge remote-tracking branch 'origin/release/memory-3.3.1' into release/3.75.3 2026-11-10 14:08:38 -05:00
r 375070d0e1 Merge remote-tracking branch 'origin/weaver/ruflo-shared-zod4' into release/3.75.3 2026-11-10 14:08:38 -05:00
randRuFlo dad3aeb365 chore(swarm): 3.0.6 — Raft legacy requestVote vote-once and log checks (#4938)
Published to npm from this commit.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:06:49 -05:00
rUv b2f48e5a88 Merge pull request #4936 from NotZhu/fix/4750-require-pinned-key
fix(transfer): refuse self-declared keys when verification is required
2026-11-10 13:08:48 -05:00
randRuFlo e89236b0ec chore(memory): 3.3.1 — onInsightAccessed key lookup (#4942) + package metadata (#4932)
Bumps @claude-flow/memory to 3.3.1 and moves the CLI's exact pin. Must not
merge before @claude-flow/memory@3.3.1 is on npm (audit-leaf-versions-published).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 13:08:07 -05:00
r b6a2004307 Merge remote-tracking branch 'pr/4932' into release/memory-3.3.1 2026-11-10 13:06:21 -05:00
r 397a8932d1 Merge remote-tracking branch 'pr/4942' into release/memory-3.3.1 2026-11-10 13:06:20 -05:00
randRuFlo e3dbd8b216 chore(cli): pin @claude-flow/shared 3.0.8 (zod 4) in cli and root
shared 3.0.8 is on npm, built from this branch's head 824b38a75 (dist
byte-identical to a local build of that commit). The cli importer now
links the workspace shared; the orphaned registry shared@3.0.7 entry is
dropped from the pnpm lock.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 13:05:57 -05:00
rUv 6ba2aac474 Merge pull request #4938 from ruvnet/dream/2026-11-10-hive-mind
dream(hive-mind): RaftConsensus legacy requestVote() skips vote-once-per-term/log-up-to-date checks (evaluated, ACCEPT) #4937
2026-11-10 13:03:22 -05:00
rUv 3d62de7752 Merge pull request #4934 from lj1166/fix/4746-companion-write-safety
fix(init): publish companion helpers without following links
2026-11-10 13:02:44 -05:00
rUv 273018a7be Merge pull request #4935 from kevin9327/fix/task-update-reopen-completed-at
fix(tasks): clear completedAt when task_update reopens a finished task
2026-11-10 13:02:34 -05:00
rUv 384b1ff5d9 Merge pull request #4943 from Tong-bit-art/fix/doctor-driver-module-reset
test(doctor): reset modules before applying the driver mock
2026-11-10 13:02:19 -05:00
randRuFlo 9d1202e40c chore(release): 3.75.2
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 11:35:33 -05:00
randRuFlo 7cb8603b7f fix(release): ship zod 4 inside the bundled security package; release 3.75.1 (#4940)
@claude-flow/cli 3.74.1 and 3.75.0 (and the claude-flow umbrella) bundle
@claude-flow/security 3.0.7, which needs zod >=4.6.7, while the wrappers
keep zod 3. The staging script stripped the nested dependencies, so
security's `import 'zod'` resolved to zod 3 and the root export threw
`z.config is not a function`.

Declaring the dependency is not enough: npm never installs the
dependencies of a bundled package (checked against the 3.75.0 tarball).
The stager now vendors declared leaf dependencies into the bundled
package's own node_modules, checks the workspace copy satisfies the
declared range, and refuses a dependency that has dependencies itself.

The npx-install smoke now imports every bundled runtime package from the
installed CLI, so this fails CI instead of users.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 08:40:27 -05:00
马建彤 6b8dfa1a3a test(doctor): reset modules before applying the driver mock
The doctor Memory Persistence Driver suite can run after another file already imported doctor.ts in the same worker. Its vi.doMock('better-sqlite3') then does not affect the cached module, so the Memory Integrity check reports pass instead of the expected warn; the full CI ratchet has hit this intermittently.\n\nReset the module registry inside runDoctor() before importing doctor.ts, so the current test's mock always applies. The targeted binding-failure case passes; the rest of the file's local failures are the known Windows missing-native-binding environment.
2026-11-10 21:28:17 +08:00
PerryLink 39812bb5ed fix(memory): resolve insight keys in onInsightAccessed and update by entry id (#4911)
`onInsightAccessed()` resolved its argument with `backend.get(entryId)`, but
the bridge's callers address insights by the key they were stored under
(AutoMemoryBridge.storeInsightInAgentDB), while `createDefaultEntry` mints the
internal `entry.id` independently. A key lookup missed silently: no confidence
boost, no post-consolidation trajectory reopen. The same mismatch passed the
key to `backend.update()`, which expects the id.

Resolve with `getByKey(insightNamespace, entryId)` first and fall back to
`get(entryId)` for id callers, then update by `entry.id`.

Adds a regression test that stores an entry under its key, accesses it by
that key, and asserts the boost is applied to the internal entry.
2026-11-10 21:06:25 +08:00
ClaudeandRuFlo 6b9354650f dream(hive-mind): RaftConsensus legacy requestVote() skipped vote-once-per-term/log-up-to-date checks
The no-transport "legacy in-process" requestVote() path -- the real
production path, since no call site in v3/ ever wires a ConsensusTransport
into createRaftConsensus() -- granted votes on a bare
`currentTerm > peer.currentTerm` comparison, unlike the transport RPC path
and handleInboundRaftMessage() a few lines above it, which both correctly
apply Raft's vote-once-per-term and log-up-to-date receiver rules
(sec 5.2/5.4). A candidate whose term was higher only from repeated failed
elections (not log progress) could win a vote over a peer with a more
advanced log -- a real Leader Completeness safety violation. The same
strict `>` comparison also wrongly rejected a same-term candidate with an
at-least-as-fresh log when the peer had not yet voted.

Fixes the legacy path to apply the same rule already used correctly twice
elsewhere in this file. appendEntries()'s legacy path has an analogous
missing prevLogIndex/prevLogTerm check, deliberately left out of this patch
to keep it to one conceptual change; disclosed as a follow-up.

4 new discriminating/control tests, stash-isolated baseline 378/380 (2
predicted failures) -> candidate 380/380, 0 regressions, tsc --noEmit clean.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3S4EbKdQdNK4cgQS3
2026-11-10 06:22:34 +00:00
NotZhu 50652b1373 fix(transfer): refuse self-declared keys when verification is required
requireVerification now means what it says: when it is on, a pattern must be verified against a pinned key from StoreConfig.trustedRegistryPublicKeys. A self-declared pattern.publicKey is no longer trusted on its own, closing the self-sign gap left by #4750. Adds the two cases the review flagged (self-signed entry refused with verification on; still accepted when it is off).
2026-11-10 14:04:26 +08:00
rUv 4184c5cc24 Merge pull request #4933 from ruvnet/weaver/aidefence-agentdb-store
fix(aidefence): make the documented AgentDB vector store work (3.2.0, 3.2.1)
2026-11-10 00:31:40 -05:00
rUv 6f1acb1e87 Merge pull request #4821 from lj1166/fix/4754-bound-imports-and-join
fix(mcp): bound imports and federation join inputs
2026-11-10 00:16:14 -05:00
rUv a8970c2618 Merge pull request #4829 from MannXo/fix/4748-federation-require-jcs
fix(federation): default signatureMode to require-jcs
2026-11-10 00:16:10 -05:00
rUv cb39f37e18 Merge pull request #4830 from MentaNew/fix/embeddings-init-zero
Fix/embeddings init zero
2026-11-10 00:16:06 -05:00
rUv a3a38378af Merge pull request #4853 from NotZhu/fix/4734-readonly-getentry
fix(memory): make getEntry a read-only path, drop whole-image write (#4734)
2026-11-10 00:16:01 -05:00
rUv 25ac216aed Merge pull request #4879 from NotZhu/fix/transfer-store-download-hardening
fix(transfer): verify pattern downloads against a trusted key and bound size/time
2026-11-10 00:15:57 -05:00
rUv 7a2905f36e Merge pull request #4519 from ruvnet/fix/daemon-queue-supervisor-gate
fix(daemon): the dispatch queue lives in the user's state dir, not the project
2026-11-10 00:02:11 -05:00
randRuFlo b4f55ec56f chore(cli): pin @claude-flow/aidefence 3.2.1 (published)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 22:37:26 -05:00
ruv f9abbf84ca fix(aidefence): no hidden 0.7 similarity floor in searchSimilarThreats (3.2.1)
3.2.0 shipped the AgentDB adapter, but searchSimilarThreats() defaulted
minSimilarity to 0.7. InMemoryVectorStore ignored that value; the adapter
honours it, and MiniLM cosine over regex-source pattern text measures
0.22-0.41. With agentdb installed, default searches and the README example
returned [] (seen in the post-publish smoke test).

- Default minSimilarity is now 0 (ranked, no floor); callers can still pass one.
- The test no longer depends on order: either learned threat type may rank first.
- The README example uses the defaults; it was run against the packed tarball,
  with and without agentdb installed.

agentdb is not a devDependency. CI installs it with --no-save in
aidefence-tests.yml, so the pnpm lockfile is unchanged.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 22:11:59 -05:00
kevin 13862a61d5 fix(tasks): clear completedAt when task_update reopens a finished task
Moving a completed, failed or cancelled task back to pending or
in_progress kept the old completedAt, so task_status and the store
reported a finish time for a task that is unfinished again.
2026-11-10 12:03:21 +09:00
luojie 1f1f0ce23a Merge remote-tracking branch 'upstream/main' into fix/4746-companion-write-safety
Signed-off-by: luojie <16602829831@163.com>
2026-11-10 10:55:47 +08:00
luojie 51959fe243 fix(init): publish companion helpers without following links
Signed-off-by: luojie <16602829831@163.com>
2026-11-10 10:53:07 +08:00
rUv d798763259 Merge branch 'main' into fix/daemon-queue-supervisor-gate 2026-11-09 21:46:51 -05:00
rUv 77613cf5ee Merge branch 'main' into fix/4744-helper-integrity 2026-11-09 21:46:49 -05:00
rUv 7f755f80eb Merge pull request #4907 from lj1166/fix/4755-safe-defaults
fix(security): tighten Mongo, handshake and update defaults
2026-11-09 21:46:39 -05:00
rUv b50026394c Merge pull request #4859 from PerryLink/fix/cleanup-preserve-user-data-4833-20261106
fix(cleanup): stop --force from deleting a project's own data/ and memory/, and keep the user's hooks
2026-11-09 21:46:34 -05:00
rUv 6aa97ff6f4 Merge pull request #4877 from PerryLink/fix/providers-test-openai-endpoint-4834-20261107
fix(providers): probe the endpoint saved for openai instead of api.openai.com (#4834)
2026-11-09 21:46:30 -05:00
rUv b348d68b6e Merge pull request #4850 from Tong-bit-art/fix/hive-mind-permissions-default
fix(hive-mind): keep permission prompts on by default
2026-11-09 21:46:25 -05:00
rUv 27f264c87b Merge pull request #4906 from ruvnet/dependabot/npm_and_yarn/v3/claude-flow/browser/agent-browser-0.41.2
chore(deps): bump agent-browser from 0.41.0 to 0.41.2 in /v3/@claude-flow/browser
2026-11-09 21:46:20 -05:00
ruv f6f9a7c0e6 fix(aidefence): make the documented AgentDB vector store work (3.2.0)
The README and createAIDefence JSDoc told users to pass `new AgentDB()` as
`vectorStore`. AgentDB has no store/search/get/delete, so the first
learnFromDetection threw "this.vectorStore.store is not a function".

- Add createAgentDBVectorStore(): imports the optional `agentdb` peer lazily,
  embeds with its EmbeddingService and indexes in its vector backend (async
  methods when the backend is async-only, as RuVector is). Falls back to
  InMemoryVectorStore with one warning when agentdb is missing.
- createAIDefence wraps an AgentDB instance passed as vectorStore, and rejects
  any other object lacking the VectorStore methods at construction.
- Real-import tests against agentdb 3.7.7 (devDependency), verified against the
  ^3.6.0 peer floor too; a fallback test; a CI workflow that runs them.
- Drop the unmeasured "150x-12,500x" / "0.1ms HNSW" AgentDB claims.
- Package metadata: homepage ruv.io, repository/bugs -> ruvnet/ruflo.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 21:42:36 -05:00
ruv dfc87e5c03 chore(npm): canonical repository, homepage and keywords for 12 packages; verified quickstarts for memory and security
Package metadata only (ADR-356 distribution lane). No version bumps, no
dependency, script or source changes; it ships with each package's next
release.

- homepage https://ruv.io, repository {url ruvnet/ruflo, directory},
  bugs ruvnet/ruflo/issues on @claude-flow/{memory,security,embeddings,
  swarm,testing,plugins,performance,providers,deployment,
  plugin-agent-federation,plugin-iot-cognitum} and
  ruflo-graph-intelligence. Nine of these had no repository field at all,
  so their npm pages link nowhere.
- 10-12 keywords per package, taken from each package's README features.
- ruflo-graph-intelligence description trimmed to 160 chars.
- memory and security READMEs: one-line job statement, supported
  environments, a quickstart run against the published 3.3.0 / 3.0.7
  with its real output, a link to the next package, and an animated SVG
  (2.5 KB / 2.1 KB, prefers-reduced-motion aware) that shows that run.

Packages in #4897 (aidefence, browser, cli-core, guidance, neural,
teammate-plugin) are left alone to avoid conflicting with it.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-11-09 19:45:00 -05:00
randRuFlo d8f8b59da6 chore(release): 3.75.0
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 19:37:54 -05:00
r d5cffcba75 Merge remote-tracking branch 'origin/main' into chore/codex-3.0.8
# Conflicts:
#	package-lock.json
#	package.json
#	v3/@claude-flow/cli/package.json
2026-11-09 19:00:12 -05:00
rUv 8976d98ad7 Merge pull request #4928 from ruvnet/fix/2633-project-root-anchor
fix(cli,cli-core): anchor durable state to the project root, not raw cwd (#2633)
2026-11-09 18:59:21 -05:00
randRuFlo ebeb58d8cf chore(codex): release 3.0.8 (single-source dual init #2638, registered tool names #3153); CLI and root pin 3.0.8
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 18:34:18 -05:00
rUv 95358c00ce Merge pull request #4927 from ruvnet/chore/swarm-3.0.5
chore(swarm): release 3.0.5 (QueenCoordinator failover config, #4902)
2026-11-09 18:32:51 -05:00
rUv f959311cc5 Merge pull request #4925 from ruvnet/feat/2638-2640-init-single-source
feat(init): AGENTS.md as the single dual-mode source (#2638); defer to installed plugins (#2640)
2026-11-09 18:32:47 -05:00
randRuFlo c56f57c42d chore(cli): pin @claude-flow/cli-core 3.7.7 (published)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 18:05:01 -05:00
randRuFlo c9b87db61d fix(cli,cli-core): anchor durable state to the project root, not raw cwd (#2633)
Under an agent the Bash tool cwd is sticky, and MCP servers and hooks inherit
it, so process.cwd() is often a subdirectory of the project. Memory, autopilot,
neural and metrics state keyed to it was written under the subdirectory and
never read again: loadState() returned defaults and the learning state
silently started over.

- Extract the #2877 daemon marker walk (nearest Ruflo marker, `.git` hard
  stop, start dir when nothing matches, read-only) into
  cli/src/services/project-root.ts; resolveDaemonProjectRoot and
  isRufloProject delegate to it unchanged.
- getProjectRoot()/anchorToProjectRoot() add the home/filesystem-root guard
  cli-core already applies, so a ~/.claude/settings.json claudeFlow key never
  makes $HOME the project.
- getMemoryRoot(), `memory backup` and `memory distill` resolve memory
  against the project root.
- autopilot-state resolves its state, log, swarm-tasks and checklist paths
  against the project root per call (exported constants stay relative).
- neural checkpoints/patterns, `.claude-flow/memory` patterns, LoRA weights,
  EWC fisher and swarm-activity metrics use the project root.
- cli-core: export isRufloProject/resolveProjectRoot from mcp-tools/types;
  getProjectCwd() keeps CLAUDE_FLOW_CWD precedence, else walks up from
  process.cwd(), falling back to process.cwd() when no marker is found or
  the walk lands on home / a filesystem root. Bump cli-core to 3.7.7.

The CLI pins cli-core 3.7.6, which lacks these exports, so the CLI carries a
copy of the walk; a parity test pins both copies together.

Fixes #2633

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 18:01:12 -05:00
randRuFlo 4e249930fc chore(ruflo-console): 0.50.1 for the command catalog refresh
The command catalog copy changed (#2640 command renames + catch-up
regeneration), so ruflo-console moves 0.50.0 -> 0.50.1 in plugin.json,
hooks/version.ts, scripts/smoke.sh and the CHANGELOG. The catalog is
regenerated on the merged tree (one entry changed by main) and copied to
the console again.

The single-host AGENTS.md snapshot follows main's #3153 change (#4918:
registered MCP tool names); no other line differs.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-09 17:49:12 -05:00
r 981adf7acf Merge remote-tracking branch 'origin/main' into feat/2638-2640-init-single-source 2026-11-09 17:46:20 -05:00