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
swift: _dependency_capture requires 2+ char module names, silently dropping single-letter imports from the DAG #2543
Found by the #1096 control corpus: swift's _dependency_capture requires module names of 2+ characters — ([a-zA-Z_][\w.]+) — so import a captures nothing, the dependency edge is lost, popularity stays 0, and the Contextual Baseline Fix never fires for the target file.
Evidence
The corpus's swift chain (main→a→b→c via import a etc.) is the only brace-family folder whose orphan→api conversion never fires (orphaned_logic stays 3 on all imported files); every sibling language (use a, import a, #include "a.c", …) resolves and converts. Other languages' capture groups use *-shaped tails; swift's + looks unintentional.
Impact
Small in the wild (single-letter modules are rare) but it silently truncates DAGs where they exist; the fix is one character ([\w.]+ → [\w.]*).
References
#1096 corpus ledger swift-import-capture-min-two-chars.
Activity
fix(dag): scope #2540's case-fold to the importing language's own fil…
fix(core-engine): Rosetta corpus sweep — six extraction/DAG/recorder …