lili
51144f1a3b
feat(cheap): T5 Service 壳合成终结事件(run 崩快失败,封 600s 慢失败出口)+ 压缩崩根因坐实与 fail-open 补丁
- 压缩崩根因(venv 2.0.2 代码级证据,4 次实证 'important_discoveries' required):reply 每轮推理前
compress_context(_agent.py:609)→ generate_structured_output 用 SummarySchema json-schema(五字段全
required+maxLength,_config.py:11-53)强制 M3 tool_choice 产摘要 → dict 路 jsonschema.validate
(model/_base.py:566-567)对缺字段/超长抛 ValidationError → 非 retryable 直接 raise(_base.py:426-428)
→ _compress_context_impl 非 overflow 支 raise e from None(_agent.py:461)→ 穿透 reply;ChatService.run
吞异常不发终结事件(app/_service/_chat.py:166-176)→ driver 600s 慢失败
- ctx_compress_patch:fail-open 包 Agent.compress_context(压缩=旁路优化件,失败只跳过不杀主链;连续 2 次
断路防每轮白烧压缩计费调用;钉 2.0.2 不改 venv 本体,纪律同 m3_stream_patch);Service 与 CLI 两处 apply
- collector on_reply 增崩溃支:先 flush 收口采集,再 yield 合成 ReplyEndEvent(消费侧先 publish 到 bus →
driver 立刻收到回合终结按盘面快速失败),原异常原样重抛不掩盖;正常路零行为变化
- 测试 9 用例:成功透传/失败吞掉/2 次断路/成功清零/按实例隔离/apply 幂等;崩溃合成终结+异常上抛+崩溃路
flush/正常路不追加/合成兜底不遮原异常
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 14:21:34 -07:00
..
2026-06-29 01:04:55 -07:00
2026-06-29 01:04:55 -07:00
2026-06-29 02:34:06 -07:00
2026-06-29 02:34:06 -07:00
2026-06-29 02:34:06 -07:00
2026-06-27 08:47:13 -07:00
2026-06-30 01:39:06 -07:00
2026-06-26 02:42:14 -07:00
2026-06-27 02:01:20 -07:00
2026-07-03 14:15:59 -07:00
2026-07-02 13:34:57 -07:00
2026-07-02 13:34:57 -07:00
2026-07-02 21:09:44 -07:00
2026-06-30 01:39:06 -07:00
2026-07-03 00:08:22 -07:00
2026-06-26 11:00:00 -07:00
2026-06-26 02:42:14 -07:00
2026-07-03 14:21:34 -07:00
2026-06-28 02:17:41 -07:00
2026-06-27 10:41:16 -07:00
2026-07-02 23:48:41 -07:00
2026-07-03 14:17:54 -07:00
2026-07-02 23:48:41 -07:00
2026-07-02 21:09:44 -07:00
2026-07-03 14:02:53 -07:00
2026-07-01 05:22:49 -07:00
2026-06-28 02:17:41 -07:00
2026-06-30 01:39:06 -07:00
2026-06-26 02:42:14 -07:00
2026-07-03 14:21:34 -07:00
2026-06-26 02:42:14 -07:00
2026-06-30 01:39:05 -07:00
2026-06-28 02:17:41 -07:00
2026-06-28 02:17:41 -07:00