Skip to content

Support prebuilt WebAssembly libraries in module compilation (0.10.3) - #21

Merged
TJKoury merged 3 commits into
mainfrom
issue-766-prebuilt-libraries
Nov 16, 2026
Merged

TJKoury merged 3 commits into
mainfrom
issue-766-prebuilt-libraries

Conversation

@TJKoury

@TJKoury TJKoury commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

MODULE compilation accepts prebuiltLibraries: relocatable WebAssembly objects and static archives with declared kinds and SHA-256 hashes. Inputs retain producer symbols and link after module objects in declared order. Their bytes participate in the link cache.

Module and flow compilation share guest-link verification. Directory and single-file guest-link bundles carry library bytes and metadata. Flows link identical names and hashes once and reject conflicting content for a name or namespace. Existing artifact guards retain their checks; failures name participating libraries. The compile CLI accepts --prebuilt-libraries and --thread-model. Package and lockfile versions are 0.10.2.

Validation:

  • Real compile E2E: two-object archive plus a plain object; SDK host returns 42, changed library bytes return 43 with a link-cache miss, and two linked modules return 84. Hash mismatches, conflicting libraries and forbidden thread imports are refused. CLI and single-file guest-link bundle checks pass.
  • Pinned PEPPER wasm-v0.1.0 release: tarball and library hashes verified; published header and all three auxiliary libraries compile through the SDK; pepper_vnorm([3, 4, 0]) returns 5 without kernels. No PEPPER skip.
  • Existing compiler, compliance, flow and bundle tests: 278 passed, 0 failed, 2 skipped (external flow fixture and repo-local Emscripten shared-memory toolchain unavailable).
  • npm publish --dry-run passed, including npm test, npm run check:compliance, and npm run check:generated-bindings. The final package inventory passed with lifecycle scripts disabled after the CLI addition.
  • The unchanged basic-propagator example produces identical wasm and guest-link bytes with compilation caching disabled. Wasm SHA-256: f5dcb5403cc3143517bd1449df46704725e5ad98435ef18b5e9417e513a543ad.

Signing checks use throwaway in-memory identities or public test vectors. No release artifact is signed or published.

🤖 Generated with Claude Code

TJKoury and others added 3 commits November 16, 2026 11:01
Module and flow compilers share the guest-link library contract.

Co-Authored-By: Codex <noreply@openai.com>
Verify hashes and kinds through shared guest-link handling. Preserve link
order and producer symbols, carry libraries into guest-link output, and
reject conflicting flow inputs. Add CLI input, documentation, real compile
coverage including PEPPER, and version 0.10.2.

Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@TJKoury TJKoury changed the title Support prebuilt WebAssembly libraries in module compilation (0.10.2) Support prebuilt WebAssembly libraries in module compilation (0.10.3) Nov 16, 2026
@TJKoury
TJKoury merged commit 52674fb into main Nov 16, 2026
1 check passed
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