Dashboard › opencode-lore › Distillation
6fa3dd0e-0474-4a09-8774-cceea4321103["lore_tm_v1__g6plQHZkNnglOJN10kbqsxNB1PF14yut3mKFUtK-Ys","lore_tm_v1_GHFerfUGIs-nytqfAdCBciI3HJw9mJo5-1N7YkSSu28","lore_tm_v1_LLM7BckZADeTmIcpVYBHmzfVEigsaH395GQha4cHD0g","lore_tm_v1_yghAZDtrmXOTRP6qvtNlCbh6XgZgHFE5kElnRB-I5B4","lore_tm_v1_j2vLWZ0VMqkfDvvpVQgRBejLfYS9KDbJa2dRTptuaYQ","lore_tm_v1_Ya4ywvZREP3xZUFU7SlK-KAAiANg8NAciaAIDqAfIPM","lore_tm_v1_ken8rowPrS6Zb2TMf8RKtpWrTtZidSoY8wk_mEQNwaI","lore_tm_v1_8dnEphL5x8DEKDaPEEUnmNuWRv8bTYeM5j496qRoPeE"]
Date: Sep 16, 2026
SIGKILL the process and the Γ0.7 OOM backoff never fires; the WASM path self-limits against its fixed 4 GiB heap.clampFreeToContainerLimit() is monotonic: it can only lower the free-memory figure, never raise it, and therefore never increases memory use.validNativeBinding() in packages/core/src/ort-native.ts:150-172 checks only 4 magic bytes and never checks file size or CPU architecture.log.info always writes to the persistent log via packages/core/src/log.ts:464-470.MUST-FIX, with 3 release blockers: 1. weak native-binary validation, 2. a false WASM retry when no WASM artifact exists, and 3. raw native-loader text entering persistent logs.validNativeBinding(); packages/core/test/ort-native.test.ts:35-44,169-175 codifies this weakness by accepting 4-byte βnativeβ files. Missing regressions were valid-magic truncated files and wrong-CPU headers for every target.packages/core/src/embedding-worker.ts:135-145,231-240 classifies only err.message using incomplete text patterns and discards structured ERR_DLOPEN_FAILED. Standard Windows messages such as not a valid Win32 application and DLL initialization routine failed return false, causing initialization retries and eventual unavailable-state latching instead of WASM fallback. Missing regressions were structured loader error codes and real Windows/macOS loader messages.usedNativeBinding only means WASM paths were not set (packages/core/src/embedding-worker.ts:410-416), so the catch can emit init-needs-wasm even when bundled WASM does not exist (packages/core/src/embedding-worker.ts:231-240). forceWasm does nothing in dev/core mode (packages/core/src/embedding-worker-types.ts:484-490), and the core build ships no WASM siblings (packages/core/script/build.ts:88-95); the parent consequently performs 1 misleading βWASMβ respawn in packages/core/src/embedding/local.ts:754-778 that loads native again.packages/core/src/embedding-worker.ts:232-239, and the parent interpolates it into log.info at packages/core/src/embedding/local.ts:768-771. Loader errors can contain absolute paths or hostile path-derived free-form text/newlines. Required regression: pass a path/newline-bearing loader error through fallback and assert the sink receives only a fixed categorical message.index.cjs and index.bun.js, not the worker or WASM artifacts later exercised by packages/gateway/test/bundle-exports.test.ts:114-123,185-413; ESM worker tests run under Node rather than Bun. Hoisting and ordinary symlinks are covered, but Yarn PnP/unplugged and final packed-tarball installation are not tested.packages/core/src/ort-native.ts:206-285.--printConsoleTrace.forceWasm caused 0 native loads.dist/.@ from 27ba2e5f to e6d0f1ed; only pool/cgroup files differed, while all audited resolver, worker, and bundle-test hashes remained unchanged.repo-setup skill was unavailable during the audit, so the audit followed AGENTS.md, quality/REVIEW.md, and package manifests directly.isNativeOrtLoadError(msg) in packages/core/src/embedding-worker.ts:135-145 requires both a native-runtime identifierβonnxruntime_binding.node, an ONNX Runtime .so/.dylib/.dll, or OrtGetApiBaseβand one of several textual loader-failure patterns, including ERR_DLOPEN_FAILED, invalid ELF/Mach-O/Win32, file too short, missing shared object/image/module, undefined/missing symbol, or dlopen.ensurePipeline() behavior in packages/core/src/embedding-worker.ts:227-345: a non-vendored worker using native that encounters a classified native loader failure logs the raw message, posts { type: "init-needs-wasm", error: msg }, sets wasmRespawnRequested=true, and later throws embedding worker awaiting WASM respawn; final failures instead post { type: "init-error", error: initError }.loadPipeline() detects an npm bundle only when sibling files ort-wasm-simd-threaded.mjs and ort-wasm-simd-threaded.wasm both exist. In that mode, forceWasm skips resolveNativeOrtBindingPath(__filename) and sets globalThis.__LORE_NPM_WASM_PATHS__; otherwise a resolved native path sets globalThis.__LORE_ORT_BINDING_PATH__.InitNeedsWasm in packages/core/src/embedding-worker-types.ts:100-104 currently carries type: "init-needs-wasm" plus a human-readable error containing the underlying native model-load error; WorkerOutbound includes EmbedStarted, EmbedResult, EmbedError, InitError, and InitNeedsWasm.