Skip to content

[PR] advisory bc-2026-001: v0.1.203–0.1.204 compression-state loss (502) — force-install 0.1.207 - #4655

Closed
ranxianglei wants to merge 1 commit into
bugfix-v0.1.206from
adv-bc-2026-001-shot
Closed

ranxianglei wants to merge 1 commit into
bugfix-v0.1.206from
adv-bc-2026-001-shot

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

What

The client-banner advisory bc-2026-001 (bilingual CN/EN): v0.1.203–0.1.204 may lose compression state after a restart → long sessions overflow the window, die with an unrecoverable 502; force upgrade to 0.1.207. One file (advisories/package.json, +10/−2), rebased onto the current lane tip (b60e075).

⚠ Merging this PR IS THE FIRE

Once the merge-gated flow is armed on this lane (#4654 merged) and the lane is protected, merging this carry PR triggers the v0.1.207 publish (post-merge lane head through the full guard chain → tag → npm → GH Release → auto alignment PR to master).

Do NOT merge before: #4653 is on master, lane protection is applied, and #4654 is merged. Until then it can safely sit open.

Expect at merge time: full-matrix dispatch+wait at the publish sha (up to ~60 min including any Actions queue), then npm publishes 0.1.207.

…estart (502 unrecoverable) — force-install 0.1.207
@ranxianglei ranxianglei changed the title advisory bc-2026-001: v0.1.203–0.1.204 compression-state loss (502) — force-install 0.1.207 [PR] advisory bc-2026-001: v0.1.203–0.1.204 compression-state loss (502) — force-install 0.1.207 Oct 25, 2026
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

查重: 不重复 —— 检索 open+closed issue/PR,无其他 advisory 条目或触碰 advisories/ 的在途 PR;bc-2026-001 是新 id(当前 registry 上 billion-context-advisories@0.0.2 的 advisories 数组为空,id 无复用)。

标签: bug / p1 / scope/storage(另有原有 pr)—— 严重缺陷通告:0.1.203–0.1.204 重启后丢压缩状态、长会话 502 不可恢复 = 会话不可恢复类 → p1;领域是压缩状态跨重启持久化 → storage。

审核结论:PR 内容核实无误,前置条件未齐,保持 open、不要合并

结构化八问

  1. 是什么问题:v0.1.203–0.1.204 重启后可能丢失压缩状态,长会话撑爆窗口后以 502 终止且无法自愈。本 PR 交付客户端强制升级通告 bc-2026-001(指向 0.1.207),同时它是合并门控发布流的「点火」PR——合入受保护 lane 即触发 v0.1.207 发布。
  2. 什么原因导致的:底层缺陷的修复已在 lane 上([PR] backport-carry: storage fixes for #4390 / #4444 / #4506 onto the v0.1.206 patch lane #4577 storage fixes backport,lane head 可见);本 PR 本身不引入任何机制,只往 advisories/package.json 加一条数据。缺陷根因在前序存储类 issue,这里只是投递载体。
  3. 影响范围与严重程度:受影响面 = 所有跑 0.1.203/0.1.204 的安装(全部客户端车道),触发条件 = 重启 + 长会话;严重度 p1——会话死亡且不可恢复。PR 侧风险是操作性的:提前合入会提前发布 0.1.207,不是用户面问题。
  4. 怎么修复的:通告条目 {affected: ">=0.1.203 <0.1.205", target: "0.1.207"}。客户端 advisory watcher(独立于 autoUpdate,搞一个自动强制更新,针对重大bug的版本 #1481)在配套 npm 包发布后于 ~3min 周期内命中 affected 范围,走 updater 完整安全链强制安装 target。
  5. 是否有回归问题:无。diff 纯数据文件,不进 billion-context tarball(files 列表不含 advisories/,客户端从 registry 读配套包,设计如此),不触碰代码/线协议/配置面。逐项核过的既有行为:① watcher 端 schema——字段与 src/advisory.ts:49-60 的 AdvisoryEntry(id/affected/target/reason/publishedAt?)逐一对应,JSON 可解析;② advisories.yml 发布校验(schema:1 + 必填字段 + semver 语法)——payload 通过;③ id 不复用纪律——新 id,合规;④ 多条目首条优先规则——当前仅一条,无歧义。无误伤、无语义漂移。
  6. 是否破坏缓存:不涉及——未触碰任何缓存/重试/游标/去重键;advisory 按 id 去重的既有机制不变。
  7. 是否改了设计方向:不涉及——完全复用既有 搞一个自动强制更新,针对重大bug的版本 #1481 通告通道,无新机制、无架构转向。
  8. 是否引入新配置:不涉及——无新 env/config/默认值。

验证证据

  • Diff 与描述逐字节一致:单 commit 43fcbabca,父提交即 lane tip b60e0755e;仅 advisories/package.json +10/−2;updated 由 2026-09-27 升到 2026-10-25。
  • CI 绿:head sha 共 15 个 check run——7 success、8 skipped(env 门控 e2e)、0 failure、0 running;PR mergeable=clean。
  • 时序安全(关键):npm 现状 billion-context latest=0.1.206(0.1.207 尚未发布)。advisories.yml 只在 master push 且路径命中 advisories/** 时发布配套包——所以客户端只会在这条链的末端看到通告:lane 合并 → 0.1.207 发布 → 自动对齐 PR 合入 master → 通告包发布。不存在「通告先到、target 还没上 npm」的窗口,受影响客户端强制安装时 0.1.207 必然已存在。
  • 三个合并前置条件目前全部未满足:① [PR] release: v3 gate-branch publish model (ship PR lane→bugfix fires; auto-cut next lane) #4653 仍 open(未进 master);② [PR] release: arm merge-gated lane publish (lane-side release-bugfix.yml) #4654 仍 open(未合入 lane);③ bugfix-v0.1.206 分支保护查询返回 "Branch not protected"。按 PR 正文自述:三者齐备前不得合并,在此之前安全挂 open。

收工判定:核实通过,无需修改、无需补推;保持 open,等 #4653 进 master + lane 保护生效 + #4654 合并后再点火。我未执行任何合并操作。

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

Labels

bug Something isn't working p1 scope/storage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant