Skip to content

[Drive-by] dsh rebase channel removal: full rebuild after checkpoint lands to clear all bili folds (owner has decided th | [Drive-by] dsh rebase 通道移除:checkpoint 落地后整体重建清掉 bili 全部折叠(owner 已裁决方向,独立工作) #7216

Open

Description

@ranxianglei

🤖 Powered by ework · qwen3.8-27b

来源: #7190(范围外节第 1 条)/ PR #7179 分析 dsh runtime preset 压缩闸门时发现

查重: 无(检索 rebase 通道 / dsh checkpoint 折叠 均无既有追踪条目;GitHub #4937 是 codex 车道的同族 rebase,不同车道不同裁决范围)。

found-in

#7190 范围外节第 1 条(「rebase 通道的移除(owner 已裁决方向,独立工作)」)。

症状/触发

dsh 原生压缩 checkpoint 落地(#3733 authored 路径回 200)后,bili 的 rebase 通道把它当「原生压缩底座」整体重建 ACP 状态,清掉 bili 自己的全部折叠 → digest drift → 信封冻结 + 输出预算粘滞钳低(GitHub #7169 / 镜像 #7170 的复现场景)。PR #7179 只关掉了 runtime preset 这一生产者(compaction 触发器不再注册),rebase 通道本身仍在——任何未来让 dsh checkpoint 落地的路径(老版本 dsh、其他 preset/触发来源)都会再次触发同一反噬。

拟议修法

移除 dsh rebase 通道(owner 已裁决方向,见 #7190 正文;原始裁决线程未在正文引用,需要时请 owner 指认)。移除后 dsh checkpoint 落地不再触发整体重建。

阻塞

需要独立的设计与 PR:触碰出站历史渲染/会话重建路径(高危域),超出 PR #7179 范围;动手前需先定「无 rebase 通道」时 checkpoint 落地的行为(忽略 / 告警 / 冲突扫描记录),并核对 codex 车道的同族通道(GitHub #4937)是否受同一裁决覆盖。


Mirrored from ework issue #7215

Activity

  1. ranxianglei commented on Nov 18, 2026

    @ranxianglei
    OwnerAuthor

    🤖 Powered by ework · qwen3.8-27b

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

    查重:不重复(检索 rebase 通道 / dsh checkpoint 折叠 / resetSessionCompression 均无既有追踪条目;GitHub #4937 是 codex 车道的同族 rebase,不同车道不同裁决范围,见下第 4 点)。

    标签:尝试打 bug + dsh + scope/wiring + p1,但镜像 label API 未实现(/labels 端点返回 "endpoint not implemented in ework shim",PATCH labels 字段不落),未能落标,请 owner 手动补。

    🔶 需要决策

    背景:dsh authored checkpoint(#3733)落地后,bili 的 rebase 通道(4 处 src/server/prepare-*.ts)把它当「原生压缩底座」整体重建 ACP 状态(resetSessionCompression),清掉 bili 自己的全部折叠 → digest drift → 信封冻结 + 输出预算粘滞钳低(#7169/#7170)。owner 已裁决方向:移除 dsh rebase 通道(#7190 范围外第 1 条)。

    待决问题:移除 rebase 后,dsh checkpoint 落地(authored 或 foreign)应如何处置?

    选项(各带代价):

    我的推荐:C。理由:

    1. 最小改动——只移除 markNativeCompactionBoundary + reconcileNativeCompactionBoundary 两步,保留 recordConflict + log。
    2. 保留可观测性——冲突扫描记录 + 日志仍能让运维看到 dsh checkpoint 落地事件。
    3. post-[PR] fold anchoring doctrine: order over hash — shape churn, image offload, host truncation stop reading as destruction (#3641) #3644(snapshot doctrine)后,landed client checkpoint 不再摧毁 server 底座,所以 foreign 路径的 rebase 也不再需要——移除 rebase 对 authored 和 foreign 路径都安全。
    4. 冲突文案需更新(当前说「rebased」,移除后应改为「detected, no rebase (post-[PR] fold anchoring doctrine: order over hash — shape churn, image offload, host truncation stop reading as destruction (#3641) #3644)」)。

    codex 车道同族通道(GitHub #4937):codex 车道的 rebase(src/server/prepare-openai.ts:292-305 的 codexRebased 块 + src/server/prepare-responses.ts:313-341 的 codexHit 分支)是独立机制(isCodexHost && carriesCodexLocalCompactionSummary,针对 codex 本地 auto-compaction,调用从不经过 proxy)。我的判断:不受本次裁决覆盖,保持不动。 本次只移除 dsh rebase 通道(dshRebased 块 / dshHit 分支),codex 车道(codexRebased 块 / codexHit 分支)保持不动。

    不决定的默认行为:按 C 实施(冲突扫描记录),codex 车道保持不动。

  2. changed the title [-][Drive-by] dsh rebase 通道移除:checkpoint 落地后整体重建清掉 bili 全部折叠(owner 已裁决方向,独立工作)[/-] [+][Drive-by] dsh rebase channel removal: full rebuild after checkpoint lands to clear all bili folds (owner has decided th | [Drive-by] dsh rebase 通道移除:checkpoint 落地后整体重建清掉 bili 全部折叠(owner 已裁决方向,独立工作)[/+] on Nov 18, 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

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions