Dashboard › opencode-lore › Distillation
f79183aa-2a69-4fe1-b90b-39624c583d3d["lore_tm_v1_e1w-CD-mQJaFWY4sqQoPkRypjV8n5hpjGgIsPAwJwO0","lore_tm_v1_8SjLHh40J2jigxC5nfSKPfnLgCuOqAfC1CsL8LMDl4g","lore_tm_v1_XabDCEqQqqSHXB8FpLy7qXfj0uVg5vNSF2-qKEtn7rE","lore_tm_v1_B4X2gDWjq2ByxB9mOb2JmxV3EJY81IjPjfCwCgjI2G0","lore_tm_v1_gD61qubxVH_zeor1mqd6v37B7X6bLh8Pxe15uCegjC8","lore_tm_v1_9G3ANDfVF5Q5P1k_p9tfgiLdKhXjwpNdLrWxLoWZ814","lore_tm_v1_7be8-iXq0ukvXh8YXSD5EG9oQj0Ku4D59uo5wAsZ9hs","lore_tm_v1_9XnGCn5zyzfdmkwIJRyL0LK9n1HbDczq42eF4NAEmwg","lore_tm_v1_ad6QZQ2fUtnYKI8UrEsyeeDz0RMhHaVY0vWKRiNtbt0"]
Date: Sep 16, 2026
jj) operations never fail on merge conflict; rebase, new, and squash record conflicts in the resulting commit, after which jj st must be used to find conflicted files and they must be resolved manually rather than with interactive jj resolve..jj/ must use jj rather than git for mutations; interactive flags must never be used, commit/description commands must include -m "msg", mutations must be verified with jj st and jj log, change IDs are preferred over commit IDs, and immutable commits such as tracked main must not be rebased or described directly.in_progress, high priority), 2. Finish cgroup headroom parsing and admission wiring (pending, high), 3. Run fail-first and mutation proofs for every critical guard (pending, high), 4. Run complete repository validation and freeze exact candidate (pending, high), 5. Obtain independent correctness and security reviews (pending, high), 6. Commit completed Jujutsu change and report findings (pending, medium).resolveNativeOrtBindingPath() must return null and never throw when native packages are absent.packages/core/test/ort-native.test.ts contains resolver regressions for absent native packages, declared workspace package discovery, nested gateway layouts, rejection of undeclared ancestor workspace packages, rejection of a workspace bin symlink escaping the package, and rejection of files whose bytes are not a valid platform-native format.packages/core/test/ort-native.test.ts:431-454 verifies a workspace bin symlink to an outside directory yields null, and replacing fixture.workspaceBinding with the text not a native addon also yields null.nativeIntraOpThreads() invocation must never throw and must return either no override (undefined) or a valid integer cap of at least 1.packages/core/test/ort-native.test.ts:457-482 tests nativeIntraOpThreads() as follows: unconstrained/default-preserving cases (4,4), (8,8), (1,1), and (8,4) return undefined; constrained cases (2,8) and (1,16) return 2 and 1; fractional or invalid parallelism (2.9,8), (0,8), (NaN,8), and (-4,8) returns 2, 1, 1, and 1; zero-argument invocation must not throw and returns undefined or an integer >= 1.WorkerInitData.forceWasm is only for a fresh npm-bundle worker after a native worker posts init-needs-wasm; the SEA vendored path uses native __LORE_ORT_BINDING_PATH__ and never sets forceWasm, while dev/test raw .ts execution has no sibling WASM files. Default or undefined means prefer native.packages/core/src/embedding-worker.ts:222-347 behavior: ensurePipeline() lazily initializes once; on a non-vendored selected-native loader error it posts { type: "init-needs-wasm", error: msg }, sets wasmRespawnRequested, and returns without posting init-error; after the promise settles without a pipeline, it throws embedding worker awaiting WASM respawn so the triggering request settles.packages/core/src/embedding-worker.ts:243-325 corrupt-model decision flow: a structurally intact model with native in use requests WASM respawn; an intact model already on WASM logs at debug severity and retries loadPipeline() once without purging; a non-intact model calls purgeCachedModel() and, if successful, retries download/load once; unrecoverable or final errors flow to the terminal catch.packages/core/src/embedding-worker.ts:327-345 terminal initialization failure sets initFailed=true, saves initError, resets initPromise=null, posts { type: "init-error", error: initError }, and rethrows; this terminal path is deliberately distinct from the recoverable init-needs-wasm path.packages/core/src/embedding-worker-types.ts:217-224 defines isMissingLocalStackError(msg): it first requires ERR_MODULE_NOT_FOUND, Cannot find module/package, or Could not locate the bindings file, then requires the message to identify @huggingface/transformers, onnxruntime, or sharp, preventing unrelated missing model files from being misclassified.packages/core/src/embedding-worker-types.ts:238-267 defines pure predicate shouldRequestWasmRespawn(usedNative, isVendored, errorMessage, fileLooksIntact), returning true only when native was used, the model is not vendored, the file looks intact, and isCorruptModelError(errorMessage) is true; the canonical case is Bun with native onnxruntime-node failing InferenceSession.create() with protobuf parsing failed on an intact approximately 137 MB model.packages/gateway/test/bundle-exports.test.ts includes parameterized tests at line 197 for requesting WASM when the selected native addon fails to load and at line 287 for rejecting a malformed native addon before loading WASM fallback, with not a native addon used at line 345; packages/core/test/embedding-worker-types.test.ts tests isNativeOrtLoadError at lines 82-99 and checks at lines 247-254 that the worker-inline implementation body matches the canonical function.