Commit Graph

2 Commits

Author SHA1 Message Date
qybaihe d66b9af1f2 feat(sidecar): auto-wire WASM JS-loader hook into known Node ESM loaders + REA catalog hygiene
Extend the 2026-11-16 Node CJS auto-wire so a same-directory Node.js
ESM loader (.mjs or ESM .js) whose static import/export-from specifiers
are Node builtins only also receives the already-landed WASM
bla.sidecar.v1 load-time hook (carrier: "module"). Record
wasm-sidecar-entangle and clear wasm-sidecar-host-verify-only only when
that hook was actually written. Browser fetch-only loaders and ESM
files that statically import user modules or .wasm stay untouched.

Honesty: jsModuleHasHoistedDependencyGraph no longer treats Node
builtin-only imports as a user hoisted graph.

Catalog REA tip 05be423ac inspection/walk ceilings (DWARF, ELF
debug-link/DT_NEEDED, Maven/Gradle, NuGet, Android OTA/boot) as
honesty-only REA_INTERNAL_LIMITS — not densify trip targets.
2026-11-18 02:08:36 +08:00
qybaihe b7c92f7987 test(honesty): ESM sidecar hoist side effects vs CJS process-start
Prove that deleting a sidecar after ESM-native entanglement still
prints imported module side effects before integrity binding mismatch,
that a CommonJS require graph does not, and that verifyTarget only
annotates esm-import-hoist-before-hooks for the hoisted ESM case.
Intact artifacts stay functionally equivalent (RESULT 5).
2026-11-16 10:06:03 +08:00