Skip to content

fix(SR-37): per-component resource types in P2 wrapper#38

Merged
avrabe merged 1 commit into
mainfrom
fix/sr-37-wrapper-resource-types
Mar 18, 2026
Merged

fix(SR-37): per-component resource types in P2 wrapper#38
avrabe merged 1 commit into
mainfrom
fix/sr-37-wrapper-resource-types

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 18, 2026

Per-component resource types for [export] imports. Category B drops inherit existing type. 73/73 tests pass.

Changes the local_resource_types cache key to include the memory index
as a component identity proxy. [export]-prefixed imports get per-component
resource types (different memory = different component). Category B imports
(bare module resource drops) reuse an existing type for the same
(interface, resource) pair, ensuring they match the [export] version.

This prevents "handle used with wrong type" errors in multi-component
chains where the same interface appears in multiple components.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 12eb44c into main Mar 18, 2026
3 checks passed
@avrabe avrabe deleted the fix/sr-37-wrapper-resource-types branch March 18, 2026 05:41
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