Skip to content

[PR] release v0.1.203 - #4122

Merged
ranxianglei merged 1 commit into
masterfrom
2026-10-21_release-v0.1.203
Oct 21, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-10-21_release-v0.1.203

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Auto-fallback from the one-click release workflow: direct push to master was blocked by branch protection. Merging this PR publishes via the standard release.yml flow.

Changes since v0.1.202

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

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

查重:本条是 v0.1.203 的「当前」发版 PR,不重复。但发现一个必须处理的重复项:存在第二个同版本发版 PR #4018(head 2026-10-20_release-v0.1.203)。两者都在发 v0.1.203,区别只在基线新旧:

  • [PR] release v0.1.203 #4122(本条,2026-10-21_release-v0.1.203)= 当前 master + 仅一行版本号 bump,完整、干净(落后 master 0 个提交)。
  • [PR] release v0.1.203 #4018(2026-10-20_release-v0.1.203)= 10-20 的旧 master + bump,落后当前 master 79 个提交。合并它会发布一个缺了 79 个提交的残缺 v0.1.203。

⚠️ 建议:合 #4122、关 #4018(stale/superseded)。注意:机械的「先到的保留」规则在这里会指错方向——它会让保留的是残缺的那个,因为两个分支内容并不相同、只差完整性。所以我不擅自关任何一个,请 owner 确认关掉 #4018。两个都开着有真实风险:误合旧分支 → 发布残缺版本。

标签:pr + scope/ci + p3(发版流水线的例行 patch;非缺陷、无可用性影响,故不打 bug / 不打客户端标)。

审计范围与方法(§②b 版本窗口回归审计):本次窗口 = v0.1.202 → f74626a(PR#4122 head)= 486 提交 / 353 文件 / +42108 −2256。逐段通读整窗(不整吞 diff、不开子 agent 分片):先 --stat 总览 → 高危域逐行精读(自更新 src/update.ts、dsh 车道、lockfile/版本钉死、网络/代理路径、kernel/)→ 其余按目录/主题分批;跨分支交互按合并视角看。

正在做高危域精读,结构化八问 + 可合/拦判定稍后给。

@github-actions

Copy link
Copy Markdown
Contributor Author

📦 Built Package Artifact

Branch: 2026-10-21_release-v0.1.203 (f74626a)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.4922-pr.4122.9e90c77-a2

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

Option B — Download artifact

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

Install instructions are refreshed on each push.

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

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

结论:可合(mergeable)。 对 v0.1.202→v0.1.203 全窗(486 提交 / 353 文件 / +42108−2256)做了整窗回归审计:本版本引入回归 0 处;行为变更全部有意且已列 old→new+原因;高危域逐项通过。建议合并 #4122,关闭陈旧重复 #4018。

查重(重申处置): #4122(2026-10-21_release-v0.1.203)与 #4018(2026-10-20_release-v0.1.203)是同一 v0.1.203 发版的两个 PR,#4018 落后当前 master 79 个提交 = 不完整的旧切分。发版语义下「后到的更完整」压过通用去重的「先来后到」启发式,所以这里推荐合并后到的 #4122、关闭先到的 #4018(与常规 bug 去重方向相反,特此说明)。关不关别人的 PR 我不擅动,留你确认。

结构化八问

  1. 是什么:例行 patch 发版——把 master 自 v0.1.202 以来的一批已合并工作打包 ship,不是修单个 bug。
  2. 为什么有这些变更:窗口主线是一整组「前缀缓存稳定性」工程([Kernel Initiative] Transactional folding boundaries + wire byte fidelity (unified prefix cache fix #3938, kernel side) | [kernel 专项] 折叠边界事务化 + wire 字节保真(前缀缓存统一修复 #3938 内核侧) #3939②③④⑤ view-latch / emergency-truncate / 原子批压缩 / render-defer、[Bug] MCP failed compression record rotation prematurely rewrites the history prefix, triggering expensive cache recompu | [Bug] MCP 失败压缩记录轮换提前改写历史前缀,触发大额缓存重算 #3769 orphan 清扫、The "shortened" result of emergency truncation is longer than the original: a 4001-character tool output became 4064 cha | 紧急截断的"缩短"结果比原文还长:4001 字符的工具输出截断后变 4064 字符 #3935 clip 严格变短、[Bug] compress range straddling the protected latest user message: summary of the reply is anchored BEFORE that user message (causal order inversion) #3953 因果截断)+ 存储层翻正(Storage wrap-up: 6 fixes + switch default mode to full (single PR) | 存储收尾六修 + 缺省模式翻 full(一个 PR 统一处理) #3818 shadow→full、Extend the storage layer to support additional backends beyond SQLite (e.g., MySQL, Greenplum), while maintaining extens | 存储层增加支持除了sqlite之外的其他存储,比如mysql,greenplum等,并保持扩展性 #3388/Storage backend seam (step 1): async operation-level contract + sqlite re-wired through it — MySQL stays a registered stub (#3388) #3931 MySQL opt-in)+ dsh 车道可用性修复(DSH's unattributed over-limit gate prices base64 images as text (bytes/4) — media-heavy requests are falsely rejected wi | dsh 无归属超限门把 base64 图片当文本计价(bytes/4)——媒体重的请求被假拒 422,上游本会正常接受 #4111 媒体误判本地 422、The negotiated recall for unowned retries never triggers on the desktop overlay (routed) lane — learn and claim use two | 无归属重试的协商召回在桌面 overlay(routed)车道上一次都不会触发——learn 和 claim 用了两把不同的 key #4109/Session recall fingerprints collapse to a single value across the entire store for "pure tool-call" messages — causing c | 会话召回指纹对「纯工具调用」消息退化为全库同值——跨会话错认,B 的历史可能被记进 A 的会话 #4110 recall 键)+ 自更新健壮性([no-dispatch] Pinned installs get surprise reinstalls: advisory force-install ignores autoUpdate:false, and config-file changes only take effect on restart #3754/[updater] #1588 rollback gate: post-restart first-check race lets auto-update install the affected version before the advisory loop arms #2456/[Bug][tls] Proxy upstream TLS broken by security-software HTTPS scanning (Kaspersky MITM): client sees only a generic 502 | 安全软件HTTPS扫描致代理上游TLS失败,客户端只见泛502 #3776)。
  3. 影响范围与严重程度:面向所有升级用户。最重的两项(存储默认翻转 Storage wrap-up: 6 fixes + switch default mode to full (single PR) | 存储收尾六修 + 缺省模式翻 full(一个 PR 统一处理) #3818、内核原子批 [Kernel Initiative] Transactional folding boundaries + wire byte fidelity (unified prefix cache fix #3938, kernel side) | [kernel 专项] 折叠边界事务化 + wire 字节保真(前缀缓存统一修复 #3938 内核侧) #3939④)都带 fail-open 守卫——特定条件下行为变化但不会不可用;无数据丢失类缺陷。
  4. 怎么修的(机制层):统一思路「顺序为主、hash 为辅 + 任何失步降级不猜」——出站前缀由服务端正史渲染、折叠边界外字节冻结、批量压缩要么全成要么全滚;存储把索引库从遥测提升为权威读取路径(JSON envelope 仍写、漂移即回退);dsh 把「bytes/4 估 token」的门改成媒体单独计价、只拦真正超窗的纯文本。
  5. 是否有回归:既有行为逐项过,0 处无意回归。重点模式:fail-fast 未变吞错([dsh] A healthy 93%-compressed image session becomes permanently uncompressed by ordinary usage: quota → model switch → attribution loss → 413 → rewind → 3,455 dead refs → compress REFUSED forever (0.1.202) | 一个健康压缩率 93% 的图片会话被普通操作永久废掉:额度→换模型→丢归因→413→撤回→… #3918 反而把「有进展的非确定耗尽」从 retryable=false 改 true,属有意放宽);阈值/时序/输出格式漂移都在下面清单点名;[Bug][dsh native] preflight fold target sits ABOVE the engine's own denominator (1048576 vs 1000000) and the upstream-stated window from a 400 never feeds it — 'deficit 0' forwards an over-window payload → context_length_exceeded kills the turn #3450×fix: overflow-arm stored above the headroom-reserved judging limit → unbounded CONTEXT_WINDOW_EXCEEDED loop #3738 的双扣减合并回归本窗已修并有 case 钉住(fix-arm-headroom-clamp case 3)。
  6. 是否破坏缓存:本轮主题就是缓存,净效果正面——消除多处「静默改写已缓存前缀」病灶([Bug] MCP failed compression record rotation prematurely rewrites the history prefix, triggering expensive cache recompu | [Bug] MCP 失败压缩记录轮换提前改写历史前缀,触发大额缓存重算 #3769 每轮隐藏孤儿、[Kernel Initiative] Transactional folding boundaries + wire byte fidelity (unified prefix cache fix #3938, kernel side) | [kernel 专项] 折叠边界事务化 + wire 字节保真(前缀缓存统一修复 #3938 内核侧) #3939⑤ 视图重排、The "shortened" result of emergency truncation is longer than the original: a 4001-character tool output became 4064 cha | 紧急截断的"缩短"结果比原文还长:4001 字符的工具输出截断后变 4064 字符 #3935 clip 反向膨胀、[Kernel Initiative] Transactional folding boundaries + wire byte fidelity (unified prefix cache fix #3938, kernel side) | [kernel 专项] 折叠边界事务化 + wire 字节保真(前缀缓存统一修复 #3938 内核侧) #3939② 中途打 tag)。唯一一处一次性前缀重 key:Anthropic 会话里带 document/PDF 顶层块的历史(anthropic wire silently drops unknown top-level blocks (incl. PDF document) when rebuilding history #3410 修复前这些块被丢,现走 sidecar 回环)升级后重 key 一次——有界,且远好于丢用户数据。
  7. 是否改设计方向:无架构转向。快照渲染 lane 仍 rollout 0% + shadow 默认开(只观察不出站);MySQL 是 opt-in 后端;verif SMT 模块纯 dev 工具不进 dist。延续既有教义(MESSAGE-IDENTITY.md / KDD#13)。
  8. 是否引入新配置(配置面 owner 门,需你知悉):新增 network.caFile/BILI_CA_FILE、storage.backend/storage.mysql.dsn、diagnostics.invariantJudge(默认开·仅告警)、snapshot.shadow(默认开·仅观察)、storage.archiveAfterDays(默认 365·手动 gc 才生效);默认值变:storage.mode shadow→full、dsh.authoredCompaction off→on;删除 network.preflightDeadEndCooldownMs(被固定 10 分钟本地拒收记录取代)。全部已在 CONFIGURATION.md + website 双语登记。

行为变更清单(old→new · 原因)

高危域逐项核查

测试有效性(§④)

抽读最关键的 kernel/tests/issue3939-wire-byte-stability.test.ts(214 行):断言有牙——第 80/187 行直接断言 churn 轮之后请求 2 的前缀与请求 1 逐字节相等(JSON.stringify(req2.slice(0,len)) === JSON.stringify(req1)),正是缓存稳定不变量,回归时必红;另有 openai/google/file/image/signed-text 各形状 deepEqual 钉。commit 历史一贯引用具体回归测试与钉住的 case。全量绿/红以远程 CI test 道为准(§7.2),本地不跑全量。

小问题(p3 · 非回归 · 给出处置不静默)

  • 内核 kernel/src/view-latch.ts:160 resetViewLatches() 导出后从未被调用(真正的 fold-reset 在 compress.ts 内联 state.viewLatches=undefined)。无害:latch map 每轮从当前 pre 重建、死引用自愈不会无限增长。属整洁性瑕疵且内核人工门控,不建议塞进本发版 PR(应保持 version-bump-only 干净)。建议下次触碰内核时顺手删这个未用导出;要的话我单开一个几行级 follow-up。

CI 状态

PR #4122:无失败——67 passed / 31 skipped(门控车道正常跳过)/ 1 in progress / 1 cancelled(被后续 run 取代)。mergeable_state=blocked 只因一个必检项还在跑,非冲突。

判定

可合。 无回归;行为变更全部有意且已披露;高危域通过;测试有牙;CI 无失败。请合并 #4122;并确认关闭陈旧重复 #4018。

@ranxianglei
ranxianglei merged commit 0e0803a into master Oct 21, 2026
140 of 179 checks passed
This was referenced Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant