Skip to content

[PR] fix: repair #4525-train merge casualties — sidScope straggler, judge render-lane union, codex state-mode ledger - #4556

Closed
ranxianglei wants to merge 1 commit into
masterfrom
2026-10-24_sidscope-merge-casualty
Closed

ranxianglei wants to merge 1 commit into
masterfrom
2026-10-24_sidscope-merge-casualty

Conversation

@ranxianglei

Copy link
Copy Markdown
Owner

(ai: zai/glm-5.3)

Fixes #4554

这是啥问题?

master 在 #4525(tier1-consolidation-train,12:22 合并)后叠了三层红,本 PR 修其中三处合并机械损伤(根因链见 #4554):

  1. typecheck 红 + 运行时 ReferenceError:src/agent/dsh-native.ts:1287 残留旧名 sidScope.getStore()——[PR] merge: tier-1 consolidation train — 37 green PRs as one (conflicts resolved, #4294 reverted) #4525 的 tier1 整把 sidScope 升级成 dispatchScope({sid, msgIds}),漏改这一个消费者。炸 fork-discovery 路径,打死 dsh-msgids/dsh 增量轮次:标记竞态可让增量体不带标记直发,模型在无历史状态下静默答错(需开启 rollout 才触发) #3370/ambient-blind/recall 家族。
  2. Egress Judge false positive on Snapshot Render Lane I2: prefix comparison baseline needs to be aware of the render view | 出站判官对快照渲染车道误报 I2:前缀比对基准需要感知渲染视图 #4241 判定双修互撞:[PR] fix(judge): render-lane turns reconcile against the rendered baseline, not inbound bytes (#4241) #4531(先合)的渲染基线保牙 vs 车上旧设计(3f181f5)的渲染前缀豁免,relay.ts 同时接两者 → 豁免卸牙,teeth 测试红。
  3. BILI_CODEX_STATE_MODE 台账缺失(Bili Codex's startup mechanism has various issues that currently rely on band-aid patches. We need to explore a new mechanism to thoroughly resolve these problems. | bili codex 启动机制带了各种问题需要狗皮膏药打补丁,探索新机制彻底解决这些问题 #2222 随 [PR] feat(codex): concurrent multi-session under the same CODEX_HOME + CODEX_SQLITE_HOME shared state DB (#3203 / #2222) | [PR] feat(codex): 同一 CODEX_HOME 并发多会话 + CODEX_SQLITE_HOME 共享状态库 (#3203 / #2222) #3321 进车)→ lifecycle-ledger-guard 红。

如何修的?

  1. dsh-native.ts:1287-1288 两行改 dispatchScope.getStore() + scoped.sid.length > 0(与 attributionOf 同惯用法)。
  2. relay.ts:judge 调用点不再传 renderTailStart——judgeBaseline 在场时它既冗余又卸牙(豁免为「原始 inbound 基线」设计;渲染基线下 legacy I1/I2 全副武装即无假阳性)。judge 的 renderTailStart API 保留为逃生门(unit 钉不受影响),snapshotRenderTailStart 元数据照记(诊断)。取并集:保 [PR] fix(judge): render-lane turns reconcile against the rendered baseline, not inbound bytes (#4241) #4531 的牙,撤车上豁免的接线。
  3. LIFECYCLE.md §1 补 BILI_CODEX_STATE_MODE 行(Bili Codex's startup mechanism has various issues that currently rely on band-aid patches. We need to explore a new mechanism to thoroughly resolve these problems. | bili codex 启动机制带了各种问题需要狗皮膏药打补丁,探索新机制彻底解决这些问题 #2222,auto 默认)。

验证(6d7c587 复现红 → 修复绿)

不修的(另案 #4555)

epoch-confirm 家族两条(= #4554 末段):非机械伤,需要 owner 判 #3641 语义后统一测试或实现。

CI 预期

本 PR 的 test legs 会带 #4548 的 stale-kernel 签名(pretest 缓存旧 mtime 守卫误判,#4549 修)——等 #4549 先合(无文件交集);本 PR 合并后 static-gates/lifecycle 两道直接转绿,legs 剩余红应只剩 #4555 的两条。

…ler, judge render-lane union, codex state-mode ledger row
@github-actions

Copy link
Copy Markdown
Contributor

📦 Built Package Artifact

Branch: 2026-10-24_sidscope-merge-casualty (4e3c0bf)

Latest build — install this exact version

npm install -g billion-context@0.0.5500-pr.4556.30651ec

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
4e3c0bf billion-context@0.0.5500-pr.4556.30651ec build

Download artifact

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

Install instructions are refreshed on each push.

@ranxianglei ranxianglei changed the title fix: repair #4525-train merge casualties — sidScope straggler, judge render-lane union, codex state-mode ledger [PR] fix: repair #4525-train merge casualties — sidScope straggler, judge render-lane union, codex state-mode ledger Oct 24, 2026
@ranxianglei

Copy link
Copy Markdown
Owner Author

(ai: zhipuai-lb/glm-5.3)

陈旧票清理(第三批动作①):目标 issue #4554 已关。为避免重复劳动关闭本 PR;如判断有误请直接 reopen 并留言。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

master red after #4525 train merge: sidScope rename straggler + #4241 judge double-fix collision + missing BILI_CODEX_STATE_MODE ledger row

1 participant