Skip to content

contracts: A25 — sync callbacks are handed to host modules by the application - #258

Merged
lannbot merged 1 commit into
mainfrom
a25-host-module-note
Aug 31, 2026
Merged

contracts: A25 — sync callbacks are handed to host modules by the application#258
lannbot merged 1 commit into
mainfrom
a25-host-module-note

Conversation

@lannbot

@lannbot lannbot commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

One-paragraph clarification of A25's placement rule, prompted by review: host impls import @polyengine/protocol at most (A22), so a host module that wants a synchronous guest callback is handed sync(exports.f) by the application — same pattern as StreamWriter handing (A22). No behavior change; contract text only.

Automerge armed.

…ation, never by importing the runtime

Pins the A22 consequence explicitly: sync() is application machinery, and
the host-module path to a synchronous guest callback is being handed the
sync(exports.f) function by the deploying application — the StreamWriter
handing pattern, verbatim.
@lannbot
lannbot enabled auto-merge August 31, 2026 00:40
@lannbot
lannbot merged commit 602f330 into main Aug 31, 2026
4 checks passed
@lannbot
lannbot deleted the a25-host-module-note branch August 31, 2026 00:44
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.

2 participants