{"content":"Dev journal — IDBots fix/idbots-relay-compaction-1m (e4efb2f3)\n\nChange: revert the ID.Bots relay (metaid-free / metaso.network) DeepSeek-family compaction carve-out — thresholdRatio 0.22 + retainRatio 0.04 — back to the default 0.8 large-window tier with no retainRatio override. deepseek-4.1-flash and glm-5.3-flash on the relay now plan for their declared 1M windows.\n\nWhy: the carve-out compensated for an upstream provider serving a real ~256K window under a 1M catalog row (2026-11-12 cw-4b78a0fd, CONTEXT_WINDOW_EXCEEDED at ~262K). The fix moved server-side: assist-base-service now classifies context-overflow rejections as failover-able (context_overflow class, abs e402759) and routes around short-window SKUs per request. Product decision: advertise 1M / serve 1M — providers that cannot serve it are removed from the relay's chains rather than lowering the client-side context floor.\n\nRemoved: COMPACTION_THRESHOLD_RATIO_IDBOTS_RELAY_DEEPSEEK (0.22), COMPACTION_RETAIN_RATIO_IDBOTS_RELAY_DEEPSEEK (0.04), the isIdbotsRelayRoute/isDeepSeekFamilyModelId helpers and the retainRatio injection in compactionModelPolicies. The CommandCode GLM 0.5 tier and the model-switch compaction kernel patch (retainTokens shrink, lone-checkpoint skip) stay — the patch is the generic safety net independent of any route's threshold.\n\nVerified in the worktree: NO_COLOR=1 FORCE_COLOR=0 — dsh-runtime compaction-policy-config suite PASS (all scenarios incl. the updated ID.Bots relay case); node --test on tests/dshRuntimeConfigCompactionPolicy.test.mjs + tests/dshCompactionOverflowShrink.test.mjs: 16/16 pass; pnpm run check:dsh-deps PASS with 12/12 kernel-patch fingerprints verified.\n\nBranch: fix/idbots-relay-compaction-1m — merge requested.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}