Skip to content

[PR] docs: add dsh "before you uninstall" warning (#6972) - #6975

Open
ranxianglei wants to merge 5 commits into
masterfrom
2026-11-17_dsh-uninstall-docs
Open

ranxianglei wants to merge 5 commits into
masterfrom
2026-11-17_dsh-uninstall-docs

Conversation

@ranxianglei

@ranxianglei ranxianglei commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

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:

  • Rotate to a new session before removing billion-context from dsh.profile.bundles.
  • Reinstall bili to recover a session that is already over the window (the only in-place recovery).

Changes

Docs-only; no code, config, or wire changes.

Out of scope (awaiting owner decision, same thread)

  • An uninstall-time guard in dshRemove() that scans sessions and warns before the brick (feature).
  • A bili dsh compact-now tool 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

ci-check and others added 4 commits November 16, 2026 20:42
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]).
@ranxianglei ranxianglei changed the title docs: add dsh "before you uninstall" warning (#6972) [PR] docs: add dsh "before you uninstall" warning (#6972) Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-11-17_dsh-uninstall-docs (e992619)

Latest build — install this exact version

npm install -g billion-context@0.0.10493-pr.6975.ac78430

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Recent builds (commit → version)

commit version build
e992619 billion-context@0.0.10493-pr.6975.ac78430 build
2d94385 billion-context@0.0.10491-pr.6975.7706d2c build

Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr6975.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei ranxianglei added documentation Improvements or additions to documentation dsh p2 scope/docs labels Nov 16, 2026
@ranxianglei ranxianglei changed the title [PR] docs: add dsh "before you uninstall" warning (#6972) docs: add dsh "before you uninstall" warning (#6972) Nov 16, 2026
@ranxianglei ranxianglei changed the title docs: add dsh "before you uninstall" warning (#6972) [PR] docs: add dsh "before you uninstall" warning (#6972) Nov 16, 2026
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
@ranxianglei
ranxianglei force-pushed the 2026-11-17_dsh-uninstall-docs branch from 2d94385 to e992619 Compare November 16, 2026 19:21
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)

查重: 不重复. #6972 本身已论证卸载路径未被 #6121(装 bili 时切原生压缩)/#5033(双压缩器死锁)/#5092(宿主预发溢出守卫)覆盖(uninstall in:title 检索 0 条);本 PR 是 #6972 建议③(文档)的落地,仓库内无其他 PR 触及同一主题。
标签: dsh + scope/docs + p3 —— 纯文档 PR,按 PR 自身 diff 定级 p3;底层隐患按 owner 2026-10-19 口径属 p1「会话无法恢复类」,真正的可用性修复是待决的两个 feature。

What this PR does. Docs-only implementation of fix option ③ from #6972: a "Before you uninstall (#6972)" / 「卸载前必读(#6972)」bullet in the dsh section of docs/clients.md (en) + docs/clients.zh-CN.md (zh), plus a one-line cross-reference from the "Does compression shrink my client's own conversation file?" section in README.md (en) + README.zh-CN.md (zh). No code, config, or wire changes.

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 CI lane at the time). I rebased the branch onto ci-fixes (= current master + 4 CI-fix commits; zero file overlap with the PR's 4 doc files, clean rebase) and force-pushed. Fresh CI is now running on head e992619f39: all fast e2e lanes already success, the main CI workflow (full test suite + static gates) is queued/running — final green pending on that lane.

Verdict: the docs are accurate, well-placed, and en/zh-complete; the branch is now current with master + ci-fixes. Mergeable once the main CI lane goes green. The availability fix itself (guard / compact-now) remains open for owner decision per #6972.


结构化八问

  1. 是什么问题:卸载 bili(从 dsh.profile.bundles 移除)后,长 bili 时代会话(宿主侧历史已超模型窗口)在 stock dsh 下永久不可用——每轮 provider 400,兜底压缩同样 400。本 PR 只补文档:说明该隐患 + 现存两条逃生路(卸载前轮换新会话 / 重装 bili 原地恢复)。
  2. 什么原因导致的:两层。L1(bili 设计,有据):bili 激活时宿主自动压缩关闭(两压缩器不能抢一份历史,dsh.bundle.patch.yml 禁用自动压缩在 web profile 下静默失效 #1772/fix(dsh): profile 层 patch 其实可以关掉 web profile 的原生自动压缩(#1772 结论修正)+ 一个会静默清空整个 preset 的写法坑 #2474/See how to integrate the plugin that automatically disables dsh compression. | 自动关闭 dsh 压缩的插件看如何集成 #3354)且 bili 从不改写宿主会话文件([feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796)→ 宿主 jsonl 无上限增长。L2(stock dsh):其溢出恢复把整段超窗历史以 retainTokens=0 重放进单个摘要调用,该调用本身超窗、永不成功。卸载路径(唯一文档化卸载方式)对既有长会话零保护。
  3. 影响范围与严重程度:触发条件窄(dsh 用户 + 长 bili 会话超窗 + 卸载 bili;报告机 597 会话仅 2 个超窗)。底层隐患按 owner 2026-10-19 口径属 p1(会话无法恢复类);但本 PR 纯文档、自身 diff 定级 p3,不改任何运行时行为。
  4. 怎么修复的:本 PR = DSH: uninstalling billion-context permanently bricks existing long sessions — no downgrade path from bili-only history #6972 建议③(文档)——dsh 段落加「卸载前必读」bullet + README 交叉引用,说明隐患与两条逃生路。真正的机制修复(卸载期守卫 / compact-now 工具)明确划出 scope、待 owner 决策,未静默丢弃。
  5. 是否有回归问题:无。纯文档,无代码/配置/wire 变更,不触碰既有行为。已核对文档论断与代码一致(dsh.bundle.patch.yml 仍 auto: false;[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796「从不改写」保证成立);en/zh 对齐、落位正确。
  6. 是否破坏缓存:不涉及(无缓存/重试/游标/去重键变更)。
  7. 是否改了设计方向:不涉及(纯文档,无架构/边界/数据流转向)。
  8. 是否引入了新的配置:不涉及(无新 env/config/默认值)。

收工判定:文档准确、落位正确、en/zh 完整,分支已 rebase 到 master+ci-fixes;待主 CI lane 转绿即可合并。机制修复(守卫/compact-now)留待 owner 决策。

@ranxianglei ranxianglei added the p3 label Nov 16, 2026
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)

CI 转绿确认。 rebase 后的 head e992619f39(master + ci-fixes + 本 PR 文档 commit)全部门禁通过:28 success / 15 skipped / 0 failure,含完整 test 矩阵(ubuntu/windows × node 22/24 × shards)+ static-gates + 全部 e2e lane。

分支已对齐当前 master,无冲突,可合并。合并动作留给你(系统规则禁止 agent 合并 PR):#6975

机制修复(卸载期守卫 / bili dsh compact-now)仍按 #6972 待 owner 决策,不在本 PR 内。

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation dsh p2 p3 root-cause scope/docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant