mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-05 06:56:22 +09:00
* 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>