@claude-flow/cli@3.74.0 shipped 3.63.4 .claude/helpers. The committed
package stamp (.helpers-version) reads 3.57.1, so hook-spawned daemons
running an older checkout's CLI (3.63.4) saw the worktree's helpers as
stale and rewrote them between prepare and npm publish. verify-helpers
passed because it signs and checks whatever is on disk.
prepare-publish now diffs .claude/helpers against HEAD before signing
and again after verifying, and throws if any helper content changed
(the regenerated manifest and stamp are excluded). Tested: a dirtied
helper is refused, and a live daemon overwrite during a clean run was
caught.
Co-Authored-By: RuFlo <ruv@ruv.net>
- darwin moves to dependencies (ADR-526 amends ADR-150 rule 2 for darwin
only); the smoke gate, doctor check and clean-install test accept it.
- src/metaharness/darwin-lib.ts: cached import; metaharness_bench verify and
every metaharness_gepa op run in-process with the scripts' exact payloads
and exit codes, falling back to the scripts when darwin does not import.
- ruflo-metaharness 0.5.0: bench.mjs verify imports darwin directly (bare
import, no tool-time install) and falls back to the installed darwin CLI.
- Parity test vs the plugin scripts; benchmark script + measured runs.
- Version 3.74.0.
Co-Authored-By: RuFlo <ruv@ruv.net>
validateAgentSpawn() runs @claude-flow/security's SpawnAgentSchema and
skips the enum miss for custom agent types by matching
`invalid_enum_value`. That is zod 3's code; zod 4 reports
`invalid_value`, so with security on zod 4 every custom agent type was
rejected. agent_spawn and the hive-mind suites failed in CI (5 files).
It now accepts both codes.
cli-core resolves from the registry (non-bundled leaf), so this bumps it
to 3.7.6, which is already published, and moves the cli and claude-flow
pins and the root lockfile to it.
Co-Authored-By: claude-flow <ruv@ruv.net>
zod < 4.6.6 can exhaust memory while validating oversized constrained
collections (high severity). @claude-flow/security declared zod ^3.22.0,
so every consumer of it (memory, hooks, codex, federation and the cli
bundle) carried a vulnerable zod. A fresh `npm i @claude-flow/memory@3.2.4`
reports 3 high findings via @claude-flow/security -> zod 3.25.76.
API changes handled:
- z.setErrorMap(fn(issue, ctx)) -> z.config({ customError }), with
invalid_string/validation becoming invalid_format/format. Messages given
to a check still take precedence; undefined falls back to zod's default.
- z.string().ip({version}) -> z.ipv4() / z.union([z.ipv4(), z.ipv6()]),
keeping the messages.
- z.record(value) -> z.record(z.string(), value).
- SafeParseReturnType/ZodSchema -> ZodSafeParseResult/ZodType.
The workspace lockfile also drops zod 4.3.5 (vulnerable). Version 3.0.7,
and the cli and claude-flow pins move to 3.0.7. Publishing
@claude-flow/security only; the cli and claude-flow ride the release lane.
Tests: the existing 631 pass. input-validator-zod4.test.ts pins the
installed zod at >= 4.6.6, the IP schemas, message precedence, the global
map and the record schemas.
Co-Authored-By: claude-flow <ruv@ruv.net>
agentdb ^3.0.0-alpha.20 -> ^3.7.2 (filtered search and in-memory
isolation the backends rely on). Workspace lockfile now resolves agentdb
3.7.2 everywhere. memory@3.2.5 is published before merge, which
audit-leaf-versions-published requires.
Co-Authored-By: claude-flow <ruv@ruv.net>
The SQLiteBackend migration is in @claude-flow/memory, which the CLI
resolves from the registry, so the leaf-package publish audit (#3335)
requires a bump and a matching CLI pin. memory@3.2.4 is published right
after this merges. The federation pin moves to the 1.0.7 already on npm
(GHSA-vcv2 peer range, #4890).
Co-Authored-By: claude-flow <ruv@ruv.net>
#4890 bumped the bundled federation leaf to 1.0.7 (published) but left the
CLI and root pins at 1.0.6. Move both pins (and the lock specifiers) so the
bundled copy and its declared version agree.
Co-Authored-By: RuFlo <ruv@ruv.net>
On npm 10 / Node 20, agentic-flow -> fastmcp -> mcp-proxy pulls the
optional pipenet (engines node >=22). npm skips it, then deletes every
package reachable only through optional edges from that failure: all of
agentic-flow, ruvector, @ruvector/attention and @huggingface/transformers.
3.72.2 is affected the same way. Making agentic-flow a regular dependency
(rUv: agentic-flow stays) stops the cascade at pipenet; verified on a
fresh node:20 install of the packed 3.73.0 tarball: all present, 1.5 GB,
same tree as Node 22.
Co-Authored-By: RuFlo <ruv@ruv.net>
- @claude-flow/plugin-agent-federation 1.0.6: optional peer midstreamer
>=0.3.1 -> ^0.3.2. 0.3.1 ships no wasm or entry point, so it can't be
imported; 0.3.2 is the first importable release.
- @claude-flow/aidefence 3.1.1: optional peer agentdb >=2.0.0-alpha.1 ->
^3.6.0, matching the ecosystem's agentdb 3.6 convergence.
- @claude-flow/cli: pins @claude-flow/aidefence 3.1.1 and
@claude-flow/plugin-agent-federation 1.0.6, and agentdb ^3.6.0. Root
claude-flow pins federation 1.0.6. These ride the next cli release.
- @claude-flow/watermark: private. ruvnet/ai-text-watermark publishes
@claude-flow/watermark from 0.3.0 on (npm latest 0.4.1); this 0.2.0 copy
is stale and must never be published over it.
Both released tarballs are byte-identical to 3.1.0 / 1.0.5 apart from
package.json. v3/pnpm-lock.yaml regenerated with pnpm 8.15.0, root
package-lock.json with npm --package-lock-only.
Co-Authored-By: claude-flow <ruv@ruv.net>
- claude-flow 3.72.1 declared @ruvector/attention ^0.1.3, which resolves to
0.1.32, without the input-validation / NAPI panic fix in 2.2.3
(RuVector #1365). ruvector 0.3.12 also depended on ^0.1.3. ruvector
0.3.13 moves to attention ^2.2.3 and sona ^0.1.11.
- CLI and umbrella: ruvector ^0.3.13
- umbrella: attention ^2.2.3 and sona ^0.1.11
- ruflo override: ruvector ^0.3.13
- @claude-flow/neural 3.0.3 pins @ruvector/sona 0.1.11 (was 0.1.5, see #4844).
- neural benchmark: the attention benchmark never ran. import() of the
CommonJS package put the classes on `default`, and it called
computeRaw(), which no release has; the classes expose compute(). Each
ruflo attention call was checked on 0.1.32 and 2.2.3 with identical
results.
- v3/pnpm-lock.yaml: pnpm 8.15.0 --lockfile-only; every @claude-flow/* is
still link:, and rabitq-wasm still resolves 0.1.2 for the CLI.
Co-Authored-By: RuFlo <ruv@ruv.net>
@claude-flow/neural pinned @ruvector/sona at exactly 0.1.5, five releases
behind. The same probe was run against both versions with the wrapper's
SonaEngine.withConfig shape:
- applyMicroLora with a wrong-length vector: 0.1.5 panics in
crates/sona/src/lora.rs and aborts Node (exit 134); 0.1.10 throws
"input length 1 does not match hiddenDim 16", which the caller can catch.
- 30 trajectories + forceLearn, then findPatterns: 0.1.5 returns 0
patterns; 0.1.10 returns 3 (upstream #1258: MicroLoRA learns from
feedback, EWC++ takes effect).
neural is a non-bundled leaf, so the fix reaches users only through a
standalone publish of @claude-flow/neural@3.0.3. The CLI and umbrella
pins move to 3.0.3 with it. audit-leaf-versions-published fails until that
publish happens, and that failure is the intended gate.
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(cli,codex): wire ecosystem packages into real code paths + ecosystem skills
Every integration here has a reachable path (optional dep or lazy import,
graceful fallback) and a test that drives the real package.
- @ruvector/learning-wasm 0.1.29 (new optional dep): it was imported by
ruvector-training.ts, neural.ts and ruvector/index.ts but never declared,
so MicroLoRA always ran on the JS fallback. Now initializeTraining()
reports backend 'wasm'; `neural benchmark` measures ~2 us/adaptation at
256-dim. The benchmark's attention section (broken against
@ruvector/attention 2.x) no longer aborts the MicroLoRA numbers.
- ruvector ^0.2.27 -> ^0.3.11. ruvector 0.3 ships @ruvector/mincut-wasm and
its DynamicMinCut wrapper. New ruvector/mincut-bridge.ts folds duplicate and
reversed edges (the solver rejects them) and backs:
- agentdb_graph-pathfinder `dynamic-mincut`, previously a k-hop stub: exact
min cut of the seed's depth-hop neighbourhood, returns the seed's side
plus cut metadata (cutValue, cutEdges, backend). JS Stoer-Wagner
fallback for neighbourhoods <= 300 nodes.
- graph-analyzer loadRuVector(), which probed a nonexistent
ruvector.hooks_graph_mincut and @ruvector/wasm GraphAnalyzer. Measured
187 ms vs 6 s (JS) at 1,000 nodes, same cut value.
spectral-sparsify / connected-component-churn stay k-hop approximations
and now say so in the response (`implementation`).
- @ruvector/rabitq-wasm 0.1.0 -> 0.1.2: ruvector 0.3.11 declares an optional
peer >=0.1.1, and npm raises ERESOLVE against an exact 0.1.0 pin. Same API.
- agent-booster ^0.2.2 (new optional dep) backs a new hooks_fast-apply MCP
tool: merges a code snippet into a file or string (~ms, no LLM), with
project-root and symlink containment, dryRun and minConfidence. ADR-143
is respected: it is an applier for caller-supplied snippets, not a Tier-1
intent engine. The appliance bridge's tier-1 hint, labelled
'agent-booster' while being two regexes, is now labelled 'codemod' and
points at hooks_codemod. Path-containment helpers move from hooks-tools.ts
to realpath-containment.ts so both tools share them.
- ast-analyzer / diff-classifier / coverage-router imported @ruvector/ast,
@ruvector/diff, @ruvector/coverage, which were never published (npm 404).
ruvector 0.3's ASTParser needs native tree-sitter and is async-only;
parseDiff / parseIstanbulCoverage are plain JS equivalent to the local
parsers. The phantom imports are removed rather than swapped for a no-op hop.
- Skills: six new Claude Code skills (vector-quantization, graph-mincut,
sublinear-solver, injection-defense, fast-code-edits, lora-learning) in a
new SKILLS_MAP.ecosystem group, installed by default `ruflo init`
(`init skills --ecosystem`), and the Codex equivalents bundled in
@claude-flow/codex .agents/skills (built-in, installed by --full).
@claude-flow/codex 3.0.5 -> 3.0.6.
- no-cli-optdep-bloat-2561 guard: CLI_MAX 13 -> 17 and learning-wasm off the
FORBIDDEN list, with cold-install measurements (learning-wasm 0.38 s / 1
pkg / 104K; agent-booster 0.98 s / 67 pkgs / 5.8M).
Evaluated and not wired: sublinear-time-solver as a PPR accelerator (its
computePageRank took 1.2 s at 500 nodes and 68 s at 2,000, vs ms for the
built-in power iteration; 184 deps / 123 MB), strange-loops (pulls the same
tree), @ruvector/kge, @ruvector/cnn, @ruvector/rvlite, @ruvector/graph-wasm,
@ruvector/emergent-time, agentic-jujutsu, @ruvector/pi-brain (no existing
caller doing the job badly); @ruvector/diskann (see the memory PR).
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(deps): bound @ruvector/ruvllm away from the broken 4.0.x; ruvector override to ^0.3.11
@ruvector/ruvllm 4.0.0/4.0.1 were published from the wrong repository: an
ESM-only GPU-loop harness with no main entry and none of SonaCoordinator,
ContrastiveTrainer, TrainingPipeline or LoraAdapter. The open `>=2.6.0`
ranges in the root and ruflo overrides and the v3 pnpm.overrides let it
resolve, and every createRequire('@ruvector/ruvllm') caller (intelligence.ts,
sona-optimizer.ts, native-training.ts) then fell back to JS silently.
- root/ruflo overrides, v3 pnpm.overrides, providers peer:
`>=2.6.0 <4.0.0 || ^4.1.0` (2.6-3.x all export the four classes; 4.1.0 is
the restored runtime). Narrow to ^4.1.0 once it is on the registry.
- root/ruflo overrides: ruvector ^0.2.41 -> ^0.3.11. agentdb 3.3.0 itself
depends on ruvector ^0.3.5 and the CLI now on ^0.3.11, so the old override
forced both below their own ranges inside this repo's tree.
- ruflo overrides: agentdb `>=3.3.0` -> `^3.3.0`, agentic-flow `>=2.0.14` ->
`^2.0.14 || ^3.0.0` (no open-ended ecosystem ranges).
- providers/src/__tests__/ruvllm-runtime-contract.test.ts loads the installed
package through createRequire, asserts the four classes, constructs a
SonaCoordinator the way the CLI does, and checks the resolved version is in
range. Against 4.0.1, require() itself fails (no CJS entry).
Co-Authored-By: claude-flow <ruv@ruv.net>
* test: run ecosystem and ruvllm contract tests where the packages are installed
ci.yml's repo-root npm layout does not install the CLI's optional
dependencies, so those blocks skip there; the pnpm workspace that Test V3
Packages uses installs every one of them, so they run. The probe walks
node_modules only up to the repository root. A @ruvector/ruvllm that is
installed but does not load through require() still fails, and says which
copy and why.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(umbrella): claude-flow carries the CLI's new optional deps; rabitq-wasm 0.1.2
The claude-flow umbrella ships the CLI dist with its own dependency list.
With @ruvector/rabitq-wasm pinned at 0.1.0, npm could not hoist ruvector 0.3
(optional peer rabitq-wasm >=0.1.1) and nested it under agentdb/agentic-flow,
so the umbrella's copy of the CLI could not import('ruvector') and the mincut
path was dead there. rabitq-wasm -> 0.1.2 (same API) puts ruvector back at
the top level; ruvector ^0.3.11, @ruvector/learning-wasm 0.1.29 and
agent-booster ^0.2.2 join the umbrella's optionalDependencies so the WASM
MicroLoRA, min-cut and fast-apply paths are reachable from npx claude-flow too.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(security): @metaharness/darwin ^0.13.0 (GHSA-mjwg-5fm3-fx2p), metaharness ^0.4.20
@metaharness/darwin 0.13.0 fixes a high-severity sandbox bypass
(GHSA-mjwg-5fm3-fx2p); the CLI's `~0.12.0` could never resolve it.
- cli optionalDependencies @metaharness/darwin ~0.12.0 -> ^0.13.0; peer
metaharness ^0.4.1 -> ^0.4.20
- distill-oracle MH_DARWIN_PIN 0.12.0 -> 0.13.0 (npx tier-1 oracle calls)
- ruflo-metaharness helper pins: _darwin.mjs ~0.12.0 -> ~0.13.0,
_harness.mjs ~0.4.1 -> ~0.4.20 (tilde, as check-metaharness-pins requires);
plugin 0.4.0 -> 0.4.1
Checked against 0.13.0 before bumping (0.x minor): same exports
(., ./contrastive, ./gepa), same metaharness-darwin verbs ruflo surfaces
(evolve, evolve-numeric, bench create|verify, security bench), and the gepa
library calls (loadCand6Genome, validateGenome, buildSystemFromGenome)
return identical results to 0.12.0. Tier-2 evolution now runs in an isolated
child process upstream; ruflo already drives darwin as a subprocess. Note:
0.13.0 adds one runtime dependency (@babel/parser), where 0.12 had none.
check-metaharness-pins, metaharness-clean-install-test and the CLI's
metaharness/distill/darwin tests (80) pass.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(deps): @ruvector/ruvllm ^4.1.0 now that the restored runtime is published
4.1.0 is the dual CJS/ESM runtime again. Root and ruflo overrides, v3
pnpm.overrides and the providers peer move from `>=2.6.0 <4.0.0 || ^4.1.0`
to `^4.1.0`; both lockfiles now resolve 4.1.0. The contract test requires
>=4.1 <5 and passed against 4.1.0 (SonaCoordinator, ContrastiveTrainer,
TrainingPipeline, LoraAdapter, DEFAULT_SONA_CONFIG; SonaCoordinator
constructs), as did the CLI's neural-status/trajectory/learning tests.
Co-Authored-By: claude-flow <ruv@ruv.net>
* release: 3.72.1
@claude-flow/cli, claude-flow and ruflo 3.72.1 (ruflo pins cli 3.72.1),
carrying the ecosystem integrations, @claude-flow/memory 3.2.3, codex 3.0.6,
@ruvector/ruvllm ^4.1.0 and @metaharness/darwin ^0.13.0.
Co-Authored-By: claude-flow <ruv@ruv.net>
* fix(metaharness): tilde-pin darwin ~0.13.0; smoke expects plugin 0.4.1
ruflo-metaharness smoke step 17z73 enforces tilde pins for @metaharness/*
(ADR-150 review: tilde stays on one minor). ~0.13.0 admits the same versions
as ^0.13.0 on a 0.x line and still resolves the GHSA-mjwg-5fm3-fx2p fix.
Smoke step 1 hard-codes the plugin version; it moves to 0.4.1 with the bump
that plugin-version-bump requires. smoke.sh: 128/128 locally.
Co-Authored-By: claude-flow <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* fix(memory): RvfBackend search through hnsw-index.ts (recall@10 0.09 -> 0.89)
RvfBackend's inlined HnswLite seeded every search from the first
efConstruction vectors in insertion order and BFS'd a flat neighbour graph,
and each insert was an O(n) brute-force scan. Measured against exact search
on 5,000 random unit vectors (cosine, 200 queries, seed 42):
index 384-dim recall@10 1536-dim clustered 384
HnswLite (before) 0.091 0.079 0.999
@ruvector/diskann 0.1.3 0.896 0.739 1.000
hnsw-index.ts, ef=200 0.888 0.744 0.990
DiskANN matched HNSWIndex on recall but a vector inserted after build() is
not searchable until a full rebuild (3.6-4.3 s at 1k vectors), which breaks
store()-then-search(). HNSWIndex is incremental and is the single HNSW
implementation ADR-125 asks for, so RvfBackend now uses it through a private
RvfVectorIndex (not exported; the prepublishOnly surface check still passes).
- indexes of <= 1000 vectors and dimension-mismatched queries use an exact scan
- distances map back to the old similarity scale; threshold filter unchanged
- re-storing an entry without an embedding removes its old vector
- update() re-indexes when an untyped caller passes an embedding
New rvf-backend-recall.test.ts drives the real RvfBackend.search: recall@10
>= 0.9 on 2000 random 64-dim vectors (HnswLite scored 0.294 there), exact
results at 300 vectors, delete/re-store correctness, recall after reopen.
@claude-flow/memory 3.2.2 -> 3.2.3.
Co-Authored-By: claude-flow <ruv@ruv.net>
* chore(memory): leave the version at 3.2.2 in this PR
audit-leaf-package-publish requires the CLI pin to cover the workspace
version, and audit-leaf-versions-published requires that pin to exist on the
registry. The 3.2.3 bump, its publish and the CLI pin move together in the
release that follows.
Co-Authored-By: claude-flow <ruv@ruv.net>
* release(memory): @claude-flow/memory 3.2.3, CLI pins it
The RvfBackend change has to reach users through a standalone publish:
memory is not bundled into the release tarballs (Publishing Rules).
@claude-flow/memory@3.2.3 is published from this branch's tree; the CLI pin
(dependencies + optionalDependencies) moves to it so audit-leaf-package-publish
and audit-leaf-versions-published both hold. The lockfile also gains the
@ruvector/sona 0.1.10 package entries pnpm reported missing.
Co-Authored-By: claude-flow <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
Minor bump: ADR-524 adds MCP 2026-07-28 support (server/discover, new
error codes, result fields). Supersedes the unpublished 3.71.5 bump.
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(mods): automatic context delegation (ruflo-mods 0.15.0, ADR-522) + release 3.71.0
New contextDelegation option (off | observe | enforce, default off). A
main-loop whole-file Read of a 14-120 KB file for an analysis prompt is
answered by a no-tools haiku $.model.complete on the session's own
credentials. Every quote is checked against the file and the model sees
only the cited passages (the file's own lines) plus how to read the rest.
The real Read always runs first, so a later Edit works (spike: answering
the Read without next(e) breaks Edit); any failure shows the whole file.
Live A/B (real binary, haiku main, 6 repo files 17-83 KB): 6/6 correct
both ways, 6/6 delegated, total cost -22.5% incl. worker, main input
-21.5%, wall +6.5%. First run delegated 0/6: haiku drops indentation in
quotes; the verifier now trims per-line whitespace and relocates up to 3
lines, showing the file's own lines.
Tests: 8 plugin tests, 3 real-binary e2e (extract + Edit, forged quote,
off), CLI parity test vs DEFAULT_CONTEXT_LIMITS and core verdicts. Smoke
step 4 now allows exactly one gated $.model.complete.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVHXWyvDvDtYMTsA6MP
* ci: keep the claude-code test-kit plugin test out of the vitest ratchet
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MfPHVHXWyvDvDtYMTsA6MP
* feat(core): add bounded context delegation with source-bound benchmark proof
* feat(core): add governed Messages adapter and durable resumable live pilot
* fix(benchmarks): isolate pilot fixtures and record bounded live timeout proof
* fix(context-delegation): review fixes — pilot env allowlist, hash-before-import, real policy root; ADR-521
- subscription-pilot: the spawned claude gets an allowlisted environment
(PATH, HOME, locale, XDG, CLAUDE_CONFIG_DIR, plus names in
RUFLO_PILOT_CHILD_ENV_PASS) instead of the whole shell; a GH_TOKEN
canary test proves it. Policy is evaluated for process.cwd(), not a
hardcoded /home/ruv.
- provider-pilot: the --runtime entry and policy runtime are contained
and hashed before they are imported.
- ADR renumbered 520 -> 521 (520 is agentdb episode CRUD on main).
- Evidence regenerated for the new snapshot (9301fbfd…, Node 24): 300/300
quotes, coordinator bytes -97.56%, total boundary +3.83%; verify.mjs ok.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(context-delegation): honour --worker-available through the CLI parser; scope evidence hashes to owned files
- context-plan read only f['worker-available'], but the parser camelCases
flags, so the documented command always planned 'worker-unavailable'.
Accept both spellings; new test drives the real CommandParser (fails
without the fix).
- results.json no longer hashes hooks.ts, index.ts and global-ai-budget.ts.
Those files change in unrelated PRs, which would have failed
verify.mjs on the next one. Evidence regenerated (20491e6e…, 14 hashes),
163/163 tests, verify ok.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(release): 3.70.0
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(agentdb): episode get/list/update/delete over agentdb 3.3 (ADR-520)
agentdb_episode-get, -list, -update and -delete reach agentdb 3.3's
ReflexionMemory through one new bridge helper (withReflexionController),
so a verified session can be marked success with a critique in place,
keeping its id, and recall re-ranks it. Strict integer ids; pre-3.3
builds get a clear error (delete is gated so the old parseInt-ing
deleteEpisode is never used).
agentdb ^3.3.0 in root and CLI, ruflo override >=3.3.0, both lockfiles;
marketplace agentdb plugin -> plugin-v3.3.0.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(agentdb): ADR-112 use-when guidance on episode CRUD tool descriptions
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(release): 3.69.0
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(memory,neural): persist AgentDB SQL fallback, reuse cached sizes, average MoE P_i
- memory (#4410): AgentDBBackend's SQL fallback gated on db.run/db.get, which
agentdb's prepare/exec handle never has, so no table was created and every
write was a silent no-op. Use prepare().run/get with spread params (safe on
better-sqlite3 and agentdb's sql.js shim) and quote the "references" column.
- memory (#4481): CacheManager stores each entry's size on its LRU node and
refunds that number on overwrite/delete/eviction instead of re-serializing.
- neural (#4381): computeLoadBalanceLoss() uses the mean gate probability over
the same route() history as f_i, persisted and reset with the routing stats.
- Bump @claude-flow/memory 3.2.2, @claude-flow/neural 3.0.2.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(cli): pin @claude-flow/memory 3.2.2 and @claude-flow/neural 3.0.2 (both published)
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
- Session end stores the summary as a ReflexionMemory episode (neutral reward,
unverified). The bridge called startEpisode/endEpisode, which ReflexionMemory
never had, so no session episode was ever written.
- New agentdb_episode-recall MCP tool: retrieveRelevant with agentdb 3.2's
keyword + vector fusion by default, opt-in cross-encoder rerank.
- agentdb_session-start takes recall/k/hybrid/rerank and returns episodes.
- A failing secondary write no longer discards a stored or recalled episode.
- agentdb ^3.2.0 in cli and claude-flow, >=3.2.0 in the ruflo override.
- scripts/smoke-episode-recall.mjs runs the round trip on real agentdb.
Co-authored-by: r <r@x>
* fix(aidefence): restore the ADR-118 wider-detection pass to source (3.0.4)
@claude-flow/aidefence 3.0.3 (npm latest) was published from an uncommitted
tree carrying the ADR-118 / #2004 patterns, so main never had them, and
main's #3177 ReDoS bounds never reached npm. 3.0.4 is a true superset:
the verb-noun override window, behave-as role hijack and god/root/admin/sudo
mode jailbreak markers, on top of main's bounded PII/marker regexes.
Parity against the published 3.0.3 dist: 24-input corpus, 0 regressions.
Drops publishConfig.tag=alpha. Refs #4625.
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(aidefence): merge AIMDS pattern packs into ThreatDetectionService (3.1.0)
Vendors the AIMDS pack engine (normalize, decoders, pattern-loader, engine)
and its six pattern packs (53 patterns) from midstream AIMDS at abe78d6 into
src/domain/services/packs/. Packs are embedded as TS modules, so they load
from the published ESM dist with no fs path lookup; the files allowlist is
unchanged.
ThreatDetectionService.detect() runs the packs in a second pass over the raw
input and merges findings into the existing result shape (one threat per
type, as before). Built-in patterns, including the ADR-118 extras, stay and
their confidences are unchanged. Packs are on by default; disable or select
them with createThreatDetectionService({ packs }) or createAIDefence({ packs }).
The legacy pattern-array argument still works.
- ThreatType gains tool_invocation, data_exfiltration, markup_forgery;
Threat gains an optional ruleId (e.g. EX-001) for pack findings.
- Packs are validated, compiled and regex-warmed once per process, so
isSafe()/checkThreats() no longer pay a compile per call and the first
detect() is not charged ~17 ms of lazy regex compilation.
- Fixes a quadratic regex in the vendored normaliser (undoLeet): 100 KB of
hex digits took 1.8 s; now 6 ms. Decoders cap each blob before decoding.
Corpus (55 attacks / 30 legit): built-ins only 8/55, packs on 55/55; false
positives F13 and F27 in both modes (built-in encoding_attack), pinned.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(memory): build AgentDB controllers with an embedder and the shared vector backend
LearningSystem, NightlyLearner, ExplainableRecall and the graph transformer's
CausalMemoryGraph take (db, embedder, ...). The registry passed only the
database, so the first predict/discover/recall threw on this.embedder (the
#3327 Finding A class, fixed for ReasoningBank only). Real-agentdb test fails
on the old source (learningSystem.embedder undefined). memory suite 659/659.
Adds ADR-513 (stable versions, convergence) and ADR-516 (aidefence recovery).
Co-Authored-By: RuFlo <ruv@ruv.net>
* feat(cli): move to agentic-flow ^2.2.0 (main line); stable-only tag policy
- agentic-flow ^3.0.0-alpha.1 resolved to the March 3.0.0-alpha.2, which
pulled @xenova/transformers -> onnx-proto -> protobufjs 6 (critical).
2.2.0 is agentic-flow's main line (ADR-515). The update validator and the
init doc table follow.
- neural-tools: computeEmbedding returns a Float32Array, which JSON.stringify
writes as {"0":...}; convert to an array before the neural store.
- CLAUDE.md: no more alpha/v3alpha/next dist-tags (ADR-513); overrides do not
reach users; examples use ruflo@latest.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(cli): pin @claude-flow/aidefence 3.1.0 (AIMDS pattern packs)
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(cli): target agentic-flow ^3.0.0 (first stable 3.x, ADR-515)
agentic-flow's security defaults change in a breaking way (agents no longer
bypass permissions by default, proxies need a token), so the main line ships
as 3.0.0 rather than 2.2.0. That also gives the 3.x alpha line a stable head:
existing ^3.0.0-alpha.1 installs resolve to it and drop the March alpha's
protobufjs 6 (critical).
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(memory): capture AgentDB's backend failure reason from stderr too
agentdb 3.0.0 moves library diagnostics off stdout (they corrupted stdio MCP
JSON-RPC), so the #4622 lock-reason capture patches console.error as well.
Co-Authored-By: RuFlo <ruv@ruv.net>
* docs(adr): ADR-514 agentdb 3.0.0, ADR-515 agentic-flow 3.0.0, ADR-517 AIMDS pattern packs
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(memory): 3.2.1 (embedder wiring, stderr reason capture)
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(release): 3.67.0 — agentdb 3.0.0, agentic-flow 3.0.0, aidefence 3.1.0, memory 3.2.1
- CLI and the claude-flow umbrella declare agentic-flow ^3.0.0 (root lock and
v3 pnpm lock resolve 3.0.0 / agentdb 3.0.0).
- CHANGELOG 3.67.0.
Co-Authored-By: RuFlo <ruv@ruv.net>
* test/docs: dated ADRs 513-517; scope the bracket/DAN timing test to built-ins
- ADRs 513-517 gain Date lines (the console ADR parser expects >97% dated)
and ADR-513/516 name the versions that shipped (agentic-flow 3.0.0,
aidefence 3.1.0).
- threat-detection 'bounds the bracket and DAN patterns' measures the
built-in regexes it was written for ({ packs: false }); the AIMDS packs
have their own 100 KB adversarial timing test. Full detector on that input:
86 ms locally, 301 ms on the CI runner (linear, budget was 200 ms).
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(deps): stop pinning ruvector 0.2.27 under agentdb 3.0.0; CLI agentdb ^3.0.0
The root (and ruflo wrapper) overrides pinned ruvector ^0.2.27 from the BEIR
work (3.10.29). npm applies overrides inside this repo's tree, so CI ran
agentdb 3.0.0 on ruvector 0.2.27, below agentdb's own ^0.2.40: a pairing no
user ever installs (published overrides are ignored), and the one where #2226
pattern recall failed on CI. Raised to ^0.2.41.
The CLI's agentdb range moves to ^3.0.0 (stable; no alpha ranges, ADR-513),
so the v3 pnpm lock resolves 3.0.0 and the v3 test job exercises what users
get instead of 3.0.0-alpha.20. 115 agentdb/memory-related CLI test files:
868/868 on 3.0.0.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
- ControllerRegistry keeps the first backend failure AgentDB logs (e.g. a
native vector store locked by another process) instead of only the last
fallback's format rejection, exposed as getAgentDBInitError(), with the
single-owner HTTP remedy. @claude-flow/memory 3.2.0.
- The CLI bridge records that reason, so the sql.js fallback's refusal names
it, and isBridgeAvailable() is false when AgentDB did not open.
- memory_list returns success:false with the error on a failed query instead
of an empty inventory.
- Release 3.66.1 with plugin-agent-federation 1.0.4 (#4619 trust thresholds).
Co-authored-by: r <r@x>
* test(mods): real-binary test tier with a scripted mock model (ADR-504)
Runs the real `claude` binary headless against a local mock of the
Anthropic Messages API, with ruflo-mods loaded through --plugin-dir in a
throwaway project with its own HOME. No API key, no paid model.
- mock-model.mjs: scripted Messages server (streaming and not), logs
every request; untool'd or unknown requests get a minimal answer.
- run.ts: runner with a minimal child environment, PATH recorders for
dangerous commands, and readers for events, requests and files.
- loads.test.ts (contract 1): with every option on, the heartbeat is
written, /ruflo-mods is registered and answered with no model request.
Negative control: a #4485-shaped copy (second bare session.start) is
refused silently by the real loader and fails those assertions.
- contracts.test.ts (contracts 2-5): verified-success record from a
scripted fix turn; [RUFLO_LESSONS] reaches the request (and not below
the gate); ruflo denies the root delete with its own reason and denies
a listed command the engine allows (which runs without the plugin);
the route block reaches the request (and not without the plugin).
- Excluded from the CLI, v3 and root-ratchet default runs; run with
`npm run test:real-binary`. New CI job mods-real-binary pins Claude
Code 2.1.289 and fails, naming the step, if the binary will not start.
Co-Authored-By: RuFlo <ruv@ruv.net>
* docs(adr): ADR-504 status names PR #4589
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* dream(memory): wire ControllerRegistry.set() so MutationGuard/AttestationLog activation stops being dead code
memory-bridge.ts's post-init controller-activation wiring (reasoningBank,
learningSystem, skills, semanticRouter, gnnService, rvfOptimizer,
mutationGuard, attestationLog, guardedVectorBackend) has always gated
registration on `typeof reg.set === 'function'`, falling back to an
unread `reg._controllers` property otherwise. ControllerRegistry never
implemented a public set() method, so every external activation silently
took the dead fallback: registry.get('mutationGuard')/get('attestationLog')
always returned null, permanently disabling write-mutation validation
(fail-open "no guard installed = allow") and audit logging (silent no-op)
on the real store/delete/purge paths. Same bug shape as the already-fixed
#3327 Finding A (reasoningBank.store never existed, so its own
typeof-guard was dead too).
Adds ControllerRegistry.set<T>(name, instance) mirroring the shape
initController() already produces internally. Zero changes needed at any
of the 9 memory-bridge.ts call sites.
5 new discriminating tests reproduce memory-bridge.ts's exact activation
pattern; stash-isolated baseline fails all 5 (TypeError: registry.set is
not a function), candidate passes all 5. Full @claude-flow/memory suite:
650/651 both ways (1 pre-existing environmental failure, byte-identical,
unrelated chmod/root-bypass test). tsc --noEmit: 0 errors.
Evaluated, pending independent adversarial critique.
* dream(memory): close prior instance on ControllerRegistry.set() (post-critique)
Independent adversarial critique of afe2cdd found set() silently dropped
a reference to any pre-existing resource-holding instance on overwrite,
reintroducing the exact leak class #2432 fixed for initController()'s own
replacement path (unclosed sql.js/WASM resources, ~36GB over 6 weeks in
production per that commit's own account). Not currently triggerable
through the shipped memory-bridge.ts wiring (every real call site guards
with `if (!reg.get(name))` first), but the set() API itself offered no
protection.
Fix: dispatch the existing closePriorIfAny(name) before overwriting the
map entry, same as initController() does. Intentionally not awaited, so
get(name) still reflects the new instance synchronously; the old
instance's close()/dispose() (best-effort, errors swallowed) runs in the
background — matches every other call site's synchronous-looking
registration contract.
1 new discriminating test added. Full @claude-flow/memory suite:
651/652 (1 pre-existing environmental failure, unchanged). tsc --noEmit:
0 errors.
Known, disclosed, not-fixed-tonight limitation (out of scope, needs a
human call on correct init ordering): `causalRecall` is the one
ControllerName absent from every INIT_LEVELS entry, so shutdown()'s
by-static-list lookup would never find/close a controller registered
under that name via set() — unexercised today (no call site uses it).
Flagged for a future night rather than guessed at here.
* dream(memory): add 2026-10-28 SOTA research gist (gist publishing unavailable, FALLBACK)
No gh CLI / gist-creation tool reachable this session — same disclosed
FALLBACK as every night since 2026-09-30. Full SOTA report committed to
docs/dream-cycle/ instead of a gist.github.com URL.
* dream(memory): #4549 update LEDGER for 2026-10-28
* dream(memory): bump @claude-flow/memory to 3.1.0 (CI: leaf-package-publish audit)
CI's "Plugin package install-safety" job (scripts/audit-leaf-package-publish.mjs,
guarding ruvnet/ruflo#3335 and #3390/#3327 Finding A) correctly failed: this PR's
source change to v3/@claude-flow/memory/src/controller-registry.ts is publishable
(adds a new public method) but @claude-flow/memory's own package.json version was
unchanged at 3.0.9 — @claude-flow/memory is not bundled into the release train, so
publishing cli/claude-flow/ruflo without also bumping+publishing this leaf would
ship the OLD copy and this fix would reach nobody.
Bumped @claude-flow/memory 3.0.9 -> 3.1.0 (MINOR: backward-compatible new public
method). Updated the two exact pins in v3/@claude-flow/cli/package.json
(dependencies + optionalDependencies) to match, and regenerated v3/pnpm-lock.yaml
via `pnpm install` (never hand-edited) so the lockfile's specifier stays in sync.
Verified locally: node scripts/audit-leaf-package-publish.mjs --base origin/main
now reports "ok: every non-bundled leaf is covered by the CLI range and carries a
bump if changed". Full @claude-flow/memory suite re-confirmed 651/652 (same
pre-existing environmental failure), tsc --noEmit 0 errors.
Note for a future release: per CLAUDE.md's publishing rules, @claude-flow/memory
must be published standalone alongside the next @claude-flow/cli release for this
fix to actually reach consumers — not done as part of this draft PR.
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix(cli): declare @claude-flow/aidefence as an optional dependency
security-tools.ts, auto-install.ts and others import @claude-flow/aidefence at runtime but the package was in no dependency field. Flat node_modules layouts (npm) resolve it by accident; pnpm's isolated layout (pnpm dlx) hides it, so aidefence_* tools fail with 'AIDefence package not available'. Optional keeps the existing graceful-degradation path.
* fix(cli): add @claude-flow/aidefence to pnpm-lock.yaml
Matches the optionalDependencies entry added to @claude-flow/cli so the
frozen-lockfile install in CI passes. Hand-edited per review rather than
regenerated, to avoid rewriting unrelated importers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Q8MPAof1TAgCWWkJKdDJy
* fix(cli): pin @claude-flow/aidefence exactly and lift it from the #2561 guard
Pin 3.0.2 (the workspace and a published version) like @claude-flow/memory,
and keep the pnpm lock specifier in step. Remove aidefence from the guard's
FORBIDDEN list per its escape clause: the published package has no
dependencies (agentdb is an optional peer) and cold-installs in about 2-3 s
and 150 KB, versus 139 s for the CLI itself.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(ci): drop an apostrophe from a comment in the #2561 guard script
The guard body is a single-quoted node -e string in the workflow, so an
apostrophe in a JS comment ends the shell quote and the step fails with a
syntax error.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: RuFlo <ruv@ruv.net>
* dream(intelligence): wire real Fisher-information estimation into SONAManager's EWC++ path
SONAManager's EWC++ catastrophic-forgetting mechanism was completely inert:
ewcState.fisher/.means were initialized empty and never written anywhere in
the core @claude-flow/neural package; consolidateEWC() (the only method
touching fisher post-init) only decayed an always-empty map and had zero
callers. Every computeEWCPenalty/computeEWCLoss call across all 5 learning
modes therefore always evaluated to exactly 0, in production (SONAManager
backs NeuralLearningSystem, loaded by @claude-flow/memory's learning-bridge).
Scoped fix (default 'balanced' mode only): BalancedMode now exposes
getConsolidationSnapshot(), deriving Fisher as squared-gradient and means as
the raw gradient from its existing gradientAccumulator (mirroring a working
reference pattern already in this monorepo's
plugins/cognitive-kernel/src/bridges/sona-bridge.ts). SONAManager's
triggerLearning() folds this into ewcState via the existing (unchanged)
consolidateEWC() decay step, then additive accumulation - online-EWC style.
Also removes 6 stale, never-gitignored .js files under
v3/@claude-flow/neural/src/modes/ that shadowed the current .ts sources for
any explicit .js-extension import (Vite/Vitest resolve a literal file on
disk over transforming a sibling .ts) and were themselves circularly broken
- this was blocking any vitest test of SONAManager/mode classes from ever
exercising real logic, confirmed via git-stash to reproduce identically on
the pre-candidate baseline and to be a necessary precondition for tonight's
evaluation, not part of the EWC logic change itself.
Disclosed scope limit: this makes the EWC *state* real and measurable; the
computed penalty is not yet wired into the gradient update itself (same gap
already disclosed as a stub in the reference plugin's own consolidate()).
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3LBmCGHLADvSaqWs2
* dream(intelligence): fix forward per independent adversarial critique
Round-2 fixes from an independent adversarial-critic pass on commit
2c5bcb177:
- getConsolidationSnapshot() now reports the CHANGE in gradientAccumulator
since the last consolidation (a delta), not the raw lifetime-cumulative
accumulator. Squaring the ever-growing cumulative value directly (the
original candidate) made Fisher/means diverge without bound over a
long-running session - confirmed empirically by the critic (25 cycles:
0.00012 -> 0.68) and reproduced independently here (150 cycles). The
delta-based version is a strict improvement (Fisher now reflects "what
changed", the theoretically appropriate EWC quantity) but does NOT fully
solve divergence by itself: traced the remaining growth to a separate,
deeper, pre-existing behavior one layer up - triggerLearning() reprocesses
every completed trajectory still held by the manager on every call (no
"already learned from" tracking; only pruneTrajectories()'s 50%-capacity
threshold ever removes one), so BalancedMode.learn()'s gradient movement
per cycle grows with the historical backlog, not just what's new. Fixing
that is a distinct, larger-blast-radius change (trajectory lifecycle, not
EWC) - disclosed in the test file's docstring and carried forward as a
priority candidate for a future night, explicitly ahead of ever wiring
computeEWCPenalty() into a real gradient update.
- Rescoped the "Fisher == means^2" test to state plainly it's a
single-cycle construction-time identity (true by the snapshot's own
arithmetic when there's no prior snapshot to diff against), not an
ongoing system invariant - confirmed by the critic to break after cycle 2.
- Finished the stale-build-artifact cleanup in src/modes/ that the prior
commit started: removed the remaining tracked .d.ts/.d.ts.map/.js.map
siblings (12 files) plus a stray tmp.json, same never-gitignored,
out-of-sync-with-source bug class as the .js files removed in the prior
commit. src/modes/ now contains only .ts sources.
- Fixed a path citation (plugins/... -> v3/plugins/...) in comments/tests.
143/143 tests pass, 0 tsc errors, build clean - re-verified after each
change in this commit.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3LBmCGHLADvSaqWs2
* dream(intelligence): add research gist for 2026-10-27
Full SOTA report: 5-role parallel research fan-out, 6-row graded 2026
external-research table, 5-row competitor comparison (genuine "None" across
LangGraph/AutoGen/CrewAI/OpenAI agent tooling, explained), the frozen
hypothesis with explicit scope disclosure, the evaluation receipt including
the independent adversarial critique's findings and this session's fix
forward, and 4 deferred/scored candidates plus 2 scan findings
(capabilities, memory) carried to a future night. Witness stamp computed
from the final file content.
No gh gist create / gist-equivalent MCP tool reachable this session (same
disclosed FALLBACK as every night since 2026-09-30) - committed here
instead, per established convention.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3LBmCGHLADvSaqWs2
* docs(dream-cycle): append 2026-10-27 ledger row
Issue #4531 / PR #4532 / witness 7b524483... — ACCEPT-scoped, post-critique.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3LBmCGHLADvSaqWs2
* fix(neural): bump @claude-flow/neural to 3.1.0 for the EWC fix
CI's audit-leaf-package-publish.mjs (ruvnet/ruflo#3335/#3390 guard) failed:
@claude-flow/neural is a non-bundled leaf that resolves from the npm
registry at release time, not from this PR's source. Its publishable
source changed (the EWC Fisher-wiring fix) but package.json's version was
still 3.0.0 - a release right now would ship the OLD, still-broken copy
and this fix would reach nobody.
Bumped neural 3.0.0 -> 3.1.0 (adds a new optional ModeImplementation
member, getConsolidationSnapshot, in addition to the bug fix - a
backward-compatible addition, MINOR per CLAUDE.md's versioning policy) and
the CLI's exact pin to match. Verified locally: audit script passes
(version bumped, CLI range satisfied), full neural suite 143/143, build
clean.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3LBmCGHLADvSaqWs2
* fix(deps): regenerate v3/pnpm-lock.yaml for the neural version bump
The 3.0.0 -> 3.1.0 bump to @claude-flow/cli's @claude-flow/neural dependency
spec (previous commit) was made by hand, without regenerating the lockfile
- CI's --frozen-lockfile installs correctly rejected it with
ERR_PNPM_OUTDATED_LOCKFILE across every job that runs one (Memory import
smoke, Windows hook execution smoke, statusline generator delegation smoke,
Smoke (no better-sqlite3), and others).
Regenerated via `pnpm install --no-frozen-lockfile` (the repo's own
tooling, not a hand edit) inside v3/. The only intended change is the
@claude-flow/neural specifier; the diff also picked up an incidental
@opentelemetry/api 1.9.0 -> 1.9.1 transitive bump across vitest's
resolution entries, which is pnpm's own resolver picking a newer
compatible published patch, not something this PR intentionally touches.
Verified locally: `pnpm install --frozen-lockfile` now succeeds, full
@claude-flow/neural suite still 143/143.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3LBmCGHLADvSaqWs2
* fix(cli): revert neural pin to the published 3.0.0, not an unpublished 3.1.0
My previous fix bumped @claude-flow/cli's @claude-flow/neural dependency
spec to 3.1.0 to satisfy the "Plugin package install-safety" leaf-publish
audit - but 3.1.0 has never been published to npm (confirmed: `npm view
@claude-flow/neural versions` lists only up to 3.0.0). That pin broke a
REAL, more severe check: "CLI npx-install smoke" packs the actual CLI
tarball and runs a real `npm install` against it, which failed with
`ETARGET: No matching version found for @claude-flow/neural@3.1.0` - i.e.
a real `npx @claude-flow/cli` user would hit this exact error today.
Publishing @claude-flow/neural@3.1.0 to npm is a human-gated release
action (signing keys, GCP secrets, WebAuthn - see CLAUDE.md's "Publishing
to npm"), not something this session does autonomously from an unreviewed
nightly research PR. Reverted the CLI's pin to 3.0.0 (the real published
version) and regenerated the lockfile to match.
This leaves one disclosed, expected finding in "Plugin package
install-safety": @claude-flow/neural's own package.json is now ahead of
the CLI's pin (3.1.0 source vs 3.0.0 pinned) - exactly the state CLAUDE.md
describes as needing a human to "publish @claude-flow/neural@3.1.0 and
raise the range" as part of an actual release, not a code fix. Noted on
the PR rather than resolved by further pushes.
@claude-flow/neural's own suite remains 143/143, build clean - unaffected,
since its tests exercise the local TS source directly.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH3LBmCGHLADvSaqWs2
* fix(neural): drop the 3.1.0 bump and restore main's lockfile
The bump broke the umbrella's @claude-flow/neural range check and forced a
lockfile regen that flipped @claude-flow/memory to a registry copy. The EWC
change ships as the next neural release, bumped at release time.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix(neural): anchor EWC means on the parameters at consolidation
computeEWCPenalty() measures current - means against the cumulative
gradient accumulator, so means must be that accumulator at consolidation
(theta*). Storing the per-cycle delta made the penalty start at roughly the
previous parameter value instead of zero. New test fails on the delta and
passes on the fix; neural suite 144/144, tsc clean.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(neural): bump to 3.0.1 for the EWC++ consolidation fix (#4531)
The CLI and root pins move with it so the release carries the fix.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore: lock @claude-flow/neural 3.0.1 from the registry
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: r <r@x>
* fix(shared): MCP transports refuse web pages, rebound hosts and open non-loopback binds; ws token checked at upgrade
Same guard as @claude-flow/mcp 3.1.3 for the copies in @claude-flow/shared.
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(shared): 3.0.6
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore: package-lock follows @claude-flow/shared 3.0.6
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>