10470 Commits
Author SHA1 Message Date
rUvandr 3a1479883b chore(release): 3.77.1 (#4986)
Ships the #4984 fix: AgentDB now uses the configured embedding model and
dimension, via @claude-flow/memory 3.3.3 (published) and the CLI memory bridge.

Co-authored-by: r <r@x>
v3.77.1
2026-11-13 15:52:31 -05:00
rUvandr 8971ebad35 fix(memory): apply configured embedding model and dimension to AgentDB (#4984) (#4985)
* fix(memory): apply configured embedding model and dimension to AgentDB (#4984)

The registry created AgentDB with only { dbPath }, so memory_store and
memory_search kept using AgentDB's hardcoded MiniLM/384 embedder whatever
.claude-flow/embeddings.json said.

- registry: forward config.dimension as vectorDimension; install a supplied
  embeddingGenerator in place on agentdb.embedder (awaited in init) and reject
  vectors whose length differs from config.dimension
- cli bridge: pass a local-chain generator (real ONNX only, no bridge
  re-entry) when the effective model is not the default
- cli bridge: label rows by the embedder that produced the vector instead of
  inferring the model from vector length

Needs a standalone @claude-flow/memory publish to reach users.

Co-Authored-By: RuFlo <ruv@ruv.net>

* chore(memory): release @claude-flow/memory 3.3.3 and pin it in the CLI (#4984)

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-11-13 15:34:37 -05:00
Kate Sai kishore e0e680799c test: quarantine flaky reasoningbank-adapter browser suite on CI (#3208) (#4975) 2026-11-13 14:46:18 -05:00
rUv 002d8c1ac0 Merge pull request #4980 from ruvnet/release/3.77.0
release 3.77.0: neural wsp (ADR-528), judge router, scan_secrets + Windows fixes
v3.77.0
2026-11-12 16:51:05 -05:00
rUv 8f3a642542 Merge pull request #4979 from ruvnet/fix/guidance-wasm-rebuild
fix(guidance): rebuild the shipped WASM kernel for the non-ASCII scan_secrets fix (guidance 3.0.1)
2026-11-12 16:51:02 -05:00
randRuFlo 0365136a14 test(cli): gate every real-package ruv-fann-wsp test on availability, stub the missing-package test
The previous fix skipped one test; 'reports a missing package' fell through to a real import() and the
other suites call the real packages, so they failed in the repo-root npm ci job as well. Real-package
tests are now gated on the packages loading; the loader contract stays covered by stub importers.
Verified both ways locally: packages present 15/15, packages hidden 8 pass + 7 skipped.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-12 16:37:31 -05:00
randRuFlo 23fd533209 test(cli): ruv-fann-wsp load test skips when the optional packages are not installed
The repo-root npm ci job (ci.yml Test Suite) does not install the three optional ruv-fann-wsp*
packages (they are in the CLI's pnpm lock only), so 'loads all three optional packages' failed on
the release PR's first CI run. When they are absent the test now asserts the explicit 'not installed'
report and skips; the missing-package tests cover the path with an injected importer.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-12 16:24:03 -05:00
randRuFlo b048f27b62 chore(release): 3.77.0
neural wsp: optional ruv-FANN weight-space tooling (ADR-528, #4967).
Also ships since 3.76.1: opt-in model-judge routing in ruflo-mods 0.17.0 (#4969, off by default),
scan_secrets non-ASCII fix (#4970), Windows npm redirect fixes (#4971).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-12 16:00:27 -05:00
randRuFlo 0e9902f396 feat(ruflo-intelligence): document neural wsp ruv-FANN tooling (0.6.0)
/neural wsp, intelligence-specialist rows, and an intelligence-route step
that runs neural wsp check after the centroid artifact is replaced.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-12 15:58:34 -05:00
randRuFlo 2abaebc4f4 feat(cli): neural wsp — optional ruv-FANN weight-space tooling (ADR-528)
Adds three exact-pinned optional dependencies of @claude-flow/cli:
ruv-fann-wsp@0.2.0, ruv-fann-wsp-invariants@0.1.0 and
ruv-fann-wsp-lifecycle@0.1.0. They reuse the ruv-fann@0.1.2 core and
ruv-fann-wasm@0.1.2 runtime that agentdb and darwin already install:
three new packages, no install scripts, no native code. The ruv-fann
0.3.0 facade is not used; it adds 60 packages including esbuild's
install script and a native RVF binding.

`neural wsp` subcommands (read-only evidence; nothing promotes or
reroutes):
- status: installed versions and limits
- inspect: fingerprint/shape (default: the centroid router)
- check: invariants; built-in self-routing suite for the centroid router
- gate: bounded-patch regression gate on user files
- export-centroid: centroid router as a ruv-fann dense model

Packages load by dynamic import inside those subcommands only; when
missing, each exits 2 with the reason. Input files must be regular
files of at most 2 MiB. Cold start and hooks route unchanged.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-12 15:58:34 -05:00
randRuFlo 32e4bec3b9 fix(guidance): rebuild the shipped WASM kernel for the non-ASCII scan_secrets fix (#4970); 3.0.1
#4970 fixed gates.rs, but @claude-flow/guidance ships the committed
wasm-pkg/guidance_kernel_bg.wasm, which still trapped ('unreachable') on
secrets ending in multi-byte characters. Rebuilt with wasm-pack 0.14.0
(--target nodejs --release --locked; the project's .cargo/config.toml simd128
applies). Glue files (.js, .d.ts, package.json) are byte-identical; only the
.wasm changes. Differential test vs the old binary: 43 outputs identical,
2 traps fixed, 1 intended change (star count by character, not byte).
Adds two JS-level tests that exercise the shipped binary.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-12 15:58:06 -05:00
rUv cee502244b Merge pull request #4969 from ruvnet/feat/mods-route-judge
feat(mods): opt-in model-judge routing (routeJudge, ADR-530)
2026-11-12 15:56:16 -05:00
rUv 27093779ab Merge pull request #4971 from sarthakbobde/fix/windows-devnull-npm-calls
fix(windows): drop the remaining 2>/dev/null redirects in npm calls
2026-11-12 15:56:06 -05:00
rUv f8df440384 Merge pull request #4970 from kevin9327/fix-guidance-kernel-secret-utf8
fix(guidance): scan_secrets no longer panics on non-ASCII secret values
2026-11-12 15:55:57 -05:00
rUv e546a93ce8 Merge pull request #4976 from ruvnet/release/3.76.1
release 3.76.1: auto-memory exit code fix (#4963)
v3.76.1
2026-11-12 15:34:41 -05:00
randRuFlo 49cc62e772 chore(release): 3.76.1
auto-memory import/sync now exit 1 when @claude-flow/memory is unavailable (#4963, #4974).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-12 14:14:45 -05:00
rUv 18cf97a208 Merge pull request #4974 from ruvnet/fix/automemory-missing-package-exit
fix(helpers): auto-memory import/sync exit 1 when @claude-flow/memory is unavailable (#4963)
2026-11-12 14:14:31 -05:00
randRuFlo 9ffcb32215 fix(helpers): auto-memory import/sync exit 1 when @claude-flow/memory is unavailable (#4963)
The warning was loud but both commands returned exit 0, so a hook runner
saw success when nothing was imported or synced. doImport/doSync now return 1
(packaged helper, repo copy and the init generator fallback); a thrown error
and the other commands are unchanged. Helpers manifest re-signed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-12 13:58:09 -05:00
Sarthak Bobde 327c5fc4ad fix(windows): drop the remaining 2>/dev/null redirects in npm calls
Follow-up to #4770. `security cve`, `analyze deps --security` and the
rvfa builder still ran npm with `2>/dev/null`, which fails under cmd.exe,
so on Windows they never got any output.

stderr is now captured through stdio instead. `analyze deps` also read
nothing when npm audit exited non-zero (which it does whenever it finds
vulnerabilities); it now reads the JSON from the error's stdout, the same
way security.ts does.
2026-11-12 09:09:49 +05:30
kevin9327 1a1a774f13 fix(guidance): scan_secrets no longer panics on non-ASCII secret values 2026-11-12 12:12:21 +09:00
randRuFlo 8fff84a767 test(mods): judge none label renders as no specialist (ADR-530)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 17:15:59 -05:00
randRuFlo e189b89763 docs(adr-530): remove duplicated block
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 17:13:25 -05:00
randRuFlo c05eb65398 fix(mods): judge keeps the vendored route contract; real-binary contract; ADR-530 wording
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 17:13:03 -05:00
randRuFlo 1acb1fc98f feat(mods): opt-in model-judge routing (routeJudge, ADR-530)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 17:02:27 -05:00
rUv dc25dd9b52 Merge pull request #4965 from ruvnet/release/3.76.0
chore(release): 3.76.0
v3.76.0
2026-11-11 09:31:35 -05:00
randRuFlo 06752888f6 Merge origin/main into release/3.76.0 (#4961, #4964)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 08:42:49 -05:00
rUv 1faf0a95c2 Merge pull request #4964 from kevin9327/fix/task-complete-credit-once
fix(tasks): credit task_complete only to the worker still holding the task
2026-11-11 08:42:47 -05:00
rUv 771c9ccfc6 Merge pull request #4961 from ruvnet/dream/2026-11-11-security
dream(security): settings-risk-scanner misses node/deno/bun/php interpreter allow-rules (evaluated)
2026-11-11 08:32:03 -05:00
randRuFlo bc3252133f fix(cli): show the centroid method in the hooks route table
With CLAUDE_FLOW_ROUTER_CENTROID=1 the table printed 'Method: keyword' while
Backend said 'nearest centroid'.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 08:29:01 -05:00
randRuFlo 3193d99ecb chore(release): 3.76.0
@claude-flow/cli, claude-flow and ruflo 3.76.0. Carries #4953 (opt-in centroid
agent router, ADR-527), #4956 (darwin ~0.14.0), #4958 (neural router assets
shipped), #4955 (memory 3.3.2, agentdb ^3.10.0), #4948, #4946 and #4949.
alpha/v3alpha stay at 3.75.2.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 08:18:30 -05:00
rUv 5d38297455 Merge pull request #4955 from ruvnet/deps/agentdb-3.10.0
deps(memory,cli): require agentdb ^3.10.0 (memory 3.3.2, needs publish first)
2026-11-11 08:18:18 -05:00
kevin 6239972d4c fix(tasks): credit task_complete only to the worker still holding the task
task_complete bumped taskCount for every assignee, even one that no
longer held the task. Completing a reopened task again (complete ->
pending -> complete, no reassignment) counted the same work twice,
which task_update already avoids by crediting only the holder.
2026-11-11 22:06:53 +09:00
randRuFlo 562dc93cc2 deps(cli): pin @claude-flow/memory 3.3.2 (published)
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 08:02:38 -05:00
randRuFlo 2044517dd3 deps(memory,cli): require agentdb ^3.10.0; memory 3.3.2
- @claude-flow/memory: agentdb ^3.7.2 -> ^3.10.0, version 3.3.0 -> 3.3.2
  (3.3.1 is already on npm from release/memory-3.3.1, not yet on main)
- @claude-flow/cli: optional agentdb ^3.6.0 -> ^3.10.0
- v3/pnpm-lock.yaml: agentdb 3.7.2 -> 3.10.0 for cli/memory/neural; the
  orphaned 3.7.2 block is dropped; aidefence's peer still resolves 3.6.0.
  New transitive packages come from agentdb 3.10.0's exact-pinned deps
  (ruv-fann 0.1.2, ruv-fann-wsp 0.1.0, ruv-fann-wasm 0.1.2, ruvector 0.3.20,
  @ruvector/* bumps).

The CLI's exact @claude-flow/memory pin is deliberately left at 3.3.0:
memory 3.3.2 must be published before that pin moves.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-11 07:58:55 -05:00
Claude c1ad3dc511 dream(security): #4960 resolve 11-10 hive-mind branch fate in ledger
A fate-check sub-agent (dispatched during tonight's STEP 1) resolved the
dream/2026-11-10-hive-mind branch this session flagged as unexplained: it
was a disclosed SCAN override (RaftConsensus legacy requestVote() fix,
#4937/#4938, MERGED), not an undisclosed deviation. Also surfaced a real
supplementary swarm finding (RaftConsensus.appendEntries()'s legacy path
still has zero log-contiguity check) that got recorded as a follow-up
comment on #4960 for a future night, rather than reopening tonight's
already-ACCEPT-evaluated security candidate.
2026-11-11 06:37:15 +00:00
Claude 609d425af6 dream(security): #4960 revert out-of-scope CJS-mirror edit, fix CI
The "guard" check failed: __tests__/helper-signing.test.ts's Ed25519
provenance gate (ADR-174) caught that v3/@claude-flow/cli/.claude/helpers/
hook-handler.cjs -- the npm-shipped, cryptographically signed helper
artifact -- no longer matched helpers.manifest.json's signed hash. The
previous commit's CJS-mirror port (done by an independent adversarial
critic reviewing this PR) edited that file directly; re-signing it
requires the GCP-held ruflo-helpers-signing-key, a release-time operation
explicitly out of scope and authority for this nightly research session.

A second, separate test (session-start-hook-settings-risk-scan.test.ts's
"root and package hook-handler.cjs copies are byte-identical" check) means
the root copy can't diverge from the package copy either, so reverting
only one side was not an option.

Reverted hook-handler.cjs (both copies) and the parity-test's node/deno/
bun/php sample additions to their pre-critique state. The core candidate
(settings-risk-scanner.ts + its own test/corpus) is untouched and remains
ACCEPT on its own evaluation. The CJS-mirror gap the critic found is real
and still open -- recorded in the gist/issue as a disclosed, not-fixed
finding for a future night that can go through the real signing pipeline,
rather than fixed here by defeating the gate that exists to catch exactly
this kind of unsigned edit.
2026-11-11 06:35:46 +00:00
Claude 03b4543e50 dream(security): #4960 update ledger 2026-11-11 06:33:56 +00:00
Claude 0b4e03a86b dream(security): #4960 add witnessed SOTA research gist
Local-only publication (gh CLI auth broken this session, FALLBACK for
remote gist publication only -- GitHub MCP tools still used for the issue
and PR). Witness computed from this file's final content + the session
commit; verifier procedure is in the file itself.
2026-11-11 06:31:48 +00:00
Claude fe3808bbef dream(security): settings-risk-scanner misses node/deno/bun/php interpreter allow-rules
scanAllowRuleForRisk() flagged permissions.allow rules pre-approving
bash/sh/python/ruby/perl/curl/wget etc. with no per-call confirmation, but
not an equivalent pre-approval of node/deno/bun/php -- GTFOBins-documented
shell-breakout interpreters in the same risk tier as the words already
covered. This repo's own committed .claude/settings.json carries a live,
fully-unscoped "Bash(node:*)" allow-rule this exact scanner never flagged.

Adds a dedicated INTERPRETER_WORDS list feeding only RISKY_PREAPPROVE_WORDS
(scanAllowRuleForRisk), deliberately kept out of SHELL_EXEC_WORDS so
scanCommandStringForRisk's existing node-exemption for ruflo's own fixed
hook command strings stays untouched. Corrects the benchmark corpus's
Bash(node:*) ground-truth label (was malicious:false) and adds
deno/bun/php samples; recall 0.75->1.0, precision 1.0 both ways.

An independent adversarial critique (fresh context) confirmed the fix and
additionally found this session's TS-only change would have left the
hook-handler.cjs CJS mirror (used by the session-restore hook that runs on
every session boot) out of sync on these exact cases -- ported the same
word list into both copies and extended the CJS/TS parity-guard test to
cover it. This session closed the remaining non-blocking caveat (untested
prefix-collision safety for nodemon/phpunit/bunx/denoland) with a
dedicated regression test.

Dream Cycle 2026-11-11 (security, slot 1; scan: intelligence, swarm).
2026-11-11 06:30:08 +00:00
rUv 6b8095490e Merge pull request #4958 from ruvnet/fix/4954-ship-model-router-assets
fix(cli): ship the neural router's bundled assets (#4954)
2026-11-10 23:47:25 -05:00
randRuFlo 89a323fdc9 test(cli): check #4954 assets against files instead of spawning npm pack
npm pack crashed under CI's parallel vitest run ("Exit handler never
called"). The guard now matches each default-path asset against the
package's `files` globs; it still fails on main.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 23:18:52 -05:00
randRuFlo 79137ced73 fix(cli): ship the neural router's bundled assets (#4954)
With CLAUDE_FLOW_ROUTER_NEURAL=1 the router loads seed-router.krr.json,
the low/med/high KRR specialists, four isotonic calibrators and
seed-rows.json from assets/model-router/. None were in `files`, so an
npm install fell back to k-NN-less behaviour while a repo checkout used
the calibrated KRR. Ships those nine files byte-for-byte; leaves out
the FastGRNN safetensors (read only from CLAUDE_FLOW_ROUTER_MODEL_PATH)
and the provenance note. Tarball: +2.13 MB gzipped, +4.87 MB unpacked.

A pack-listing test guards every default-path asset, including the
ADR-527 centroid artifact.

Fixes #4954

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 23:18:52 -05:00
rUv aac7396036 Merge pull request #4956 from ruvnet/deps/darwin-0.14
deps(cli): @metaharness/darwin ~0.14.0 (#4952)
2026-11-10 23:17:48 -05:00
randRuFlo de924cdc91 chore(ruflo-metaharness): 0.5.2 for the darwin ~0.14.0 helper pin
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 22:54:58 -05:00
randRuFlo b9b053e29a deps(cli): @metaharness/darwin ~0.14.0 (#4952)
0.14.0 adds an opt-in numeric surrogate (ruv-fann as an optional peer).
Without the surrogate config, evolveNumeric behaves as in 0.13.1, and
exports are unchanged. Moves the CLI range, the plugin's
DARWIN_PIN_VERSION and MH_DARWIN_PIN together. v3/pnpm-lock.yaml gains
a darwin@0.14.0 entry; 0.13.0 stays for metaharness, ruvector and
ruvllm-gpu-loop, which still declare ^0.13.0.

Fixes #4952

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 22:48:24 -05:00
rUv 60ca1a7496 Merge pull request #4953 from ruvnet/feat/centroid-agent-router
feat(router): opt-in nearest-centroid agent router (ADR-527)
2026-11-10 17:16:22 -05:00
rUv 0ef9f2de0b Merge pull request #4949 from ruvnet/test/4930-darwin-parity-diagnostics
test(metaharness): diagnose bench parity flake, fix 404-in-digest degraded misclassification (#4930)
2026-11-10 17:16:00 -05:00
rUv e2bf9769f1 Merge pull request #4948 from ruvnet/fix/bridge-agentic-flow-stable
fix(bridge): pin agentic-flow to stable 3.5.4, list only tools it exposes
2026-11-10 17:15:38 -05:00
rUv 4ff25300c8 Merge pull request #4946 from ruvnet/fix/4885-witness-unbuilt
fix(witness): report unbuilt checkouts as not-built without masking real failures (#4885)
2026-11-10 17:15:14 -05:00
rUv b7ee03e294 Merge pull request #4950 from ruvnet/release/3.75.3
chore(release): 3.75.3
2026-11-10 17:14:29 -05:00