Skip to content

fix(events): restore stable public impl field on impl:created/impl:changed (#433) - #434

Merged
Shinrai merged 1 commit into
nextfrom
fix/impl-event-callable
Sep 21, 2026
Merged

Shinrai merged 1 commit into
nextfrom
fix/impl-event-callable

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

@cldmv-bot cldmv-bot Bot added ! fix → next v4 flow: fix contributor PR targeting the next integration branch area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: documentation Relates to docs, README updates, guides, or inline code comments labels Sep 20, 2026
…impl`, drop the internal wrapper handle (#433)

#398 correctly removed the raw unwrapped impl from the public tier, but between
3.16.2 and 3.17.0 the wrapped callable was reachable only via the reserved
internal wrapper.__impl handle — a public subscriber reading the pre-3.17
`e.impl` field silently got undefined (breaking @cldmv/rummage's ext-host and
view composer).

Expose the wrapped callable on a stable public `impl` field on both public
re-emits, and DROP `wrapper` from the public event entirely: it was redundant
with `impl` and re-exposed an internal name (the coupling #433 removes). The
INTERNAL event still carries `wrapper` + `__wrapperRef` for ownership / metadata
/ routine subscribers (they read it via subscribeInternal), so onImplCreated and
the payload-hardening are unchanged. `impl` is the same wrapped callable, never
the raw impl and never __wrapperRef; null before a lazy wrapper materializes.

Removing the public wrapper eliminates the metadata-security "wrapper leakage"
attack surface at the source (nothing to harden — the reworked tests now assert
the public event exposes only the documented safe fields).
@Shinrai
Shinrai merged commit aa8da13 into next Sep 21, 2026
22 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/impl-event-callable branch September 21, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! fix → next v4 flow: fix contributor PR targeting the next integration branch type: documentation Relates to docs, README updates, guides, or inline code comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant