Repository navigation
小窗口路由下 compaction 会持续失败:摘要调用跟随会话路由导致「压缩自锁」 #7423
Replies: 3 comments 1 reply
|
This is the same defect as #5594 ("the summarization LLM call itself fails with context overflow"), re-reported on a small-window route — I analyzed that thread on 2026-09-04 (comment 18282109) and gave three fix directions and a regression invariant there. I re-verified the mechanism at HEAD today ( Still unbounded at HEAD. The summarization request replays the whole shadowed region with no input-side bound. What the 09-18/19 commits changed, and why it is not your case. Your route-resolution reading is right, and it is the documented precedence. The pressure path being unavailable on a small window is documented, not accidental — that is what makes the loop deterministic. README.md:78: "Small-window deployments must configure headroom that fits their capacity; lower One-step discriminator, so you can tell the two failure shapes apart. The auto listener emits a single warn per target when the pressure configuration cannot fit: Two notes on the report itself. First, it is truncated: the body is 550 characters and ends mid-list in the environment section ( Second, a correction to my own #5594 ruling. I closed that analysis with "core, not a plugin seam". At HEAD the mitigation half is mountable: The invariant I proposed in #5594 still pins this: after a failed compaction the surface is unchanged (the error close appends no surface node), yet the session must remain able to run the next summarization — i.e. the summary call itself must never be the request that overflows. A test that seeds a surface above |
|
Follow-up to my analysis above: the plugin mitigation I described is now published.
Mount it and name the route that has room: - insert:
- id: compaction-route-fallback
name: '@argszero/cordis-plugin-compaction-route-fallback'
config:
provider: big-window-provider
model: big-window-modelWhat it does about the self-lock in this report: it joins the public That is the difference from your own workaround, which is otherwise the same idea: configuring The boundaries are worth stating as plainly as the effect:
Evidence, since a plugin claiming to fix a report should be checkable: 25 tests against a real Your report's core observation stands unchanged, and the truncation note from my earlier comment still applies: the verification section the body promises never arrived, and the "switching the session route's window to the model's declared Max value" measurement is the one I would most like to see, because |
|
补充一组当前发布版上的量化证据,并更正一处根因表述。 环境与复现范围
量化结果
另有 3 次是 provider 明文拒绝、与上表不同源: 一处更正:这 52 次不是"摘要输入真的超过摘要模型窗口"原帖的机制描述(摘要请求复述整段历史、走同一条小窗口路由、自己也超窗)在代码层面成立,但这 52 次的观测数据指向一个不同的判定环节,值得区分开,因为它决定了修哪里: 声明容量与真实容量差 4 倍。 该路由所在 provider 块没有写 判定来自本地推断,且只在一种 finish reason 上运行。 pi-ai 的静默溢出检测是: // @earendil-works/pi-ai/dist/utils/overflow.js, Case 2
if (contextWindow && message.stopReason === "stop") {
const inputTokens = message.usage.input + message.usage.cacheRead;
if (inputTokens > contextWindow) return true;
}摘要是纯文本补全,finish reason 必然是 (因果方向标注: 仍然成立的、不可否认的代码缺陷无论上面走哪个分支,
本机止血与它的边界在 provider 块里逐模型声明真实容量(本机 7 个模型容量差 8 倍,131072 ~ 1048576,所以逐模型写而不是用 provider 级默认值)后,这 52 次的判定条件不再成立。 但这是止血不是根治:它修的是"声明值偏小导致的误判",没有修"回放无界"。真实的超窗输入(本机另有 3 次: EnglishSupplementary quantified evidence on the current release, plus one correction to the root-cause description. Environment. Counts. 250 Correction: those 52 are not "the summary input genuinely exceeds the summary model's window". The code-level mechanism in the original report holds, but the observed trigger is a different decision point, and that changes what to fix. Declared capacity is a quarter of the real one. The provider block declares no The verdict comes from a local inference that only runs for one finish reason. pi-ai's silent-overflow check (Case 2 of The indisputable defect still stands. Whatever branch fires, A local workaround, and its limit. Declaring each model's real capacity in the provider block removes the precondition for these 52 misjudgements. This is a workaround, not a fix: it corrects an understated declaration, not the unbounded replay. Genuine over-window input still fails the summary call (3 further cases locally: 2062740 / 2046111 replayed tokens plus a 65536 completion against a real limit of 1048576, traceable to a single 2251019-character HTML paste). The real fix is still to bound the replay by the summary target's capacity. |
Uh oh!
There was an error while loading. Please reload this page.
长会话切到小窗口路由后,会以
pi-ai detected context overflow(CONTEXT_WINDOW_EXCEEDED)每轮稳定失败。定位后发现问题不在模型,而在 compaction 的摘要请求本身也被同一个窗口限制住:
为 compaction 配置一个独立的大窗口摘要模型后问题消失;同时把会话路由窗口切到该模型声明的 Max 值后,
上下文立刻回到窗口内。已有实际验证结果(见末节)。
环境
0.1.6-alpha.2(@deepseek-ai/dsh-compaction-basic同版本)dsh-base,即已挂载compaction-basic+command-compact)All reactions