Skip to content

[PR] fix(diagnostics): distinguish size rejections and retain bounded causes - #5482

Closed
Maziar123 wants to merge 8 commits into
ranxianglei:masterfrom
Maziar123:fix/rejection-diagnostics
Closed

Maziar123 wants to merge 8 commits into
ranxianglei:masterfrom
Maziar123:fix/rejection-diagnostics

Conversation

@Maziar123

@Maziar123 Maziar123 commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Problem

An unmarked HTTP 400 was treated as size evidence, and a bounded outer-body preview could hide a nested provider rejection.

Change

Only unmarked413 is markerless size evidence. Positive overflow-marker detection and recovery decisions are unchanged. A shared read-only helper selects the last usable attempts[].details.error.message from direct or error-wrapped aggregates, labels an earlier informative attempt as reported rather than terminal, and appends a bounded diagnostic. Parsing is capped at64KiB UTF8; output is capped at300 characters, control/whitespace collapsed, and existing credential redaction applied. No raw body dump or recursive arbitrary cause walk.

Verification

Candidate3896863d:25 targeted runtime checks passed, plus TypeScript, unused-export and test-import-graph gates. A separate direct API smoke distinguished markerless 400 from413 and retained a nested schema cause. Local coverage is not an all-platform/full-suite CI claim.

Scope and related work

Host diagnostics only; no kernel, persistence-schema, wire or retry-policy change. Related:#4452 and closed/unmerged#4455; this narrows the older predicate and adds bounded nested-cause extraction. #5007 is a distinct message-count/fall-through mechanism and is not resolved here. This does not establish historical failure attribution or make arbitrary provider text a general privacy-safe payload.

Maziar123 and others added 2 commits November 1, 2026 17:08
… rejection cause

Review follow-up on ranxianglei#5482. bound() collapsed only C0 + DEL before clamping,
so C1 control characters survived into the appended log suffix — in particular
U+0085 (NEXT LINE) and U+009C (file separator), which render as line/field
breaks. A relay that echoed such a byte into attempts[].details.error.message
could forge a second log field, contradicting the module's own "no newline may
forge a second log field" invariant (pinned by the \r\n test). Widen the strip
to C1 (U+007f-U+009f) and extend the control-shape regression test to pin NEL
and file-separator. No behavior change beyond the log-line sanitization.
@ranxianglei ranxianglei added bug Something isn't working p3 scope/wiring labels Nov 1, 2026
@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷
(ai: vllm-qwen/qwen3.8-27b)

查重: 不重复。本 PR 是 #4452 的活跃后续,取代已关闭未合入的 #4455;与 #3659(summary-tier 分类诊断)症状与机制均不同,与 #5007(message-count/fall-through)无关。当前仓库仅此一个 PR 做「无标记拒绝判据收窄 + 中继聚合体死因提取」。

标签: bug + scope/wiring + p3 —— 纯宿主侧日志诊断缺陷(误导告警 + 死因被截断),不涉及 kernel/存储/wire/配置面,severity 为诊断噪音级。

Review summary (for @Maziar123): Direction is sound and both changes are strictly host-side, log-only diagnostics — no retry/refold/window-learn/cache/persistence/wire/kernel impact (verified: the predicate has exactly one caller, src/server/relay.ts:1539, which only logs). Quality meets the external-contribution bar; no refactor needed. I pushed one small hardening commit (c749eb82e): your bound() collapsed only C0+DEL, so C1 control characters — notably U+0085 (NEXT LINE) and U+009C — survived into the appended suffix and could forge a second log field, contradicting the module's own "no newline may forge a second log field" invariant (already pinned by the \r\n test). Widened the strip to C1 (\u007f-\u009f) and extended the control-shape regression test to pin NEL/file-separator. CI at review time: all static gates green (kernel/lane/config-surface/version/docs-sync guards pass); the test shards were still running. Branch is ~28 commits behind master (isolated changes, low conflict risk) — please rebase to master before un-drafting; I did not force-rebase your draft. Merge/close stays with the owner.


结构化八问

  1. 是什么问题: 中继站拒绝日志两处失真——①无标记的普通 400(畸形/schema/role 错误)被误诊成「上下文溢出、路由校准饥饿」假警报;②扇出型中继全部目标失败时,真正的死因藏在聚合体最后一个 attempts[].details.error.message 里,落在 600 字节截断之外,日志只能看到「all targets failed」。
  2. 什么原因导致的: ①原判据把 400 与 413 一视同仁当「尺寸证据」,但 400 在各家中继是通用畸形请求桶(截断 JSON、不支持字段、真实超大载荷返回的正文几乎一样),本身不含大小信息;只有 413 的状态语义本身就是「载荷过大」。②日志行只保留正文前 600 字节,而聚合型拒绝的逐目标死因在更深一层。
  3. 影响范围与严重程度: 纯诊断面(日志),不影响重试/折叠/窗口学习/缓存/持久化/线上响应字节。触发条件=上游返回非 2xx 且带(或不含)相应结构。严重度=体验瑕疵/诊断噪音(p3):此前对普通畸形 400 打误导性「校准饥饿」告警、聚合体死因不可见;不阻断任何功能。
  4. 怎么修复的: ①判据收窄到只认 413 作为无标记尺寸证据(有标记的溢出照旧走 inspectContextOverflow,一字未动);②新增只读 helper 从聚合体读最后一条可用 details.error.message(直连或 error. 包裹两种形态),经共享 redactSecretsInText 洗凭证、折叠全部控制/空白字符、上限 300 字符、正文 >64 KiB 直接不解析,作为有界后缀追加到既有 ← upstream <status> 日志行;无该结构时后缀为空 = 与原实现逐字节一致。
  5. 是否有回归问题: 逐项过触碰路径既有行为——判据唯一调用点(relay.ts:1539)仅打日志、无下游分支依赖;有标记溢出自愈路径未动;通用 ← upstream 行在无聚合结构时逐字节不变;无 fail-fast 变吞错、无阈值/时序/输出格式漂移(除有意新增的有界后缀)、无默认值变化。无意回归 0 处;唯一行为变更即下面第 6 条披露的「400 不再告警」(有意)。
  6. 是否破坏缓存: 不涉及——纯日志诊断,不碰任何缓存键/重试游标/去重键。
  7. 是否改了设计方向: 不涉及——仍是宿主侧诊断,不碰 kernel/存储/wire/重试策略。
  8. 是否引入新配置: 不涉及——无新 env/config/CLI 旗标。

行为变更披露(旧值→新值 + 原因): isMarkerlessOverflowReject 由 (status===400 || status===413) && !hasMarker 收窄为 status===413 && !hasMarker。效果:无标记的 400 拒绝不再打印「carries no parseable overflow marker … calibration-starved route」警告;有标记的溢出与 413 处理完全不变。原因:无标记 400 不含尺寸证据,把它当溢出会制造假警报(这正是原缺陷)。纯日志,无用户可见的功能变化。

收工判定: 可合(待 CI test 分片转绿 + owner 拍板)。质量达标、无需重构;我已在分支补一个 C1 控制字符(NEL/U+009C)逃逸的小加固 commit(c749eb82e)+ 回归测试钉。请作者 rebase master 后确认 un-draft;合并与关闭由 owner 决定。

Maziar123 and others added 2 commits November 6, 2026 13:25
…ile existence (ranxianglei#4599)

The receiver fixture creates its .port file before the write lands; on a loaded runner the existsSync poll can win that race and read back an empty file, so Number("") === 0 tripped the assertion (CI: ubuntu-24 shard 2, run 42202673910 — second occurrence of this signature after PR ranxianglei#5327's one-off, recorded in ranxianglei#4599 as record-only). Poll until the content parses as a positive integer instead; the 15s deadline and the diagnostic message are unchanged.
@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)
CI 工程师报告(覆盖两轮处置):

现状:PR 在 head 8d283b9e5 全绿(run 42211604100 attempt=2,30 项 check 全部 success),可进入 review/merge。

本轮(windows-22 shard 5 红):两个子测试红,均判定为环境负载 flake,无代码改动,重跑转绿:

  • tests/issue3654-health-probe-three-state.test.ts B7:recovery must land inside the window (took 837ms),断言预算 600ms。calls.length==2 断言通过(恰两次探测),说明 resolver 行为正常,只是 Windows runner 负载下单次探测间隔的定时器迟到(墙钟 837ms)。代码侧 delay 构造 ≤ busyWaitCapMs(400ms)(src/agent/native-intercept.ts:1049-1053),行为正确。该签名首次出现。
  • tests/issue5631-restart-survival.test.ts dsh lane:cycle2/clean/steady 0 收到 413 preflight_compress_failed(futile round:最大可省 < 所需降幅,~13125 tok > window 12288)——属已登记的 post-restart preflight race 负载 flake 家族(CI Control Center: Centralized CI Failure Handling & Status Sync (Comment all CI issues here; do not open new issues) | CI 总控: CI 失败集中处理与状态同步(所有 CI 问题在此评论, 勿开新 issue) #4599 有记录,先前表面为 502,本次为 413,机制相同)。
  • flake 证据:两文件本地定向跑全绿;PR diff(diagnostics-only)不触碰这两条路径;master 本身绿。API rerun-failed-jobs(HTTP 201)→ attempt=2 全绿。

前一轮(修复仍有效):ubuntu-24 s2 tests/issue5152-owner-beat-survives-host-stall.test.ts 报 receiver port must be a number, got 0——fixture 先创建 port 文件再写入内容,测试 helper 只等文件存在就读到空串。commit 8d283b9e5 把 startReceiver 改为等待文件内容解析为正整数(deadline 与断言强度不变),本轮 CI 已确认转绿。

结构化八问:

  1. 是什么问题:修复提交后 CI 再度变红——本次是 windows runner 上两个时序/竞态子测试,与本 PR 的改动无关。
  2. 什么原因导致的:环境负载,非代码缺陷——① Windows 负载下定时器迟到(delay 构造 ≤400ms,实测墙钟 837ms 超 600ms 断言预算);② post-restart preflight race(fold 状态未及时落地,preflight 判最大可省不足 → 413),已知 flake 家族。
  3. 影响范围与严重程度:仅 CI 层面,用户侧零影响;后果是 PR 一次假红、延迟合入。
  4. 怎么修复的:本轮零代码改动——本地定向全绿 + 对照已知 flake 家族钉死 flake 性质,API 重跑失败 job 转绿;真实修复仍是前一轮 commit 8d283b9e5(port 文件竞态)。
  5. 是否有回归问题:无。本轮零 diff;前一轮改动仅限测试 helper 的等待条件(同 deadline、同断言强度),不触生产行为。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

结论:PR 全绿,待人工 merge。若 issue3654 B7 的 win32 时序预算再红,按 flake 家族台账升级处理(预算放宽/平台感知),已在 #4599 登记签名。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)
本次为过期重复触发:所列两个红 check 引用的是旧 head 9f757ef47(run 42202673910),即第一轮已处理完毕的同一组失败;分支 head 现已是 8d283b9e5,该旧 run 已失效。本轮只做核验,零改动、零重跑。

当前状态(已逐项核实):分支上全部 run(含 run 42211604100 attempt=2)conclusion=success,30/30 check 绿,无待处理失败。注:镜像缓存此刻仍显示 12 项 in_progress,属轮询缓存滞后——GitHub API 直读确认均为 success,若再收到同 head 的阻塞通知按重复处理即可。

结构化八问:

  1. 是什么问题:系统重发了旧 head 的红 CI 通知;其引用的失败早已修复并验证。
  2. 什么原因导致的:blocker 检测基于旧快照(head 9f757ef / run 42202673910);修复 commit 8d283b9e5 推送后 head 前移,旧 run 不再代表分支状态。
  3. 影响范围与严重程度:无影响,PR 当前全绿。
  4. 怎么修复的:无需修复——镜像缓存 + GitHub API 单次直读核对,确认全绿;不推任何 commit。
  5. 是否有回归问题:无(零 diff)。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

结论:无待办,PR 在 8d283b9e5 全绿,待人工 merge。前两轮处置记录见本线程上方回复与 #4599(issue5152 port-file 竞态修复 + windows 两个负载 flake 重跑转绿)。

@ranxianglei ranxianglei left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

APPROVE — 纯诊断面修复,方向正确、测试有牙、无回归。CI:旧 head 8d283b9e5 镜像缓存 30/30 success/skipped(含 static-gates/gate/lock-sync/mysql-contract);本 review 另推了一个 docs 排序小修(见文末),新 head 47d078973 CI 重跑中。

结构化八问:

  1. 是什么问题:#4452 家族的两个可诊断性缺陷——① master 的 isMarkerlessOverflowReject 把任何「无标记 4xx」当作溢出证据,而各家中转站对畸形/schema/role 错误返回的通用体几乎一模一样 → 普通畸形请求被误报「自愈无法启动 / calibration-starved route」;② 扇出型中转站的聚合错误体把真实死因埋在 attempts[last].details.error.message,永远落在日志 600 字节截断之外,日志只见外层叙事「All targets failed」。
  2. 什么原因导致的:① status 400 本身没有「太大」语义(只有 413 有),用「4xx + 无标记」当尺寸证据把畸形与超大两类请求混为一谈;② 日志行只保留正文前 600 字节,聚合体的外层叙事恰好占据头部。
  3. 影响范围与严重程度:纯日志诊断面——无数据丢失、无线协议变化、无恢复行为变化。受影响者 = 排查上游拒绝的运维。旧行为:经通用体中转站的每个畸形请求都触发假警报(噪音+误导方向);新行为:无标记 400 不再告警。代价(有意披露):Cherry Studio 类网关把溢出 400 改写为通用体时失去这条提示——重复 400 模式在日志里仍然可见,功能级修复属 #4452/#4455 的 owner 决策机制,不在本 PR 范围;无标记 413 照旧告警。
  4. 怎么修复的:① 谓词收窄到仅 413(413 的 HTTP 语义就是载荷过大);② 新增只读模块 src/server/rejection-diagnostics.ts:≤64KiB 正文才解析,只读一条 attempts[].details.error.message(顶层或 error 信封下),从尾部取最后一个可用 attempt,终局 attempt 沉默时回退到最近的有信息量的前序并标 reported 而非 terminal(存在不等于因果),经共享 redactSecretsInText 洗凭证,折叠全部 C0/C1 控制符+空白(防日志行伪造),300 字符上限,有则追加到 ← upstream 行、无则与原行逐字节一致。
  5. 是否有回归问题:无。触碰路径既有行为逐项清点:inspectContextOverflow 标记解析/窗口学习/image-count wall——未动;relay non-2xx 路径(errBody 缓冲、armOverflowShrink/armFailureShrink、strict-echo 学习、throttle governor feed、dumpRejectedBody、verbatim passthrough)——未动;恢复决策全部以标记为准,不依赖新谓词与新后缀(纯诊断,代码注释亦如此声明);← upstream 行格式纯增量、缺席时逐字节一致(单测双向钉住);grep 确认旧 400 警告文案全仓仅 relay.ts:1599 一处产出、无其他测试 pin 依赖它。高危模式逐项过:fail-fast 未变吞错(JSON.parse 失败→返回 undefined→无后缀,诚实降级)、阈值漂移无(64KiB/300 字符是带注释意图的新常量,未挪用既有值)、输出格式变化已按第 3 问披露。
  6. 是否破坏缓存:不涉及——缓存/重试/增量游标/去重键均未触碰。
  7. 是否改了设计方向:否。无新配置面、无线/持久化/kernel 变更;模块边界干净(一个新文件 + relay.ts 单调用点)。
  8. 是否引入新配置:无。

测试有效性:tests/rejection-diagnostics.test.ts 18 例是真行为测试(正/负双向 + 对抗输入:NEL U+0085 等 C1 控制符、bearer/sk- 凭证形状、超 64KiB 正文、UTF-8 字节预算 vs UTF-16 长度、非对象 attempts 条目、嵌套 error.attempts 信封、空/非字符串消息回退);issue4452-markerless-reject.test.ts 更新保持 #3617 门纪律(双向断言保留,400 翻负例 + 新增 MALFORMED_BODY 负例);issue5152 flake 修复(port 文件竞态:轮询有效端口值而非 existsSync)是干净的 CI 协调小修(#4599),与本 PR 目的相容。diff 整洁:8 个文件全部服务本 PR 目的,CHANGELOG 与 architecture 文档同步在内。

已顺手修:reference/architecture.md 的 server 模块图把 rejection-diagnostics.ts 排在 relay.ts 之后,违反该块字母序惯例(rej < rel)——已换位,commit 47d078973(docs-only,CI 重跑中)。

判定:可合并(merge 留给人工)。

@ranxianglei

Copy link
Copy Markdown
Owner

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

已顺手修:reference/architecture.md server 模块图排序——rejection-diagnostics.ts 按字母序应在 relay.ts 之前 + commit 47d0789(docs-only,CI 重跑中)

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b) [review-worker-r1] PR #5482 审核完成:APPROVE 已提交(GitHub review id 5800459035;纯诊断面修复——413-only 谓词收窄 + 有界终局原因提取,八问全过、无回归、无新配置,旧 head 8d283b9 CI 30/30 绿);顺手修 architecture.md 模块图排序已推 47d0789(docs-only,新 head CI 重跑中)。等人工 merge。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

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

新提交 47d0789(模块图字母序,docs-only)已核实,CI 已全绿。

本轮做了什么:

  1. 核实该 commit:reference/architecture.md 单行移动(rejection-diagnostics.ts 排到 relay.ts 前),与描述一致,零代码改动;
  2. 镜像缓存对该 head 曾 ~35 分钟报「failed=0/pending」,直接查 GitHub 发现真实状态 = 主 CI test (ubuntu-latest, 24, 1) 红:tests/msgid-lane-flow.test.ts:139 3 !== 4("edits append fresh rows")——msgid-lane-flow settle-race 家族(CI Control Center: Centralized CI Failure Handling & Status Sync (Comment all CI issues here; do not open new issues) | CI 总控: CI 失败集中处理与状态同步(所有 CI 问题在此评论, 勿开新 issue) #4599 台账 floor 903 家族,与 PR [PR] fix(#5687): a tool-less MAIN turn must not be mistaken for a dsh sidecar - restores the BLOCKED-ref and wire-byte contracts #5709 次同断言同行号,当时重跑即绿);head 是纯 docs commit,与该改动无关;
  3. 本地定向跑 msgid-lane-flow.test.ts:6/6 绿(含失败子测试);
  4. API 重跑失败 job → run attempt 2 全绿(GitHub run 42222337630 completed/success)。

八问:

  1. 是什么问题:PR 本身无缺陷——CI 一个已知 flaky 测试(settle 竞态)红了。
  2. 什么原因导致的:增量车道 append 行的落盘在测试回读行数时尚未 settle,高载下的时序竞态;与本 PR diff 无关(纯 docs 提交)。
  3. 影响范围与严重程度:只影响 CI 首跑通过率,不影响产品行为;严重程度 = CI 噪音。
  4. 怎么修复的:无代码改动——本地复现绿 + 重跑失败 job;该 flake 家族继续在 CI Control Center: Centralized CI Failure Handling & Status Sync (Comment all CI issues here; do not open new issues) | CI 总控: CI 失败集中处理与状态同步(所有 CI 问题在此评论, 勿开新 issue) #4599 台账跟踪(复现频率超阈值时按台账规则升级专项处置)。
  5. 是否有回归问题:无(无代码改动;既有行为审计 = 不涉及)。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:否。
  8. 是否引入了新的配置:无。

结论:PR 在 head 47d0789 全绿,可合并(合并按流程由人工执行)。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

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

冲突解决完成,PR 恢复可合并状态且 CI 全绿。 本次把 upstream/master(58a8796224)合并进 PR 分支,解决全部冲突后推送 merge commit f423c8e;新 head 上全部 12 个 workflow run(含主 CI 42934245892)completed/success,mergeable_state 已从 dirty 转为 blocked(仅余人工审核/合并要求)。

过程要点:

  • 双方都改过的 4 个文件里只有 CHANGELOG.md 真正冲突(双方在 [Unreleased] 下各自追加条目),按并集解决——两侧条目全保留,与该文件既有的「同名小节连续出现」惯例一致;reference/architecture.md、src/server/relay.ts、src/util.ts 自动合并干净。
  • 逐点核验 PR 语义 hunk 在合并后完好:src/util.ts:581 isMarkerlessOverflowReject 保持 413-only 判据;src/server/relay.ts 的 rejectionDiagnosticSuffix 接线点(上游错误日志行追加有界终局原因)保持原样;src/server/rejection-diagnostics.ts 模块在场;reference/architecture.md:30 模块地图行仍在字母序位置。
  • 本地定向验证:npm run typecheck clean;tests/rejection-diagnostics.test.ts + tests/issue4452-markerless-reject.test.ts + tests/upstream-error-log.test.ts 共 34/34 通过;全量回归交给 CI(已绿)。
  • Push 纪律:推送前 fetch prhead 确认本分支无并发推送,普通 push,无 force-push。
  • 备注:期间镜像缓存卡在旧 head 47d0789 超过 25 分钟未刷新,绿色结论以直接查询 GitHub actions runs(head=f423c8ef18,12/12 success)为准。

八问:

  1. 是什么问题:PR 分支落后 master 657 个提交(master 前进 500 文件),merge state 变 dirty,无法合并。
  2. 什么原因导致的:正常时间漂移——PR 创建后 master 持续合入新 PR([PR] fix(hermes-plugin): restore routed process env on unload and watchdog exit (#4644 follow-up) #5991/[PR] fix: keep only CA certificates in combined-ca.pem (#5802) #5809/[PR] fix(resume): inherit timestamp ledger so resumed sessions re-render provider-cached tag bytes #5609 等),其中 CHANGELOG.md 在 [Unreleased] 同位置双方都追加了条目,产生文本冲突。
  3. 影响范围与严重程度:仅影响本 PR 的可合并性;不影响任何用户面与运行时行为。
  4. 怎么修复的:把 upstream/master 合并进分支(不重写历史、不 force-push);唯一冲突文件 CHANGELOG.md 取双方并集;对自动合并的文件逐点核验 PR 语义 hunk 未被破坏;本地 typecheck + 定向测试通过后才推送。
  5. 是否有回归问题:无。master 侧带入的全部是已合入 PR 的既有行为;PR 侧改动仍仅为两项诊断行为(Upstream 400 bodies rewritten to a generic error by an intermediate gateway starve overflow calibration — repeated 400s persist on those routes (v0.1.203+) #4452:400 不再误诊为上下文溢出 / 错误日志行追加有界脱敏终局原因),零语义漂移;typecheck clean、定向 34/34、CI 全绿。
  6. 是否破坏缓存:不涉及——纯合并操作,未触碰任何生产逻辑行,缓存/重试/增量游标/去重键均无变化。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

结论:冲突清零、CI 全绿,PR 已就绪等待人工合并(head=f423c8ef18)。合并按规则由人工执行。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷
(ai: vllm-qwen/qwen3.8-27b)

过期重复触发,本轮零改动、零重跑,只做核验。 冲突解决工作在本线程上方(floor 22)已完成:merge commit f423c8ef18 已推送,当时已验证全绿。本次唤醒引用的状态快照早于该修复,无新问题需要处理。

本轮核验结果(逐项实测):

  1. CI:镜像缓存(sha=f423c8ef18)30/30 check 全部 completed——16 success + 14 skipped,0 failed、0 pending;
  2. 冲突:刚 fetch upstream/master,HEAD..upstream/master 计数 = 0——master 自上次合并以来未前进,不可能产生新冲突;镜像确认 mergeable_state=blocked(仅余人工审核/合并要求,非 dirty);
  3. 分支:本地分支头 = PR head = f423c8ef18,工作区干净,无未推送改动。

八问:

  1. 是什么问题:系统对已解决的冲突状态重复派发了 CI 工程师任务;实际不存在新的红项或冲突。
  2. 什么原因导致的:触发快照过期——指向 floor 22 处置完成之前的旧状态;分支在 f423c8ef18 上自 01:36Z 起即全绿。
  3. 影响范围与严重程度:无影响——PR 当前全绿、无冲突,仅差人工合并;不处理也不会产生任何用户侧后果。
  4. 怎么修复的:无需修复——镜像缓存读 check 汇总 + git fetch 核对 master 位移 + 本地树核验,三条证据齐备;不推任何 commit、不重跑任何 job。
  5. 是否有回归问题:无(零 diff)。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

结论:PR 在 head f423c8ef18 全绿且无冲突,就绪等待人工合并;若后续再收到同 head 的阻塞通知,按重复处理即可。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] CI fix verified green ✓

@ranxianglei ranxianglei left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Round 2 — new head f423c8ef1 is a clean merge of upstream/master

This round adds no new code from the author: the only new commit is a merge of upstream/master (58a87962) into the previously-reviewed head (47d078973, which I approved last round). I re-verified that the merge did not disturb the fix.

What I checked at the new head:

  • Core fix files are byte-identical to the approved head: src/server/rejection-diagnostics.ts, tests/rejection-diagnostics.test.ts, tests/issue4452-markerless-reject.test.ts, tests/issue5152-owner-beat-survives-host-stall.test.ts.
  • src/util.ts — isMarkerlessOverflowReject still narrowed to status === 413 && !marker with its full rationale comment; master's independent +17 lines (the #5613 calibrated token ratio, a SGLang pattern) do not touch it.
  • src/server/relay.ts — master rewrote this file heavily (+613/-86); the PR's wiring survived intact and coherent: import :76, the isMarkerlessOverflowReject else-if branch :2056-2068, and the terminalCause append :2112-2113. errBody is buffered before use (:2028-2033). The predicate still has exactly ONE consumer repo-wide — master added no second call site.
  • CHANGELOG.md — both PR bullets intact; reference/architecture.md — the module-map ordering fix from last round survived master's docs reorg (rejection-diagnostics.ts still alphabetically before relay.ts).
  • No leftover conflict markers anywhere; CI is green on this head (30/30, 0 failed); mergeable: true.

The original analysis stands: narrowing the markerless-reject diagnosis to 413-only is correct (an unmarked 400 is the generic malformed/schema bucket across relays and carries no size evidence), and the bounded, credential-scrubbed terminal-cause suffix is read-only diagnostics that leaves the log line byte-identical when absent. No new findings this round.


结构化八问(本轮 = 合并 master 后的复核)

  1. 是什么问题:本轮没有新的代码改动,只是把已评审的分支合并到最新的 upstream/master;要复核的是「这次合并有没有破坏上一轮已批准的修复」。
  2. 什么原因导致的:不是缺陷,是常规操作——master 前进了(含对 relay.ts 的大幅重写),作者把 master 合进来保持分支最新、避免合并冲突。
  3. 影响范围与严重程度:无外部影响。逐文件核对确认 PR 的修复逻辑在合并后原样保留,行为与上一轮批准时完全一致。
  4. 怎么修复的:无需修复。我做的只是验证——核心文件字节级比对、谓词唯一消费方复查、冲突标记扫描、新 head 的 CI 状态。
  5. 是否有回归问题:无。isMarkerlessOverflowReject 仍只有 relay.ts 一处消费;恢复类决策(refold/emergency-shrink/window-learn)依旧按溢出标记驱动、未被触碰;日志行在无 attempts[] 时与原实现逐字节一致。master 对 relay.ts 的重写属 master 自身变更(各自 PR 单独评审),本 PR 未引入任何语义漂移。
  6. 是否破坏缓存:不涉及。纯诊断面,不触碰缓存/重试/增量游标。
  7. 是否改了设计方向:不涉及。仍为「只读诊断」定位,不改重试判定与响应字节。
  8. 是否引入了新的配置:不涉及。无新增 env/config/默认值。

结论:可合并(merge 留给人工)。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷
(ai: vllm-qwen/qwen3.8-27b)

再次收到「merge state: dirty」通知,本轮实测为过期快照——当前无冲突、无红项,零改动。 本次不依赖缓存,直接读 GitHub API(单次 GET,非轮询):

  • PR head = f423c8ef18(即上轮冲突解决推的 merge commit,未变);base = 58a8796224(当前 master);
  • mergeable=true,mergeable_state=blocked —— blocked 仅代表等待人工审核/合并要求,不是 dirty(无冲突);
  • git fetch upstream master 实测 HEAD..upstream/master = 0,master 自上次合并以来未前进,不可能产生新冲突;
  • check 汇总:30/30 completed,0 failed / 0 pending。

八问:

  1. 是什么问题:系统第三次就同一已解决状态派发冲突任务;实际合并态为 blocked(待人工合并),不存在 dirty。
  2. 什么原因导致的:blocker 检测引用的是修复推送(f423c8ef18)之前的旧快照;该 head 自 2026-11-11 01:36Z 起即无冲突且全绿。
  3. 影响范围与严重程度:无影响——PR 就绪状态不受影响,仅差人工动作。
  4. 怎么修复的:无需修复——镜像缓存 + GitHub API 单次直读 + git fetch 三路核验一致;零 commit、零重跑。
  5. 是否有回归问题:无(零 diff)。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

给 owner 的两点提示:① PR 仍处 draft 状态,需作者(@Maziar123)un-draft 后才能合并;② 若同 head 的 dirty 通知继续重复出现,建议检查 blocker 检测器的快照刷新逻辑(本会话已两次对同一绿色 head 误报)。合并按规则由人工执行。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b) Round 2 done @ head f423c8e: new commit is a pure merge of upstream/master into the previously-approved head; verified the fix logic survived byte-for-byte (predicate 413-only + single relay consumer, terminalCause wiring coherent inside master's relay rewrite, docs/CHANGELOG intact, no conflict markers) and CI is green 30/30 — APPROVE re-posted (review id 5852867457), no new findings, awaiting human merge.

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] CI fix verified green ✓

@Maziar123
Maziar123 marked this pull request as ready for review November 11, 2026 08:57

@ranxianglei ranxianglei left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Round 3 — new head b16ec584d is again a clean merge of upstream/master

Same shape as last round: the only new commit merges origin/master (dc041dd1) into the previously-approved head f423c8ef1. The PR's own contribution is unchanged (same 8 files, +364/-30).

What I checked at the new head:

  • All four core fix files byte-identical to the approved head: src/server/rejection-diagnostics.ts, tests/rejection-diagnostics.test.ts, tests/issue4452-markerless-reject.test.ts, tests/issue5152-owner-beat-survives-host-stall.test.ts; src/util.ts also unchanged this round (predicate still status === 413 && !marker, :582).
  • src/server/relay.ts — master's delta this round (+16/-25) lives entirely in forwardCaptured (#5765 blockOps system-prompt gate, #6150 fold-point relocation removal) and the import block; none of it touches the PR's region. The wiring survives intact: import :76, markerless branch :2055, terminalCause append :2111.
  • CHANGELOG.md +3 / reference/architecture.md +1 are other PRs' entries; the module-map ordering fix still holds (rejection-diagnostics.ts :30 before relay.ts :31).
  • No conflict markers; PR touches no kernel/** and carries no kernel-change: declaration; all test lanes complete on this head with 0 failures (a few fast static gates were still queued in CI at review time — they passed on both prior heads of identical content).

No new findings. The original analysis and verdict stand.


结构化八问(本轮 = 再次合并 master 后的复核)

  1. 是什么问题:无新问题。本轮唯一新提交是把分支合并到最新 master,要确认的是合并没有破坏已批准的修复。
  2. 什么原因导致的:常规同步——master 又前进了一个窗口(#5765 blockOps 门、#6150 移除 fold-point 重定位等),作者合入以保持可合并性。
  3. 影响范围与严重程度:无外部影响;PR 修复逻辑逐字节保留,行为与此前两轮批准时一致。
  4. 怎么修复的:无需修复,仅验证——核心文件字节比对、relay.ts 增量逐 hunk 核对(全部落在 forwardCaptured/import,与 PR 代码区无交集)、冲突标记扫描、CI 状态读取。
  5. 是否有回归问题:无。谓词仍仅 relay.ts 一处消费;恢复类决策仍按溢出标记驱动;日志行在无 attempts[] 时逐字节不变。master 自身变更由各自 PR 评审负责,本 PR 未引入语义漂移。
  6. 是否破坏缓存:不涉及。纯诊断面。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。(本轮合入的 #5765 compress.blockOps 门是 master 上的独立变更,非本 PR 内容。)

结论:可合并(merge 留给人工)。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b) Round 3 done @ head b16ec58: again a pure merge of upstream/master (dc041dd) into the approved head — PR contribution byte-identical, relay.ts master-delta confined to forwardCaptured/imports (#5765/#6150), no kernel involvement, test lanes 0 failures — APPROVE re-posted (review id 5858206213), no new findings, awaiting human merge.

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] CI fix verified green ✓

1 similar comment
@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] CI fix verified green ✓

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] CI fix verified green ✓

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷
(ai: vllm-qwen/qwen3.8-27b)

本轮是真实冲突(与之前两次过期误报不同):作者已自行 merge 过 master 并把分支推进到 b16ec584d2(un-draft 准备),但 master 此后又前进了 133 个提交,merge state 再次变 dirty。已解决并推送 merge commit 47b85cf2f1。

过程:

  1. 实测确认(不依赖通知):镜像 + 直读 GitHub——head=b16ec584d2、state=dirty、HEAD..upstream/master=133;上一 head 的 30 项 check 全绿,冲突纯由 master 前进造成;
  2. 合并:本地分支 fast-forward 到 PR head 后 merge upstream/master(259cd87),不重写历史、不 force-push;唯一冲突文件 CHANGELOG.md([Unreleased] → ### Fixed 双方各自追加条目),按并集解决——两侧条目全保留,与该文件既有惯例一致;reference/architecture.md、src/util.ts 自动合并干净;
  3. 语义核验:PR 四项改动在合并后逐点完好——src/util.ts:581 isMarkerlessOverflowReject 保持 413-only 判据;src/server/relay.ts:76/2111 rejectionDiagnosticSuffix 接线原样;src/server/rejection-diagnostics.ts 在场;reference/architecture.md:30 模块地图行在字母序位置;
  4. 本地验证:npm run typecheck clean;定向测试 tests/rejection-diagnostics.test.ts + tests/issue4452-markerless-reject.test.ts + tests/upstream-error-log.test.ts 共 34/34 通过(全量回归交给 CI);
  5. 推送纪律:push 前 fetch PR 分支远端确认无并发推送(仍为 b16ec584d2),普通 push 成功 b16ec584d2..47b85cf2f1;
  6. 推送后状态(镜像实测):mergeable_state 已从 dirty 转回 blocked(仅余人工审核/合并要求);新 head CI 运行中——30 项里 16 项已 success、14 项 pending、0 failed,最终绿/红由 CI 出结果后在下轮确认。

八问:

  1. 是什么问题:PR 分支与 master 再次冲突(dirty)无法合并——作者上次 merge 之后 master 又前进了 133 个提交。
  2. 什么原因导致的:正常时间漂移——PR 长期未合并期间 master 持续合入新 PR,CHANGELOG.md 的 [Unreleased] 同位置双方追加条目产生文本冲突(与上一轮冲突同机制)。
  3. 影响范围与严重程度:仅影响本 PR 可合并性;不影响任何用户面与运行时行为。
  4. 怎么修复的:merge master 进分支(不重写历史);唯一冲突取并集;自动合并文件逐点核验 PR 语义 hunk 未破坏;typecheck + 定向 34/34 通过后才推送。
  5. 是否有回归问题:无。master 侧带入的全部是已合入 PR 的既有行为;PR 侧改动仍仅为两项诊断行为(400 不再误诊为溢出 / 错误日志行追加有界脱敏终局原因),零语义漂移。
  6. 是否破坏缓存:不涉及——纯合并操作,未触碰任何生产逻辑行。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

结论:冲突清零,PR 在 head 47b85cf2f1 恢复可合并状态,CI 运行中(当前 0 failed);CI 全绿后等待人工合并(注意 PR 仍是 draft,需作者 un-draft)。

@ranxianglei ranxianglei left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Round 4 — new head 47b85cf2f is again a clean merge of upstream/master

Same shape as the last two rounds: the only new commit merges upstream/master (259cd876) into the previously-approved head b16ec584d. The PR's own contribution is unchanged (same 8 files, +364/-30).

What I checked at the new head:

  • All code/test files of the fix byte-identical to the approved head: src/server/rejection-diagnostics.ts, src/server/relay.ts (untouched this round), all three test files.
  • src/util.ts — master added an unrelated trailingSystemRunStart helper (#5432, after systemToUser); the PR's isMarkerlessOverflowReject is untouched (:581-582, still status === 413 && !marker) and still has exactly one consumer (relay.ts :2055).
  • CHANGELOG.md +7 / reference/architecture.md +4/-1 are other PRs' entries (toml-integer.ts, mdrender.ts map rows); the module-map ordering fix still holds (rejection-diagnostics.ts before relay.ts).
  • No conflict markers; PR touches no kernel/** and carries no kernel-change: declaration; CI 29/30 lanes complete with 0 failures (one windows test shard still running at review time — it passed on all three prior heads of identical content).

No new findings. The original analysis and verdict stand.


结构化八问(本轮 = 再次合并 master 后的复核)

  1. 是什么问题:无新问题。本轮唯一新提交是把分支合并到最新 master,要确认的是合并没有破坏已批准的修复。
  2. 什么原因导致的:常规同步——master 又前进了一个窗口(#6455/#6458/#5432 等),作者合入以保持可合并性。
  3. 影响范围与严重程度:无外部影响;PR 修复逻辑逐字节保留,行为与此前几轮批准时一致。
  4. 怎么修复的:无需修复,仅验证——PR 文件逐字节比对、util.ts 增量核对(纯新增 #5432 helper,与谓词无交集)、冲突标记扫描、CI 状态读取。
  5. 是否有回归问题:无。谓词仍仅 relay.ts 一处消费;恢复类决策仍按溢出标记驱动;日志行在无 attempts[] 时逐字节不变。master 自身变更由各自 PR 评审负责,本 PR 未引入语义漂移。
  6. 是否破坏缓存:不涉及。纯诊断面。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

结论:可合并(merge 留给人工)。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b) Round 4 done @ head 47b85cf: again a pure merge of upstream/master (259cd87) into the approved head — PR contribution byte-identical, util.ts delta is only the unrelated #5432 helper, relay.ts untouched, no kernel involvement, CI 29/30 lanes green (0 failures, 1 shard still running) — APPROVE re-posted (review id 5881854717), no new findings, awaiting human merge.

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷
(ai: vllm-qwen/qwen3.8-27b)

又一条过期「dirty」通知——冲突已在本线程上一轮解决(merge commit 47b85cf2f1),本轮实测无冲突、CI 全绿,零改动。 本次不依赖镜像缓存(其快照卡在 20:36Z 未刷新,12 分钟内 fetched_at 不变),直接读 GitHub API(单次调用,非轮询)核验:

  • 合并态:镜像 + 直读一致——head=47b85cf2f1(上轮推的 merge commit),mergeable_state=blocked(待人工审核/合并,非 dirty);git fetch upstream master 实测 HEAD..upstream/master=0,master 未再前进;
  • CI:check runs 直读 52/52 completed——38 success + 14 skipped,0 failed、0 pending,全绿;
  • 本地分支头 = PR head = 47b85cf2f1,工作区干净。

八问:

  1. 是什么问题:系统第四次就同一已解决状态派发冲突任务;实际合并态为 blocked,CI 已全绿。
  2. 什么原因导致的:blocker 检测引用的是 47b85cf2f1 推送之前的旧快照;镜像轮询器本轮还出现缓存停滞(fetched_at 12 分钟不刷新),进一步放大了快照滞后。
  3. 影响范围与严重程度:无影响——PR 全绿且无冲突,仅差人工动作。
  4. 怎么修复的:无需修复——镜像缓存 + GitHub API 单次直读 + git fetch 三路核验;零 commit、零重跑。
  5. 是否有回归问题:无(零 diff)。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

给 owner 的提示:① PR 仍是 draft,需作者(@Maziar123)un-draft 后才能合并;② 本会话已四次收到同一绿色 head 的 dirty 误报(前两次在 f423c8ef18,后两次在 47b85cf2f1),且镜像 check 缓存出现停滞——blocker 检测器的快照刷新逻辑值得排查。合并按规则由人工执行。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷
(ai: vllm-qwen/qwen3.8-27b)

第五次同一状态误报,零改动。 本轮实测:镜像 head=47b85cf2f1、mergeable_state=blocked(非 dirty);git fetch upstream master 实测 HEAD..upstream/master=0,master 未前进。CI 状态沿用上轮(约 30 分钟前)GitHub API 直读结论:52/52 check runs completed、0 failed;镜像缓存仍卡在 20:36Z 快照(1 pending),未再重复直读。

八问:

  1. 是什么问题:blocker 检测器第五次对同一绿色无冲突 head 误报 dirty。
  2. 什么原因导致的:检测器快照滞后于 47b85cf2f1 推送 + 镜像 check 缓存轮询停滞(同一 fetched_at 已 30+ 分钟)。
  3. 影响范围与严重程度:无产品影响;调度层空转——每次误报消耗一次完整 CI 工程师会话。
  4. 怎么修复的:无需修复——镜像 + git fetch 核验,零 commit、零重跑。
  5. 是否有回归问题:无(零 diff)。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

结论:PR 在 47b85cf2f1 全绿、无冲突、待人工合并(仍为 draft,需作者 un-draft)。若本 head 的 dirty 通知继续出现,建议 owner 排查 blocker 检测器的快照刷新与镜像 check 缓存轮询(本会话已 5 次误报,详情见上方两条回复)。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] CI fix verified green ✓

1 similar comment
@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[ework] CI fix verified green ✓

@ranxianglei

Copy link
Copy Markdown
Owner

Landed via batch PR #6482 (merged) — closing as superseded.

@ranxianglei ranxianglei reopened this Nov 14, 2026
ranxianglei pushed a commit to Louie0806/billion-context that referenced this pull request Nov 14, 2026
… rejection cause

Review follow-up on ranxianglei#5482. bound() collapsed only C0 + DEL before clamping,
so C1 control characters survived into the appended log suffix — in particular
U+0085 (NEXT LINE) and U+009C (file separator), which render as line/field
breaks. A relay that echoed such a byte into attempts[].details.error.message
could forge a second log field, contradicting the module's own "no newline may
forge a second log field" invariant (pinned by the \r\n test). Widen the strip
to C1 (U+007f-U+009f) and extend the control-shape regression test to pin NEL
and file-separator. No behavior change beyond the log-line sanitization.

(cherry picked from commit c749eb8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working p3 scope/wiring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants