Skip to content

[PR] kernel: fold tool-call/result pairs by exact id at any distance (fixes the split-pair upstream-400 / folding-stuck family) - #5758

Merged
ranxianglei merged 7 commits into
masterfrom
2026-11-05_tool-pair-id-widening
Nov 6, 2026
Merged

ranxianglei merged 7 commits into
masterfrom
2026-11-05_tool-pair-id-widening

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

kernel-change: tool-pair boundary widening rewritten from capped scan to id-exact fixpoint (#5751, owner-approved in issue thread).

什么坏了

kernel/src/tool-pairs.ts 的配对预扫描有 20 槽上限 + 遇 gap 即停:当一次工具调用的结果落在 20 条消息之外(并行工具突发、宿主中途注入消息、延迟到达的结果),这对 call/result 就跨在折叠边界两侧。完整性闸门随即将整对从每个候选区间里撤出:

修法

配对改为 id 精确:toolCallId 的最低/最高位置在整条数组上一次性索引,边界向不动点收敛拓宽——交错链、重复回显都折到边界同侧。maxScan、stop-on-gap、break-on-empty 全部删除。

compress 工具保持不作为种子(force-protected),但其位置仍参与拓宽,保住 #4348 的 aged-receipt lace 修复。

测试

边界

Fixes #5751
Refs #5746

(ai: GLM-4.6/genaiscript)

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-11-05_tool-pair-id-widening (3a0c47e)

Latest build — install this exact version

npm install -g billion-context@0.0.8309-pr.5758.2803629

This exact version is immutable and reproducible. The rolling pr tag tracks the newest test build across all PRs.

Recent builds (commit → version)

commit version build
3a0c47e billion-context@0.0.8309-pr.5758.2803629 build
73af2d5 billion-context@0.0.8308-pr.5758.bc50173 build
ff8260d billion-context@0.0.8291-pr.5758.de05909 build
ec89c2b billion-context@0.0.8290-pr.5758.2702173 build
fe0c377 billion-context@0.0.8286-pr.5758.eaa95ee build
d045092 billion-context@0.0.8281-pr.5758.3d54cbf build
54c4d29 billion-context@0.0.8275-pr.5758.c638142 build

Download artifact

  1. Download the artifact from the Actions run
  2. Extract the tarball and install:
tar xzf billion-context-pr5758.tgz
npm install -g package

Install instructions are refreshed on each push.

@ranxianglei ranxianglei changed the title kernel: fold tool-call/result pairs by exact id at any distance (fixes the split-pair upstream-400 / folding-stuck family) [PR] kernel: fold tool-call/result pairs by exact id at any distance (fixes the split-pair upstream-400 / folding-stuck family) Nov 5, 2026
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

查重: 不重复。 GitHub 侧 open+closed 全量检索(tool-pair / split-pair / boundary widening 等失败签名):本 PR(#5758)是 #5751(拆对→上游永久 400)+ #5746(工具密集区折叠卡死)家族中唯一在途的修复 PR。相邻但机制不同的条目已核对:#4207(compression-scope 配对修正的不动点收敛,不同子系统)、#3053/#3046(已合并的历史配对语义修正)、#5675(tool_search 对的 Responses 线边界处理,不同 wire)——均无重叠。镜像侧 open [PR] 行亦无第二条指向同一主题。

正在按规范做完整审核(kernel 变更 = 人工评审档,不自动合并):独立读原 issue 方向 → 逐行读 diff → 清点触碰路径的既有行为 → 定向跑受影响测试 → 核对 CI。结论按结构化八问跟进在本线程。

ranxianglei pushed a commit that referenced this pull request Nov 5, 2026
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

lock-sync 已修复,新 head d0450922b 上该检查转绿。本次只动了两个 lockfile 的版本行,无任何代码变更。

做了什么:PR 的 kernel 提交(54c4d2989)把 kernel/package.json 从 0.0.181 提到 0.0.182,但没重新生成锁文件——根 package-lock.json(file: link 条目)和 kernel/package-lock.json(自带锁)都还停在 0.0.181。这正是 lock-sync(#2704 drift guard)要拦的情形:bump 不会自动重生 lock,只有 npm install 会。我在 PR 分支上用与 CI 完全相同的命令重生成(npm install --package-lock-only --ignore-scripts,根目录 + kernel/ 各一次),diff 恰好只有 3 行版本字符串(0.0.181→0.0.182),独立 commit ci(#5758): sync lockfiles to kernel 0.0.182 推回分支(沿用了 master 上同类修复 4379f1974 的提交惯例)。

验证(新 head d0450922b 的 check runs):

  • lock-sync | success ✅(原红项)
  • kernel-guard / version-guard / pi-subagents-guard / lane-guard / docs-sync / docs-coverage / unused-exports / test-import-graph | 全部 success
  • 无 failure;测试矩阵 36 success / 13 skipped(门禁内 e2e)/ 1 in_progress(读取时仍在跑的 shard)

八问:

  1. 是什么问题:PR 分支 CI 的 lock-sync 检查红——kernel 版本号提了,锁文件没跟上。
  2. 什么原因导致的:bump kernel/package.json 后没有跑锁文件重生成(npm 的设计:bump 不触发 regen),两份 lockfile 记录版本停留在旧值,与 package.json 漂移。
  3. 影响范围与严重程度:纯 CI 门禁,零运行时影响;阻断的是本 PR 合并,不影响任何用户。
  4. 怎么修复的:在 PR 分支原样执行 CI 的重生成命令,把两份 lockfile 的版本行同步到 0.0.182,单独 commit 推送。
  5. 是否有回归问题:无。diff 全部是 lockfile 里的版本字符串(3 行),没有触碰任何代码、行为、阈值或格式;其余既有行为不受影响。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:不涉及。
  8. 是否引入了新的配置:不涉及。

结论:lock-sync 阻塞已解除,所有静态门禁绿,剩余为常规测试矩阵收尾;PR 可进入正常评审/合并流程(合并按例由人来)。

ranxianglei and others added 3 commits November 6, 2026 00:52
The pair-widening pre-pass capped its scan at 20 slots with
stop-on-gap, so a call whose result lands further away (parallel
tool bursts, host-injected filler, delayed results) straddled the
fold boundary. The turn-integrity gate then withdrew the pair from
every candidate range: in tool-dense regions no legal range
remained and folding wedged (#5746), or a split pair reached the
wire and upstream answered 400 on every retry until the session was
manually repaired (#5751, 17 MB / 2M tokens of retry debris).

Pairing is now id-exact: each toolCallId's extremes are indexed
over the whole array once and boundaries widen to a fixed point, so
interleaved chains and duplicate echoes fold on one side of the
boundary. compress stays a non-seed (force-protected) but its
position still widens in, preserving #4348's aged-receipt lace.

Fixes #5751
Refs #5746
@ranxianglei
ranxianglei force-pushed the 2026-11-05_tool-pair-id-widening branch from d045092 to fe0c377 Compare November 5, 2026 17:00
@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

审核结论:通过,可合。 kernel 变更按 Kernel Boundary 属 human-only 档,合并按钮留给你。查重已在首评给出(不重复)。

审核中我推到 PR 分支的增量(全部 additive,未改写你原 commit 的内容):

  1. rebase 到当前 master——分支落后一个 commit([PR] Index content's FK child columns — releaseContent DELETE stops full-scanning children #5540 存储索引修复,与本 PR 零文件交集),rebase 干净无冲突,kernel commit 变为 a39ce3a23,diff 不变;
  2. ec89c2b84 style:新测试文件不符合仓库 prettier 配置(一条断言与声明挤在同一行 + 5 处未按 printWidth=80 换行)——同类扫完一次修净;
  3. ff8260d2c style:issue3236 重 pin 段缺 trailingComma:"all" 要求的尾逗号(master 版本是 prettier-clean 的,偏差由本 PR 引入)一并修净。后两个 commit 我用 token 级对比验证过只动换行和尾逗号、零语义变化,修后重跑相关测试全绿。

结构化八问:

  1. 是什么问题:工具调用的结果落在调用点 20 条消息之外(并行工具突发、宿主中途插消息、结果延迟到达)时,配对预扫描配不上这对 call/result——要么整个工具密集区找不到合法区间、折叠彻底卡死(Stuck while folding | 折叠卡住 #5746),要么拆开的一对上了线,上游每个重试回合都回 400,直到人工修库(A fold block boundary may fall between tool_use and tool_result, causing long sessions to hit upstream 400 errors on | 折叠块边界可能切在 tool_use 与 tool_result 之间,导致长会话每轮被上游 400,且不会自愈 #5751:2M tokens 会话的重试废墟,手工把 26 个折叠块 start_seq 各 +1 才救回)。
  2. 什么原因导致的:kernel/src/tool-pairs.ts 配对预扫描的两个硬限制——扫描窗口上限 20 槽、遇到第一个不匹配槽即停。用户看到的是「折叠卡死」或「上游 400」两个表面现象;根因是配对判定用了距离受限的扫描而不是 id 精确查找:结果出窗或有间隙就永远配不上,完整性闸门随即将整对从每个候选区间撤出(卡死)或放行半边区间(拆对上上游)。方向关:issue 里的根因定位和修法方向(id 精确)是对的,本 PR 独立复核成立。
  3. 影响范围与严重程度:所有工具突发间距 >20 槽或中间有间隙的会话,长会话、工具密集会话最易触发;严重度高——折叠完全停摆(上下文无法再增长)或上游 400 循环(会话实际不可用直到人工修库),属可用性缺陷。
  4. 怎么修复的:配对改为 id 精确——对整条数组一次性索引每个 toolCallId 的最低/最高位置,边界向不动点收敛拓宽,交错链、重复回显都折到边界同侧;maxScan、stop-on-gap、break-on-empty 全部删除。compress 保持 force-protected(不作种子),但其位置仍参与拓宽,Accident re-anchor debris is unrecoverable: the overlay island lands mid-turn, and the turn-split guard means the orphan | 事故重锚碎屑无法回收:覆盖岛落在 turn 中段,turn-split 守卫让孤另一半永远折不了 #4348 的 aged-receipt lace 修保持效。block-boundary 区间(bN)仍豁免拓宽(tier 检测领地,[bug] Collapsing the "block range" compress actually doubled the live view size (253→519 msgs) → local estimate blew past the window → preflight permanently fail-fast (while the same payload would have passed upstream at 566K/750K) | [bug] 折叠「块范围」的 compr… #3322/[Bug] Merging stale compressed blocks retracts existing coverage, causing repeated coverage-regression rejections | [Bug] 合并旧压缩块时撤回既有覆盖,导致 coverage-regression 反复拒绝 #4484)——不动。
  5. 是否有回归问题:逐项审过的既有行为及结论——① turn-integrity 闸门逻辑本身未改、仍在拓宽之后运行:配对两半现在都在区间内,幻影「Range would split N turn(s)」撤出消失,这正是修复意图而非语义漂移;② 嵌套块 rescan 在拓宽后的区间上跑(既有机制,只是现在能从更远处触达被拉进来的块锚);③ Accident re-anchor debris is unrecoverable: the overlay island lands mid-turn, and the turn-split guard means the orphan | 事故重锚碎屑无法回收:覆盖岛落在 turn 中段,turn-split 守卫让孤另一半永远折不了 #4348 receipt-lace 测试无改动通过(种子语义逐字节等价);④ [Bug] recommend/apply 对同一区间的 turn-integrity 判定永久不一致:acp_status 反复推荐的区间被 apply 侧整段拒绝(0.1.196,Range would split N turn(s) at the protected-zone boundary) #3236 share-projection 契约(recommend/apply 共用同一投影)保留,退役的只是「20 槽外必死」的物理 pin,改为原子折叠断言;⑤ 有意行为变更一:acp_status uncompressed 视图里此前 doomed 的 span 行失去 ⚠ 标志——旧值=标为不可折,新值=能折了所以摘旗,原因=根因已除;⑥ 有意行为变更二:重复 callId(宿主重试回显)现在拓宽到该 id 的极值位置,折叠范围可能比旧行为大——刻意取舍:把重复拆开放在线上一边比整体折掉更糟。高危模式逐项过:只有拓宽没有收缩(only-widens 不变量保持)、无 fail-fast 变吞错、wire 形状无新字段、无阈值/时序漂移。
  6. 是否破坏缓存:否。消息身份(msgid/顺序/hash 三层裁决)、账本主键、块 seq/签名链全未触碰;折叠产物仍是同一 acp_summary carrier,只是更多消息进同一个块;头部 system 字节稳定不变量未动。
  7. 是否改了设计方向:无架构转向。kernel 内配对预扫描的局部重写——同函数、同唯一生产调用点(unit-projection.ts 的 projectUnit,recommend/report/apply 三处照旧),plugin/proxy 两种压缩模式在 kernel 层同等受益、无模式专属路径。性能面:每次投影多一遍 O(N) 全数组索引,与既有 buildPairMap 全扫描同阶;不动点循环每轮至少 settle 一个新 id、典型 1–2 轮收敛,最坏界受 distinct id 数约束——可接受。
  8. 是否引入新配置:无。无新 env/config/默认值。kernel 版本 0.0.181→0.0.182(CI 强制的版本纪律),lockfile 已由 62f4bf8be 同步。

测试证据(本地定向跑,全量交给 CI):

  • 新增 kernel/tests/issue5751-tool-pair-widening.test.ts(交错链不动点 / 稀疏数组 / 任意距离配对 / apply 级原子折叠 / tool-dense 区 / block-boundary 豁免):A/B 实测——旧代码 6 个套件红 4,分支上 6/6 绿;
  • tool-pairs.test.ts、issue3236-recommend-apply-consistency.test.ts 重 pin 后 4 个目标 kernel 文件合计 26/26 绿;
  • host 侧 tests/issue4862-invariant-judge-unpaired.test.ts + tests/verif-subset-guard.test.ts 15/15 绿;bili typecheck 干净;
  • CI:前一 head 快照时已完成分片全绿(一个 windows 分片当时仍在跑);最终 head ff8260d2c 正在跑,我追加的两笔纯格式 commit 已 token 级证明无语义差异,风险可忽略。

收工判定:审核通过,等你合并。

ci-check and others added 2 commits November 6, 2026 04:11
…#5337 pattern)

The id-exact pairing rewrite rebuilt a whole-array toolCallId position index
inside adjustBoundariesForToolPairs on every call — once per screened unit
(<=2 passes), i.e. U units x O(n), the exact quadratic class #5337 removed.
On a 20k-message history with ~1900 units the real recommend chain went from
a 614ms baseline to 1346ms locally (3184ms on the windows CI node, over the
3000ms cap pinned by tests/issue5337-shared-screening.test.ts).

Hoist the index into ProjectionShared.toolPairExtremes: built once per pass
in buildProjectionShared, consumed by applyPairBoundaryAdjustments via the
existing shared-context pattern (same as pairByCallId et al.). Standalone
callers without a shared context still build inline — behavior unchanged.

Zero behavior change: identical data, computed once per pass instead of per
unit. Local: all four pinned suites green (tool-pairs, issue5751,
issue3236, issue5337); scale record back at baseline (613ms vs 3000ms cap).
The #5751 re-pin retired every positive-direction assertion of the
`⚠ not foldable` surface (all three remaining references became
`!includes`). Gate discipline (#3617) requires both directions: add a
genuinely doomed row (whole tail inside the soft-protected zone) and
assert its flag fires.

@ranxianglei ranxianglei left a comment

Copy link
Copy Markdown
Owner Author

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)

独立复审结论:代码与测试通过审核;本 PR 触碰 kernel/ 并带 kernel-change: 声明,按 Kernel Boundary 属 human-only 档——不签发 approve,等 owner 决策(见后续 🔶 评论)。 本审核独立产出:diff 逐段重读、生产调用点逐一验证、本地定向测试实跑、CI 只读镜像缓存核对,不复制线程内既有评审结论。

方向关(①):#5751 的根因定位成立——配对预扫描用距离受限扫描(maxScan=20 窗口 + 遇空槽即停 + 首命中后遇隙即停的 gap-break 启发式)而非 id 精确查找;一个机制同时产生两个症状(拒绝侧折叠卡死 #5746 / 上线侧拆对恒 400 #5751)。修法方向(id 精确 + 不动点拓宽)打到根因,不是治标。范围与此前决策清单里的选项 A 一致。

回归审查(②)— 触碰路径的既有行为逐项清点:

  1. turn-integrity withdraw 闸门(computeIntegrityWithdrawals):逻辑未改、仍在拓宽之后运行;配对两半现在同进区间,幻影「would split」撤出消失 = 修复意图,非漂移;
  2. block-boundary(bN)豁免:boundaryKind==="block" 仍整体跳过拓宽(#3322/#4484 领地),有测试钉住;
  3. compress force-protected:非种子语义保留(#4348 aged-receipt lace 逐字节等价,该测试零改动通过),但其位置现在参与全数组索引——lace 触达从 ≤20 槽扩到任意距离(有意变更,见下);
  4. reasoning 配对(相邻式、无距离上限):未动;
  5. acp_status uncompressed 视图:此前 doomed 的行现在折得动、摘掉 ⚠ 标志(有意变更一);标志机制本身完好;
  6. 重复 callId(宿主重试回显):旧行为遇首个 gap 即停、回显留在区间外;新行为拓到极值位置,折叠范围可能比旧的大(有意变更二——把重复拆开放在线上一边比整体折掉更糟);
  7. 交错链:旧单遍扫描追不到传递配对,新不动点迭代能追(修复的必要组成,不是顺带改语义);
  8. 性能:screening 路径每遍建一次共享索引(#5337 模式,issue5337 套件钉本地 recommend 链 613ms vs 3000ms 上限);standalone apply 路径每个 applied range 多付一次 O(n) 索引,与既有全扫描同阶;无其他阈值/时序漂移;
  9. wire 形状:无新字段;ACP tag / acp_summary carrier / pf-* 协议头均未触碰;plugin/proxy 两种模式在 kernel 层同等受益、无模式专属路径;
  10. 消息身份:msgid/顺序/hash 三层裁决、账本主键、块 seq/签名链、头部 system 字节稳定——全部未动。

高危模式逐项过:无 fail-fast 变吞错、无默认值/阈值/时序漂移、无缓存/重试策略静默失效。有意行为变更共两处(doomed 行摘 ⚠ 标志;重复 callId 拓到极值),均已在 PR 正文披露。

代码审查(③):

  • 不动点循环终止性:每轮要么把新 id settle 进集合(单调增)要么收敛,最坏界受 distinct id 数约束,无死循环;
  • pairExtremes.get(id)! 非空断言:三个生产调用点全部安全——recommend.ts 与 report.ts 的 shared 和 messages 用同一 source 数组构建,compress.ts 的 applySingleRange 不传 shared、从 input.messages 内联构建;种子只能来自 messages 自身,id 必在索引中;
  • only-widens 不变量保持(只拉进、从不收缩);
  • verif 守护清单(Tier A)不含 tool-pairs.ts / unit-projection.ts,无求解器测试义务;golden wire-contract 不受影响(未触碰任何钉住的常量)。

测试有效性(④):

  • 新增 kernel/tests/issue5751-tool-pair-widening.test.ts 断言有牙:单元级(交错链不动点 / 稀疏数组 / gap-break 孤儿 mate)+ applyCompression 级(跨距区间原子折叠 / tool-dense 区不再卡死 / bN 豁免保持),A/B 实测旧代码红、新代码绿;
  • tool-pairs.test.ts 两条旧物理 pin 换成新语义(替换而非删除);
  • 发现一处(已顺手修):re-pin 后 doom flag 的正向断言在全仓失去最后一处——base 版 ⚠ not foldable 的全部 3 处引用都在 #3236 套件里(其中 2 处正向),re-pin 后 3 处全部变成负向(!includes)。门禁纪律(#3617)要求双向同时断言。已顺手修:#3236 套件补一个真正 doomed 的行(整尾落软保护区内、preserveRecentMessages=2)断言标志触发。
    已顺手修:re-pin 抹掉了 doom flag 正向方向的全仓最后一个断言(#3617 双向门禁缺口),补真正 doomed 行的正向断言 + commit 3a0c47e

本地证据(仅定向,全量交 CI):kernel 5 个目标文件 29/29 绿(tool-pairs / issue5751-tool-pair-widening / issue3236-recommend-apply-consistency / issue4348-receipt-lace / issue5337-shared-screening);host 侧 issue4862-invariant-judge-unpaired 13/13 + verif-subset-guard 2/2 绿。

CI(镜像缓存,未轮询 gh):写作时 head 73af2d536 的 checks 25/30 完成且零失败,5 个 test 分片仍在跑(windows 22 ×3、ubuntu 22/24 各 shard 2);static-gates 双平台绿。我的修复 commit 3a0c47e47(纯测试、零语义)推送后触发新一轮。

结构化八问:

  1. 是什么问题:工具调用的结果落在调用点 20 条消息之外或中间有空槽时,这对 call/result 跨在折叠边界两侧——要么整个工具密集区永远找不到合法区间、折叠彻底停摆(#5746),要么拆开的一对写进块上了线,上游每回合恒 400 直到人工修库(#5751:17MB/2M-token 会话手工挪 26 个块 start_seq 才救回)。
  2. 什么原因导致的:配对判定用了距离受限扫描(maxScan=20 + 遇空即停 + gap-break)而不是 id 精确查找;完整性闸门把漏配放大成拒绝侧/上线侧两个相反症状。表面现象两个,根因一个。
  3. 影响范围与严重程度:所有工具突发间距 >20 槽或中间有间隙的会话,长会话、工具密集会话最易触发;严重度高——可用性缺陷(折叠完全停摆,或上游 400 循环不自愈)。
  4. 怎么修复的:整条数组单遍 O(n) 索引每个 toolCallId 的最低/最高位置;边界向不动点收敛拓宽;maxScan / stop-on-gap / break-on-empty 全删;compress 保持非种子但其位置参与索引。
  5. 是否有回归问题:见上方回归清单——逐项审过的既有行为全部保持,除两处已披露的有意变更(doomed 行摘 ⚠ 标志;重复 callId 拓到极值、折叠范围可能变大)。无 fail-fast 变吞错、无阈值/时序/输出格式漂移。
  6. 是否破坏缓存:否。消息身份三层裁决、账本主键、块 seq/签名链、前缀缓存字节稳定均未触碰;更多消息进同一个 summary 块,形式不变。
  7. 是否改了设计方向:无架构转向——kernel 内配对预扫描局部重写,recommend/report/apply 仍共用同一投影(#3236 契约保留),共享索引沿用 #5337 模式。
  8. 是否引入新配置:无新 env/config/默认值;kernel 版本 0.0.181→0.0.182(CI 强制的版本纪律,lockfile 已同步)。

收工判定:代码、测试、披露齐备,审核通过;但 kernel 变更按 Kernel Boundary(human-only 档)与本车道授权规则不签发 approve——owner 决策见下方 🔶 评论(ratify 即可合,否则按指示调整)。

@ranxianglei

Copy link
Copy Markdown
Owner Author

🔶 需要决策

PR #5758(本线程)需要 owner 授权才能合并。

被门禁的 diff:kernel/src/tool-pairs.ts(配对预扫描重写:capped scan → id 精确不动点)、kernel/src/unit-projection.ts(ProjectionShared.toolPairExtremes 每遍建一次并传入 applyPairBoundaryAdjustments)、kernel/package.json 0.0.181→0.0.182(+ 两份 lockfile)。按 Kernel Boundary 规则 1/3:kernel 变更需 owner 事先批准 + human-only 评审档。

批准记录缺口:PR 正文声明 kernel-change: ... (#5751, owner-approved in issue thread),但 #5751 可见线程里只有:agent 🔶 决策请求(2026-11-05 15:24,推荐选项 A)→ PR 公告(15:32)→ 第二次 🔶 明确点名缺少批准语句(17:12)——中间没有你的明确批准语句,且该请求至今未获回复。声明是批准的第二要素、不能替代第一要素,本车道规则禁止 agent 代你自宣。

决策项:

  • A(推荐):ratify 该 kernel 改动(范围 = 你在清单里的选项 A;独立复审 + 本地定向测试全过,详见上方审核八问)→ 可合;
  • B:否决或指示调整(缩小范围 / 换方案 / 改措辞)→ 按指示执行。

不决定的默认行为:PR 保持现状不动,等你表态。

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

专职 reviewer 审核收工(PR #5758,head 73af2d536 → 我的修复 commit 后 3a0c47e47)。

结论:findings-only,不签 approve——本 PR 触碰 kernel/ 且带 kernel-change: 声明,按 Kernel Boundary(human-only 档)与本车道授权规则,批准只能由 owner 给出。代码与测试本身审核通过(完整八问见上方 GitHub review):id 精确不动点重写成立(终止性、非空断言在三个生产调用点全部安全、only-widens 不变量保持),既有行为逐项清点除两处已披露的有意变更外无回归。

已顺手修:re-pin 抹掉了 doom flag(⚠ not foldable)正向方向的全仓最后一个断言(#3617 双向门禁缺口)——#3236 套件补一个真正 doomed 的行断言标志触发,commit 3a0c47e47(纯测试、零语义),已推 PR 分支并触发新一轮 CI。

🔶 需要决策(详见下方评论 + needs-decision 标签):PR 正文声明「owner-approved in issue thread」,但 #5751 可见线程里只有 agent 决策请求(15:24)→ PR 公告(15:32)→ 第二次 🔶 点名缺口(17:12),中间没有你的明确批准语句。请 ratify(选项 A,可合)或指示调整;不决定的默认行为是 PR 保持现状。

CI:写作时 head 73af2d536 的 checks 25/30 完成零失败、5 个 test 分片在跑(static-gates 双平台绿);修复 commit 推送后新一轮在途。状态已同步一行到 #4599。

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

收到。当前状态:一切就绪,只等你的 A/B 表态。

你 21:08 的评论是决策请求正文本身——列了选项,但没有包含选择。按车道规则,agent 不能代你自宣批准(PR 正文里的声明是批准的第二要素,不能替代第一要素),所以本车道没有动任何东西。如果你贴这条的本意就是「按 A 批」,请再补一句明确的确认(如「A」或「批准」)——重新贴问题不算选择,我们需要一句能留档的明确语句。

现状快照(21:14 UTC):

  • head 3a0c47e47(reviewer 的 doom-flag 双向门禁测试钉 commit,纯测试零语义);
  • CI 在途:8 success / 9 skipped(门禁内 e2e)/ 13 queued·running,零失败;
  • 分支与当前 master(bfabcd1ca)对齐,落后 0、领先 7;
  • 两轮独立审核均通过:CI 工程师完整八问(本线程 floor 10)+ 专职 reviewer findings-only(floor 18,kernel 变更属 human-only 评审档故不签 approve);
  • mergeable_state=blocked——待满足项只剩:你的授权 + 剩余测试分片跑完。

解锁方式,一句话即可:

  • 「A」 = ratify 该 kernel 改动(范围 = 清单里的选项 A)→ PR 转可合,合并动作由你自己执行;
  • 「B」(+ 指示) = 否决或调整(缩小范围 / 换方案 / 改措辞)→ 按指示执行。

批准语句发在本线程或源 issue #5751 都可以。不表态的默认行为不变:PR 保持现状,agent 不动手。

@ranxianglei

Copy link
Copy Markdown
Owner Author

🤖 Powered by ework · qwen3.8-27b

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

复审(新 head 3a0d57e→更正:3a0c47e47)结论不变,无新发现。 本轮触发时 PR head 已从我上次审核的 73af2d536 移到 3a0c47e47,增量恰好是我上一轮顺手修的那一笔(doom-flag 正向断言钉):单文件 kernel/tests/issue3236-recommend-apply-consistency.test.ts、+38 行、纯测试零语义——token 级核对过 diff,prettier 干净、本地该套件 5/5 绿。原 findings-only 审核(方向关/回归清单/八问)对新 head 整体成立,不重复发帖。

状态快照(写作时):

  • 分支与当前 master(bfabcd1ca)对齐,落后 0、无冲突;
  • CI(head 3a0c47e47,镜像缓存一次读取):30 checks——17 完成(kernel-guard ✅、gate ✅、e2e 门禁内按设计 skip)、13 queued·in_progress,零失败;
  • 阻塞项与上轮完全相同:owner 的 A/B 表态(needs-decision 标签在位)+ 剩余分片跑完。合并动作照例由你执行。

等你一句「A」或「B+指示」。

@ranxianglei
ranxianglei merged commit 84fa9af into master Nov 6, 2026
90 checks passed
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.1045-master.84fa9af (rolling master tag).

npm install -g billion-context@0.0.1045-master.84fa9af  # 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.

Louie0806 added a commit to Louie0806/billion-context that referenced this pull request Nov 6, 2026
…air id widening (kernel 0.0.182)

Upstream ranxianglei#5758 folds tool-call/result pairs by exact id at any distance
(ranxianglei#5751) and shares the tool-pair index across the screening pass (ranxianglei#5337
pattern). Kernel bumps 0.0.181 -> 0.0.182, so the lockfiles moved with it.

Zero textual conflicts: upstream touches only kernel/src/tool-pairs.ts,
kernel/src/unit-projection.ts, kernel tests and the two lockfiles; this lane
touches src/loop/*, src/plugin.ts, src/server/relay.ts, tests/* and the
generated docs.

## Verification (kernel rebuilt to 0.0.182 first)

| suite | result |
|---|---|
| tests/issue5175-drift-name-leak.test.ts | 58 pass / 0 fail |
| tests/tag-echo.test.ts | 79 / 0 |
| tests/issue2190-degen-close.test.ts | 32 / 0 |
| tests/golden-storage-render.test.ts | 5 / 0 |
| tests/storage-engine-proofs.test.ts | 12 / 0 |
| tests/plugin-passthrough-tag-strip-chat.test.ts | 20 / 0 |
| tests/issue4666-migration-dedup.test.ts | 2 / 0 |

`npx tsc --noEmit` = 0.
ranxianglei pushed a commit that referenced this pull request Nov 6, 2026
Only conflict: kernel/package.json version line — both sides bumped after
base 0.0.180 (ours 0.0.181 via #5608-B/C time-attr work, master 0.0.182 via
#5758/#5759). The merged tree carries BOTH unreleased change sets, which no
single prior version denotes, so reconcile to 0.0.183 (max+1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant