Skip to content

[PR] rollout: default pluginFullResendWatermark back to 0 — retract the #7960-era GA (owner ruling 2026-11-29) - #7967

Merged
ranxianglei merged 2 commits into
masterfrom
2026-11-29_wm-fastpath-default-off-7960
Nov 29, 2026
Merged

ranxianglei merged 2 commits into
masterfrom
2026-11-29_wm-fastpath-default-off-7960

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

背景

2026-11-22 GA(PR #6785,pluginFullResendWatermark 5→100)之后暴露 #7960:宿主的一次性注入(pi-lens 等 turn-end 注入)在快路径 seed 里留下的过期位置,超出 8 元素 head 检查的可见范围 → 误判 HIT → 渲染出孤儿 tool 结果 → 上游 400。另有同一信任边界(保元素数的中间前缀字节改写不可检测,§7.4)上的"缓存复用从某点起塌缩、每轮重读大部分"的社区报告待定案。PR #7962 只修 tool 配对断裂这一种形状,检测面扩宽之前,默认重新关闭。

改动

  • src/rollout.ts:pluginFullResendWatermark 默认 100 → 0(owner 裁定 2026-11-29)。关 = 每轮 legacy 全量解析,与 v0.1.216 行为逐字节等价([Bug][dsh] 20k-message / 81 MiB-inbound session: host aborted 6× in 2 h — the #3050 resident-AST OOM is not bounded by sessions.hardMaxBytes (Windows, 0.1.210) #5403 A/B 黄金测试证明)。
  • 启用方式不变:rollout.features.pluginFullResendWatermark: true(或百分比)/ BILI_ROLLOUT_PLUGIN_FULL_RESEND_WATERMARK=1 / web 快速配置选「开」。已显式写 true 的配置文件不受缺省变更影响。
  • tests/wm-fastpath-intro-notice.test.ts:钉住测试 100 → 0(原用例就是"意外翻回灰度在这里失败",现在反过来钉 0)。
  • tests/issue7857-deferred-parse-identity.test.ts:其被测的 deferred-parse 门(src/server/handle.ts:785)挂在本开关后面,改为 env 强制开,与被测路径无关的缺省变更不影响它。
  • 文档同步:configuration ×3 语、egress-plane ×2 语、deprecations ×2 语(msgid 三件套退役闸门改回"重新 GA + 零事故")、KDD docs: env vars primary config method + cleanup #15 台账追记、web i18n ×3 语(提示与快速配置文案)。

八问

  1. 是什么:把出过 [Bug][pi] Host's one-shot context injection is pinned to the wire slot → the immediately following tool result becomes o | [Bug][pi] 宿主的一次性上下文注入被钉在 wire 槽位上 → 紧随的 tool 结果成为孤儿 → 上游 400 "Messages with role 'tool' must be a response to a preceding message w… #7960(400)的水位快路径默认从 100% 关回 0%,等修复与检测扩宽后再重新灰度。
  2. 原因:快路径 HIT 复用上一轮前缀核的前提是"重发前缀未变",而保元素数的中间前缀改写(一次性注入被宿主撤走/换槽)对 count 检查与 head-8 检查都不可见——[Bug][pi] Host's one-shot context injection is pinned to the wire slot → the immediately following tool result becomes o | [Bug][pi] 宿主的一次性上下文注入被钉在 wire 槽位上 → 紧随的 tool 结果成为孤儿 → 上游 400 "Messages with role 'tool' must be a response to a preceding message w… #7960 是这一族的已确认显形(400),[PR] fix: detect stale fastpath seed on one-shot injection slot swap (#7960) #7962 只堵了 tool 配对断裂一种形状。
  3. 影响:新装/未显式配置的插件车道会话全部回到每轮全量解析(= 216 行为,已验证等价);服务端失去命中轮省解析的收益(本机实测多数客户端链路 no-stamp 从不命中,收益面本就不宽)。显式开启的安装零变化。
  4. 怎么修的:一行默认值 + 全套文档/文案/钉测试同步。
  5. 回归:watermark 家族测试 116 例 + 目标 3 文件 32 例全绿;typecheck + build 过;全量本地套件在跑(advisory 域有环境噪音失败,npm registry 解析,与本改动无关)。
  6. 是否破坏缓存:不破坏——legacy 全量路径与 216 出站字节逐字一致(A/B 黄金测试语义不变)。
  7. 设计方向:不改。快路径的 fail-soft 契约、§7.4 信任边界评审结论都不动;只是把"默认开"的决定撤回,重新 GA 以检测面扩宽为前提(deprecations.md 已登记闸门)。
  8. 新配置:无。开关本体早已存在,仅默认值变化。

Closes 无(#7960 由 #7962 修复,本 PR 只处理默认值)。

…26-11-29, #7960)

After the 2026-11-22 GA (PR #6785), one-shot host injections (pi-lens
turn-end context) left a stale seed the 8-element head check cannot see;
the fastpath mis-hit rendered an orphaned tool result and upstream 400s
(#7960), with unconfirmed cache-reuse collapse reports on the same
count-preserving prefix-drift trust boundary. PR #7962 fixes only the
tool-pairing shape, so the fastpath defaults OFF again until detection
widens: every turn goes through the legacy full-parse path (byte-identical
to v0.1.216 behavior). Opt-in unchanged: rollout.features
pluginFullResendWatermark true / BILI_ROLLOUT_PLUGIN_FULL_RESEND_WATERMARK=1
/ web quick-config ON. Explicit config overrides are untouched.

Docs synced (configuration x3, egress-plane, deprecations, KDD #15
addendum, web i18n x3); pinned test re-pinned 100 -> 0
(tests/wm-fastpath-intro-notice.test.ts); issue7857 test now forces the
flag on via env since its deferred-parse gate is behind the feature.
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-11-29_wm-fastpath-default-off-7960 (de89a16)

Latest build — install this exact version

npm install -g billion-context@0.0.12423-pr.7967.6139d97

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
de89a16 billion-context@0.0.12423-pr.7967.6139d97 build
5afcbb8 billion-context@0.0.12421-pr.7967.9378d01 build

Download artifact

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

Install instructions are refreshed on each push.

@ranxianglei ranxianglei changed the title rollout: default pluginFullResendWatermark back to 0 — retract the #7960-era GA (owner ruling 2026-11-29) [PR] rollout: default pluginFullResendWatermark back to 0 — retract the #7960-era GA (owner ruling 2026-11-29) Nov 29, 2026
…(drift guard)

The configuration docs are GENERATED from website/config-reference/*.yaml
(docs-sync CI guard); editing docs/configuration*.md directly drifts.
Move the #7960 default-off change (default 0, three-language descriptions)
into the rollout.yaml seed and regenerate.
@ranxianglei
ranxianglei merged commit bc81fa3 into master Nov 29, 2026
46 of 47 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.1347-master.bc81fa3 (rolling master tag).

npm install -g billion-context@0.0.1347-master.bc81fa3  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant