Skip to content

release v0.1.179 - #1854

Merged
ranxianglei merged 1 commit into
masterfrom
2026-10-01_release-v0.1.179
Oct 1, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-10-01_release-v0.1.179

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 1, 2026

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.178

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

📦 Built Package Artifact

Branch: 2026-10-01_release-v0.1.179 (b651801)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.1838-pr.1854.72b748b-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-pr1854.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

🏷 Release v0.1.179 审计结论(PR review + 版本区间回归审计)

背景核验:这是 one-click release 流程的 auto-fallback PR(direct push 被 branch protection 挡下,转标准 release.yml 流程)。Release commit b6518013 = master(3b2fa2cc) + 恰好一个 release v0.1.179 commit,diff 仅 package.json/lockfile 版本号 0.1.178→0.1.179,符合 §5 one-version-one-commit 纪律。按 ②b 对 v0.1.178..master 全区间做了合并视角回归审计(43 files,+3669/−262),与正文 Changes-since 清单逐条对照,全部覆盖;15 个 src 文件逐一读过 diff。

CI 状态:head b6518013 上所有 check runs 已完成且绿。首轮 run 有一次 test (windows-latest, 24) 失败——已下载 job 日志定位根因:该 runner 磁盘写满(ENOSPC: no space left on device),导致 tests/logger-rotation.test.ts 整文件失败(磁盘写入类测试);logger 相关文件在本区间零改动,同 commit 后续完整 run 全绿(ubuntu/windows × 22/24、codex/opencode/pi/dsh 四个 native lane、CODEX_HOME overlay e2e、hermetic registry e2e、build-artifact、version-guard)。判定为 runner 基础设施 flake,非代码回归。PR 当前 mergeable=true, mergeable_state=clean。

结构化七问:

  1. 是什么问题:常规 patch 发布,非缺陷修复——聚合近窗口的 30+ 个独立 fix/feat(resume-fork 块继承、输出预算恢复下限、dsh compaction 拦截、pi/omp attach 姿态、codex .env 钉死路由、OS 证书库合并等),各自带独立 issue 编号。
  2. 什么原因导致的:不适用(发布本身无因果链;各包含变更的根因见下方行为变更清单的「原因」列)。
  3. 怎么修复的:release commit 本身只 bump 版本号;实质变更全部是已合入 master 的独立提交,每个都有 issue 关联、测试与文档(CONFIGURATION en/zh 同步更新已核对)。
  4. 是否有回归问题:无。逐项审过的既有行为及结论:
    • src/update.ts、持久化格式、acp-kernel pin、loop/adapters:本区间零改动——updater 不受影响,无需 no-op release 前置;
    • Wire-contract ledger 只增不减:新增 WC-012(responses compaction item id 须以 cmp 开头,provenance Responses side requests forward private compaction handoffs and fail cmp ID validation #1763 用户报告的上游拒绝)+ enforcement 子句 + 回归测试同 PR 落地,旧规则无任何删改,符合 §7.3;
    • 高危模式逐项过:无 fail-fast 变吞错(dsh guard 用 403 non-retryable 显式拒绝而非静默转发;CA 合并按来源降级并告警而非断启动;model-info 重试 fail-open);无默认值/阈值/时序/输出格式的静默漂移——下表所列全部为有意变更且已在代码注释/CHANGELOG/CONFIGURATION 披露;
    • 会话身份与 ref 空间:/bili/url/重启agent、重启bili、开新会话分支啥的都有概率丢失压缩 #1834 只改变 identified resume-fork 的压缩块采纳策略,ref 编号语义不变(父会话不受影响、新消息在父 ref 空间之上编号、id 永不复用契约未触碰)。
  5. 是否破坏缓存:否。前缀缓存 / stable-system anchor / cache_control stamping 路径零改动;CA bundle 24h mtime 复用只减少重复的 OS-store 导出开销,信任集合语义不变(MITM 根缺失时强制重建)。
  6. 是否改了设计方向:无架构转向。两处姿态澄清(移植既有机制,非新方向):pi/omp native lane 把预设 BILLION_CONTEXT_PROXY 从 stand-down 改为 ATTACH 目标([pi] preset/inherited BILLION_CONTEXT_PROXY disarms the native intercept — all model traffic direct & uncompressed (self-triggering via the bootstrap's own export; #886/#983 not applied to the pi lane) #1795,移植 opencode/dsh 已成熟的 opencode v2: preset BILLION_CONTEXT_PROXY disarms native routing while tools still find the proxy — all tool forwards 404 #886/[dsh] native proxyEnvOrigin() 把临时 origin 冻结进 BILLION_CONTEXT_PROXY,绕过 ensureProxyRunning() 的 instance 验活;工具调用全部 fetch failed,需重启宿主 #983 机制);codex launcher 全平台统一走 CODEX_HOME overlay(bili codex 报错 MCP client for codex_apps failed to start 仍然存在 #1802,取代 POSIX inline -c 参数,「one mechanism beats two」)。
  7. 是否引入了新的配置:一个新 env var:BILI_MODEL_INFO_RETRY_MS(dsh 模型窗口解析失败后的重试冷却,默认 30000,定位是测试钩子,生产建议 unset;CONFIGURATION en/zh 已记录,fix(dsh): retry failed model-window resolves — one boot race no longer strips x-bili-plugin-context-window #1836)。存量开关重新定义一处:BILI_FORK_ADOPTION/forkAdoption 现仅管辖匿名 fork,identified resume-forks 随 BILI_RESUME_INHERITANCE 一并采纳块(/bili/url/重启agent、重启bili、开新会话分支啥的都有概率丢失压缩 #1834;CONFIGURATION en/zh 两行均已改写披露)。config 文件无新增字段(web quick-config 卡片明确只回写同一 JSON draft、不新增配置项)。

重大行为变更清单(旧值 → 新值 + 原因):

变更 旧 新 原因
affinity 快照落盘(#1834) flat 5s trailing debounce 500ms quiesce + 5s max-delay budget SIGKILL 时最多丢 ~5s 前的全量未落盘状态
resume-fork 块采纳(#1834) identified resume-fork 也需 BILI_FORK_ADOPTION=1 随 resumeInheritance 默认采纳 resume 丢块使被折叠原文回到线上、上游请求膨胀
输出预算恢复下限(#1840) 仅 operator 声明的 route output 最佳已知上限链(runtime-info > launcher > declared > registry);无源可知时每模型一次性 warning 饥饿会话被钉死在几百 token 每轮截断(restored 1 -> 583 死亡喘息);healthy (>200) 请求仍从不改写
dsh compaction 调用(#1729) 正常转发(摧毁压缩基底) 403 拒绝、永不转发(marker 前缀 AND ≤4 消息,openai/anthropic 线路) auto/overflow/manual 共享 envelope,checkpoint 持久遮蔽原始历史不可逆;模板改写时安全降级回现状
pi/omp 预设 proxy env(#1795) stand-down(流量直连 + 工具 404 的 pseudo-attach 洞) ATTACH 目标:健康探测 + 运行时恢复 + 无证据时 spawn 回退 保留用户「路由经过这个代理」的意图;仅 /bili/ rewrite 启动或显式 opt-out 才 stand-down
codex 启动路由(#1802) 用户 $CODEX_HOME/.env 在 spawn 后覆盖注入的 proxy/CA(load_dotenv 无条件 set_var) 生成的 .env(0600)钉死 6 个 managed key,其余变量逐行原样保留 防 socks5h 类用户 .env 把 codex 悄悄重路由出 bili(rustls 栈不支持 SOCKS)
codex MCP 注入载体 POSIX inline -c 参数 / Windows overlay 全平台 CODEX_HOME overlay 统一机制,兼作 .env 载体
combined-ca.pem(#1807) 系统 bundle + Node roots + MITM 根 额外并入 OS 信任库(Win 证书库 / macOS keychain),每 24h 至多重建一次 codex rustls 把该文件当整个信任池(替换非追加),直连腿必须靠它校验
图片主导 payload(#1800) 立即转发,该会话自动压缩永久失效(文本折叠 0 次) 先折叠可压缩文本,残余超额全由图片构成且无溢出证据时才转发交上游仲裁 b64/4 保守估计高估图片成本
dsh 模型窗口解析(#1812) boot 期一次失败即 latching 无 header 整个进程生命周期 30s 冷却后重试 catalog 加载竞态曾永久剥掉 x-bili-plugin-context-window
side-request compaction handoff(#1765,外部贡献) 原样转发 转发前归一化 bili compaction items 上游拒绝 fc_bili_ 前缀 id(对应 WC-012)
web 配置页(#1748/#1206) 仅原始 JSON 编辑 quick-config 卡片(回写同一 draft)+ 冲突 banner 具名插件 可用性改进,纯 UI 层

测试有效性抽查(④):新增测试有牙——dsh-compaction-guard.test.ts(20 asserts,含「107 条消息中途引用模板不拦截」「超消息数门槛永不拦截」「指令不在末尾消息开头不拦截」等负例)、issue1800-image-arbitration-compress.test.ts(真实 startServer e2e + 单张合成 PNG 字节成本超窗,钉住「preflightCompress 必须执行」这一原始 bug 的反面)、codex-overlay-env.test.ts(62 asserts,覆盖 symlink/hardlink 迁移、重放不回灌真实 home、换端口再生成、direct-URL 不变式)、ca-combined.test.ts(34 asserts,确定性降级路径)。未发现恒真/tautology 断言;CI 四组合(OS×Node)全量通过背书。

结论:本版本引入回归:无(唯一红点为 runner 磁盘满 flake,与代码无关且已被同 commit 后续全绿 run 取代)。Release commit 干净、CI 全绿、PR 处于 clean 可合状态。请 owner 自行合并:#1854

@ranxianglei
ranxianglei merged commit d8ee6c3 into master Oct 1, 2026
17 of 18 checks passed
@ranxianglei
ranxianglei deleted the 2026-10-01_release-v0.1.179 branch October 15, 2026 05:32
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