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
Doc-extraction prompt's node-ID rule contradicts graphify/ids.py for non-ASCII paths #3103
graphify/ids.py normalizes IDs with re.sub(r"[^\w]+", "_", s, flags=re.UNICODE), so CJK / Cyrillic / accented-Latin letters survive. The module docstring states this explicitly and lists #811 (Unicode collapse) as already fixed.
The bundled skill's doc-extraction prompt (skills/*/references/extraction-spec.md) tells the subagent something different:
"Node ID format: lowercase, only [a-z0-9_]"
"each segment lowercased with non-alphanumeric chars replaced by _"
A subagent following that text maps every non-ASCII character to _, so only segment lengths survive.
Repro
Any corpus with non-ASCII directory or file names. Three distinct files:
Distinct files collapse onto one ID when their non-ASCII segments have equal character counts at the same positions, and one node silently overwrites the other on merge. No error is raised.
Expected: distinct source files receive distinct node IDs, and the LLM's IDs agree with ids.py.
Suggested fix
State the charset in the prompt as \w under Unicode semantics and drop the "only [a-z0-9_]" wording, so the three producers named in the ids.py docstring agree.
Verified on 0.9.46 and 0.9.50 — references/*.md are byte-identical between the two, so the wording is unchanged in the current release.
Activity
fix(prompt): describe the node-ID class ids.py actually produces