mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* fix(security): realpath containment in hooks_codemod; strict-majority Raft quorum hooks_codemod (#4346, CWE-59): the project-root check compared lexically resolved paths, so a symlink inside the project pointing outside it let the codemod read and rewrite files outside the root. Both the file/files[] and glob branches now also compare real paths (nearest existing ancestor for missing leaves) against realpath(projectRoot) using path.relative. RaftConsensus (#4458): quorum was floor(n * 0.66), i.e. 1 for 2- and 3-voter clusters, so the leader's self-vote accepted a proposal even after a peer rejected it. Quorum is now max(floor(n/2)+1, floor(n * threshold)). @claude-flow/swarm 3.0.2 -> 3.0.3. Fixes #4346 Fixes #4458 Co-Authored-By: RuFlo <ruv@ruv.net> * chore(swarm): 3.0.4 (3.0.3 was published without dist) Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: r <r@x>