Repository navigation
Conversation
(ai: vllm-qwen/qwen3.8-27b) 查重: 不重复 — 检索 open+closed issues/PRs("side request guard" / guardian 413 / codex window):相关项仅 closed #557、#1111(不同的 side-lane 主题),无其他 open PR 指向本线程;这是 #7205 的唯一修复 PR。 Maintainer review of the window precedence and headroom behavior (as requested): Direction: the fix targets the root cause, not the symptom. The guard's effective window comes from the generic resolution result; when no native/operator window is found ( Precedence ladder (verified in code + tests, highest to lowest):
Headroom behavior (verified):
Regression review (existing behaviors on the touched path, each checked):
Tests: the new e2e is real — real proxy + fake upstream, exact window values asserted in the 413 message, upstream-hit counting, parent-session isolation, verbatim forwarding; 8 subtests cover the full precedence matrix. 64/64 targeted tests pass locally ( CI: 52 runs — 37 success, 14 skipped, 1 failure: Verdict: code correct, scoped to the side lane, well-tested; precedence and headroom semantics verified as described. Ready to merge once the flaky job re-run is green. Merge is owner-only. 中文八问
标签:PR #7206 与源 issue #7205 已打 收工判定:代码正确、范围收敛、测试充分(本地 64/64 定向测试 + typecheck + build 全绿);CI 唯一红为无关 e2e 时序 flake(本地 7/7 通过,master 同期另一 e2e 同样红)。flaky job 重跑转绿后即可合并;合并由 owner 执行。 |
Fixes #7205.
A Codex Guardian Responses request can resolve to bili's anonymous 200,000-token window even though the Codex model sources know
codex-auto-review. The regular alignment can only clamp downward, so a matched window above the default never reaches the side guard.Use model-specific Codex evidence for the Responses side guard when generic resolution has no native or operator window. Prefer the current live cache or catalog, with the bundled per-model entry as a fallback. These live sources already account for output headroom. An explicit headroom cap or a smaller upstream overflow arm retains the reservation. This is scoped to the existing side lane and keeps its raw passthrough and local oversize check.
Verification
side-request-isolation.test.ts,codex-live-window.test.ts, andissue5243-codex-catalog-window.test.ts.npm run typecheck,npm run build, andgit diff --checkpassed.This changes which evidence supersedes the anonymous fallback in one lane. Please give the window precedence and headroom behavior a maintainer review.