Repository navigation
[PR] fix(preflight): retain recovery receipt across interrupted retries - #5100
abworks-dev wants to merge 2 commits into
Conversation
[bot] (ai: vllm-qwen/qwen3.8-27b) 进度同步:进程被强制重启后我已恢复。核查结果——工作树是干净的,上一段会话没有留下任何已提交/已推送的改动(无丢失的阶段性成果)。卡住的根因是拉取 PR head 时走 GitHub 代理的 |
[bot] (ai: vllm-qwen/qwen3.8-27b) PR 审核完成(独立读过 diff 与既有行为,不是照抄 issue 结论)。先澄清编号:镜像里的 #5101 对应 GitHub 真实 PR #5100(abworks-dev,base = master 6b298c3,2 文件 +392/-23);GitHub 上 查重:不重复。它补的是「中断的越窗 walk 没有 spent-probe/恢复回执」这个空档——现有 completed-413 本地拒绝账本(#3846/#4079)只覆盖「已拿到 413」,覆盖不到「请求被中断后重试又重走 estimate-only 逃逸」的路径;也和已关的 #2928、更大的 #3978 不是一回事(OP 已声明不重提 zstd fork-adoption、不吞并 #3978)。方向正确,打在根因上。 八问
行为变更披露(旧→新 + 原因)
测试有效性:真函数直驱(非 mock 内部)、loopback 摘要端点、JSON roundtrip 模拟重载、 diff 整洁度:2 文件、聚焦、每行都在题内,新测试组织清晰,无空白 churn/无关文件/锁文件连带。代码整洁硬标准(外部提交从严)也过:命名达意、helper 在各逃逸门复用不重复、无死代码、无魔法数(复用 DOOMED_PROBE_* 常量)、注释讲为什么、风格一致、无新依赖。两处无害微瑕: CI(合并前必须处理):head b8ab7ea 上 36 绿 / 16 skip(门控 e2e,正常)/ 3 红;静态门、各守卫(gate/kernel-guard/version-guard/lane-guard/config-surface-guard/lock-sync…)、build、mysql-contract 全绿。3 红是测试分片: 标签:本环境 Gitea shim 未实现 label 接口(endpoint not implemented),我打不上去;建议 owner 打 结论:代码层面可合——机制打在根因、回归逐项过干净、测试有牙、diff 整洁、无 config/kernel/版本变动(故按 §7.4 保持人工合并不自动合)。唯一卡点是那 3 个红测试分片:先按上面 #4599 流程判清是继承红还是本 PR 引入,转绿后再由 owner 合并。 |
(ai: vllm-qwen/qwen3.8-27b) CI 已修复并转绿。作为 ci-worker 我独立读了 diff、逐路径追了代码(不是照抄 issue 或前一轮审核的结论):这 3 个红分片是本 PR 引入的确定性回归,不是 flake——master 6b298c3 全绿(#4599 floor 449),三个平台同一断言同一点挂。已在 PR 分支直接补一个 additve commit 修掉:7ed532f(作者归属不变)。新 head 上 55 项 check 全部终态:39 绿 + 16 门控 skip + 0 红,此前红的 u22s3 / u24s3 / w22s1 三个分片均 success。 八问
行为变更披露(E,旧→新 + 原因):spent-probe 回执生命周期——旧:仅 scope 变化 / fitting rebuild / 确定性 413 移交时清除(spent 即终身);新:追加「落地的 proven usage 报告与花费时基线不同」时也清除。原因:探测的目的(#2313/#496)本就是取 usage 证据,证据到了还永久封死会把合法的多模态连续对话锁进 413。方向上只重新开放 master 本来就有、且被测试钉住的那条逃逸,没有创造任何新的转发路径。 收工判定:CI 全绿,代码层面维持可合结论;按 §7.4 触及请求管道语义,仍属人工合并范围,合并与否留给 owner。 |
|
(ai: vllm-qwen/qwen3.8-27b) Merged current master ( |
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) ci-engineer-r1 · PR #5100 冲突处理:本地 rebase 已完成,卡在 1 个需 owner 拍板的设计点(未推送) 结论先行:这个 dirty 不是普通漂移——master 在本 PR 之后被重写/rebase过,导致直接 merge 会爆成 166 文件冲突。我把 PR 的真实增量(其实只有 2 个 commit)rebase 到当前 master,只产生 2 处 hunk 冲突、已按正交并集忠实合并;typecheck/build 全绿,PR 的 9 个定向 preflight 测试 65 条里 64 过 1 挂。那 1 条失败是 master 新增的 measured-body 硬门 × PR 旧预期 的行为冲突,属设计取舍,超出我"小机械修复"的权限,所以停在决策点、先不猜着推红分支。 一、是什么问题 / 为什么 dirty
二、怎么处理的(本地,尚未推送)
三、影响范围与严重程度
四、唯一残留红项 + 根因
五、🔶 需要决策:"匿名超窗且折叠后仍超窗的请求"到底该 forward-once 还是 fail-fast?这是行为取舍,且会牵动 receipt 落账语义(measured-doom 是否写/spend receipt),不是改一行断言能收口。
默认(owner 不表态时):A。 六、回归审查(我合并触碰的既有行为)
七、收工判定 / 下一步
|
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) ci-engineer-r1 · 状态收口(承接上一条详细分析) 已完成:把 PR #5100 的真实增量(其实只有 2 个 commit: 已验证:typecheck ✅、build ✅、PR 的 9 个定向 preflight 测试 64/65 通过。 残留 / 风险:唯一红项 卡点(需决策):这是设计取舍——匿名超窗且折叠后仍超窗的请求到底该 forward-once 还是 fail-fast,且牵动 receipt 落账语义,超出我"小机械修复"权限。请拍板 A/B/C:A(推荐,以 master 现有行为为准、更新该用例预期并让 receipt 正确落账)/B(给 PR forward-once 对新鲜探针开洞,回归风险高)/C(交回作者 abworks-dev 自行对齐)。不表态时默认 A。 下一步:你拍板后我下一轮按方向处理该用例→定向复跑→force-with-lease 推送→报 CI 结论。当前分支未推送(dirty 仍在,但真实改动已在本地备好)。 |
9f6a787 to
8457d0e
Compare
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) ci-engineer-r1 · PR #5100 冲突已解决并推送(dirty→behind),剩 1 个需决策的红项 本次核心进展:把 PR 从「无法合入(dirty)」推进到「无冲突、可自动更新(behind)」。已推送。 一、是什么问题:PR #5100 因 base 冲突处于 二、什么原因:① dirty——master 在本 PR 之后被重写/rebase,PR 分支 round-4 合入的旧 base 三、影响范围与严重程度:dirty 属"PR 合不了"的阻塞,非线上故障;红项只影响"匿名超窗且折叠后仍超窗"这一具体场景。 四、怎么修的(本次已执行并推送):
五、live CI(镜像缓存,本 run 实读):当前 六、回归审查:合并保留双方代码原语义(typecheck/build/64-of-65 佐证),未改动任何既有行为、缓存/重试/游标/去重键、或配置项。 七、🔶 需要决策 + 下一步:
|
[bot] 🔶 需要决策 (ai: vllm-qwen/qwen3.8-27b) 本轮 live 核实(不凭记忆)
CI 红诊断(6 红 = 2 个测试族,同一个根因) — 取自 live CI 日志
八问
🔶 需要决策(选项 + 推荐 + 默认)
我已停手(不循环):待决策,不再改这个 PR 的代码;已打 注:此环境 tsx 未安装,我本地无法独立复现;以上诊断基于 live CI 日志(权威)。 |
8457d0e to
346d387
Compare
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) 本轮摘要(七问) — 冲突已解决并推送,PR 不再 dirty;剩余红 = 待决策。 1. 是什么问题 2. 本轮做了什么 3. 怎么解决的 4. 验证
5. 剩余阻塞(待决策,非本轮能修)
6. 当前状态(LIVE 查证)
7. 下一步 |
… lands A recovery receipt written before an image-arbitration or estimate-only evidence forward stayed spent for the whole origin+model+window scope even after the forward completed and the upstream reported real usage — so the very next over-window turn found every forward-once escape closed and failed fast with 413 although the upstream had just proven it bills the payload under the window (regression pinned by tests/fix-488-multimodal.test.ts "e2e ranxianglei#488-A/ranxianglei#496", red on three CI shards). A spent probe exists only while its question is unanswered: its purpose (ranxianglei#2313/ranxianglei#496) was to acquire upstream usage evidence. Stamp the spend-time usage baseline into the receipt (seenUsage); when a proven usage report different from that baseline lands, discharge the receipt so the next over-window turn arbitrates afresh (ranxianglei#488-A steady state). An identical resend bills identically, sees no change, and stays closed (ranxianglei#5098's interrupted-retry guarantee holds); receipts predating the field keep their conservative closure.
346d387 to
95f6e75
Compare
[bot] PR #5100 已重新同步到最新 master + 决策请求 (A/B/C) 本轮进展 (11-13)
决策请求 (A/B/C) — 已挂
|
| 选项 | 内容 | 行为变更 | 回归风险 | 代价 |
|---|---|---|---|---|
| A (推荐) | 采用 master fail-fast, 更新测试期望为 413 + 调整 receipt 记账 | 匿名 fresh 超窗请求: forward-once → 413 | 低 (master 已如此行为且测试钉住) | 小 (1 个测试断言 + 记账) |
| B | master doom 门为 fresh-anonymous-probe 开豁免 | master doom 门开洞 | 高 (#5631 等已依赖 fail-fast) | 中 (改 master 门) |
| C | 退回作者 abworks-dev | 无 | 无 | PR 停滞, 作者可能不活跃 |
推荐 A。master 的 fail-fast 是较新的、有意的、测试钉住的行为; PR 的测试期望相对旧 master 已过期。rebase 语义 = PR 适配 master 当前行为。
等 owner 拍板 (A/B/C)。拍板后我立即执行:
- A: 改测试期望 + receipt 记账, 推新 head (预计 1 个 commit)。
- B: 在 master doom 门开 fresh-anonymous 豁免 (需另评估回归)。
- C: 在 PR 留评论退回作者。
🔶 需要决策 本轮 (auto-fix lane) 已重新核实 live 状态 — 3 个红 shard 全部失败在同一测试, 属设计决策 (非机械小修), 按 lane 规则停手等 owner 拍板。 Live 核实 (本 run, 非记忆):
选项 + 推荐 + 默认:
为何推荐 A: master 的 fail-fast 是较新的、有意的、测试钉住的行为; PR 的测试期望相对旧 master 已过期。rebase 语义 = PR 适配 master 当前行为。
|
[bot] 进程被强制重启后恢复 (35 分钟无输出) — 重新核实 live 状态, 仍卡在 A/B/C 决策 发生了什么: 上一轮处理 auto-fix lane 时被 force-stop, 之后 35 分钟无输出被强制重启。本轮所有网络操作都加了严格 timeout, 已避开导致卡住的操作。 Live 核实 (本 run, 非记忆, 全部 timeout-bounded):
状态: 这是 floor 60 已请求的同一 A/B/C 决策 (🔶 需要决策, 为何现在不单独 re-sync: PR 因红 CI + 待决策本就无法合入, 单独 re-sync 只会多跑一轮 CI (30 checks), 而 master 仍在快速移动 (1.5h 又 6 commit), "behind" 会再次出现。等 owner 拍板后, 我会在一次 push 里同时完成 re-sync 到最新 master + A/B/C 修复, 避免冗余 CI。 选项 (重申, 等 owner 拍板):
请 owner 拍板 (A/B/C)。拍板后我立即执行 (re-sync + 修复一次 push, 全程 timeout-bounded)。 |
[bot] 🏷 🔶 需要决策 背景:PR #5100(mirror #5101)与 master 冲突(merge state: dirty)。我尝试 cherry-pick PR 的 2 个 commit(d6cd8b8aef + 95f6e75)到当前 master(0a133d91463),在 关键发现:这 6 个冲突不是简单的正交合并,而是两种竞争设计对同一个 preflight-abort 问题的处理:
决定性发现( 结论:正确解决这 6 个冲突 = 在两种竞争设计之间做选择(计数器门 vs 收据)= 正是自 floor 60(14 天前)以来悬而未决的 A/B/C 设计决策。这不是 auto-fix lane 授权的小机械修复——选错设计会改变 preflight 的恢复语义。 选项:
推荐:A。 已中止 cherry-pick( 需要 owner 决策:请 owner 决定 A/B/C。决策后,我将按决定重新合并 PR 并推送(final head push,不带 |
[bot] 🏷 七问摘要(本轮 auto-fix 尝试 1/6,duplicate wake m00228)
状态:等待 owner A/B/C 决策。决策后,我将按决定重新合并 PR 并推送(final head push,不带 标签:needs-decision + pr(已确认,id=82 + id=1)。 Live 核实(本 run,非记忆):
|
|
Closing as superseded by the one-shot fold gate (#7545) and the forward-first policy (#7537). The premise of this PR — refuse locally on a size estimate and return
The mechanism is therefore superseded rather than mergeable. #5098's concern is covered on master. Thanks for the analysis and the tests — they read as a clear record of the tension. Closing. |
Closes #5098
Version-first scope
The incident was investigated on published
0.1.208. This source fix targets currentmaster6b298c37b079ef063b7ff704814d12e97bbaf945, package/npm latest0.1.209. Current source already contains compressed-body decoding, so this PR does NOT resubmit the zstd fork-adoption fix. It also does not replace closed #2928 or attempt all of broader #3978.Failure and correction
An estimate-only evidence return can be taken again after an interrupted request because there is no spent-probe receipt. An interrupted over-window walk can retain completed compression blocks without retaining its obligation to re-check the rebuilt outgoing context. The existing completed-413
localRefusalsledger does not cover every such interruption.markDirtystore persistence path (no new synchronous flush or storage subsystem).Config surface / boundaries
None: no config/env/CLI fields, dependency changes, package version bump, kernel or pi-subagents changes. Only
src/server.tsand one new targeted regression file change. No changes to message identity, signature handling, compression carriers or installed profiles. Both plugin and plain proxy modes are covered.Validation on final source
Run with
XDG_CONFIG_HOME,XDG_STATE_HOMEandXDG_CACHE_HOMEset to disposable per-run directories so existing server fixtures cannot write the developer's daily affinity/session-order caches.npm run typecheck,npm run build,git diff --check.Triage: theme D (timeouts/retries/degradation), cross-lane request pipeline; requested labels
p1andscope/wiring(no single-client lane). Label application requires maintainer permissions. No merging, publishing or daily service restart is requested.