Dashboard › opencode-lore › Distillation
d63c147f-0550-4713-a051-80b578b8712b["lore_tm_v1_-YvgHnWm6CPeSesUZrMNN27JpdyVHtapjIIAseXthvg","lore_tm_v1_9JrdSXoPyZX2c509irPZtx4-H40GkJ6dxO_-vWJIfFc","lore_tm_v1_FCGvPW4IEG2UREtoxWxzkkQIfIDvufuk_-UVKkkIoyo","lore_tm_v1_OJax7watPyQZNrkLWU84brotsdMhbRHBWEK6-eEU2V0","lore_tm_v1_DIrqD2lhUJLXmmBdF72NlrbcCdZ_wnEsrfa9SU5pju0","lore_tm_v1_a86Js3VeJF_CvqwAOe3ZcADvqA_g_JpEK8ui9_LbExc","lore_tm_v1_tLGpExvcZrBc9DjAzJBFz7vo40hOsjEeFCyK0HzIWA4","lore_tm_v1_sSlVJf-Xl2TWZeeazhNSPslmkCdjCNiAxp_8gvTjmUI","lore_tm_v1_HAPbQUy5VUIy2kS6hT3JVpTkASwUlSjsQ-laBGg0wz4","lore_tm_v1_RMJumyNBRyIMh7UzfOTOgKnkot499kWKUywkKL_YAs0","lore_tm_v1_3KqBonrDJOz13BaraJH3rnUYEGcHtVGBMmQQc_77j1A"]
Date: Sep 16, 2026
WorkerInitData.forceWasm contract in packages/core/src/embedding-worker-types.ts: it is set only when respawning after a native worker posts init-needs-wasm; default/undefined prefers native. It is a no-op in vendored/SEA mode because that path uses __LORE_ORT_BINDING_PATH__ and never sets forceWasm, and it is also a no-op in dev/test because raw .ts has no sibling WASM.tmzmtlss / Git commit e6d0f1edc850, description fix(core): correct embedding runtime selection and admission, is based on parent pxrvwsvv / 2cbf40060c67 on main, description feat(cch): add seeds for Claude Code up to 2.1.272 (#1780).packages/core/src/cgroup-memory.ts and packages/core/test/cgroup-memory.test.ts; modified packages/core/src/embedding/local.ts, packages/core/src/embedding/pool.ts, packages/core/src/embedding-cap.ts, packages/core/src/embedding-worker-types.ts, packages/core/src/embedding-worker.ts, packages/core/src/embedding.ts, packages/core/src/ort-native.ts, packages/core/test/embedding-cap.test.ts, packages/core/test/embedding-pool-memory.test.ts, packages/core/test/embedding-pool.test.ts, packages/core/test/embedding-worker-types.test.ts, packages/core/test/ort-native.test.ts, packages/gateway/script/bundle.ts, packages/gateway/script/ort-platform-package.ts, packages/gateway/test/bundle-exports.test.ts, and packages/gateway/test/ort-platform-package.test.ts.fix/responses-private-references had a conflict and remained untouched.AGENTS.md states tests use a temporary SQLite database through packages/core/test/setup.ts, never the production database.CHANGELOG.md; Sentry Craft handles both automatically. Release workflow can be triggered with gh workflow run release.yml -f version=auto or an explicit version such as gh workflow run release.yml -f version=0.23.0.scripts/bump-version.sh updates all package.json versions; 2. changelog is generated from conventional commits; 3. a release/X.Y.Z branch is created and pushed; 4. CI tests and builds npm tarballs, standalone binaries, and delta patches; 5. Craft opens a publish issue; 6. labeling it accepted runs publishing through npm OIDC trusted publishing and creates the GitHub Release with binaries and patches.package.json pins packageManager to pnpm@10.28.0, Volta Node to 24.16.0, Volta pnpm to 10.28.0, and overrides onnxruntime-node to 1.27.0.pnpm test (vitest run, preceded by gateway bundling), pnpm run typecheck, pnpm run lint (oxlint --type-aware), pnpm run format:check (oxfmt --check), and pnpm run build; mutation testing uses stryker run.CONTRIBUTING.md was absent at /home/byk/Code/opencode-lore-embedding-runtime/CONTRIBUTING.md.quality/REVIEW.md requires two distinct review passes for non-trivial changes: 1. adversarial/correctness review covering break-inducing states, enumerated cases, apply-then-revert mutants, property-test stability Γ10, hash-equivalence proofs, frozen-array mutation safety, and stale-cache analysis; 2. security/pentest review covering injection, credential leaks, protocol-level attacks, and privilege escalation. Adversarial review is mandatory before merge; security review depends on risk profile.pnpm test, pnpm run typecheck, pnpm run lint, and pnpm run format:check commands and inspect exit codes; verify property tests across 10 runs; confirm the working tree is hash-verifiably unmodified afterward; and report each point as PASS, FAIL, CONCERN, or MUST-FIX with file:line evidence plus an overall MERGE or DO-NOT-MERGE verdict.packages/core/src/cgroup-memory.ts intentionally rereads /proc/self/cgroup and /proc/self/mountinfo on every discovery because membership can change during process lifetime; a worker must never be admitted from a stale cgroup directory or a cached discovery miss.resolveLinuxCgroupMemoryFiles() parses both cgroup v1 memory-controller and cgroup v2 memberships, prefers an explicit v1 memory controller on hybrid hosts, decodes procfs octal escapes, rejects non-absolute/NUL/.. paths, prefers the deepest direct mount root, and accepts a namespace-relative interpretation only when exactly one candidate is available.readLinuxCgroupMemoryHeadroomBytes() reads v2 memory.current against both memory.high and memory.max, or v1 memory.usage_in_bytes against memory.limit_in_bytes; it walks from the process cgroup to the mount point and returns the minimum finite max(0, limit - usage) headroom across boundaries.undefined for malformed/unsafe paths, unreadable or malformed usage/limit data, ambiguous discovery, unsafe parent traversal, or other exceptions. The only tolerated missing-boundary case is the unresource-controlled cgroup v2 root where directory === mountPoint and root === "/".