Commit Graph
9957 Commits
Author SHA1 Message Date
nk-batman21 e4e5487efc fix(migrate): honor --dry-run in migrate run and migrate fix (#4568)
The parser stores `--dry-run` (and `-d` on `migrate fix`) as `dryRun`,
but both actions read `flags['dry-run']`, which is always undefined. So
`migrate run --dry-run` ran the real migration, overwriting an existing
.claude-flow/config.json, and `migrate fix --agents --dry-run` wrote the
restored agent files. Read `dryRun`, keeping the kebab key as a fallback
as update, init and mods do.
2026-10-29 09:12:26 -04:00
kevin eb51293ddd fix(github): read dotted repo names from the origin remote in github_repo_analyze (#4571)
The remote-URL pattern stopped the repo name at the first dot, so remotes
like vercel/next.js or socketio/socket.io did not match and the repository
was reported and stored as local/repo.
2026-10-29 09:12:22 -04:00
rUvandr 89b0cd02dd release: 3.63.8 (#4566)
Ships @claude-flow/memory 3.1.0 (ControllerRegistry.set(), #4549/#4550) and
the pattern store/search fix it exposed (#4567).

Co-authored-by: r <r@x>
v3.63.8
2026-10-28 15:36:47 -04:00
rUvandr cbd1986979 fix(cli): store patterns in LocalReasoningBank when it is the registered bank (#4567)
@claude-flow/memory 3.1.0 (#4550) made ControllerRegistry.set() real, so the
bridge now registers the intelligence module's LocalReasoningBank whenever
agentdb's ReasoningBank is unavailable. It has store()/findSimilar() but no
storePattern(), so bridgeStorePattern wrote to the SQL pattern namespace while
bridgeSearchPatterns read the bank: a stored pattern was never found when the
bank already held other patterns (the #2226 test failed on CI for #4566).

- bridgeStorePattern writes to the bank's store() with an embedding from the
  same generateEmbedding() the search uses, and flushes it to disk.
- bridgeSearchPatterns falls through to the SQL namespace when the bank has
  no match, so patterns written by the fallback path stay findable.

Co-authored-by: r <r@x>
2026-10-28 14:16:31 -04:00
rUvandClaude 7387295568 dream(memory): #4549 wire ControllerRegistry.set() — MutationGuard/AttestationLog activation was permanently dead (evaluated, ACCEPT-scoped) (#4550)
* 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>
2026-10-28 12:46:23 -04:00
rUvandr e9a97ba968 release: 3.63.7 (#4565)
Co-authored-by: r <r@x>
v3.63.7
2026-10-28 11:14:12 -04:00
rUvandr c6f4e1025c fix(cli): accept type in agent_spawn and fix the remaining docs (#4542, #4557) (#4564)
#4543 fixed the six default skills, but 443 more agent_spawn calls with
`type` sat in the agent, command and Codex skill docs that init installs,
and projects initialised earlier keep their old copies.

- agent_spawn accepts `type` as an alias for `agentType` (agentType wins
  when both are sent) and reports a missing agentType by name, instead of
  the security schema's misleading "type: Required". Fixed in the CLI
  handler, so no standalone cli-core publish is needed.
- Rename the top-level `type` key of every mcp__claude-flow__agent_spawn
  call to `agentType` in .claude/{agents,commands}, the CLI and MCP package
  copies, and .agents/skills (443 keys, 71 files). Other tools'
  agent_spawn calls (flow_nexus, ruv-swarm) are untouched.
- coordination_sync: the schema now says `trigger` is refused (#4559)
  and that `force` is unused.

Co-authored-by: r <r@x>
2026-10-28 10:46:14 -04:00
Muhammad Zubair c61748c640 fix(skills): pass agentType to agent_spawn in the default skills (#4542) (#4543) 2026-10-28 10:22:36 -04:00
Aaditya 17edaf1b12 fix(coordination): refuse coordination_sync trigger instead of simulating a sync (#4559)
coordination_sync trigger waited on a simulated 50ms "sync" (a
setTimeout), incremented syncCount, set lastSync, zeroed pendingChanges
and returned { success: true, action: 'synchronized', nodesSync }. No
state moved between nodes, and it did this even with no nodes
registered.

It now returns success: false with the reason and leaves the stored
sync record untouched, as neural_compress quantize/prune do (#4195,
#4423). status and resolve only report the stored counters and are
unchanged.

Fixes #4557
2026-10-28 10:22:31 -04:00
ordinary being 77a3465030 fix(daemon): stop the local audit worker faking a clean scan (#4563)
The default-on, critical-priority local audit fallback wrote noHardcodedSecrets: true and riskLevel: 'low' without inspecting any source. A daemon with no headless scanner therefore produced a believable clean security report every 10 minutes, the opposite of the honest-empty-stub convention used by sibling fallbacks (#4549 automation scan).\n\nReport scanned:false, noHardcodedSecrets:null, riskLevel:'unknown', and an explicit note/recommendation that only file presence was checked and no secret scan or code analysis ran. Existing env-file/gitignore presence checks are unchanged; persisted JSON and return value stay identical.\n\nRegression calls the private local audit path and asserts the report no longer claims a scan/risk level, then verifies the persisted security-audit.json matches. Baseline fails with scanned undefined; candidate passes. Existing worker-daemon timer test still passes; tsc reports no errors in the touched file.
2026-10-28 08:40:20 -04:00
Aaditya 04c637782f fix(agent): implement agent_pool fill instead of returning 'Unknown action' (#4561)
agent_pool advertised 'fill' in its action enum, but the handler had
no branch for it, so every fill call returned
{ error: 'Unknown action' }.

fill is now scale without the shrink step. It grows agentType's pool
to targetSize with idle agents and never terminates any; a target at
or below the current size is a no-op. It shares scale's targetSize
validation and agent creation. scale and drain are unchanged.

Fixes #4555
2026-10-28 07:05:18 -04:00
Aaditya 5ae2d6527b fix(hooks): build-agents writes under the project, validates outputDir, drops fake stats (#4562)
hooks_build-agents had three problems:

- It resolved outputDir against the process cwd instead of the project
  (getProjectCwd). A default call therefore wrote ./agents wherever the
  server happened to run, overwriting any agents/*.yaml there; run from
  v3/@claude-flow/cli, that meant the package's own tracked configs.
- It never validated outputDir, so a `..` traversal path was accepted
  and written to.
- It reported patternsApplied = agents * 3, although no pretrain data
  is read; the configs are built-in templates.

outputDir now goes through validatePath, as hooks_codemod's filePath
does, and relative paths resolve against getProjectCwd().
patternsApplied is 0, with a note that the configs are templates. The
`hooks build-agents` CLI command reports the tool's validation error
instead of crashing on result.agents.

Fixes #4558
2026-10-28 06:08:24 -04:00
Dragan SpiridonovandClaude Opus 5.5 49f9a313ea chore(marketplace): pin agentic-qe-fleet to v3.15.16 (#4560)
Move the external agentic-qe-fleet entry from v3.15.15 (1d0cc766) to
v3.15.16 (4edfa469d8f957b45bc0ea25424eb831b134f129), so its MCP server
runs agentic-qe@3.15.16. The plugin folder changed only its version and
MCP pin. Updates the README links, the external-plugins test fixture and
the ADR-484 evidence section with the re-run install results.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 05:39:48 -04:00
Aaditya 6c0d58d010 fix(performance): report recorded latency/throughput, not fixed figures (#4556)
performance_metrics returned constant latency (current 45ms, p95 150ms)
and throughput (1250 ops/s) blocks. For the default metric 'all', it
labelled the whole response _real: true even with no samples recorded.

Latency and throughput now come from the samples performance_report
already records (latency.avg and throughput.operations, ADR-093 F8),
aggregated with the same calcStats as CPU and memory. With no samples,
each is reported as { available: false, samples: 0, _real: false } with
a note on how to record one, and a single-metric query returns
value: null. The top-level _real for 'all' is true only when every
figure was measured, and the single-metric _real comes from the metric
itself. CPU and memory are unchanged.

Fixes #4554
2026-10-28 04:52:11 -04:00
Muhammad Zubair 44675e8fd5 test(skills): check that every CLI command a shipped skill runs exists (#4552) (#4553) 2026-10-28 03:50:50 -04:00
Muhammad Zubair c5808c29ef fix(skills): use registered MCP tools in the GitHub skills (#4141) (#4541) 2026-10-28 03:50:45 -04:00
kevin bd19b6f984 fix(session): read hook-written session records in session_info and session_current (#4548) 2026-10-27 21:11:12 -04:00
rUvandr a4547c0459 release: 3.63.6 (#4546)
Co-authored-by: r <r@x>
v3.63.6
2026-10-27 17:47:13 -04:00
kevin af091d5ffc fix(claims): stop claims_rebalance from overfilling the first underloaded agent (#4547) 2026-10-27 17:42:05 -04:00
rUvandr 7d679ab425 fix(console): let Claude ack Project Anatole alerts via console_run (0.49.7) (#4545)
* fix(console): let Claude ack Project Anatole alerts via console_run

console_run anatole-ack-<id> failed with "command.run: called from a
tool.call hook, it would wait on the turn this hook is holding": the
console sent /protector and awaited its answer inside Claude's tool
call, and the host refuses a slash command while that call holds the
turn. A clock tick and immediate:true do not avoid it (probed against
Claude Code 2.1.289); a command started after the hook returns runs.

The Anatole specs now send /protector without waiting, retry for about
a minute while the host reports the turn as held, and say Queued until
the mod answers. Acks still pass the console confirm and Claude-control
level. ruflo-console 0.49.7.

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

* docs(console): link #4545 in the 0.49.7 changelog

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

---------

Co-authored-by: r <r@x>
2026-10-27 17:22:26 -04:00
f5602c0091 fix(cli): declare @claude-flow/aidefence as an optional dependency (#4445)
* 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>
2026-10-27 16:26:02 -04:00
Muhammad Zubair 9e65711ae9 fix(skills): use the hooks command and the real MCP tools in hooks-automation (#4538) (#4540) 2026-10-27 15:05:11 -04:00
rUvandr d635d422d8 release: 3.63.5 (#4544)
Co-authored-by: r <r@x>
v3.63.5
2026-10-27 15:03:57 -04:00
ee75b70201 dream(intelligence): #4531 wire real Fisher-information estimation into SONAManager's EWC++ path (evaluated, ACCEPT-scoped) (#4532)
* 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>
2026-10-27 14:37:17 -04:00
Mario JauvinandRuFlo 065089344d fix(ruflo-console): offer to create a mission for a new goal once the active mission is over (0.49.6) (#4537)
* fix(ruflo-console): offer to create a mission for a new goal once the active mission is over

The active mission stayed active for ever, so after it finished (every task
done in the ruflo task store) or was cancelled, a goal planned after it showed
"Create the mission and its tasks" as done with the old id and no create
button. missionOfGoal() now says the goal has no mission yet when the active
one is over, so the create step is the next step with its mc-create button.
A mission still going keeps the re-plan in place; a finished mission's own
goal is not offered a second time; a cancelled mission's goal can be created
again. The create itself is unchanged and still asks first.

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

* chore(ruflo-console): 0.49.6

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

---------

Co-authored-by: RuFlo <ruv@ruv.net>
2026-10-27 14:22:25 -04:00
kevin b49078cc40 fix(cli): match status aliases in the task_list status filter (#4536) 2026-10-27 10:39:12 -04:00
ordinary being 7cd18ca4e4 fix(cli): validate every http_fetch redirect target (#4534)
http_fetch validated only the initial URL, then called fetch with its default redirect:'follow'. A public URL could redirect to loopback/RFC1918/cloud-metadata or switch to file:// without ever passing validateUrl(), bypassing the SSRF allowlist. This is the redirect escalation called out as the natural follow-up to #4503/#4504.\n\nFollow redirects manually with redirect:'manual': cap at 10 hops, run validateUrl() on every Location, cancel redirect bodies, drop Authorization/Cookie/Proxy-Authorization on cross-origin hops, and apply fetch's 303/301/302 method rules. The reported URL is the final validated URL. Redirect validation failures return the same error codes as initial-URL failures (PRIVATE_ADDRESS/FORBIDDEN_PROTOCOL), with REDIRECT_LIMIT for the hop cap.\n\nSix regression tests mock fetch: loopback, IPv4-mapped metadata, file:// redirect, public relative redirect + final URL, cross-origin auth stripping, and the redirect limit. Baseline fails all six; candidate passes. Existing 37 http-fetch tests still pass, 43/43 total. tsc reports no errors in the changed file.
2026-10-27 09:29:32 -04:00
Dragan SpiridonovandClaude Opus 5.5 551428e39a chore(marketplace): pin agentic-qe-fleet to v3.15.15 (#4533)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 05:49:18 -04:00
kevin 754d772462 fix(workflow): let condition steps read a step's output (step-N.output) (#4530) 2026-10-27 02:50:05 -04:00
ruflo-bot 62ca16bcf3 chore(data): clone snapshot #17 — 0 clones (14d)
Auto-generated by .github/workflows/clone-tracker.yml.
Source: GitHub Traffic API (14-day rolling window).

Co-Authored-By: ruflo-bot <ruflo-bot@users.noreply.github.com>
2026-10-27 06:45:56 +00:00
Lenin Mookiah e30d81b845 fix(doctor): recognize matching npm launchers on Windows (#4473) 2026-10-27 01:21:35 -04:00
ordinary being 84638632fe fix(swarm): release a recovered agent from its domain pool (#4486)
recoverAgent() reset the shared AgentState to idle after a heartbeat failure but never released the agent's AgentPool reservation. Pool ownership is tracked separately, so the slot stayed busy forever and queued domain tasks could not drain; the recovered agent looked idle to getAvailableAgents() while the pool had no capacity (#4458 swarm scan).\n\nAwait releaseDomainAgent() after the reset, matching the completion/failure/cancel terminal paths; releaseAgentToDomain() then drains the next queued task into the recovered slot.\n\nRegression fills a one-agent domain, queues a second task, calls recoverAgent(), and asserts the queued task becomes assigned to the recovered agent with currentTask set (baseline leaves it queued). Existing domain release/teardown tests 10/10, full swarm suite 356/356, tsc clean.
2026-10-27 01:21:02 -04:00
kevin 99d5410b49 fix(cli): count cancelled tasks in task_summary so the counts add up to total (#4489) 2026-10-27 01:20:43 -04:00
Mario Jauvin d6816a4d6f chore: ignore Rust target/ build output (#4500)
cargo build and cargo test write to target/ at the repo root, which left the working tree dirty after test runs.
2026-10-27 01:20:37 -04:00
kevin bf76869089 fix(hooks): count pending workers in hooks_worker-status summary (#4529) 2026-10-26 20:39:20 -04:00
rUvandr dafd38a4fe feat(ai-team): semantic memory via Cognitum embeddings, ordered listing, funnel logging, anon rate limit (0.4.0) (#4527)
* feat(ai-team): semantic memory via Cognitum embeddings, ordered listing, funnel logging, anon rate limit (0.4.0)

- memory_search ranks by meaning through /v1/embeddings (cognitum-embed, 384-dim) when a key is set;
  vectors persisted only for unchanged text, never returned; outage or no key falls back to the
  labelled lexical index
- listMemories reads newest first (composite index teamId+createdAt), falling back to the unordered
  read when the index is absent
- one structured ai_team_activation log line per workflow stage, hashed tenant, no content
- per-client limit on unauthenticated requests (last X-Forwarded-For entry; OAuth and /health exempt)

Co-Authored-By: claude-flow <ruv@ruv.net>

* fix(ai-team): keep plain mcp.tool registration sites; wrap registration for funnel logging

The repo-wide guard-tool-names check scans for .tool('name'; a local tool() helper hid them.

Co-Authored-By: claude-flow <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-26 17:37:25 -04:00
Mario JauvinandClaude Sonnet 5.5 60e951415b fix(ruflo-console): keep a project copy of the mission ledger (0.49.5) (#4524)
* fix(ruflo-console): keep a project copy of the mission ledger (0.49.5)

The ledger lives in the plugin's host store, a separate file per plugin
source. A console loaded inline in one session and from the marketplace
install in the next saw an empty store, so the project's mission
disappeared from Mission Control after a restart. Each save now also
writes .claude-flow/console/mission-ledger.json (git-ignored), and a load
that finds no ledger for the project in the store restores this project's
missions from it. A store that already has a ledger is left alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(ruflo-console): offer, never adopt, missions from the project copy

The copy is a file a cloned repository can ship. Missions read from it
are now only offered (same path as pre-per-project missions, one yes
adopts each); nothing is adopted, stored or made active unasked, `active`
in the copy is ignored, and an empty ledger no longer overwrites it.

Addresses review on #4524.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(ruflo-console): word the project-folder offer as what it is

Missions offered from .claude-flow/console/mission-ledger.json were shown
under "from before per-project storage, with no project recorded", which
is wrong for them. They now get their own heading that says where they
were found and that a cloned repo can ship the file; the old heading is
kept for missions that name no project.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 16:08:34 -04:00
rUvandr 022535eafc release: 3.63.4 (#4525)
Co-authored-by: r <r@x>
v3.63.4
2026-10-26 15:44:12 -04:00
Dragan Spiridonov 16d9b7fd58 fix(federation): the WebSocket fallback listener defaults to loopback; an empty host counts as unset (#4520)
Follow-up to #4514, which moved the plugin listener to 127.0.0.1:
- WebSocketFallbackTransport.listen() still defaulted to 0.0.0.0 for callers
  that do not pass a host (it is returned by the exported
  loadFederationTransport).
- Both used `??`, so `host: ''` (e.g. from an empty env var) passed through,
  and Node binds every interface for ''.
- README still listed FEDERATION_BIND_HOST's default as 0.0.0.0.
2026-10-26 15:25:50 -04:00
Dragan Spiridonov 4d6fc66b86 fix(mcp): an unset token entry does not crash the WebSocket upgrade (#4522)
Follow-up to #4516. `auth.tokens` built as `[process.env.X]` with X unset put
undefined in the list; upgradeHasValidToken hashed it and threw inside
verifyClient on any upgrade carrying a Bearer value (an uncaught exception a
client without the token could trigger), and with `[TOKEN, undefined]` the
real token could not connect either. Unset and empty entries now match
nothing.
2026-10-26 15:20:30 -04:00
rUvandr d3cd2e2871 fix(shared): MCP transports refuse web pages, rebound hosts and open non-loopback binds (#4517)
* 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>
2026-10-26 15:10:20 -04:00
rUvandr 0219fc5d02 fix(daemon): daemon-queue entries no longer count as a manual trigger (#4515)
processDispatchQueue called triggerWorker, which set manualTrigger:true and skipped the
repository-supervisor gate, so a queue file committed in a repo ran headless workers
immediately. Queue runs now pass manualTrigger:false.

Co-authored-by: r <r@x>
2026-10-26 14:43:43 -04:00
rUvandr 3671915b8d fix(agentbbs): a .. in a room label can no longer move the room log outside basePath (#4518)
Co-authored-by: r <r@x>
2026-10-26 14:06:02 -04:00
rUvandr fc323f5108 fix(mcp): network transports start with a per-user token by default; WebSocket tokens work (#4516)
mcp start -t http|websocket with no token now uses ~/.claude-flow/mcp-http-token (0600,
created on first use) unless RUFLO_MCP_ALLOW_UNAUTHENTICATED_HTTP=1. The standalone
WebSocket transport authenticates the upgrade (Authorization: Bearer or ?token=); the
unreachable message-level 'authenticate' gate no longer fails every request, and the CLI
accepts --auth-token with websocket.

Co-authored-by: r <r@x>
2026-10-26 14:05:50 -04:00
rUvandr de8168b952 fix(federation): peer identity comes from operator-pinned keys; loopback listener default (#4514)
* fix(federation): peer identity comes from operator-pinned keys; loopback listener default; random nonces

A manifest and a handshake response both carry the key they are signed with, so they
only prove possession. VERIFIED/ATTESTED now require the key pinned in trustedPeerKeys
(nodeId -> hex public key); a mismatch is refused, an unpinned peer stays UNTRUSTED.
The listener defaults to 127.0.0.1 and handshake nonces use crypto randomness.

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

* fix(federation): a handshake response must come from the node that was challenged

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

---------

Co-authored-by: r <r@x>
2026-10-26 14:05:34 -04:00
rUvandr 29b9894d4e release: 3.63.3 (#4513)
Co-authored-by: r <r@x>
v3.63.3
2026-10-26 12:16:51 -04:00
Agustin Torres 1505a24033 Replace the models api.anthropic.com retired (#4512)
Replaced retired Claude model ids with Anthropic's recommended replacements at the places that send them or set them as defaults: the MCP sampling request, the CLI default provider config, and the provider quick-test requests.

Notice anthropic-retired-models-2026-10 about api.anthropic.com's API describes the change. It was read from a file and is not signed by the provider.
2026-10-26 12:10:53 -04:00
rUvandr cb9d030fc1 fix(federation): a policy denial of a consequential inbound message is final in legacy and observe mode (#4511)
task-assignment, memory-query, context-share, trust-change, topology-change, agent-spawn,
claim-event and agent-handoff are no longer delivered after the policy engine denied them,
and are refused when the evaluator throws.

Co-authored-by: r <r@x>
2026-10-26 11:52:24 -04:00
rUvandr c0f205629b fix(mcp): token-less HTTP/WebSocket transports refuse web pages, rebound hosts and open non-loopback binds (#4510)
Without a token the transports now check Host (loopback bind) and Origin (exact
allow-list, '*' does not count) on requests and WebSocket upgrades, and both refuse
to listen beyond loopback unless allowUnauthenticated is set.

Co-authored-by: r <r@x>
2026-10-26 11:33:00 -04:00
rUvandr 5b3bcc78cd fix(daemon): a cloned project's config can no longer enable AI workers (#4509)
daemon.aiWorkers.enabled is honoured only from the flag, RUFLO_DAEMON_AI_WORKERS=1
or the user-level ~/.claude-flow/config.json; a project file can only say false.
Headless worker context no longer globs **/.env*.

Co-authored-by: r <r@x>
2026-10-26 11:32:57 -04:00