You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gate 的分支选择加剧了这一点(dist/index.js:2271-2298):refs 全部解析成功但内容不足时,落入兜底分支 Total compressible content too small (...). Combine more messages into your range(s)...;而已有的 already compressed … Run acp_status … CURRENT compressible ranges 引导分支只在 consumedRanges 非空时可达。对「解析成功但太小」的情况,模型得不到「去 acp_status 看当前可用范围」的指引——它只会继续按提示「合并更多消息」挣扎。
建议修复
kernel 侧重复失败升级:记录同一 session 内「规范化后相同的范围集合」的失败次数(规范化 = 每段取 min..max、整体排序),≥2 次时在错误消息追加升级段,例如: Repeat-failure guard: you have now requested this exact range set N time(s); it deterministically fails. Do NOT re-issue it. Call acp_status first and pick from its CURRENT compressible ranges.
这必须做在 kernel 侧才能覆盖 plugin mode(compress 在客户端扩展内本地执行,billion-context host 无法拦截其错误路径)。
gate 兜底分支补指引:当所有 refs 已解析且均存活、仅因 chars 不足被拒时,复用现有 liveHint 生成逻辑(Current active blocks span bX..bY …),把「Run acp_status / use current compressible ranges」附进错误消息。
Activity
ranxianglei commentedon Sep 16, 2026
[bot] 🏷 收到。已完成审核与代码定位,结论:问题属实,按你的方案实现中。
审核(先于实现)
CompressionState(src/types.ts:112)只有 blocks/messageRefs/tokenSnapshot/nudge/stats/absorbed/nextBlockId/nextRunId;applyCompression对同一失败请求每次返回逐字相同的错误,gate 拒绝路径(src/compress.ts:323-331)甚至原样返回input.state,失败不留任何痕迹 → 自我强化死循环成立。Total compressible content too small … Combine more messages…只在 consumedRanges 为空时可达且不含 acp_status 指引,而带指引的分支(src/compress.ts:321)要求 consumedRanges 非空。「解析成功但太小」恰好落进无指引的兜底,模型的唯一出路提示("合并更多消息")在该场景下不可执行。你的方案打到根因,不是治标。applyCompression,kernel 侧一处修改同时覆盖。查重:仓库内无重复 issue(已检索)。开始实现,完成后回 PR 链接。
ranxianglei commentedon Sep 17, 2026
继续
[-]kernel 缺少重复压缩失败升级机制(plugin mode 死循环无熔断);gate 兜底分支缺 acp_status 指引[/-][+]Kernel lacks a repeated compression failure escalation mechanism (plugin mode infinite loop without circuit breaker); gate fallback branch lacks acp_status guidance. | kernel 缺少重复压缩失败升级机制(plugin mode 死循环无熔断);gate 兜底分支缺 acp_status 指引[/+]ranxianglei commentedon Oct 23, 2026
查重: 不重复(open+closed issue/PR 均检索过 repeat-failure / circuit-breaker / retry-loop 主题;billion-context#847 是来源事件,host 侧、不同仓库)。
标签:
bugscope/kernelp2(缺陷类,内核压缩管线;p2 理由——失败有界:循环以流截断终止,state 不损坏,合法压缩不受影响,代价是特定条件下的 token 浪费与回合死亡;若你按「核心承诺失灵」判 p1,我改标)。已完成,PR: https://github.com/ranxianglei/acp-kernel/pull/515(分支
2026-10-23_repeat-failure-guard,基于 master 4d38906)八问
repeatFailures(旧快照加载为 undefined,merge 透传)。行为变更清单(旧 → 新)
顺手修(独立标注 commit):接线时发现
mergeCompressionState每次加载都静默丢掉hiddenOrphanRefs(#396 snap 功能)和lastPassIds(#462 echo 连续性)——两者都在一个 processTurn 内自愈、无数据丢失,但该重置并非有意。已修复并在 tests/persist.test.ts 加断言钉住。判定:实现完成,等 CI 全绿 + review。合并按仓库规则留给人工,请自行合并:#515
ranxianglei commentedon Oct 23, 2026
补充:PR #515 的 CI 已全绿(test node 22/24、build-artifact、pr-validation 全部 success)。本地定向套件此前也已全绿。现在只等 review + 人工合并:#515
test(repeat-failure-guard): pin escalation on the zero-counted gate b…