Skip to content

[PR] fix(server): guard calibrated CJK text at final egress (#4543) - #4573

Closed
Y-fyan wants to merge 5 commits into
ranxianglei:masterfrom
Y-fyan:2026-10-24_issue4543-egress-pr
Closed

Y-fyan wants to merge 5 commits into
ranxianglei:masterfrom
Y-fyan:2026-10-24_issue4543-egress-pr

Conversation

@Y-fyan

@Y-fyan Y-fyan commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Batch of 11 review-clean PRs from single-PR external contributors, each
squashed to one commit with Co-authored-by + Source-PR trailers so the
original authors keep credit.

commit source PR author what
1 #4573 @Y-fyan CJK calibration window outbound fuse (only when calibration provenance exactly matches origin+model)
2 #4922 @IcyDate protect mid-session workspace instruction revisions from folding (Updated/Additional/removed -> per-path identities)
3 #6345 @guowenjie1992 kernel: bridge span-safe gaps at the merge gate so mega-turn islands survive
4 #6591 @OMSociety one-shot [dsh-client] detection log for dsh-go hosts (pure probe, fail-open)
5 #6837 @ZhaoJun233 after emergency truncation, decompress lost mid-segment text: cache the full compressed input as block originals
6 #6905 @xwc2020-2 all-external-summary-failure / invalid-config paths into the existing consecutive-failure guard (credentials stay in the fingerprint hash)
7 #6914 @mariopasquali completeBlockContents built once outside the per-block loop (n^2 -> n; 16k blocks 22.7s -> 114ms)
8 #7094 @Sentryea Claude SessionStart hook: stop process.exit on the same tick (Windows libuv abort)
9 #7119 @ZzXxYy1234 client-local doom gate priced by prompt mass instead of raw body bytes (fixes false rejects from the 8MiB dsh_session_log field)
10 #7552 @nokiexow Korean (ko) locale for the web UI (key-reconciliation tests, no Chinese residue)
11 #7559 @zhaoruizhe81 opt-in compress.protectedUserPatterns (default off, byte-identical when unconfigured)

Batch notes (changes made while packing):

kernel-change: #6345 kernel/src change (span-safe gaps at the merge gate so mega-turn islands); kernel 0.0.208 -> 0.0.209.

@ranxianglei ranxianglei changed the title fix(server): guard calibrated CJK text at final egress (#4543) [PR] fix(server): guard calibrated CJK text at final egress (#4543) Oct 24, 2026
@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

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

查重: 不重复。检索了 open+closed 的 issue 与 PR(按 "egress fuse" / "calibrated" / "4543" / CJK 密度失败签名):唯一引用 #4543 的在途 PR 就是本 PR;最接近的 #4079 是既有 byte-floor 熔断的来源缺陷(请求带着零窗口比较到达 egress),症状与机制都不同——本 PR 修的是「7.5 B/tok 常数在 CJK 密度(~3.4 B/tok)下存在 >2× 盲区」这一新失败域,两者是同一子系统的不同机制,不构成重复。#2830/#4262(probe 存废、未识别 overflow 400)属本 PR 明确排除的范围,无在途竞争 PR。

标签: bug + dsh + scope/wiring + p1(缺陷修复;事故证据面为 DSH plugin lane;改动落在请求管道/egress 接线层;p1 依据 owner 2026-10-19 修订——事故结果是会话不可恢复的数据丢失形态,本 PR 关闭其中熔断盲区一环)。

开始独立审核:方向关(是否打到根因)、回归审查(egress 路径既有行为清点)、代码审查、测试有效性。结论按结构化八问回复。

@ranxianglei ranxianglei added bug Something isn't working dsh p1 scope/wiring labels Oct 24, 2026
Review nit from ranxianglei#4573 (fix for ranxianglei#4543): every other local 413 refusal in relay.ts logs with a 413: status prefix (the 5GiB cap check and the ranxianglei#4079 byte-fuse lines); the new calibrated egress-fuse line omitted it, so operators correlating local refusals by status code would miss this one. Parity only, no behavior change.
@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

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

独立审核完成,结论:可合(合并操作留给你)。

结构化八问

  1. 是什么问题:CJK 为主的会话,出站文本可以在仍低于既有「灾难密度」字节熔断线(7.5 字节/token)的情况下超过模型窗口([Bug] CJK payloads slip past the egress byte-floor fuse: a 4.1 MiB outbound was forwarded at 1,121,674 tok into a 1,000,000-token window (0.1.206, plugin lane) #4543 事故里的中文正文约 3.4 字节/token),于是被原样转发,上游报 400 / CONTEXT_WINDOW_EXCEEDED,会话原地不可恢复。
  2. 什么原因导致的:出口只有一维防护——固定字节密度线——结构性看不见高密度 CJK 文本;对「最终改写后的出站体」没有独立的校准 token 检查。根因是缺一道门,不是某个参数取值不对。
  3. 影响范围与严重程度:触发条件 = 该路由已为当前 origin+model 发布校准系数,且出站文本估算超过 max(声明窗口, 1M)。条件之外行为零变化(字节熔断、证据探测等既有路径全部保留)。命中时旧后果是 p1 级(会话不可用、只能重开);修复后变成本地拒绝 413 + 可操作错误信息。
  4. 怎么修复的:在发送收口点(最终 wire body 算出之后、任何证据发布和 fetch 之前)加一道独立闸门:CJK 感知的文本 + wire 开销估算 × 路由校准系数 k̂;仅当 provenance 显式匹配当前上游 origin 且模型时才允许拒绝(k̂ 本身要求同路由 ≥2 个样本在 ×2 内一致、落在合理区间,再夹到 [0.25, 4]);图片走独立计费通道不参与该计算;provenance 缺失/失效/跨源/跨模型时保持原有「转发以取证」行为。探测是学习路径、此门是决策路径,互补不冲突(billion-context 卡死问题 —— 上报材料 usage获取不到导致上下文估计失误 #2313 契约未被破坏)。
  5. 是否有回归问题:逐项审过——
  6. 是否破坏缓存:不涉及——未触碰任何缓存键/重试/去重/增量游标;测试钉住放行 body 与改前逐字节一致(received.at(-1) === body)。
  7. 是否改了设计方向:没有。正是 issue 建议的方向 (a)(「字节线 + 校准估算两道独立闸」),沿用 Context Window Overflow Issue Summary: Raw Requests Sent Directly to Upstream Rejected + Local Intercept Cooldown Lockin | 上下文超窗问题汇总:请求裸冲上游被拒 + 本地拦截冷却锁死会话(统一分析入口) #4079 的先例。范围边界诚实声明:fold identity churn 修复、换路由后自动折叠重新武装、手动救援端点、精确 tokenizer 都不在本 PR(继续留在 [Bug] CJK payloads slip past the egress byte-floor fuse: a 4.1 MiB outbound was forwarded at 1,121,674 tok into a 1,000,000-token window (0.1.206, plugin lane) #4543 跟踪)。
  8. 是否引入新配置:没有。无 env/config 字段/CLI flag。

验证证据

顺手修掉的小问题

review 发现一处日志措辞不一致:新闸门的 warn 行漏了 relay.ts 里所有其他本地 413 拒绝都在用的 413: 前缀(运维按状态码关联日志会漏掉它)。按「小问题直接修」已往你的分支推了一行 commit:627a2aff8(仅日志对齐,无行为变化),CI 会在新 head 上重跑。

诚实边界(已知残留盲区,非本 PR 缺陷)

k̂ 是单槽位:事故中途绕行另一个模型期间,若该模型攒够 2 个结算样本,其 ring 会把 calibratedEstimateModel 覆盖掉,回到原模型后本门在「原模型的 ring 重新发布」前保持静默(需要再多 2 轮结算——而 body 已经溢出时这就是鸡生蛋)。扩成 per-model 槽位是设计变更,需要你拍板,超出本 PR 范围;图片主导的溢出同样仍未覆盖(图片有意不参与文本校准)。

结论:方向打到了根因(缺门而非参数),实现保守(只在显式 provenance 下才拒绝),回归审计通过,测试有牙,diff 干净(两文件)。可合,等你按按钮。

…anxianglei#1843 L1 image-facts conflict

master updated the ranxianglei#1843 L1 image-facts block in place (countImagesInParsedBody
+ outboundCopyRewritten guard, ranxianglei#5131) while the PR moved the same block below
the new ranxianglei#4543 calibrated egress fuse (so image facts are only captured when the
send proceeds past the fuse, not when the fuse returns 413).

Union of both intents: keep the block at the post-fuse location in master's
updated form. The ranxianglei#4543 calibrated fuse is intact; typecheck clean.
@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

🔶 需要决策

(ai: vllm-qwen/qwen3.8-27b) Merge conflict resolved and pushed — but the merge surfaces a test regression that needs a design call before this PR can be green.

What I did this run

  1. Resolved the merge conflict (PR was dirty against master). Single conflict, in src/server/relay.ts: master updated the #1843 L1 image-facts block in place (countImagesInParsedBody + outboundCopyRewritten guard, [PR] Eliminate redundant per-round scanning of full history/full request body; reduce per-round agent overhead by 12–16% for | 砍掉每轮对全历史/全请求体的重复扫描,大上下文每轮代理开销降 12-16% (#5130) #5131) while this PR moved the same block below the new #4543 calibrated egress fuse. I took the union of both intents — the block stays at the post-fuse location (so image facts are only captured when the send proceeds past the fuse, not when the fuse returns 413) but in master's updated form. The #4543 calibrated fuse is intact.
  2. Verified: npm run typecheck clean; #4543 fuse + relocated image-facts block both present and correctly ordered.
  3. Pushed the merge to the PR branch (fast-forward, no force-push). PR is now mergeable: true (state blocked — waiting on checks/approval, no longer dirty).

Why CI is still red — a design decision is needed

The PR's own test tests/issue4543-calibrated-egress-fuse.test.ts now fails on subtest 19 "dense text accepted by calibrated route":

  • Fixture: calibratedEstimate: 0.25, body = 4,100,000 ASCII x chars, window 1,000,000.
  • The PR's #4543 calibrated gate would allow it (calibrated ≈ 256,250 tokens < window).
  • But master's #5000 measured-body gate (commit d1b2d8fac4, the CJK-aware #554 meter) measures the raw body at ~1,025,003 tokens > window and refuses it before the #4543 calibrated gate is ever reached.

I confirmed this is a regression from the merge, not from my conflict resolution: the test passes 21/21 on the PR head alone and fails only once master's #5000 gate is in. The two fuses now disagree on this shape — #5000 prices the raw body (fail-closed), #4543 prices the route-calibrated estimate (nuanced). The #5000 gate's own comment cites #4543 as a motivation, so the two were meant to coexist — but the raw-count gate preempts the calibrated gate for dense ASCII. This is not a mechanical fix I can make unilaterally: it changes either master's #5000 fuse semantics or the PR's test intent.

Options

  • A — #5000 measured-body gate defers to a fresh route-calibration when one exists for this exact route+model (judge the calibrated estimate, not the raw count, when calibratedHere). Restores the PR's intended behavior (calibration can admit a dense body the raw count over-prices). Cost: weakens the #5000 fail-closed guarantee on calibrated routes; needs care so a stale/wrong calibration can't false-admit.
  • B — Keep #5000 as the authoritative raw-count gate; update the PR's test so "dense text accepted by calibrated route" uses a body the raw count also admits (or asserts the #5000 413). Keeps master's fail-closed guarantee intact; the #4543 calibrated gate remains the additional refusal path (it still adds value for bodies the raw count under-prices, e.g. CJK).
  • C — Order the gates so the #4543 calibrated gate runs first and, when it admits, short-circuits the #5000 raw-count gate for that send. Most faithful to the PR's intent, but the biggest semantic change to the #4079 fuse ordering.

Recommendation: B. The #5000 raw-count gate is the newer, fail-closed guarantee that closed a real incident class; the #4543 calibrated gate is strictly additional (it catches what the raw count under-prices, e.g. CJK). A dense ASCII body the raw count prices over the window is exactly the shape #5000 was built to refuse, so the PR's test expectation is the stale artifact — update the test to match, don't weaken the fuse. The #4543 gate keeps its value for the CJK / under-priced shapes.

Default if undecided: B (update the PR's test to post-#5000 semantics; leave both fuses as-is). I have not changed the test or either fuse — the PR is pushed with the conflict resolved and the test left exactly as the PR author wrote it, pending this call.

八问

  1. 是什么问题:PR 与 master 冲突(merge state dirty);解冲突后,PR 自带的 #4543 测试在 master 的 #5000 实测体闸下变红。
  2. 什么原因导致的:master 的 #5000(commit d1b2d8fac4)在 #4079 egress fuse 里加了「实测体 CJK 感知计数 > 窗口即 413」的闸;它先于本 PR 的 #4543 校准闸执行,把 raw 计数 1,025,003 > 1,000,000 的 dense ASCII 体直接拦下,校准闸(≈256,250 < 窗口)根本没机会放行。冲突解决本身(把 #1843 L1 图片事实块移到 fuse 之后并采用 master 的 parsedBody 新形态)是对的,typecheck 干净。
  3. 影响范围与严重程度:仅影响「route 有新鲜校准、且 raw 计数超窗但校准后不超窗」的 dense 文本体——这类体现在被 #5000 413 拦,而 PR 意图是放行。属行为分歧(非数据丢失/缓存泄露),但会让 #4543 的校准放行能力在该形状上失效。
  4. 怎么修复的:本轮只做了冲突解决(union of intents:块留在 fuse 后 + master 新形态)+ 推送;测试与两个 fuse 都未动,等决策。
  5. 是否有回归问题:冲突解决无回归(typecheck 干净、#4543 fuse 完整、图片事实块「仅 send 过闸后采集」语义保持)。测试红是 master #5000 与本 PR #4543 的语义冲突,不是冲突解决引入的。
  6. 是否破坏缓存:不涉及(未触碰缓存/重试/游标/去重)。
  7. 是否改了设计方向:未改。但 A/C 选项会改 #4079/#5000 fuse 的语义或顺序,属设计方向变更,需 owner 拍板;B 不改方向。
  8. 是否引入了新的配置:不涉及(未加 env/config/默认值)。

收工判定:冲突已解决并推送(PR 已 mergeable,不再 dirty)。CI 红的剩余项(测试 19)是 #5000 vs #4543 的设计分歧,需 owner 在 A/B/C 中拍板后我再落地(推荐 B)。

备注:任务要求用 tools/add-label.sh 打 needs-decision 标签,但该脚本在本工作区不存在、镜像 API 也未实现 label 端点,标签未能打上——已在评论首行以「🔶 需要决策」标记,请 owner 知悉。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

🔶 需要决策

(ai: vllm-qwen/qwen3.8-27b) Re-verified the live check state first: the mirror cache currently reports failed: 0 and the test (os, node, shard) lanes have not landed in the cache yet (30 checks listed, none of them the test lanes; 9 guard lanes still queued), so I cannot confirm the test lanes are green from the mirror. From the local run on this head (ff005b3c73), tests/issue4543-calibrated-egress-fuse.test.ts subtest 19 "dense text accepted by calibrated route" is red — the same #5000-vs-#4543 design conflict I flagged in my previous comment:

  • master's #5000 measured-body gate (commit d1b2d8fac4, the CJK-aware #554 meter) measures the raw body at ~1,025,003 tokens > the 1,000,000 window and refuses it before the PR's #4543 calibrated gate (which would admit it at ≈256,250) is ever reached.
  • This is not a mechanical fix I can make unilaterally: it changes either master's #5000 fuse semantics or the PR's test intent.

Still waiting on the A/B/C call from my previous comment (recommendation B: update the PR's test to post-#5000 semantics; leave both fuses as-is). I have not touched the test or either fuse. Once the owner picks, I'll land it in one commit.

八问

  1. 是什么问题:PR 与 master 冲突已解并推送;剩余 CI 红是 PR 自带 #4543 测试在 master #5000 实测体闸下变红(子测试 19)。
  2. 什么原因导致的:master #5000(commit d1b2d8fac4)的实测体 CJK 感知计数闸先于本 PR 的 #4543 校准闸执行,把 raw 计数 1,025,003 > 窗口 1,000,000 的 dense ASCII 体直接 413,校准闸(≈256,250 < 窗口)没机会放行。
  3. 影响范围与严重程度:仅「route 有新鲜校准、raw 计数超窗但校准后不超窗」的 dense 文本体——被 #5000 413 拦,而 PR 意图放行。行为分歧,非数据丢失/缓存泄露。
  4. 怎么修复的:本轮未改代码/测试——冲突解决(上轮)已完成并推送;测试红是 #5000 vs #4543 设计分歧,等 owner 拍板。
  5. 是否有回归问题:冲突解决无回归(typecheck 干净、#4543 fuse 完整)。测试红是 master #5000 与本 PR #4543 的语义冲突,非冲突解决引入。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:未改;A/C 选项会改 #4079/#5000 fuse 语义或顺序(需拍板),B 不改。
  8. 是否引入了新的配置:不涉及。

收工判定:冲突已解决并推送(PR mergeable)。剩余 CI 红(测试 19)是 #5000 vs #4543 设计分歧,需 owner 在 A/B/C 中拍板(推荐 B)后我再落地。本轮未改任何代码/测试。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷

(ai: vllm-qwen/qwen3.8-27b) Summary of this run (auto-fix lane, attempt 1/3):

What I did:

  1. Re-verified live check state first (as instructed): the mirror cache reports failed: 0 and the test (os, node, shard) lanes have not landed in the cache yet (30 checks listed, none of them the test lanes; 9 guard lanes still queued). So I could not confirm the test lanes green from the mirror.
  2. Confirmed the local red: on this head (ff005b3c73, the conflict-resolution merge from my previous run), tests/issue4543-calibrated-egress-fuse.test.ts subtest 19 "dense text accepted by calibrated route" is red — the same #5000-vs-#4543 design conflict I flagged in my previous "🔶 需要决策" comment.
  3. Posted a re-confirmation "🔶 需要决策" comment (immediately above this one) re-stating the A/B/C options and recommendation B.

Outcome:

  • Conflict: resolved (previous run) — PR is now mergeable.
  • Red CI: the #4543 test subtest 19 — a design conflict between master's #5000 measured-body gate (commit d1b2d8fac4) and the PR's #4543 calibrated gate. Not a mechanical fix I can make unilaterally — it changes either master's #5000 fuse semantics or the PR's test intent. Waiting on the owner's A/B/C call (recommendation B: update the PR's test to post-#5000 semantics; leave both fuses as-is).
  • No code/test/fuse was changed this run.

What remains and the risk:

  • The owner needs to pick A/B/C for the #5000-vs-#4543 test conflict. Once picked, I'll land it in one commit.
  • Risk of inaction: the PR stays red on the #4543 test until the owner decides. No data-loss, cache-leak, or availability risk — it's a behavior divergence between two egress fuses.

八问

  1. 是什么问题:PR 与 master 冲突已解并推送;剩余 CI 红是 PR 自带 #4543 测试在 master #5000 实测体闸下变红(子测试 19)。
  2. 什么原因导致的:master #5000(commit d1b2d8fac4)的实测体 CJK 感知计数闸先于本 PR 的 #4543 校准闸执行,把 raw 计数 1,025,003 > 窗口 1,000,000 的 dense ASCII 体直接 413,校准闸(≈256,250 < 窗口)没机会放行。
  3. 影响范围与严重程度:仅「route 有新鲜校准、raw 计数超窗但校准后不超窗」的 dense 文本体——被 #5000 413 拦,而 PR 意图放行。行为分歧,非数据丢失/缓存泄露。
  4. 怎么修复的:本轮未改代码/测试——冲突解决(上轮)已完成并推送;测试红是 #5000 vs #4543 设计分歧,等 owner 拍板。
  5. 是否有回归问题:冲突解决无回归(typecheck 干净、#4543 fuse 完整)。测试红是 master #5000 与本 PR #4543 的语义冲突,非冲突解决引入。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:未改;A/C 选项会改 #4079/#5000 fuse 语义或顺序(需拍板),B 不改。
  8. 是否引入了新的配置:不涉及。

收工判定:冲突已解决并推送(PR mergeable)。剩余 CI 红(测试 19)是 #5000 vs #4543 设计分歧,需 owner 在 A/B/C 中拍板(推荐 B)后我再落地。本轮未改任何代码/测试。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] auto-fix stalled: test (windows-latest, 22, 5), test (windows-latest, 22, 1), test (ubuntu-latest, 22, 3), test (ubuntu-latest, 24, 2), test (ubuntu-latest, 24, 3), test (windows-latest, 22, 3), test (ubuntu-latest, 22, 2) — stopping for human review

2 similar comments
@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] auto-fix stalled: test (windows-latest, 22, 5), test (windows-latest, 22, 1), test (ubuntu-latest, 22, 3), test (ubuntu-latest, 24, 2), test (ubuntu-latest, 24, 3), test (windows-latest, 22, 3), test (ubuntu-latest, 22, 2) — stopping for human review

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] auto-fix stalled: test (windows-latest, 22, 5), test (windows-latest, 22, 1), test (ubuntu-latest, 22, 3), test (ubuntu-latest, 24, 2), test (ubuntu-latest, 24, 3), test (windows-latest, 22, 3), test (ubuntu-latest, 22, 2) — stopping for human review

ranxianglei added a commit that referenced this pull request Nov 24, 2026
CJK calibration window outbound fuse: only fuse when the calibration provenance exactly matches origin+model (conservative); the old-head test red is rebase noise.

Co-authored-by: Y-fyan <195829684+Y-fyan@users.noreply.github.com>
Source-PR: #4573
@ranxianglei

Copy link
Copy Markdown
Owner

Closing per the owner ruling #7537 (2026-11-22, AGENTS.md KDD #19, Tier A): estimate-based local size refusal is retired — over-window requests are forwarded and the upstream's own verdict is authoritative (local window values are often wrong, #7205; the product of two guesses was silently killing requests that would have succeeded, the #7167/#7382/#2490 family). This PR predates that ruling, so it lands on a superseded mechanism rather than a missing fix. The CJK calibration analysis in here is solid and stays on record; if the ruling ever changes, this work can be re-opened on top of the new contract. Thanks for the careful work!

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷

(ai: vllm-qwen/qwen3.8-27b) Acknowledged — the owner ruling #7537 (KDD #19, Tier A) supersedes the mechanism this PR implements: estimate-based local size refusal is retired, and over-window requests are forwarded to the upstream's own verdict (local window values are often wrong, #7205; the product of two guesses was silently killing requests that would have succeeded, the #7167/#7382/#2490 family).

The #5000-vs-#4543 design conflict I was waiting on (A/B/C, rec B) is now moot — the owner has decided the whole mechanism is superseded, not that one of the two fuses wins. No further work from my side: the PR is being closed (not merged), so the conflict-resolution merge (ff005b3c73) and the pending test fix are both dropped. The CJK calibration analysis stays on record as the owner noted.

八问

  1. 是什么问题:PR 实现的 #4543 校准 egress fuse 机制已被 owner 裁决 Preflight: don't reject based on local estimation — after folding, forward unconditionally; if it exceeds the window, le | preflight 不用本地估算拒发:折叠后一律转发,超窗让上游自己说(413 拒发家族总根因) #7537(KDD fix: route auto-update logs through the tee logger #19, Tier A)取代——基于估计的本地大小拒绝已退役,超窗请求转发给上游权威裁决。
  2. 什么原因导致的:owner 裁决 Preflight: don't reject based on local estimation — after folding, forward unconditionally; if it exceeds the window, le | preflight 不用本地估算拒发:折叠后一律转发,超窗让上游自己说(413 拒发家族总根因) #7537(2026-11-22)认定本地窗口值常错(Codex Guardian reviews can hit a false local 413 despite a known model window #7205),两个猜测的乘积会静默杀掉本可成功的请求(Preflight folds message ranges before checking whether tools[] alone already exceed the window (wasted compression + guaranteed 413) #7167/Large session preflight fail-fast 413: no fallback path, and the client cannot see the 14 MiB actually sent. | 大会话 preflight fail-fast 413:没有降级路径,客户端也看不到实际发出的 14 MiB #7382/dsh压缩与bili压缩冲突 #2490 家族)。本 PR 早于该裁决,落在已被取代的机制上,而非缺失的修复。
  3. 影响范围与严重程度:本 PR 关闭(不合并),无用户面行为变更。CJK 校准分析留在记录上,若裁决变更可在新契约上重开。
  4. 怎么修复的:无需修复——owner 已裁决关闭 PR,机制被取代。CI 工程师本轮未改任何代码/测试。
  5. 是否有回归问题:不涉及(PR 不合并,无行为变更)。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:是——owner 裁决 Preflight: don't reject based on local estimation — after folding, forward unconditionally; if it exceeds the window, le | preflight 不用本地估算拒发:折叠后一律转发,超窗让上游自己说(413 拒发家族总根因) #7537 将 egress 大小裁决从本地估计改为上游权威裁决,本 PR 的本地校准机制被取代。
  8. 是否引入了新的配置:不涉及。

收工判定:PR 由 owner 关闭(不合并)。CI 工程师工作完成:冲突已解(上轮)、测试红已定位为设计分歧(本轮)、owner 已裁决机制被取代。无需进一步操作。

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

Labels

bug Something isn't working dsh p1 scope/wiring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants