* chore(release): 3.57.0 version bumps and changelog
Co-Authored-By: RuFlo <ruv@ruv.net>
* chore(release): 3.57.0 witness regen from a full build (117/117)
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
assignTaskToDomain() acquires an AgentPool slot, but handleTaskComplete(), terminal handleTaskFail() and cancelTask() only reset AgentState. releaseAgentToDomain() had no callers, so each finished domain task permanently consumed a slot and domainTaskQueues never drained. Release the pool-owned agent on terminal transitions and dispatch the next queued task. Skip terminal queue entries and avoid scaling a one-agent domain before its queued task is dispatched.
Co-authored-by: r <r@x>
Co-authored-by: RuFlo <ruv@ruv.net>
Domain pools now disable AgentPool autoScale/healthChecks. acquire() no longer synthesizes a *-domain-pool_agent_N that is absent from coordinator state, topology, message bus and consensus; assignTaskToDomain() queues instead. checkScaling(), initialize() minSize seeding and explicit scale() are no-ops for these pools. Type-based pools keep the previous defaults.
daemon status printed config.ttlMs of the default-config WorkerDaemon it
builds in the status process, so a background daemon started with
--ttl 0 showed 'TTL: 12h (self-shutdown)'. Read ttlMs from
daemon-state.json when the background daemon is running, as is already
done for aiWorkersEnabled and for daemon status --all.
Map outcomes and steps to the fields consumed by ruvllm pattern extraction. Add coverage for success, failure, and partial trajectories.
Refs #4199 (part A).
* fix: bump @metaharness/darwin pin from ~0.10.2 to ~0.12.0 (#3219)
npm published 0.11.0 and 0.12.0 after the last pin bump, leaving the
optionalDependencies range, MH_DARWIN_PIN, and the plugin helper's
DARWIN_PIN_VERSION all stale. scripts/check-metaharness-pins.mjs now
reports clean (was: STALE), and the metaharness-pin-drift CI gate,
which runs on every PR touching these files, was failing repo-wide
as a result.
Verified: check-metaharness-pins.mjs exits 0; plugin test-pin-alignment.mjs
(12/12) and test-no-tool-time-npx.mjs (26/26) pass against the new pin.
Co-Authored-By: RuFlo <ruv@ruv.net>
* fix: update v3/pnpm-lock.yaml for the @metaharness/darwin ~0.12.0 bump
Minimal surgical patch (specifier/version + the resolution block's
version/integrity), not a full pnpm regen — a full `pnpm install
--no-frozen-lockfile` here also drags in unrelated transitive bumps
(ruvector 0.2.27->0.2.41, vite 7.3.0->8.3.4, etc.) that don't belong
in a pin-drift fix. Verified with `pnpm install --frozen-lockfile`.
Co-Authored-By: RuFlo <ruv@ruv.net>
---------
Co-authored-by: r <r@x>
* dream(performance): #4214 RaftConsensus.awaitConsensus() busy-poll -> event-driven
RaftConsensus.awaitConsensus() polled this.proposals via setInterval(...,10)
even though checkConsensus() already emits 'consensus.achieved' on every
accept/reject transition. Raft is Ruflo's default hive-mind consensus
algorithm, reachable from production via UnifiedSwarmCoordinator.proposeConsensus().
Third instance of a busy-poll bug class already fixed twice (UnifiedSwarmCoordinator
#3378, MessageBus #3563).
4 new discriminating tests, stash-isolated baseline-fails/candidate-passes
(3/4, 1 correct non-discriminating control), independently reproduced by an
adversarial critic. Full @claude-flow/swarm suite 281/281 (277 existing + 4
new), tsc clean both ways. Standalone wall-clock probe: 3.639ms/30 poll-timers
-> 0.058ms/0 timers (N=30).
Also closes a 3-night research thread (10-09/10-10/10-14) on graph-analyzer.ts's
dead native-acceleration detection: direct inspection shows ruvector's real
minCut/louvainCommunities exports are plain JS, not native-accelerated, so
wiring them in would not be a performance win (REJECT, with evidence).
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MFLiva2zVEXr2n9UTK5YgU
* dream(performance): #4214 record PR #4215 in LEDGER.md
Fill in the real PR number (was a placeholder pending PR creation) in
tonight's ledger row, and note the 10-12/10-13/10-14 ledger-transcription
gap per the established convention.
Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01MFLiva2zVEXr2n9UTK5YgU
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix(memory): memory_import_claude re-imports edited files and says why one failed (#4197)
The section writes did not pass upsert, so any key already in the store was
rejected and the catch only counted skipped++, returning success:false with no
reason. Upsert like memory_store, and list the first errors.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(memory): resolve Claude import roots across Git worktrees
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
#4147: stub the optional @claude-flow/aidefence engine (CI does not build it, so the handlers returned error
JSON and 'safe' was undefined); the known-miss store under test stays real.
#4146: the bare-subpath precondition accepts ERR_MODULE_NOT_FOUND as well as ERR_PACKAGE_PATH_NOT_EXPORTED
(an agentic-flow install without that file fails the bare import differently).
Co-Authored-By: RuFlo <ruv@ruv.net>