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>
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>
/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>
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>
#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>
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>
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.
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>
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.
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.
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.
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>
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>
- 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>