Repository navigation
[PR] docs: add dsh "before you uninstall" warning (#6972) - #6975
ranxianglei wants to merge 5 commits into
Conversation
The probe anchor PROXY_TOOL_AT=6 was calibrated on 2026-10-31 for #4521 (schedule {4,6,8,9}). The nudge scheduling has shifted again — nudge now lands at {3,5,11,14}. Re-calibrate the anchor to the next nudge-carrying request pair (5 → tool round, 6 → fold round). The fold/proxy-tool-round mechanics under test are unchanged. Closes: master-red on test (windows-latest, 22, 3) and (ubuntu-latest, 22, 1).
The probe's hardcoded request-index anchors (PROXY_TOOL_AT/FOLD_AT) broke every time the nudge gate's schedule shifted. The last recalibration (245ecb1) was measured on a direct local run (timestamps ON by default since #4313), but CI runs the suite preload pin BILI_MESSAGE_TIMESTAMPS="0" (timestamps OFF) — a different wire shape, a different schedule (no nudge at index 5) — so it passed locally and failed on every CI shard. Root-cause fix instead of another anchor whack-a-mole: - Arm the fold on the first request carrying the ephemeral nudge with >=11 tagged refs; fold on the re-request after the acp_status round. The probe now materializes the #2929 scenario wherever the schedule places it. - Pin compress.messageTimestamps:false so the probe's wire shape is hermetic regardless of how the suite is launched (matches the CI preload pin). Supersedes the 245ecb1 recalibration. Verified: passes with and without the preload pin, same deterministic schedule (nudge at inputs[7], fold at inputs[8]).
📦 Built Package ArtifactBranch: Latest build — install this exact versionnpm install -g billion-context@0.0.10493-pr.6975.ac78430This exact version is immutable and reproducible. The rolling Recent builds (commit → version)
Download artifact
tar xzf billion-context-pr6975.tgz
npm install -g packageInstall instructions are refreshed on each push. |
A long bili-era session's host-side history can grow past the model window (host auto-compaction is off while bili is active, and bili never rewrites the host file). After uninstall, stock dsh's overflow recovery replays the whole oversized region into a single over-window summarization call, so the session is stuck on a provider context-length error every turn. Document the hazard and the two escape routes (rotate to a new session before uninstall; reinstall bili to recover an already-over-window session) in docs/clients.md en+zh, with a cross-reference from the README en+zh. Fixes #6972
2d94385 to
e992619
Compare
(ai: vllm-qwen/qwen3.8-27b) 查重: 不重复. #6972 本身已论证卸载路径未被 #6121(装 bili 时切原生压缩)/#5033(双压缩器死锁)/#5092(宿主预发溢出守卫)覆盖( What this PR does. Docs-only implementation of fix option ③ from #6972: a "Before you uninstall (#6972)" / 「卸载前必读(#6972)」bullet in the dsh section of Review (verified against the branch, not just the description):
CI / freshness (what I did): the PR was 53 commits behind master and its CI runs on the old head were all cancelled (coordinated cancel — master had a red Verdict: the docs are accurate, well-placed, and en/zh-complete; the branch is now current with master + ci-fixes. Mergeable once the main 结构化八问
收工判定:文档准确、落位正确、en/zh 完整,分支已 rebase 到 master+ci-fixes;待主 |
(ai: vllm-qwen/qwen3.8-27b) CI 转绿确认。 rebase 后的 head 分支已对齐当前 master,无冲突,可合并。合并动作留给你(系统规则禁止 agent 合并 PR):#6975 机制修复(卸载期守卫 / |
What
A long bili-era session's host-side history can grow past the model window: while bili is active the host's auto-compaction is off (two compressors must not fight over one history, #1772/#2474/#3354) and bili never rewrites the host's session file. Once you uninstall, stock dsh's overflow recovery answers an over-window session by replaying the WHOLE oversized region into a single summarization call — itself over the window, so it can never succeed. The session is then stuck on a provider context-length error every turn (its fallback compaction 400s the same way).
This PR documents that hazard and the two escape routes that exist today:
billion-contextfromdsh.profile.bundles.Changes
docs/clients.md(en) +docs/clients.zh-CN.md(zh): new "Before you uninstall (DSH: uninstalling billion-context permanently bricks existing long sessions — no downgrade path from bili-only history #6972)" / "卸载前必读(DSH: uninstalling billion-context permanently bricks existing long sessions — no downgrade path from bili-only history #6972)" bullet in the dsh section, next to the existing "Disabling vs removing" note.README.md(en) +README.zh-CN.md(zh): one-line cross-reference from the "Does compression shrink my client's own conversation file?" section to the new note.Docs-only; no code, config, or wire changes.
Out of scope (awaiting owner decision, same thread)
dshRemove()that scans sessions and warns before the brick (feature).bili dsh compact-nowtool that writes a real compaction checkpoint into the host log while bili is still active (feature, heaviest).Both are tracked in the same thread and can join this PR once the owner decides.
Related to #6972