src/signals/duplicate-winner.ts is a pure, IO-free adjudicator with subtle tie/sparse-row branches. The existing 161-line test may not hit every arm of isDuplicateClusterWinnerByClaim (null claim on self, null claim on a sibling, equal-claim tie broken by PR number). Fill to 97%+ branch-counted coverage.
Deliverables
References
src/signals/duplicate-winner.ts:47
src/signals/duplicate-winner.ts:38
src/signals/duplicate-winner.ts:59
test/unit/duplicate-winner.test.ts
size: XS · gittensor:bug
src/signals/duplicate-winner.ts is a pure, IO-free adjudicator with subtle tie/sparse-row branches. The existing 161-line test may not hit every arm of isDuplicateClusterWinnerByClaim (null claim on self, null claim on a sibling, equal-claim tie broken by PR number). Fill to 97%+ branch-counted coverage.
Deliverables
References
src/signals/duplicate-winner.ts:47src/signals/duplicate-winner.ts:38src/signals/duplicate-winner.ts:59test/unit/duplicate-winner.test.tssize: XS · gittensor:bug