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
⚠️ COMPRESSION REJECTED — QUALITY GATE FAILURE
Range: m00001–m00005
Reason: Summary too short
Original: ~1000 tokens
Summary: 18 chars
Ratio: 222.2:1
Retention: 0.45%
Gate layer: L1-length
rougeF1: ?
top20Recall: ?
Retry: rewrite a more complete summary that preserves critical details
(file paths, decisions, exact values, errors) and call compress again on
the same range — the gate re-evaluates automatically. Full compression
rules are already in your system prompt. If you are confident the summary
is correct despite the metrics, add "acknowledgeRisk": true to bypass the
quality gate on your next compress call.
Activity
ranxianglei commentedon Sep 15, 2026
Triage 结论(Bug 类,三步审核通过)
buildQualityRejectionError(lib/compress/quality-gate/rejection.ts)把完整的HOW_TO_COMPRESS_RULES(4,936 字符 ≈ ~1,234 tokens)外加一段多行 CRITICAL 警告嵌入返回给模型的错误信息。而且同一份规则已经存在于 ACP 系统提示中(lib/prompts/system.ts:58,每次请求都发送)——拒绝时注入的这部分是 100% 冗余内容,你截图里的 KEEP VERBATIM / DROP / PRIORITY / KEEP MARKERS 全段都是重复注入。分析中发现并一并修复的两个附加问题:
result.reason(如 "Summary too short: …" / "Content coverage too low: …")此前根本没有出现在消息里——这恰是你要的"失败原因"——已补上;qualityGateRetryPending置位后才生效)。已修正措辞。效果:单次拒绝的注入量从 ~5.4K 字符(~1.4K tokens)降到 ~600 字符(~150 tokens),减少约 85%。gate 本身的拦截行为不变;E2E fake-LLM 依赖的标记字符串(
COMPRESSION REJECTED/QUALITY GATE FAILURE)保留在头部。全量测试 1,133 pass / 0 fail,typecheck/build 通过。重复判定:与 #339 相关但不重复——#339 讨论的是参数语义与交互设计(
dangerous残留、acknowledgeRisk交互、advisory 模式),本 issue 是拒绝 payload 的上下文消耗问题,两者独立处理;advisory 模式等设计议题仍留在 #339 由 owner 拍板。PR: #397 (双 agent 评审进行中,完成后更新)
ranxianglei commentedon Sep 15, 2026
进展更新:评审与 CI 全部完成,PR 可以合并(合并操作按规范由人工执行)
rejection.ts换回去跑新测试,3 个新/改测试如预期失败(缺 reason / 规则被重新内嵌 / 5811 字符超预算),恢复后 15/15 全过,证明新测试确实能抓住本 bug。两条 NIT 已直接修复并推送(补Retry:断言;acknowledgeRisk 生效窗口措辞精确化为"下一次 compress 调用"——qualityGateRetryPending在每次 compress 调用开始时清除)。PR: #397 — 请 owner 确认后自行合并(Agent 无合并权限)。
Merge pull request #397 from ranxianglei/2026-09-15_concise-quality-r…