Dashboard › opencode-lore › Distillation
2934d567-d393-48a8-a3b6-1ddbd336bfdc["lore_tm_v1_F2fuMI2T3JoES4Z7T-s9RA25wbUzu2WE5moD5EAaK2M","lore_tm_v1_ZwPWoXpUd_Ig_O2I4EbvXRxnChmvv4R8qdnwYc8NJPU","lore_tm_v1_QSDIns0SyOcSqUHUBvDAvarM-TeFASufPOmfjS7NESo","lore_tm_v1_fQcnq1MlTqnROYXMj2hUDUuTJrFXKpQDMcR-SH7jPPM","lore_tm_v1_5kzJDokdNS6_HjFzMk3cXdoiWacN8Qa_xqAyhlEfRp4","lore_tm_v1_pSq8FGdrCkgEZ5LHd0ZhFaMLGkPDTnRvnX8do0y1k3s","lore_tm_v1_rlXYU8Trr4JTrK2bJvDEfDrVNnYmTJbdh7MDC0HTnsc","lore_tm_v1_vKSh091sb8bv3j-FZ67N4zfIkt7CJwBgeJk_kw1u_3Q","lore_tm_v1_BYYHvAMYhO1Fa0OqafOrBIEj_len6Qoci_--_xqOf7M","lore_tm_v1_JimbDrm_NbSJ8LVgitIjLACegURv9yozNbhRqStODwg"]
Date: Sep 17, 2026
reconcileEmbedCap() to never re-probe up to or past a persisted knownBadCap on a memory-rich reboot; the hard ceiling is knownBadCap - 1.knownBadCap to act only as a ceiling and never raise a lower trusted learned cap; knownBadCap=0 means none learned and imposes no ceiling.packages/core/test/embedding-cap.test.ts verifies reconcileEmbedCap(4 * GB, stored, 4000, 3000) === 2999, preserves a trusted cap of 1500 below the ceiling, and verifies reprobeEmbedCap(2000, 64 * GB, 2400) === 2399.knownBadCap?: number in packages/core/src/embedding-cap.ts and packages/core/src/embedding/local.ts; EmbeddingPool seeds lastOomCap from persisted knownBadCap, updates it with Math.max(this.lastOomCap, capBefore) after OOM, and persists it alongside the lowered/re-probed cap..jj/ and .git/); mutations must use jj, while Git is limited to read-only operations or unsupported tasks.rebase, new, and squash record conflicts in the resulting commit, after which jj st must be checked and files resolved manually rather than with interactive jj resolve.-m "msg" for describe/commit operations, prefers stable change IDs over rewritten commit IDs, and requires verifying mutations with jj st and jj log.SYNCED_TABLES → packages/core/test/sync-registry-contract.test.ts; MIGRATIONS → db.test.ts with toBe(MIGRATIONS.length) plus migration-specific tests; AGENTS → agents.test.ts validating name, displayName, binary, and detect(), with binary a constant placeholder string.NOT EXISTS, latest <> 'upsert', content-match, or equivalent skip branch needs a test that makes it skip something incorrectly and proves the defect is prevented.pnpm test, pnpm run typecheck, pnpm run lint, and pnpm run format:check; verify property tests over 10 runs; hash-verify an unmodified working tree; and report per-point PASS / FAIL / CONCERN / MUST-FIX verdicts with file:line evidence plus an overall MERGE / DO-NOT-MERGE decision.tmzmtlsspstn at commit 6a5b70c9ee77 with description fix(core): correct embedding runtime selection and admission, based on pxrvwsvvkmpo / 2cbf40060c67 (feat(cch): add seeds for Claude Code up to 2.1.272 (#1780)); the linked Git worktree HEAD still contained full parent commit 2cbf40060c67df229731cf1b9e34d5bf22ec2145.2081 insertions(+) and 205 deletions(-): packages/core/src/cgroup-memory.ts, 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/cgroup-memory.test.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-wasm-fallback.test.ts, packages/core/test/embedding-worker-stdio.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.EMBED_TOKEN_CEILING.EMBED_BACKOFF_FACTOR = 0.7, EMBED_REPROBE_RATIO = 1.3, and EMBED_CAP_TRUST_BAND = 0.25.EMBED_REPROBE_RATIO; in that condition it must never re-probe.packages/core/src/embedding-cap.ts also defines BACKFILL_FULLSPEED_CORES = 8; its cap model clamps estimates into [MIN_EMBED_TOKENS, MODEL_MAX_TOKENS] and accounts for the npm/WASM path’s fixed 4 GiB heap and transient O(L²) attention allocation.