Dashboard › opencode-lore › Distillation
5127f285-8a43-41eb-89f1-d7ca05fc4cf9["lore_tm_v1_DO0q99M3kc40yUJ1_wOHKsgUcrqrhjGxYUsPy3Z6ZTQ","lore_tm_v1_PpP0d3GVuAs_YiXeO2c4kyK_1dUQhYp4f02fr85DKBk","lore_tm_v1_KnAEYNiKIfLn8jb9c24oPoh57E_xnCe4cdEHxW4FR78","lore_tm_v1_4zU6VOHz0xlIGV92yJT-ZHnkBd_HYzVbYv9rUCu4NX8","lore_tm_v1_joPqQ4qDpygT1lpQNMfBmczuQY93QX4pke_KWolI0cU"]
Date: Sep 16, 2026
packages/core/src/embedding-worker.ts:232-242: it discards structured Error.code and classifies only err.message, while packages/core/src/embedding-worker-types.ts:227-235 expects ERR_DLOPEN_FAILED in the message. Node stores that value separately in error.code.failed to map segment from shared object, not a valid Win32 application, version 'GLIBC_…' not found, and wrong ELF class. These become init-error, causing another native attempt instead of the one-shot WASM fallback.packages/core/test/embedding-worker-types.test.ts:82-100 uses a synthetic message containing [ERR_DLOPEN_FAILED] and therefore does not reproduce Node’s real structured error shape. Audit required passing the structured error code to the classifier and adding Linux, macOS, Windows, noexec, and version-mismatch cases.packages/gateway/test/bundle-exports.test.ts:60-62,114-123 considers only dist/index.cjs and dist/index.bun.js, although regressions at packages/gateway/test/bundle-exports.test.ts:185-413 read and execute embedding-worker.cjs and embedding-worker.js. A stale worker can therefore be tested without triggering a rebuild; audit recommended including both workers, preferably every asserted generated artifact, in the freshness set.packages/core/src/ort-native.ts:157-160, but packages/core/test/ort-native.test.ts:422-438 symlinks the entire bin directory and is already rejected by packages/core/src/ort-native.ts:271-272; removing the binding-level guard would leave the test green. Required regression: escaped onnxruntime_binding.node symlinks with an otherwise-contained bin tree for both workspace and published-package routes.packages/core/src/embedding-worker.ts:235-239 emits and forwards raw loader messages, which packages/core/src/embedding/local.ts:768-771 interpolates into persistent logs. Real messages can expose absolute installation paths and inject newlines.Worker in packages/gateway/test/bundle-exports.test.ts:196-413, with __filename and require manually injected, so the tests do not validate Bun’s loader, globals, or native-error shape. Source and build settings appear symmetric, but there is no real Bun integration regression for the problematic runtime.tmzmtlss / e6d0f1edc8504c79ef3a6baacb1d74e4908e116b, parent 2cbf40060c67df229731cf1b9e34d5bf22ec2145, with plain-diff SHA-256 63ee4287e8fa794a661519a52a493edf6dba857a33b5da39b33bc0e40d7950da. Candidate was conflict-free, though an unrelated bookmark conflict remained.repo-setup skill was unavailable during the native audit, so the reviewer manually examined AGENTS.md, quality/REVIEW.md, and package manifests.