Skip to content

fix: use resource_definer for graph override instead of is_reexporter#64

Merged
avrabe merged 1 commit intomainfrom
fix/graph-override-definer-check
Mar 22, 2026
Merged

fix: use resource_definer for graph override instead of is_reexporter#64
avrabe merged 1 commit intomainfrom
fix/graph-override-definer-check

Conversation

@avrabe
Copy link
Contributor

@avrabe avrabe commented Mar 22, 2026

Summary

Replace is_reexporter (broken for cross-name re-exports like resource_floats) with
!defines_resource && resource_definer.is_some() — if the graph knows about this
resource and says the callee is NOT the definer, force callee_defines_resource=false.

This is infrastructure for fixing resource_floats (the adapter wiring still needs work).
No regressions — xcrate and all existing tests pass.

Test plan

  • All 78 tests pass
  • clippy clean

🤖 Generated with Claude Code

Replace is_reexporter (broken for cross-name re-exports) with a check
that the graph knows about this resource and says the callee is NOT the
definer. Uses defines_resource combined with resource_definer().is_some()
as a knowledge guard.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 1e19241 into main Mar 22, 2026
3 of 4 checks passed
@avrabe avrabe deleted the fix/graph-override-definer-check branch March 22, 2026 15:23
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