@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>
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>
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>
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>
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>
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>
@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>
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.
`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.
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
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).
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>
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.
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>
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>