#11 抓包默认流式 + 单一聚合预算 + store 收敛 - #27
Merged
Merged
Conversation
- AI 流式响应默认 tee/pass-through(不再需要 MAGIC_PROXY_PRESERVE_ STREAMING 选择性开启);首块延迟不再等完整响应 - CaptureAccumulator:每 flow 单一聚合内存预算(request 快照与响应 累计共享总额但缓冲分离——快照不混入响应文本);大量小 message 无法 绕过(按字节累计);tee 原样下发(预算耗尽/异常零影响);captured() UTF-8 字符边界安全(前缀位数判断残序列) - truncated/captured_bytes/total_seen 语义明确;budget 经调用点取模块 常量(monkeypatch 可测) - store:MAX_RECORD_BYTES 单条上限(append 前拒收)+ append 后即时 _trim_store 收敛(预算感知留新删旧——绝非全清) - 测试:accumulator 8 例(预算聚合/UTF-8/绕过/直通)+ store 2 例 (超大拒收/append 后收敛)+ addon 新契约(默认 tee/捕获量/有界) - ADR-001 字段兼容:record 结构不变,新增语义字段向后兼容 pytest 1434 全绿。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
摘要
CaptureAccumulator:每 flow 单一聚合内存预算——request 快照与响应共享总额但缓冲分离;字节级累计(大量小 message 无法绕过);UTF-8 边界安全截断验收对照
pytest 1434;Closes #11
🤖 Generated with Claude Code