Skip to content

[Root Cause] dsh-lane (auto-maintained, do not close manually) | [根因] dsh-lane(自动维护,勿手动关闭) #6294

Closed as not planned

Description

@ranxianglei

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

本批 issue

任务

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

  • PR 描述里用 Fixes #... 逐个列出上面每一个 GitHub issue 号(没有 GitHub 号的写镜像号)
  • 若某个 issue 已有自己的 PR 且方向一致,cherry-pick 其 commit 并保留原作者署名(-x);由你判断是否值得
  • 标签按本 PR 的 diff 独立判断(类别 + 优先级),不要抄任何来源 issue
  • 修完后回帖本线程:改了什么、为什么一次修了整批

Activity

  1. changed the title [-][根因] dsh-lane(自动维护,勿手动关闭)[/-] [+][Root Cause] dsh-lane (auto-maintained, do not close manually) | [根因] dsh-lane(自动维护,勿手动关闭)[/+] on Nov 11, 2026
  2. ranxianglei commented on Nov 12, 2026

    @ranxianglei
    OwnerAuthor

    🤖 Powered by ework · qwen3.8-27b

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

    🔶 需要决策

    查重: 不重复(本线程是归类管道自动汇聚的根因批,两条源 issue 各自独立)。在途核对(11-12 live):镜像 107 条 open [PR] 无一针对 #5796/#5834;GitHub 侧无 open PR 覆盖两者。同家族唯一在途 PR 是 #5833(open,#5449 Part 1 = off-loop 收割 wedged 孤儿),其正文写明 "Part 2 — stranded callers after port drift — is tracked separately as a decision request" = 本线程,无并行修复冲突。已交付部分:#5799(merged 11-06,#5796 的 E 项)、#5972(merged 11-09,#5955 wedged 同车道强接管)。

    标签: bug · dsh · scope/wiring · p1 · needs-decision(已落库)。理由:批内含 #5834 条件性可用性丢失(在飞会话打不到模型且静默冻结)→ 按可用性口径 p1;#5796 本身 p2,取批内最高;两 issue 均在 dsh 协议接线层。

    背景一句话

    本批两个 issue 都是 11-06 起明确挂起等 owner 拍板的决策请求线程:#5796(dsh 长会话宿主面无收敛通道,选项 A/B/C/D 待决,E 项已交付)和 #5834(端口漂移后钉死调用方搁浅,选项组合 + C 阈值待决,B 主体已由 #5972 交付)。你在 #5796 的 11-12 评论确认本批由本聚合线程统一跟踪、源单机器人工作已停——故把两条线程的待决问题合并到这里一次裁决。

    现状核验(live,master 9674cfa,11-12)

    #5796(三层封锁,长会话 O(N)):

    #5834(钉死调用方搁浅,#5449 Part 2):

    待决问题(一次裁决)

    1. [feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796 选项组合:A/B/C/D 选哪些、什么顺序?
    2. decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834 选项组合 + 参数:确认 B 为主——是否补「漂移后 attach 形态下继续累积观察/回收首选端口」这一覆盖边界(上面发现)?C 的 T 值取多少(分钟级;现场参照 90 s 零误报)?A(运行时改写 baked origin)维持缓议?handler-hung-but-loop-alive 的第二道 belt 做不做?

    选项(各带代价)

    #5796:

    八问

    1. 是什么问题:dsh 车道两类系统级缺口被归到同一根因桶——①长会话宿主消息面没有收敛通道(每轮 O(N) 重建上传,3 万消息级实测步耗时分钟级);②代理端口漂移后,已运行会话把旧 origin 烤死在模型 URL 里,无人执行 re-resolve,请求静默挂到宿主 idle 上限(事故 826 s,0 字节)。
    2. 什么原因导致的:①单一压缩所有者教义(nudge 死锁无检测:同一 session 交替收到两种结构互斥的请求流(巨型单消息 ↔ 多轮)时不告警 #1729)→宿主 compaction 三层封锁(加载时 gate/wire guard/传输层增量仅 anthropic),回应侧(bili-authored client compaction: let the host's own compaction flow run, but bili writes the checkpoint #3733)早已建好且默认 ON,缺的只是触发侧接线,而触发侧开关被你 Model request is connecting directly (uncompressed) | 模型请求正在直连(不压缩) #3651 拍板移除;②baked-URL 重路由的唯一门(replacedOrigins)以「发送失败+respawn armed」为前提,卡死 holder 不产生发送失败,门永不打开;[PR] fix(launcher): force-takeover the wedged same-lane proxy holding the canonical port (#5955) #5972 补了端口回收侧,但观察窗口在漂移稳态下填不满(见上覆盖边界)。
    3. 影响范围与严重程度(按选项):
    4. 怎么修复的(推荐思路):[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796 走 A(一个旋钮两端联动,复用既有 bili-authored client compaction: let the host's own compaction flow run, but bili writes the checkpoint #3733 回应侧,不复活旧开关)+ C 随 v6 落地后 GA + D 作止血,B 缓议;decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834 走 B 补全(把 [PR] fix(launcher): force-takeover the wedged same-lane proxy holding the canonical port (#5955) #5972 的观察账本扩展到 attach 形态的 bring-up,首选端口收敛、调用方不动)+ C 地板(T 建议从分钟级起步,按现场数据调),A 维持缓议。
    5. 回归风险(按选项):
    6. 是否破坏缓存:[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796-A=每次 compaction 落地一次前缀 cliff(有意,频率≈开新会话);[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796-C 命中轮前缀字节保持不变(fastpath 设计目标);decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-B 补全/C 不动路由,不破坏现有会话缓存;decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-A 破坏(跨实例无共享 store)。
    7. 是否改了设计方向:[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796-A 把 dsh 车道从「宿主永不压缩」调整为「宿主触发、bili 应答」——单一所有者框架内的微调(所有者仍是 bili);decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-B 补全强化既有方向(调用方不动、端口收敛回首选,契合 wire identity 稳定偏好);decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-A 才是方向性变更(运行时改写 baked origin)。
    8. 是否引入了新的配置:[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796-A 复用现有 BILI_DSH_AUTHORED_COMPACTION/dsh.authoredCompaction(语义扩展:同时决定加载时行状态,不加新键);[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796-C 复用 rollout.features.pluginFullResendWatermark;decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-C 的 T 是新 knob → 按配置面纪律由你定值(或我按内部常量实现、不进配置面,二选一);其余不引入。

    选项对比表

    条目 解决什么 工作量 风险 与既往拍板的关系
    #5796-A 接通触发侧 宿主面自然收敛(根治) 中小 中(cliff+边缘,测试钉) 反转 #3651 加载时一半;回应侧=#3733 你已接受的方向
    #5796-B OpenAI 增量 上传腿(结构性) 大 中高 不碰教义
    #5796-C 水位 GA proxy 腿+内存 极小 低 rollout 决策,等 v6 #5652
    #5796-D 迁移工具 手动止血出口 中 低 新功能
    #5834-B 补全 漂移稳态下首选端口回收 中 中(bring-up 面) #5972 已交付主体=你已合入的同机制延伸
    #5834-C 地板 静默挂死→命名错误 小 低(T 取值) 报告人定位为非谈判底线
    #5834-A 兜底 残差 pinned caller 中 高(#394/缓存) 报告人+前序分析均建议缓议

    推荐 + 不决定的默认行为:推荐 #5796 走 A(+C 随 v6 GA、D 作止血、B 缓议),#5834 走 B 补全 + C 地板(A 缓议)。你不拍板:两线程维持现状——#5796 只有已交付的 E 生效,三层封锁不动;#5834 维持现状(绕行=restart dsh)。本批不开 PR——剩余根治项全部在既有 owner 门禁之后(A 反转 #3651 拍板、C 的 T 是配置面决策、B 补全触碰 bring-up load-bearing 面),拍板后按选项拆 PR 推进。

  3. ranxianglei commented on Nov 12, 2026

    @ranxianglei
    OwnerAuthor

    本单为分类板重复创建,按 owner 指令全部关闭并统一重建(2026-11-12)。新聚合单将使用稳定 token 去重,不再按标题匹配。

  4. ranxianglei commented on Nov 12, 2026

    @ranxianglei
    OwnerAuthor

    🤖 Powered by ework · qwen3.8-27b

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

    收到。本单由你关闭并统一重建(稳定 token 去重),我不执行关闭操作。

    待决状态不变:我上一条 🔶 需要决策 回复中列出的两组选项(#5796 A/B/C/D 组合、#5834 B补全+C地板+A缓议 + T 取值)均未拍板,新聚合单建立后需将决策请求迁移过去,我在新单继续等待你的裁决。

    八问(根因线程终局)

    1. 这是啥问题:dsh 车道两类系统性缺口——①长会话宿主消息面无收敛通道(>10k msgs 开始疼,3 万消息级每轮 O(N) 重建上传,实测步耗时分钟级);②代理端口漂移后已运行会话把旧 origin 烤死在模型 URL 里,无人执行 re-resolve,请求静默挂到宿主 idle 上限(事故 826 s,0 字节)。触发条件:① dsh 长会话持续运行;② 孤儿代理持有首选端口 + 新实例漂移到 +1 + 在飞会话已 baked 旧 origin。
    2. 根本原因是啥:① 单一压缩所有者教义(nudge 死锁无检测:同一 session 交替收到两种结构互斥的请求流(巨型单消息 ↔ 多轮)时不告警 #1729)→ 宿主 compaction 三层封锁(加载时 gate src/agent/dsh-compaction-disable.ts / wire guard src/server/dsh-compaction-guard.ts / 传输层增量仅 anthropic src/agent/dsh-native.ts:2506),回应侧(bili-authored client compaction: let the host's own compaction flow run, but bili writes the checkpoint #3733 快照自答)早已建好默认 ON,缺的只是触发侧接线,而触发侧开关被 Model request is connecting directly (uncompressed) | 模型请求正在直连(不压缩) #3651 拍板移除;② baked-URL 重路由唯一入口 replacedOrigins(src/agent/native-intercept.ts:1917)以「发送失败 + respawn armed」为前提,卡死 holder(TCP 接受零字节)不产生发送失败,门永不打开(recover() 在 :1652);[PR] fix(launcher): force-takeover the wedged same-lane proxy holding the canonical port (#5955) #5972 补了端口回收侧但观察窗口在漂移稳态下填不满(src/launcher.ts:5235 attach 早退 → :5722 调用点不可达,观察计数停在 1 < WEDGED_MIN_OBSERVATIONS=3)。
    3. 如何修复:已交付——[PR] Badge slow sessions in the web panel + document the compression/host-history boundary (#5796) #5799(E 项:面板长会话徽标 + README FAQ,merged 11-06)、[PR] fix(launcher): force-takeover the wedged same-lane proxy holding the canonical port (#5955) #5972(B 主体:wedged 同车道强接管,merged 11-09)、[PR] fix: reap wedged orphaned proxies off-loop when the owner dies (#5449) #5833(Part 1:off-loop 孤儿收割,open)。待拍板后推进——[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796-A(接通触发侧,gate 条件从「bili active」改为「bili active 且 authored-compaction 关」)、decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-B 补全(观察账本扩展到 attach 形态 bring-up)、decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-C 地板(T 秒级 busy 持续判定 → fail-fast 命名错误)。
    4. 能否合并/关闭:本线程无 PR 可合并(所有剩余根治项均在 owner 门禁之后:A 反转 Model request is connecting directly (uncompressed) | 模型请求正在直连(不压缩) #3651 拍板、C 的 T 是配置面决策、B 补全触碰 bring-up load-bearing 面)。线程本身由你关闭重建,我不执行关闭。
    5. URL:源 issue #5796(open,8 评论,选项 A/B/C/D 待决)、#5834(open,5 评论,选项组合+T 待决);已交付 PR #5799(merged)、#5972(merged);在途 PR #5833(open,Part 1 收割)。
    6. 影响面:[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796 波及所有 dsh 长会话用户(性能退化,绕行=开新会话);decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834 波及孤儿+漂移事件的所有在飞原生车道会话(dsh/pi/opencode/omp/zcode/kimi,条件性可用性丢失,绕行=restart dsh)。代码路径:src/agent/dsh-compaction-disable.ts、src/server/dsh-compaction-guard.ts、src/agent/dsh-native.ts:2506、src/agent/native-intercept.ts:1917/:1652、src/launcher.ts:5235/:5660–5666/:5722。
    7. 测试:[PR] Badge slow sessions in the web panel + document the compression/host-history boundary (#5796) #5799 由面板徽标单测 + README 文档钉;[PR] fix(launcher): force-takeover the wedged same-lane proxy holding the canonical port (#5955) #5972 由 tests/issue5955-wedged-takeover.test.ts(7 测试)+ tests/issue5449-offloop-owner-reap.test.ts(7 测试,[PR] fix: reap wedged orphaned proxies off-loop when the owner dies (#5449) #5833)钉;decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-B 补全/C 地板尚未实现,无测试。
    8. 风险:[feat][dsh] Long sessions have no convergence path: compaction gated off on both sides, incremental lane full-resends on OpenAI wire | 长会话没有收敛通道:compaction 双向封锁 + 增量车道全量重发 #5796-A 每次 compaction 落地一次前缀 cliff(有意,频率≈开新会话)+ drift 边缘 case(测试钉);decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-B 补全触碰 bring-up 流程(load-bearing,人工评审档),holder 复活 flap 由既有 patience+birth-stamp 保护约束;decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-C T 过紧会误判合法 busy([Bug?] Under high load, health check timeouts appear to be misinterpreted as "proxy unavailable": large session requests | [Bug?] 高负载下 health 探活超时疑似被当成「代理不可用」:大会话请求被本地拒发(0.1.199 / plugin native) #3654 类);decision request: pinned callers stranded on drifted proxy port after orphan reap — #5449 part 2 #5834-A(缓议)跨实例 desync(无单实例守卫:多个 bili 代理进程并存共写 sessions 目录,伴随孤儿 ref、有注册表无 transcript、计数自相矛盾的污染簇 #394 类)+ 前缀缓存破坏(Multi-instance posture is undocumented, and "/__bili/replicas" means session checkpoints — not pod replicas #3633),高危。
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