Dashboard › opencode-lore › Distillation
e993ffa4-f66b-49cd-b5b6-f606bb888873["lore_tm_v1_I4mzsHWFKLO-XsFcOCh0Yof94xyEfy1Zz3-Sb53CMNc"]
Date: Sep 17, 2026
backoffEmbedCap: packages/core/test/embedding-pool-memory.test.ts lines 19 and 241; packages/core/test/embedding-cap.test.ts lines 13, 177, 179, 180, 184, 186, 193, and 201; packages/core/test/embedding-oom-recovery.test.ts lines 18 and 143; packages/core/src/embedding/local.ts lines 12 and 846; and its definition in packages/core/src/embedding-cap.ts line 257.packages/core/test/embedding-cap.test.ts asserts backoffEmbedCap(MODEL_MAX_TOKENS) === Math.round(8192 * 0.7) (5734), backoffEmbedCap(1000) === 700, backoffEmbedCap(MIN_EMBED_TOKENS) === MIN_EMBED_TOKENS, and backoffEmbedCap(300) === MIN_EMBED_TOKENS; additional iterative/floor checks occur at lines 193 and 201.packages/core/test/embedding-oom-recovery.test.ts:143 expects resubmitted.maxTokens to equal backoffEmbedCap(EMBED_TOKEN_CEILING), while production OOM handling in packages/core/src/embedding/local.ts:846 computes const capAfter = backoffEmbedCap(capBefore);.