10409 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>
v3.75.3
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 b05b7a640d chore(ruflo-graph-intelligence): bump plugin to 0.3.0
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:07:33 -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
rUv 5b70d2b545 Merge pull request #4945 from ruvnet/fix/socket-alerts-ruflo-tarball
fix(ruflo): ship the wrapper only, harden the bridge's outbound guard; release 3.75.2
v3.75.2
2026-11-10 12:33:43 -05:00
randRuFlo 0a311ac4c4 test(ruflo): run the tarball-contents test under vitest, where the CI ratchet collects it
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 11:54:50 -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 29e635c9fb fix(ruflo): pin agentic-flow to the version the alpha tag resolved to
3.5.3 no longer exposes agentic_flow_agent, agent_booster_edit_file,
agent_booster_batch_edit or agentdb_pattern_store, which the bridge's
help text advertises. 3.0.0-alpha.2 is what @alpha resolves to today, so
pinning it removes the moving tag without changing the tool surface.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 11:32:05 -05:00
randRuFlo 3be90c22c2 fix(ruflo): ship the wrapper only, harden the bridge's outbound guard
Socket flags six files in ruflo@3.75.1, all under src/ (the chat UI, the MCP
bridge and deploy scripts). Nothing in bin/ reads src/, and the tarball never
included the compose files needed to run it, so it was 528 files of dead
weight in every install.

- package.json: drop src/** from `files`. Tarball goes from 531 files / 8.2 MB
  to 3 files / 33 KB. New test pins the contents.
- mcp-bridge (both copies): replace the SSRF regex with url-guard.js. The
  regex let through https://[::1]/, 169.254.169.254, 100.64/10,
  *.internal and IPv4-mapped loopback, and refused public hosts starting
  "fc"/"fd". The new guard also checks what the hostname resolves to and
  refuses redirects.
- mcp-bridge: pin agentic-flow (was @alpha) and gemini-mcp-server
  (third-party) to exact versions in the spawn specs and the Dockerfiles.
  ruvector and ruflo still follow latest.
- mcp-bridge: spawned backends no longer inherit MCP_AUTH_TOKEN.
- chat-ui: remove patch-mcp-url-safety.sh. Against today's upstream image
  it matches nothing and exits 0; where it did match it relaxed the check
  for every URL.
- ADR-166 lock: four new checks, plus the guard and tarball tests in CI.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 11:24:23 -05:00
rUv b294724abc Merge pull request #4944 from ruvnet/fix/4940-bundle-security-zod4
fix(release): ship zod 4 inside the bundled security package; release 3.75.1 (#4940)
v3.75.1
2026-11-10 09:21:55 -05:00
randRuFlo 5490095e7e test(release): the npx-install smoke packs the staged CLI, as a release does
The smoke ran a bare pnpm pack, which bundles workspace links and never
runs the staging step, so it tested a tarball nobody installs. It now
stages the bundled runtime packages and packs with npm. The vendored
range check no longer needs the semver package, which that job does not
install.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 09:02:17 -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 a7a60f7af6 docs(dream-cycle): append 2026-11-10 ledger row (#4937/#4938)
Confirms 11-08 (#4910 closed-not-merged) and 11-09 (#4908/#4927 merged)
fates, and the already-disclosed 11-03..11-07 no-run gap, before
tonight's own row.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3S4EbKdQdNK4cgQS3
2026-11-10 06:27:55 +00: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
rUv a72193f3b5 Merge pull request #4847 from lj1166/fix/4744-helper-integrity
fix(init): verify protected helpers and bind manifest versions
2026-11-10 00:02:07 -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 745737aaaf Merge pull request #4931 from ruvnet/chore/release-3.75.0
chore(release): 3.75.0
v3.75.0
2026-11-09 20:33:56 -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