diff --git a/gitnexus/src/core/ingestion/scope-extractor.ts b/gitnexus/src/core/ingestion/scope-extractor.ts index 746b9d694..09080d2c6 100644 --- a/gitnexus/src/core/ingestion/scope-extractor.ts +++ b/gitnexus/src/core/ingestion/scope-extractor.ts @@ -693,8 +693,14 @@ function normalizeNodeLabel(kindStr: string): SymbolDefinition['type'] | undefin case 'property': return 'Property'; case 'variable': - case 'const': return 'Variable'; + // `const` / `let` declarations align with the legacy DAG parse phase, + // which emits `Const` graph nodes via `@definition.const` capture for + // `lexical_declaration`. Returning `'Const'` here lets resolveDefGraphId's + // qualified-key path succeed for value receivers without relying on the + // simple-key fallback (PR #1718 review Finding 1 / 2026-05-21-002 U4). + case 'const': + return 'Const'; case 'typealias': case 'type_alias': return 'TypeAlias';