Repository navigation
Conversation
⚠️ MODEL-FACING TEXT CHANGE 外部摘要失败回执明确说明服务恢复条件,避免诱导调用者反复更换范围。 将外部摘要全失败和无效配置接入现有连续失败保护;达到阈值后在派发前拒绝,配置、有效凭据、摘要长度设置变化或冷却到期可恢复,成功折叠清零。零派发的共享队列拥塞不计入服务失败。 Fixes ranxianglei#6903 Co-Authored-By: Claude Code <noreply@anthropic.com>
Owner
(ai: vllm-qwen/qwen3.8-27b) 查重: 不重复。 #6905 是「外部摘要全失败绕过连败保护」这一缺口的唯一 PR;相关条目互补而非并列——#6890(非 fetch 类失败诊断命名,PR 正文明确不复制其实现)、#6885(默认超时预算过小导致长载荷 100% 失败,机制不同,本 PR 不改默认超时预算)、#3638(持久失败背景现象,#6903 是其中独立可验证的缺口)。 标签: bug + scope/kernel + p2(压缩引擎外部摘要路径的保护缺口,缺陷类;会话可用但 compress 反复失败浪费外部调用,有绕行,故 p2)。 结构化八问
验证(均在 PR head
小发现(非阻塞,不要求修改)
结论: 可合并。 方向正确(根因修复而非治标)、实现完整(#6903 的 7 项要求全覆盖)、测试真实(11/12 在未修复 master 上失败)、CI 全绿、diff 干净(4 文件 +235/-4,全部与本修复相关)。agent 不代合并,请自行合并: #6905 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要全失败和配置无效的回执现在附带连续失败保护与恢复条件;达到阈值后的回执明确要求继续原任务、暂停压缩。新增完整回执断言固定模型可见的失败计数及冷却说明,避免模型误以为反复换范围即可修复外部服务。
Fixes #6903
外部摘要的所有候选失败时,原分支直接返回,绕过既有
compressFailStreak。因此即使两个候选连续返回 HTTP 403,后续compress仍会继续派发。本修复将该路径和无效配置路径接入现有会话保护:三次连续失败后在下一次候选派发前拒绝;已阻断的调用不会延长冷却。失败时保持原消息及压缩状态。恢复沿用现有配置与十分钟衰减机制:摘要设置、解析后的凭据、全局摘要长度或有效单次
summaryMaxChars变化后允许重试,成功折叠清除计数。元数据仅保存配置指纹。普通解析/范围错误与外部摘要失败分别统计连续次数;共享队列拥塞且没有实际候选派发时不累计服务失败。本 PR 聚焦重复失败保护,关联 #6890 的错误诊断改进和 #3659 的更广摘要改进;不复制其诊断实现,不修改默认摘要超时预算。保护位于共用的
applyConfiguredCompression,不改变 plugin/proxy 两种模式的摘要承载格式。不新增配置字段,也不修改 kernel、版本或依赖锁文件。验证:
node --import ./tests/preload-test-env.mjs --import tsx --test tests/external-summary*.test.ts tests/compress-loop-breaker.test.ts tests/compress-fail-guard.test.ts:206 通过、0 失败、1 跳过。npm run typecheck、npm run build、git diff --check;构建的dist-import-annotations与dist-external检查通过。🤖 Generated with Claude Code