Skip to content

[Root Cause] kernel-compression (14 items) #6447

Open

Description

@ranxianglei

同一根本原因(kernel-compression)的 open issue 汇聚,由根因归类板自动维护(10min 刷新,勿手编)。

Members (14)

Task

对本批 issue 做一个根本性修复 PR:

  • PR 描述里用 Fixes #... 逐个列出上面每一个 GitHub issue 号(没有 GitHub 号的写镜像号)
  • 若某个 issue 已有自己的 PR 且方向一致,cherry-pick 其 commit 并保留原作者署名(-x);由你判断是否值得
  • PR 必须打标签:root-cause(固定,来自根因汇聚单)+ 按本 PR 的 diff 独立判断的类别和优先级标签(最高优先用 p1),不要抄任何来源 issue
  • PR 描述末尾必须加标记行 <!-- rcagg:kernel-compression -->(汇聚板靠它自动识别根因 PR 补标签/插队;即使修复拆成多个子单各自提 PR,每个 PR 都要带这行)
  • 回帖本线程必须是最终裁决,结尾固定用中文 8问 清单逐行回答:1 这是啥问题(大白话+触发条件)2 根本原因是啥(组件+机制)3 如何修复(已做的修复或建议修法)4 能否合并/关闭(结论+依据:测试/CI/回归分析)5 URL(相关线程/PR 链接)6 影响面(哪些代码路径/用户)7 测试(什么钉住它)8 风险(还可能坏在哪)。答不实的行写「待验证:原因」,不许漏行

Activity

  1. changed the title [-][Root Cause] kernel-compression (15 items)[/-] [+][Root Cause] kernel-compression (14 items)[/+] on Nov 12, 2026
  2. ranxianglei commented on Nov 13, 2026

    @ranxianglei
    OwnerAuthor

    继续:请按本聚合单的根因归类完成分析,并直接在本线程回复 8问 结论(1啥问题 2根因file:line 3修复思路 4能否合并 5URL 6影响面 7测试证据 8风险)。消息不要只输出空白,现在就发已有证据的结论。

  3. ranxianglei commented on Nov 13, 2026

    @ranxianglei
    OwnerAuthor

    继续:请按本聚合单的根因归类完成分析,并直接在本线程回复 8问 结论(1啥问题 2根因file:line 3修复思路 4能否合并 5URL 6影响面 7测试证据 8风险)。现在就发已有证据的结论,不要只输出空白。

  4. ranxianglei commented on Nov 13, 2026

    @ranxianglei
    OwnerAuthor

    🤖 Powered by ework · qwen3.8-27b

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

    根因归类分析完成。15 成员单 → 6 机制族 + 2 已决。7 PR(5 host-side + 2 kernel),10 项 owner 决策。结论:一个根本 PR 不能关 15 单——跨 6 机制,8 项 owner-gated(kernel 批准 ×4、feature 批准 ×3、carrier A/B ×1);一个 PR = 一个机制。无决策依赖的 rebase+CI 工作立即推进。

    根因归类(6 族)

    G1 广告面缺 apply 判定(KDD #12/#3236)— 4 项

    G2 时间戳水位 / ledger 对齐缓存悬崖 — 3 项

    G3 block-ops carrier 模型 — 2 项

    G4 签名 thinking × fold 边界 — 1 项

    G5 客户端 compaction 后可达性 — 1 项

    G6 Fold 策略 / 调度器(owner-gated feature)— 2 项

    G7 已决/feature — 2 项

    无决策依赖工作(立即推进)

    1. git fetch origin——本地 master 33104b1 STALE(upstream ≥ c26c31a,含 [PR] feat: compress-block retirement (acp_retire/acp_restore) + external summary rewrite (acp_rewrite) + export ledger #5774 block-ops + [PR] Web Panel: Handoff Documentation and Collapsed Tree Diagram Rendering Upgrade (eWork-Level Rendering, Appendix Sectionin | Web 面板:交接文档与压缩树图渲染升级(eWork 级渲染、附录分节、冻结快照水合) #6260)
    2. Rebase + CI:PR [PR] fix(#5780): screen UNCOVERED HISTORY runs through the apply-side foldability judgment #5785、[PR] fix: stop naming sub-gate residue as foldable work in compress receipts (#5872) #5888、[PR] fix(stream): compress that folds nothing no longer sets the ledger alignment marker | fix(stream): 什么都没折叠的 compress 不再置上账本对齐标记 #6331(host-side,零 kernel diff)
    3. Rebase + CI:PR [PR] fix(kernel): reject range folds that would merge blocks beyond the requested ref window #5835、[PR] kernel: keep signed thinking with its tool_use across folds (#4885) #4898(kernel,human merge tier)
    4. 重做 PR [PR] fix: screen tier merge nudges against compression eligibility #5777 测试(新 actionableSplitError fixture)
    5. 完成 PR [PR] feat(acp): keep pre-compaction history restorable across client-side compaction #6217 review(unannounced-rewrite reap 路径 gap)

    Owner 决策清单(10 项)

    # Issue 决策 推荐
    1 #2670 A′/B/C(off-request 调度器) A′
    2 #5771 A/B/C 形状(不压缩 in-use) B+C
    3 #5766 A/B + export 范围 A
    4 #5830 kernel 批准 A/B A
    5 #6311 carrier A/B A
    6 #6328 A wide/narrow + B 1/2/3 A narrow + B 2
    7 #6327 A/B/C A
    8 #6332 A/B/C A
    9 #5872 breaker B′ + floor config A(保持 advisory + 不暴露)
    10 #5782 nudge-idle run-list 降级 B

    8问

    1. 啥问题:15 个 kernel-compression 成员单,6 个根因机制族——广告面缺 apply 判定(4)、时间戳水位缓存悬崖(3)、block-ops carrier 模型(2)、签名 thinking × fold 边界(1)、客户端 compaction 后可达性(1)、fold 策略/调度器(2)+ 2 已决。触发条件:多数在压缩后首次 fold 或版本升级后首个请求(缓存悬崖类),或客户端 compaction 丢弃历史时(可达性类)。
    2. 根因:6 机制族各有 file:line——G1:src/uncovered.ts / src/stream.ts:685-691 / kernel/src/compress.ts:2108 / kernel/src/unit-projection.ts;G2:src/stream.ts:1355 / kernel/src/compress.ts:1213-1220 / kernel/src/refs.ts:335-344;G3:kernel/src/prune.ts:182-193 / kernel/src/parse-compress-input.ts:616;G4:kernel/src/recommend.ts;G5:src/session.ts:1728-1787/1871-1911/1968;G6:无 off-request 调度器 + preserveRecent zone 过小。
    3. 修复:7 PR(5 host-side + 2 kernel),5 个 merge-ready(CI 绿,分支 BEHIND → rebase),1 需测试重做([PR] fix: screen tier merge nudges against compression eligibility #5777),1 review 进行中([PR] feat(acp): keep pre-compaction history restorable across client-side compaction #6217);3 个 kernel auth 项分支未推(方案已出,等 owner 批准);2 个 feature 项等 owner 拍板。
    4. 能否合并:5 PR rebase 后可合并(CI 绿,host-side 零 kernel diff 或 kernel human merge tier);[PR] fix: screen tier merge nudges against compression eligibility #5777 不可合并(dirty + 测试 stale);[PR] feat(acp): keep pre-compaction history restorable across client-side compaction #6217 不可合并(review 进行中,unannounced-rewrite gap)。8 项不可关闭(owner-gated)。kernel authorization request: export the projectUnit screening entry so UNCOVERED HISTORY runs can carry verdict-backed foldability tags #5784 可关闭(搁置,无需代码)。
    5. URL:PR [PR] fix(#5780): screen UNCOVERED HISTORY runs through the apply-side foldability judgment #5785 / [PR] fix: stop naming sub-gate residue as foldable work in compress receipts (#5872) #5888 / [PR] fix(stream): compress that folds nothing no longer sets the ledger alignment marker | fix(stream): 什么都没折叠的 compress 不再置上账本对齐标记 #6331 / [PR] fix(kernel): reject range folds that would merge blocks beyond the requested ref window #5835 / [PR] kernel: keep signed thinking with its tool_use across folds (#4885) #4898 / [PR] feat(acp): keep pre-compaction history restorable across client-side compaction #6217 / [PR] fix: screen tier merge nudges against compression eligibility #5777;issue [Bug][dsh] Proxy OOMs by self-hitting the 8 GiB heap in ~30-90 min: resident pool budget (512 MiB) is smaller than a single session, so every round thrashes cold-load/evict and allocates giant temporaries #5782 / 提案:快照表式压缩底座(六段固定链,单一存储真源) #5874 / sessions.gc doesn't clean up thoroughly | sessions.gc清理不干净 #5778 / Scheduled full test failed: c3dfbe6b | 定时全量测试失败: c3dfbe6b #5832 / security: tunnel anti-tunnel marker exception (#1073) omits x-bili-tunnel in exactly the DNS-rebinding topology #6334 / [Bug][compress] A rejected or no-op compress also triggers a one-time ref/ledger alignment: nothing was folded, yet the | [Bug][compress] 被拒绝或 no-op 的 compress 也会触发一次性的 ref/账本对齐:什么都没折叠,下一个请求却改写了所有标签 #6330 / security: decompress toFile writes to arbitrary paths — model-controlled write primitive, restrict vs document (owner decision) #6333 / [Bug][blockOps] The receipts for acp_rewrite / acp_retire report success, but as long as the compress call that created | [Bug][blockOps] acp_rewrite / acp_retire 的回执说成功了,但只要创建这个块的 compress 调用还在历史里,下一次请求带的仍是旧摘要 #6311 / OpenAI Routing: Requests where the upstream omits cache fields are misrecorded as "unmeasured" and excluded from attribu | OpenAI 路由:上游省略缓存字段的请求被误记为"未测量"并剔除出归因,命中率与归因面板差 12.6pp 无法解释 #6329 / Billion-context documentation addendum: nudge is independent of window occupancy. | billion-context 文档补充:nudge 与窗口占用无关 #5893 / Client-side and cloud compaction leave folded history unreachable #6215 / [PR] fix(fastpath-v6): tunnel-origin requests without the identity channel are cohort exclusions, not faults (#5760) #5773 / [Feature] fold toward autoFoldTargetTokens while the session is idle — folding only happens on the request path, so idle sessions never converge and active ones stall every ~4.5 min #2670 / Request two capabilities: compression block "decommissioning" and summary "external rewrite" | 请求两个能力:压缩块「退役」与摘要「外部重写」 #5766 / kernel authorization request: export the projectUnit screening entry so UNCOVERED HISTORY runs can carry verdict-backed foldability tags #5784。
    6. 影响面:G1 影响所有看到 UNCOVERED HISTORY 或 post-compress footer 的用户(所有压缩用户);G2 影响从 v0.1.210-213 升级的用户(一次性 prefix cache 悬崖);G3 影响使用 acp_rewrite/acp_retire 的用户(默认 off,有限);G4 影响有签名 thinking 的 Anthropic 用户(8.9%);G5 影响有客户端 compaction 的用户;G6 影响所有用户(fold 策略)。
    7. 测试:PR [PR] fix(#5780): screen UNCOVERED HISTORY runs through the apply-side foldability judgment #5785(13 success/17 skipped/0 failed)、[PR] fix: stop naming sub-gate residue as foldable work in compress receipts (#5872) #5888(CI 成功 2026-11-13)、[PR] fix(stream): compress that folds nothing no longer sets the ledger alignment marker | fix(stream): 什么都没折叠的 compress 不再置上账本对齐标记 #6331(CI 成功)、[PR] fix(kernel): reject range folds that would merge blocks beyond the requested ref window #5835(CI 成功)、[PR] kernel: keep signed thinking with its tool_use across folds (#4885) #4898(CI 成功 30/30)、[PR] feat(acp): keep pre-compaction history restorable across client-side compaction #6217(CI 待定)、[PR] fix: screen tier merge nudges against compression eligibility #5777(测试 stale,需重做)。Kernel auth 分支:5 kernel + 2 host e2e 测试就绪(OpenAI Routing: Requests where the upstream omits cache fields are misrecorded as "unmeasured" and excluded from attribu | OpenAI 路由:上游省略缓存字段的请求被误记为"未测量"并剔除出归因,命中率与归因面板差 12.6pp 无法解释 #6329),3/5 + 2/2 在 master 上失败(复现确认)。
    8. 风险:(a) 本地 master STALE(33104b1f95,upstream ≥ c26c31a)——rebase 可能在热文件(src/server.ts、kernel/src/unit-projection.ts)遇语义冲突;(b) [PR] feat(acp): keep pre-compaction history restorable across client-side compaction #6217 unannounced-rewrite reap 路径 gap——若不覆盖,客户端 compaction 仍可能丢历史;(c) [PR] fix: screen tier merge nudges against compression eligibility #5777 测试重做——新 fixture 若不产生 actionableSplitError,pre-screening 未钉住;(d) 3 个 kernel auth 分支未推——若 owner 批准但分支丢失,需重做;(e) G2 三项全为缓存悬崖类——若修错可能引发二次悬崖(比原问题更糟)。
  5. ranxianglei commented on Nov 13, 2026

    @ranxianglei
    OwnerAuthor

    🤖 Powered by ework · qwen3.8-27b

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

    Rebase 进展(无决策依赖部分已推进):

    已推送(clean rebase 到 master 243709b,CI 验证中)

    状态更正

    未推进(需决策或高上下文成本)

    本地环境:无 node_modules,本地 typecheck 跑不了(tsup not found);按 AGENTS.md §7.2,权威判定 = 推送 head 上的远程 CI。clean rebase(无冲突)是兼容性证据,CI 兜底。

    8问(更新版)

    1. 啥问题:15 个 kernel-compression 成员单,6 根因机制族(广告面缺 apply 判定×4、时间戳水位缓存悬崖×3、block-ops carrier×2、签名 thinking×fold 边界×1、客户端 compaction 可达性×1、fold 策略/调度×2)+ 2 已决。
    2. 根因:6 族各有 file:line(详见上一条 8问,未变)。
    3. 修复:7 PR 中 2 个 host-side merge-ready 已 rebase+推送([PR] fix(#5780): screen UNCOVERED HISTORY runs through the apply-side foldability judgment #5785/[PR] fix: stop naming sub-gate residue as foldable work in compress receipts (#5872) #5888,CI 验证中);[PR] fix(stream): compress that folds nothing no longer sets the ledger alignment marker | fix(stream): 什么都没折叠的 compress 不再置上账本对齐标记 #6331 已关未合并(dead);[PR] kernel: keep signed thinking with its tool_use across folds (#4885) #4898 遇语义冲突需仔细解;[PR] fix(kernel): reject range folds that would merge blocks beyond the requested ref window #5835/[PR] fix: screen tier merge nudges against compression eligibility #5777/[PR] feat(acp): keep pre-compaction history restorable across client-side compaction #6217 待决策或高成本工作。
    4. 能否合并:[PR] fix(#5780): screen UNCOVERED HISTORY runs through the apply-side foldability judgment #5785/[PR] fix: stop naming sub-gate residue as foldable work in compress receipts (#5872) #5888 rebase 后可合并(CI 绿则合,host-side 零 kernel diff);[PR] kernel: keep signed thinking with its tool_use across folds (#4885) #4898/[PR] fix(kernel): reject range folds that would merge blocks beyond the requested ref window #5835 需 owner kernel 批准 + 冲突解决;[PR] fix: screen tier merge nudges against compression eligibility #5777 需测试重做;[PR] feat(acp): keep pre-compaction history restorable across client-side compaction #6217 需 review 完成;[PR] fix(stream): compress that folds nothing no longer sets the ledger alignment marker | fix(stream): 什么都没折叠的 compress 不再置上账本对齐标记 #6331 已关(dead)。
    5. URL:PR [PR] fix(#5780): screen UNCOVERED HISTORY runs through the apply-side foldability judgment #5785 / [PR] fix: stop naming sub-gate residue as foldable work in compress receipts (#5872) #5888(已 rebase 推送)/ [PR] kernel: keep signed thinking with its tool_use across folds (#4885) #4898 / [PR] fix(kernel): reject range folds that would merge blocks beyond the requested ref window #5835 / [PR] fix: screen tier merge nudges against compression eligibility #5777 / [PR] feat(acp): keep pre-compaction history restorable across client-side compaction #6217;[PR] fix(stream): compress that folds nothing no longer sets the ledger alignment marker | fix(stream): 什么都没折叠的 compress 不再置上账本对齐标记 #6331 已关。
    6. 影响面:同上一条 8问(未变)。
    7. 测试:[PR] fix(#5780): screen UNCOVERED HISTORY runs through the apply-side foldability judgment #5785/[PR] fix: stop naming sub-gate residue as foldable work in compress receipts (#5872) #5888 CI 验证中(clean rebase,原 head CI 绿);[PR] kernel: keep signed thinking with its tool_use across folds (#4885) #4898 原 CI 绿(30/30)但 rebase 冲突未解;其余同上一条。
    8. 风险:(a) [PR] kernel: keep signed thinking with its tool_use across folds (#4885) #4898 语义冲突若强行解可能引入 kernel 回归(签名 thinking 是高危域,KDD release v0.1.3 #10);(b) [PR] fix(kernel): reject range folds that would merge blocks beyond the requested ref window #5835 同类冲突风险;(c) 本地无 node_modules,无法本地 typecheck 兜底,全靠 CI;(d) [PR] fix(stream): compress that folds nothing no longer sets the ledger alignment marker | fix(stream): 什么都没折叠的 compress 不再置上账本对齐标记 #6331 已关未合并——security: tunnel anti-tunnel marker exception (#1073) omits x-bili-tunnel in exactly the DNS-rebinding topology #6334 的修复不在 master,若该问题仍存在需重新立项。
  6. changed the title [-][Root Cause] kernel-compression (14 items)[/-] [+][Root Cause] kernel-compression (15 items)[/+] on Nov 13, 2026
  7. changed the title [-][Root Cause] kernel-compression (15 items)[/-] [+][Root Cause] kernel-compression (14 items)[/+] on Nov 13, 2026
  8. changed the title [-][Root Cause] kernel-compression (14 items)[/-] [+][Root Cause] kernel-compression (15 items)[/+] on Nov 19, 2026
  9. changed the title [-][Root Cause] kernel-compression (15 items)[/-] [+][Root Cause] kernel-compression (14 items)[/+] on Nov 19, 2026
  10. changed the title [-][Root Cause] kernel-compression (14 items)[/-] [+][Root Cause] kernel-compression (15 items)[/+] on Nov 19, 2026
  11. changed the title [-][Root Cause] kernel-compression (15 items)[/-] [+][Root Cause] kernel-compression (16 items)[/+] on Nov 19, 2026
  12. changed the title [-][Root Cause] kernel-compression (16 items)[/-] [+][Root Cause] kernel-compression (18 items)[/+] on Nov 19, 2026
  13. changed the title [-][Root Cause] kernel-compression (18 items)[/-] [+][Root Cause] kernel-compression (14 items)[/+] on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions