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