Repository navigation
[PR] feat(compress): compress-at-fold-point default on after real-model verification - #5483
ranxianglei wants to merge 4 commits into
Conversation
📦 Built Package ArtifactBranch: Latest build — install this exact versionnpm install -g billion-context@0.0.7901-pr.5483.80601eeThis exact version is immutable and reproducible. The rolling Recent builds (commit → version)
Download artifact
tar xzf billion-context-pr5483.tgz
npm install -g packageInstall instructions are refreshed on each push. |
|
review |
…e with the new default-on Review follow-up on the default-on flip: the interactive web panel and two comments still described the pre-flip default-off behavior. - web panel toggle (client.ts cafRow): mirror the message-ts default-on row — checked-by-default when unset; uncheck writes an EXPLICIT false instead of deleting the field (deleting would silently resolve back to on, so the panel could no longer disable the feature). - web help text (i18n zh/en): default off -> default on. - plugin-render.ts: refresh the KNOWN-ASYMMETRY note whose ships-off-by-default justification no longer holds; the divergence now bites mainly on a per-tier opt-OFF. Config-panel representation only; no change to the compression pipeline.
(ai: vllm-qwen/qwen3.8-27b) 查重:不重复 —— 本 PR 是已合并的 #5471(compress-at-fold-point opt-in)的「转正」延续,不是重复造轮子。我通读了 diff 与 做了什么:独立审了这个默认翻转(方向/回归/代码/测试/diff 整洁度),并在 PR 分支就地修掉 3 处翻转后遗留的 UI/文案不一致,已推送 commit 核心翻转本身:正确 ✅
发现的 3 处遗留(已就地修,pushed
残留(非阻塞,建议排个后续): 两点小提醒(可不处理):① commit message 和代码注释引的是 #5470,正文写「#5471 已合并」——大概率 issue/PR 号配对或笔误,不影响功能,提一句核对。② 非标量文件值(如 八问
判定:可合 —— 核心翻转正确、文档/测试齐、无 kernel 改动;我补的 3 处是表示层对齐(不改压缩管线),已 push 待 CI 绿。当前 |
…default-on fold-point (#5483) - cache-proof / cache-seam-probes / fold-round2-shape: pin BILI_COMPRESS_AT_FOLD_POINT=off — these provers compare adjacent bodies element-wise and do not yet declare the carrier move as an expected divergence; they keep proving the conservative layout (its determinism is covered by kernel/tests/relocate-compress.test.ts) until a dedicated default-on byte-stability proof lands (follow-up). - e2e-compress-cascade: zero-config contract flipped — resolveRequestConfig now stamps compressAtFoldPoint:true/clearThinking:false instead of returning the untouched base; assert exactly base+those two stamps. - storage-render goldens: regenerated via scripts/update-storage-render-goldens.ts — intentional render-contract change (default-on is the shipped layout), new stateDigests match the post-flip pipeline.
|
收到,三点确认:
S4 per-tier 不对称:同意单列 follow-up,不并进本 PR(v1 行为不变、已有注记)。 |
(ai: vllm-qwen/qwen3.8-27b) 三点都收到,谢谢确认。我独立审了你新推的 CI 修复 commit 对
已立跟进 issue:#5503(你已同意单列,我把两处收尾合并进一个清单管理):
八问
判定:可合 —— 核心翻转正确、文档/测试已调和、无 kernel 改动;我那 3 处表示层修复 + 你这笔 CI 修复都在分支上(头 |
…n + guard the regenerator (#5483) The 6ad3f0b goldens were regenerated with a bare 'node --import tsx' run, which resolves XDG state roots to the developer's REAL production tree. CI runs every suite under tests/preload-test-env.mjs (hermetic mkdtemp roots), so its persisted-state bytes (nudge/tsStamps/stats/metadata) never match machine-baked digests — stateDigest 345645bd... vs baked b641a076..., reproduced byte-exact locally only when the preload chain is attached. - regenerate all four pins under the full ci.yml PRELOAD_ARGS chain (new chat pin == the digest CI itself computed at 6ad3f0b) - guard scripts/update-storage-render-goldens.ts: refuse to run unless an isolated tmpdir root is active, print the canonical command - point both failure hints at the guarded regenerator
#5471 已合并(opt-in 生效)。真实模型验证(含 01a195ec lane 全链路审计)与 owner 本地试用均通过,本 PR 把开关 A(
compressAtFoldPoint)转正为默认开;开关 B(clearThinking)保持默认关。改了什么
resolveCompressAtFoldPoint兜底 false→true:env/文件都没配置时 = 开(重放视图里的 compress 调用对固定挪到它自己的折叠点,布局 [已折叠区]–[调用对]–[保护消息])。website/config-reference/compress.yamldefault "true"、CONFIGURATION.md / CONFIGURATION.zh-CN.md、website bundle(gen-config-docs 产物逐字节一致)。resolveRequestConfig门控(env=off 必须在零 compress 配置的 lane 上也能关掉默认;两项都为假时短路保持字节级不变)。回滚
BILI_COMPRESS_AT_FOLD_POINT=off,或配置文件"compressAtFoldPoint": false→ 回到旧版尾部布局,字节级一致。验证
CI 修复(6ad3f0b)
默认开翻转后全量套件红了 14 个测试,全部是"字节稳定型"断言撞上新的合法重排,分三类处理:
scripts/update-storage-render-goldens.ts重新生成——golden 钉的是"实际发出去的字节",默认开就是新出厂布局;新 stateDigest 与翻转后的管线逐位一致。属该文件头声明的"deliberate render contract change"regen。compressAtFoldPoint:true+clearThinking:false),不再 identity base;断言精确到"base 加且仅加这两个键"。BILI_COMPRESS_AT_FOLD_POINT=off继续证明保守布局的字节稳定性;新默认的确定性已由 kernel relocate 测试覆盖,专门的 default-on 字节稳定证明列为 follow-up(不削弱现有证明)。另有
host compaction(anthropic) decimation用例在本机 master 上也失败、CI 四个 wire 全过 = 本地环境特有,不在本 PR 范围。编号说明
#5470 = issue 号,#5471 = 已合并的实现 PR 号;commit/正文里两处都出现是正常的,非笔误。(评审 bot 提醒项。)
Follow-up(不进本 PR)