mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-09-16 12:02:35 +00:00
- getCandidates: sort all tiers by alignment-toward-src combined with distance penalty (sortScore = cosine_similarity - dist_km/50) rather than distance alone. When src is unknown the alignment term is 0 so distance sorting is preserved. - maxSkips: changed from pathHashes.length (skip everything) to min(2, floor(N/3)) — prevents degenerate paths on sparse data Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>