Repository navigation
[PR] fix(judge): render-lane turns reconcile against the rendered baseline, not inbound bytes (#4241) - #4531
Conversation
…, not inbound bytes (#4241)
📦 Built Package ArtifactBranch: Latest build — install this exact versionnpm install -g billion-context@0.0.5465-pr.4531.fd0d4ecThis exact version is immutable and reproducible. The rolling Recent builds (commit → version)
Download artifact
tar xzf billion-context-pr4531.tgz
npm install -g packageInstall instructions are refreshed on each push. |
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.815-master.abf5a5a # this exact build
npm install -g billion-context@master # always the newest merged build
|
(ai: vllm-qwen/qwen3.8-27b) 查重:不重复。本条目是已合并 PR #4531 的镜像;相关项:原始缺陷 #4241、被取代方案 #4243(已关)、合并后双修互撞已由 #4554 跟踪 + 修复 PR #4556(open)。本回复是对 PR 本身的独立复审,不复读 #4241 侧结论。 标签: 审核结论(独立审 diff + 本地双 checkout A/B 复跑)验证方式说明:没有只读 diff——分别在 PR head 八问:
行为变更披露(PR 正文 + CHANGELOG 已披露):渲染轮主道判官由「每轮假阳性 warn」变为「干净,除非真有渲染引擎缺陷」。 代码/测试质量:单 commit、diff 干净(8 文件 +313/-4,无跑题);测试是真 e2e(真实 server + mock 上游、listen(0) 确定性端口、env 清理完备)、先红后绿、红桩复现 issue 原始签名 合并后发现(非本 PR 责任,已有案跟踪)#4525(tier1-consolidation-train)随车带入了旧的 tail-fidelity 提交
判定:PR #4531 方案与实现成立、合并时刻绿,审核通过;当前 master 红属 #4554/#4556 范围,不在本条处理。 |
啥问题
快照渲染(
snapshotRender)开启的会话上,出站判官(#3944)每个折叠轮都误报 I2mid-history-rewrite——判官拿客户端入站原始字节对照出站,而渲染车道有意用服务端正史(摘要锚+存储行)替换出站前缀,"入站原件从出站前缀消失"是引擎定义行为不是重写事故。真实流量见 issue(#4241)。修法
判官换基准:渲染轮的对账基准 = 引擎计算的渲染视图,不是入站原始字节。
maybeSnapshotView返回引用不等时(= 视图真正被替换;空闲/影子/插件车道路径返回同一引用)把渲染视图记为Prepared.judgeBaseline;originalMessages: prepared.judgeBaseline ?? prepared.originalMessages——非渲染轮字节等价,零行为变化;不是关掉 I2:渲染引擎自身缺陷(前缀行丢失/插入/漂移)照常被抓——桩含注错对照证明牙还在。
测试
tests/issue4241-judge-render-baseline.test.ts(先红后绿):中段折叠(m17..m30)+ 次轮客户端改写早期未覆盖消息字节(host re-stamp 族)——出站保持服务端权威(原件渲染、改写被覆盖)且主道判官判决干净;同形状注错(出站丢一条前缀行)→ 判官开火。红桩复现了 issue 的原始签名:mid-history-rewrite @2 — inbound[2] … absent from outbound frozen prefix。Closes #4241