Repository navigation
[PR] Remove head/tail tags from the compression success receipt (keep excerpts) + add collapse timestamps + annotate kernel a | 压缩成功回执去掉 head/tail 标签(保留摘录)+ 打折叠时间戳 + kernel 锚点引文标注来源(模型可见文本,4 处) - #7105
Conversation
📦 Built Package ArtifactBranch: Latest build — install this exact versionnpm install -g billion-context@0.0.10754-pr.7105.ac827baThis exact version is immutable and reproducible. The rolling Recent builds (commit → version)
Download artifact
tar xzf billion-context-pr7105.tgz
npm install -g packageInstall instructions are refreshed on each push. |
(ai: vllm-qwen/qwen3.8-27b) 这是 [PR] 镜像单:PR 已建好(上一轮会话 01a1e89d 续),本轮做核对 + 修 CI 红 + 报告。 核对结论:代码与描述一致,4 处改动全部在位
CI:40/41 绿,唯一红已就地修掉
本地验证(定向)
标签:bug + p2 + scope/kernel(按 PR 自身 diff 判定:修模型可见文本缺陷;触发面 = 弱模型 + 含折叠的长会话;机制在压缩回执路径,含 kernel 一处)。 八问
判定:代码核对通过,唯一 CI 红已修并推送(head |
f1886f9 to
0114827
Compare
(ai: vllm-qwen/qwen3.8-27b) 跟进:分支被 force-push 成修订版实现( 新方案核对
lock-sync 第二次红 = 同一个机制的第二条腿
本轮操作
状态:CI 在 runner 队列里排队(同分支已有 2 个 run 在列,e2e 车道对新 head 已全绿),等主 CI 出结果;合并留给人。 |
…, fold timestamp, kernel anchor quote labeled as historical⚠️ MODEL-FACING TEXT CHANGE(四处,均为模型可见回执文本;消费链推演 + receipt 级回归见 PR body) kernel-change: last-user anchor 引文标注来源(历史引文≠新用户消息),owner 已批准(2026-11-18 会话 01a1e89d 诊断);机械性措辞修复 + 复现用例。 会话 01a1e89d(ti_an, qwen3.8-27b)诊断的三类混淆载体都在压缩回执里: ① 指纹行去掉 head/tail 标签、保留摘录: · b1 full summary 10600ch [2026-11-17 10:35:14 – …] · head "…" … tail "…" → · b1 full summary 10600ch [2026-11-17 10:35:14 – …] "… … …" 标签读起来像「只存了开头和结尾」,触发模型对刚建的块做防御性 decompress(#2544 误读源头是标签本身);摘录保留 #1294 自查价值 与 #1615 surrogate 切口守卫(safePrefix/safeSuffix/scrubLoneSurrogates)。 ② 成功回执头追加折叠时刻:… tokens saved.] folded at 2026-11-18 10:05:12 回执是唯一一类引用用户话语却无 <acp> time= 的系统行;提交时墙钟, 回执是全新尾消息,无缓存后果。 ③ #2544 指引句去掉与摘录绑定的前半句(search_context 优先的检索路由保留)。 ④ kernel(unit-projection.ts)保护带排除警告里的 Last-user anchor 引文 标注为历史引文:Last-user anchor (historical quote, NOT a new user message): m00003 "…" —— 防模型把回执里的用户话语引文当成刚说的新指令 (现场:编出 "user's latest message (m02386/m02387)" 并要求执行)。 kernel 0.0.198 → 0.0.199。 金色快照(有意更新,见 PR body):② 的 folded at 是新墙钟形状, tests/golden-storage-drive.ts 按既有 STAMP_ATTR/STAMP_SPAN 同类归一化 新增 FOLDED_AT_RE(5 处 digest 通道),重生成 tests/golden/storage-render/ 四个快照(仅 fold 轮 sha + state digest 变化)。 回归:tests/compress-fingerprint-refold.test.ts(无标签形状 + #1615 四个 surrogate 切口/清洗用例钉新格式)、tests/issue4313-fingerprint.test.ts、 tests/issue4313-message-timestamp-toggle.test.ts、tests/text-safe.test.ts、 tests/issue5173-last-user-anchor.test.ts、tests/issue6021-image-offload-anchor.test.ts、 kernel/tests/issue5109-anchor-skip-injections.test.ts、 tests/golden-storage-render.test.ts(5/5)、storage-engine-proofs 四 wire 平价(4/4)。 本地:7 文件 66/66、8 文件关联清扫 61/61、kernel 套件 1640/1640、typecheck/build 绿。 全量以 CI 为准。 Ref: session 01a1e89d diagnosis (2026-11-17), plan approved by owner 2026-11-18.
f5e604b to
497efc7
Compare
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.1232-master.3f0c1d2 # this exact build
npm install -g billion-context@master # always the newest merged build
|
…nder golden conflict Master's lean-compress-receipt fix (#7105) and the PR's additive lastFoldDrift metadata field both touched the 4 storage-render goldens. Regenerated from the merged code (scripts/update-storage-render-goldens.ts) so the snapshots reflect BOTH changes; golden suite 5/5 green.
…eceipt reword + #6775 persisted fields) Master's compress success receipt change (497efc7, PR #7105) and the #6775 persisted-field work moved the persisted message shas and state digests. Regenerated all four storage-render goldens on the final rebased tree with scripts/update-storage-render-goldens.ts: wire shas are now byte-identical to master's pins; the only remaining delta vs master is this PR's own post-retire persist contract (retired-id anchor swap + digest fields).
…lict at 0.0.200 Master advanced past the PR base again (batch11 wave11 #6827, lean-compress receipt #7105, wire-client-sidecars #7083, p1 batch b2/b3, #7087, #7101 -> kernel 0.0.199, storage-render goldens regenerated for #6775 persisted fields, 400 files). Content hunks auto-merged (kernel/src/compress.ts, kernel/src/types.ts, all four storage-render goldens); the only conflicts were the three kernel version lines, resolved at 0.0.200 = master's 0.0.199 + this PR's kernel/src change, per the CI-enforced kernel version discipline. Targeted local verification: tests/golden-storage-render.test.ts 5/5, tests/storage-state-fields.test.ts 2/2, kernel issue6116/issue3769/ hide-consumed suites 27/27.
…eceipt reword + #6775 persisted fields) Master's compress success receipt change (497efc7, PR #7105) and the #6775 persisted-field work moved the persisted message shas and state digests. Regenerated all four storage-render goldens on the final rebased tree with scripts/update-storage-render-goldens.ts: wire shas are now byte-identical to master's pins; the only remaining delta vs master is this PR's own post-retire persist contract (retired-id anchor swap + digest fields).
修了什么
会话
01a1e89d(ti_an,qwen3.8-27b)诊断(2026-11-17)确认:压缩成功回执是唯一一类引用用户话语、却在线路上不带任何<acp>时间戳的系统行(user 消息都带time=,tool 结果全是裸文本)。弱模型扫尾部找「用户刚说了什么」时只能看到回执里嵌的引文/摘录,产生了三类混淆(现场:编出 "user's latest message (m02386/m02387) 要求一段 PR 总结",ref 与内容全是幻觉;对刚建的块做防御性 decompress)。四处文本改动:① 指纹行去掉 head/tail 标签、保留摘录
head/tail标签读起来像「只存了开头和结尾」,是 #2544 误读的源头;摘录本身保留(#1294 自查价值 + #1615 surrogate 切口守卫safePrefix/safeSuffix/scrubLoneSurrogates原样工作),两节摘录共一对引号。② 成功回执头追加折叠时刻
提交时墙钟(
formatTagTime(Date.now()));回执是全新尾消息、不进前缀缓存稳定区,无缓存后果;追加在原行内,回执行号结构不变。③ #2544 指引句去掉与摘录绑定的前半句
search_context 优先的检索路由保留。
④(kernel 0.0.198 → 0.0.199)Last-user anchor 引文标注来源
kernel/src/unit-projection.ts保护带排除警告:kernel-change: 机械性措辞修复(引文来源标注),owner 已于 2026-11-18 批准(会话 01a1e89d 诊断);版本按 kernel 边界纪律 bump。
金色快照更新(有意,非漂移)
② 的
folded at <时刻>是第三种墙钟形状(前两种:tag 属性time=、回执覆盖跨度[start – end],均已被tests/golden-storage-drive.ts归一化)。按同一类处理:新增FOLDED_AT_RE并接入全部 5 条 digest 通道(wire body / citeNorm / state / stateAligned / section+key),重生成tests/golden/storage-render/四个快照——diff 只有 fold 轮的 sha/bytes 与 state digest 变化,无形状漂移。消费链推演(#6855 规则)
folded at给回执一个绝对时刻,模型扫尾部时能区分「这是历史回执」而非「刚发生的事」。③指引句不再出现 head/tail 字样,与 ① 一致。④anchor 引文显式标注 historical,模型不会把它复制成新用户指令。回归
tests/compress-fingerprint-refold.test.ts(断言改无标签形状;[bug] summaryFingerprintLine 的 head/tail 裸码元切片产生孤立代理项 → 上游 JSON 400、会话永久卡死(#816/#828 同族第三站点;0.1.169 仍未修) #1615 四个 surrogate 切口/清洗用例保留并钉新格式)tests/issue4313-fingerprint.test.ts、tests/issue4313-message-timestamp-toggle.test.ts、tests/text-safe.test.tstests/issue5173-last-user-anchor.test.ts、tests/issue6021-image-offload-anchor.test.tskernel/tests/issue5109-anchor-skip-injections.test.tstests/golden-storage-render.test.ts(5/5)+ storage-engine-proofs 四 wire 平价(4/4)——上一轮 CI 红即此二者本地:7 文件 66/66 ✅、8 文件关联清扫 61/61 ✅、kernel 套件 1640/1640 ✅、typecheck + build + dist 守卫 ✅。全量以 CI 为准。
Ref: session 01a1e89d diagnosis (2026-11-17);方案 owner 2026-11-18 批准(先按简单的做 + 去 head/tail 标记)。