emitFreeCallFallback applied the lexical name-claim block before it asked the language's resolveQualifiedFreeCall hook, so a call written with an explicit path (`pkg::fn()`) lost its edge whenever a parameter, `for` variable or local binding of the same bare name was in scope, although the path names the module and a local binding of the tail cannot be what it means. The hook is now evaluated before the block and a defined hit for a site with rawQualifiedName bypasses it; the same result is reused at the old call site. An undefined hit, a site without a written path and a language without the hook keep the block. This is the declared shared-pass exception of the R review fixes: the edit is in scope-resolution/passes/free-call-fallback.ts, language-neutral, and names no language. The resolveQualifiedFreeCall docstring in scope-resolution/contract/scope-resolver.ts is clarified to say the hook outranks the name-claim block (the contract left that order open). Besides R, only PHP and Rust implement the hook; no existing pin in any language moved. New pins: a unit test with a fake hook for the ordering, Rust and PHP fixtures for the shape, and the R cells (`pkga::helper(x)` beside a local `helper`, and beside a same-named parameter or `for` variable) that the R provider documented as a known loss. |
||
|---|---|---|
| .. | ||
| c-ingestion-gaps.md | ||
| cobol-ingestion-gaps.md | ||
| cpp-ingestion-gaps.md | ||
| csharp-ingestion-gaps.md | ||
| dart-ingestion-gaps.md | ||
| go-ingestion-gaps.md | ||
| java-ingestion-gaps.md | ||
| javascript-ingestion-gaps.md | ||
| jupyter-notebook.md | ||
| kotlin-ingestion-gaps.md | ||
| local-import-scoping.md | ||
| objective-c-ingestion-gaps.md | ||
| objective-c-provider.md | ||
| php-ingestion-gaps.md | ||
| python-ingestion-gaps.md | ||
| r-provider.md | ||
| README.md | ||
| receiver-resolution-audit.md | ||
| ruby-ingestion-gaps.md | ||
| rust-ingestion-gaps.md | ||
| swift-ingestion-gaps.md | ||
| typescript-ingestion-gaps.md | ||
| vue-ingestion-gaps.md | ||
| zig-ingestion-gaps.md | ||
Language Ingestion Gap Inventories
These inventories are the starting point for language-specific plans. There is one
<language>-ingestion-gaps.md file for each of the 18 languages in
SCOPE_RESOLVERS.
Names match provider directories; jvm is shared infrastructure, not another language.
Freshly audited on 2026-10-23 with production sources at c35806d24 and the
accompanying benchmark changes. The measurement receipt
records the commands, exact-target checks, newly executed exclusions and test limits.
The baseline now covers
110 executable cases and 58 explicit N/A declarations. Parsing, imports, visibility,
inheritance and incremental behavior still need separate evidence; these fixed
receiver examples do not establish whole-language, CFG/PDG or rename completeness.
Inventories
| Language | First planning candidate |
|---|---|
| C | Reproduce header ownership separately from pointer dispatch. |
| COBOL | Measure procedure-pointer and structural-call paths separately. |
| C++ | Substitute explicit template arguments into proven return types. |
| C# | Trace typed array receivers and qualified nullable fields. |
| Dart | Correct awaited-call ownership; trace indexed and generic receivers. |
| Go | Expand ownership coverage beyond the passing receiver matrix. |
| Java | Trace array-element receiver typing. |
| JavaScript | Preserve JSDoc container evidence for indexed receivers. |
| Kotlin | Inventory companion and inherited-receiver limits. |
| Objective-C | Add receiver measurements without weakening dynamic-dispatch boundaries. |
| PHP | Retain PHPDoc container types and establish namespace owners. |
| Python | Audit constructor-field and module ownership coverage. |
| Ruby | Isolate YARD parameter bindings before adding recall. |
| Rust | Measure conservative smart-pointer limits before widening them. |
| Swift | Type indexed receivers, then revalidate historical reports. |
| TypeScript | Revalidate deferred narrowing contracts. |
| Vue | Type indexed receivers in SFC script blocks. |
| Zig | Add matrix coverage for the delivered receiver forms. |
Reading the evidence
| Label | Meaning |
|---|---|
| Measured gap | A checked-in receiver cell lacks its call edge. Reproduce on the chosen base before fixing it. |
| Recorded gap / boundary | The baseline notes, source contract or dedicated tests describe a limitation; it may be outside the shape matrix. |
| Negative control / deliberate limit | An unresolved result protects precision. Do not make it resolve without new evidence of the exact target. |
| Coverage gap / audit | A measurement is absent or coverage needs inventory. This does not establish a product bug. |
| Historical reports | Older claims still need current positive and negative reproductions. |
The receiver harness has separate states:
- RESOLVES: the terminal call reaches its full expected declaration ID, with no same-named edge to a different owner. This proves only the supplied fixture.
- WRONG-TARGET: at least one same-named call reaches another declaration, including any guessed edge from an untyped control.
- VISIBLE-GAP: no matching edge, with a recorded receiver-unresolved drop. Some cells intentionally represent untyped negative controls.
- INVISIBLE-GAP: neither the edge nor the receiver drop is recorded; drop counts cannot reveal this loss.
- N/A: the harness declares this spelling inapplicable to its measurement. Read its reason before interpreting language support.
- GRAMMAR-UNAVAILABLE: the parser did not load. No behavior was measured; this is not a product-gap verdict.
An all-N/A row (C or COBOL) does not mean complete ingestion. Vue now has an executable SFC row. Zig and Objective-C have dedicated tests but no row in this shape arm. A fully resolving row also proves only its fixed examples. The baseline's count arm includes external and unknown receivers, so total drops are not an actionable bug count.
Turning an inventory into a plan
- Select a stable gap ID and pin the implementation base. Record a minimal source example, expected full target identity, observed edge/drop and relevant tests.
- Add a meaningful negative: a same-name decoy, unknown type, shadowed import or ambiguous owner. Keep intentional untyped controls unresolved.
- Locate the missing fact: parsing/capture, type extraction, declaration ownership, import binding, receiver folding or dispatch. Keep language rules in providers and shared resolution algorithms language-agnostic.
- Write the plan under
docs/plans/, linking back to the gap ID. Define the smallest contract change, affected tests and corpus/benchmark comparisons. Follow the repository's impact-analysis and pre-commit change-analysis requirements. - Run focused regressions and the receiver check before updating expectations. The harness documents build and cache requirements. Record grammar skips and measurement limits explicitly.
- Update the inventory with the merged PR, verified source revision and evidence. Close the specific item without marking the whole language complete.
Keep historical reports separate from measured gaps. When adding a registered language, add its inventory here; when refreshing a snapshot, update its source pin and explain intended baseline changes. Do not copy old green results as fresh runs.
Related documentation
-
Receiver measurement audit: fresh results and corrected classifications.
-
Type Resolution System: active layers and lifecycle.
-
Type Resolution Roadmap: planned work and acceptance criteria.
-
Architecture: provider contract and shared pipeline.
-
Objective-C provider guide: supported static behavior and runtime limits.