You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_collision_rank falls through to lexical filename order #2532
graphify/dedup.py_collision_rank falls through to lexical filename order when two nodes share an ID. plans/_done/ sorts before plans/in-progress/ in ASCII — so the archived copy wins by alphabet. That's why binding doctrine resolved to a dead plan.
Fixed in v0.9.36. _collision_rank no longer falls through to raw lexical source_file order: it now ranks by a lifecycle penalty (active over archived) computed on the root-relative path, then a reversed-segment tie-break, so the winner of an id collision (e.g. plans/_done/x.md vs plans/in-progress/x.md) no longer depends on ASCII filename order, absolute-vs-relative path form, or the checkout directory name. Thanks for the sharp root-cause.
Activity
fix(dedup): deterministic node-id collision rank, active over archived (
safishamsi commentedon Aug 7, 2026
Fixed in v0.9.36.
_collision_rankno longer falls through to raw lexicalsource_fileorder: it now ranks by a lifecycle penalty (active over archived) computed on the root-relative path, then a reversed-segment tie-break, so the winner of an id collision (e.g.plans/_done/x.mdvsplans/in-progress/x.md) no longer depends on ASCII filename order, absolute-vs-relative path form, or the checkout directory name. Thanks for the sharp root-cause.Merge upstream/v8 (v0.9.37) into chore/sync-upstream-0937
fix(dedup): don't over-merge distinct same-file labels differing by a…
fix(dedup): deterministic node-id collision rank, active over archived (
fix(dedup): don't over-merge distinct same-file labels differing by a…