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
hash_text() in lib/hashing.py:16-25 correctly applies unicodedata.normalize("NFC", text). But hash_payload() in lib/hashing.py:39-48 does NOT normalize string values. _normalize_for_hash() at pipeline/ids.py:60-73 also performs no Unicode normalization.
The same conversation parsed from two different export sources (one NFC, one NFD) produces different content hashes → unnecessary re-ingestion.
Attachment seed collision
attachment_seed() at pipeline/ids.py:76-89 filters out None values with | separator. If message_provider_id is None, downstream fields shift left:
This fallback path is only triggered when file is missing AND no sha256/digest/hash in metadata, so practical collision rate is low but correctness gap remains.
Verified resolved on master. Both sub-issues are already fixed:
_normalize_for_hash (polylogue/pipeline/ids.py) applies unicodedata.normalize("NFC", value) to every string scalar — the hash_payload path goes through this function. The committed implementation already addresses the NFC gap.
attachment_seed (polylogue/pipeline/ids.py:80-92) already uses the explicit <null> sentinel for None values, so the field-shifting collision described in the issue cannot happen — (provider, attachment_id, None, name) and (provider, attachment_id, name, None) produce different seeds.
Activity
[-]fix(hash): NFC normalization gap + attachment seed collision[/-][+]fix(cli): open_verb fails provider:id routing + UX polish[/+]Sinity commentedon Apr 26, 2026
Partially addressed by #489. Remaining items tracked in this issue.
Sinity commentedon Apr 27, 2026
Verified resolved on master. Both sub-issues are already fixed:
_normalize_for_hash(polylogue/pipeline/ids.py) appliesunicodedata.normalize("NFC", value)to every string scalar — thehash_payloadpath goes through this function. The committed implementation already addresses the NFC gap.attachment_seed(polylogue/pipeline/ids.py:80-92) already uses the explicit<null>sentinel for None values, so the field-shifting collision described in the issue cannot happen —(provider, attachment_id, None, name)and(provider, attachment_id, name, None)produce different seeds.No code change required.