Skip to content

fix: use composition DAG to determine callee_defines_resource#48

Merged
avrabe merged 1 commit into
mainfrom
fix/callee-defines-resource-dag
Mar 20, 2026
Merged

fix: use composition DAG to determine callee_defines_resource#48
avrabe merged 1 commit into
mainfrom
fix/callee-defines-resource-dag

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 20, 2026

Checks resolved_imports to identify re-exporting intermediates. No regressions. 73/73 pass. Foundation for remaining 4 resource fixtures.

A callee that also imports the same interface is a re-exporter, not
the resource definer. Check resolved_imports to determine if the callee
re-exports: if (callee_comp, interface_name) appears as an importer in
the resolution graph, set callee_defines_resource = false.

This correctly distinguishes defining components (only export) from
re-exporting intermediates (import AND export the same interface)
without relying on canonical function entries or type definitions
which are unreliable after flatten_nested_components.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 484758c into main Mar 20, 2026
3 checks passed
@avrabe avrabe deleted the fix/callee-defines-resource-dag branch March 20, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant