@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>
@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>
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>
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>