Skip to content

[PR] Revert "#3900: reserve output headroom on every wire (drop the Anthropic exemption)" (#4184) — unblock v0.1.204 - #4198

Merged
ranxianglei merged 1 commit into
masterfrom
2026-10-21_revert-4184-headroom
Oct 21, 2026
Merged

ranxianglei merged 1 commit into
masterfrom
2026-10-21_revert-4184-headroom

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

(ai: zhipuai-lb/glm-5.3)

这是啥: #4184 (4d50f9c) 把「为输出预留 headroom」从 OpenAI 系扩到了所有 wire, 但全库约 40 个钉住未预留窗口值/窗口行为的测试没跟着更新 → master 测试 shard 大面积红 (codex UA 钳制 272000→270976、#1339 1M、#554 sideRequestGuard、#3900 自己的 e2e、storage-render anthropic golden、#2678 批次波次…), release v0.1.204 (#4190) 被 25 个 check 卡死。

为何 revert 而不是补测试: ① 该改动是默认值变更 (AGENTS.md §7.4: fallback/默认值 = 人审产品决策档), 但落地时没更新受影响面, 属于半成品落地; ② 发布被卡, revert 是最快解法; ③ ~40 个测试的期望值翻新涉及「status 显示 270976 还是 272000」这类口径决策, 应该随重做一起做。

验证: revert 后本地 codex-window-align 8 + issue2678 4 + context-overflow + anthropic-beta-window + preflight-max-output-tokens + issue3900×2 + side-lane/side-request 49 + golden-storage-render + claude-bridge-e2e 3 + 987/selfheal = 全绿; typecheck 绿。ef59cf76~1 (revert 前) 同套 12/12 绿交叉印证 #4184 是唯一回归源。

后续: #3900 保持 open, 重做 PR 需要把「effectiveContextLimit 记录值是否含预留」定清楚 (建议: 记录未预留值, 预留在 band 计算层做, 参见 #3837 的 headroom 口径讨论), 并一次性更新全部受影响测试 + golden regen。

Refs #4184, #3900, #4190

@ranxianglei ranxianglei changed the title Revert "#3900: reserve output headroom on every wire (drop the Anthropic exemption)" (#4184) — unblock v0.1.204 [PR] Revert "#3900: reserve output headroom on every wire (drop the Anthropic exemption)" (#4184) — unblock v0.1.204 Oct 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-21_revert-4184-headroom (a99c304)

Option A — Install this exact build (recommended)

npm install -g billion-context@0.0.4992-pr.4198.ca3c319

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-pr4198.tgz
npm install -g package

Install instructions are refreshed on each push.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.731-master.44409dd (rolling master tag).

npm install -g billion-context@0.0.731-master.44409dd  # 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.

ranxianglei added a commit that referenced this pull request Oct 21, 2026
The original "Non-Anthropic only" rationale is accurate again now that
#3900's universal reservation was reverted in #4198 — keep that, and note
the revert so the history is traceable.
This was referenced Oct 21, 2026
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