10450 Commits
Author SHA1 Message Date
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
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
randRuFlo de84eef06d docs(ruflo-graph-intelligence): changelog entry for 0.3.1
The console's ADR-478 check parses a plugin's changelog once its version is
stable semver; every heading here was a prerelease, so the file didn't parse.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 16:02:48 -05:00
randRuFlo 1f745addb5 fix(router): centroid confidence, abstain rank and learned-route bypass (ADR-527)
- A decided 'none' now reports NO_MATCH_CONFIDENCE, and a decided agent's
  confidence is a monotone rescale above it: raw cosine (0.2-0.6) ranked 25 of
  101 real test matches below a no-match (#3567). Raw cosine stays in
  centroid.score.
- When AgentDB or a persisted SONA pattern answers first, the response carries
  centroid.status 'bypassed' under the flag, so a pilot's fallback rate counts it.
- ADR: drop the 'wrong at >=0.7' claim (the raw scale never reached 0.7), record
  the clean-install check, per-process CLI cost, and that the margin grid's
  test accuracy was printed.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 15:02:42 -05:00
randRuFlo 871f2ff35b test(ruflo-metaharness): smoke accepts any plugin version from 0.5.0 up
The exact-match check broke on every ruflo-metaharness version bump.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:57:47 -05:00
randRuFlo ac36136d02 feat(router): opt-in nearest-centroid agent router (ADR-527)
CLAUDE_FLOW_ROUTER_CENTROID=1 routes hooks_route tasks to the nearest MiniLM
centroid of the ADR-391 corpus dev split. Held-out test: 63.7% vs 25.7% for
the current default, falling back on 1.8% of prompts. Off by default: p95
latency fails the ADR-391 gate.

- Centroids are versioned with the embedder (embedder, model, dim); a query
  embedded any other way is refused and the current router decides.
- Near-ties (top-two margin < 0.005) keep the current router's pick.
- Every flagged response carries centroid.baselineAgent for pilot comparison.
- The local embedder now records which model produced a vector (modelId).
- ruv-fann routing deferred: training never beat the centroid on dev CV.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:56:24 -05:00
randRuFlo 5ee6a349a3 test(ruflo-core): smoke accepts any plugin version from 0.2.15 up
The exact-match check broke on every ruflo-core version bump.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:48:17 -05:00
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 20ef743935 chore(ruflo-metaharness): bump plugin to 0.5.1
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:07:30 -05:00
randRuFlo f6bdc4e9aa chore(ruflo-core): bump plugin to 0.2.16
Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 14:07:27 -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
randRuFlo 0383c7e7b6 fix(metaharness): do not classify a "404" inside a hex digest as darwin unavailable
DEGRADED_RX matched any 404 substring. When bench.mjs cannot import
darwin (CI's Test V3 Packages job installs only v3/ with pnpm, so the
plugin script finds no @metaharness/darwin and runs the cached darwin
CLI), darwin reports a tampered suite on stderr with both sha256 digests.
A digest containing "404", about 3% of tampered suites, made
classifyDegraded() report the tamper as "darwin not available", and the
script exited 0 instead of 1.

The 404 token now has to stand alone ("404 Not Found", "E404"). The
regression test runs classifyDegraded on a tamper message whose digests
contain 404, and checks that the npm 404 forms are still classified as
unavailable.

Refs #4930

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 13:11:09 -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 84c42365a2 fix(bridge): pin agentic-flow to stable 3.5.4, list only tools it exposes
The Chat UI MCP bridge pinned agentic-flow@3.0.0-alpha.2, which pulls
@xenova/transformers -> onnxruntime-web -> onnx-proto -> protobufjs@6.11.6
(ADR-513). Measured in a clean node:24 container with npm audit --omit=dev:
3.0.0-alpha.2 = 0 critical / 8 high; 3.5.4 = 0 critical / 0 high, and
protobufjs@6 and @xenova/transformers are gone from its tree.

3.5.4 drops agentic_flow_agent, agent_booster_edit_file,
agent_booster_batch_edit and agentdb_pattern_store, so the group
description and the "Agentic Flow Group" help text now list only the
seven tools that 3.5.4 exposes through the group's prefix filter. The
prefixes are unchanged, so 3.5.4's new harness_*, sublinear_*, swarm_*,
ecosystem_status and prompt_injection_scan tools stay hidden from the UI.

Both index.js copies and both Dockerfiles are changed identically.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 13:08:15 -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
randRuFlo 0352da8033 test(metaharness): report darwin resolution path and subprocess tails on bench parity mismatch
bench.mjs now adds a top-level darwinSource field to every JSON payload
(library | cli-local | cli-cache | none). A degraded payload also carries
the darwin CLI's exit code and stderr tail. Existing fields and exit codes
are unchanged. runDarwin() returns the resolved bin source, and the shared
degraded emitter takes optional extra diagnostic fields.

darwin-inprocess-adr526 puts darwinSource, the degraded reason, and the
stdout/stderr tails in the assertion message when the bench.mjs
subprocess exit code is not the expected one.

Refs #4930

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 13:07:04 -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 5ac614dd9e fix(witness): report unbuilt checkouts as not-built without masking real failures (#4885)
verify.mjs already exited 2 with precondition dist-not-built on a source-only
checkout, but the verdict was too broad and its message was misleading:

- A built tree with ONE dist file deleted was reported as "dist-not-built"
  (exit 2) instead of a missing artifact (exit 1).
- A manifest with an invalid signature on an unbuilt checkout also exited 2.
- The text said "every manifest entry is missing" when 18 source entries had
  been checked and passed; scheduled runners quoted that as an integrity failure.

Not-built is now reported only when the signature is valid, no source entry is
regressed or missing, and none of the manifest's dist/ entries exist on disk.
Anything else falls through to the normal exit-1 failure path.

JSON gains `status` ('ok' | 'fail' | 'not-built' | 'no-source-entries') on every
path, plus `notBuilt` {distEntries, sourceEntries, distDirs} and `results` on the
not-built path. `ok`, `scope`, `precondition`, `signature` and `summary` are
unchanged, and exit 2 + precondition dist-not-built are kept for existing
consumers (smoke-witness-verify-precondition.mjs Case 5).

Adds a vitest test (collected by the root CI ratchet) with a node:crypto-signed
fixture: unbuilt -> not-built; built+intact -> ok; marker removed -> fail;
dist file deleted in a built tree -> fail; source regression and tampered
signature on an unbuilt tree -> fail.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-11-10 13:06:17 -05:00