W21: anthropic Stream+Tools + --prompt batch + sanitizer fix + plugin unit tests (W21.1-W21.6)
Some checks failed
CI / Determine matrix (push) Has been cancelled
CI / ${{ matrix.os }} / ${{ matrix.build_type }} (push) Has been cancelled
CI / Sanitizer (ASan+UBSan) / ubuntu-24.04 (push) Has been cancelled

- W21.1: ci-sanitize preset 独立 Linux-clang + ci-threadsan (TSan)
- W21.2: anthropic tool_use content_block 解析 + configure 缓存 tools_json
- W21.3: --prompt 非交互批处理模式
- W21.4: session auto-save 失败告警 + 当前目录 fallback
- W21.5: smoke 补 tool_calls 边界用例 4 块 12 断言
- W21.6: anthropic 11 块 78 CHECK + deepseek 12 块 78 CHECK

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 20:40:58 +08:00
parent 20ead86e88
commit b2b381b9b3
14 changed files with 1671 additions and 34 deletions

View File

@@ -54,6 +54,9 @@ performance_log:
- date: 2026-05-27
event: "W19.3 (协作 林深): plugin_loader 5 条发现修复验证。逐条审查 plugin_loader.cpp/host.cpp/plugin_loader.hppF-18.3-1 (ABI try/catch) 仅 2/5 调用点受保护load_plugin L59/ unload_plugin L108-109/shutdown_all L306-307 仍裸奔F-18.3-2 (静默失败) load_plugin 5 个失败路径零日志输出F-18.3-3 (路径验证) load_plugin L28 仅 null 检查,无规范化/目录约束/扩展名校验F-18.3-4 (fprintf→host->log) initialize_all L229+L239-240 仍用 fprintfhost_api 在手未用F-18.3-5 (next_id_ atomics) plugin_loader.hpp L54 仍是 plain int无 std::atomic无 mutex。5 条发现全部 NOT FIXED不予关单。编译 0 error + ctest 5/5 pass。"
rating: A
- date: 2026-05-27
event: "W21.6: anthropic/deepseek plugin 单元测试框架搭建。通过 #include plugin source 访问 file-scope static 函数。anthropic_plugin_test.cpp: 11 测试块 78 CHECK 覆盖 parse_sse_data 边界 (空body/格式异常/畸形JSON/message_stop/content_block_delta 含 W21.2 tool_use 路径)/build_request_json (空消息/超长消息/temperature 边界/多 system 合并)/build_headers_json/extract_host_port/secure_zero/my_free_result/my_configure。deepseek_plugin_test.cpp: 12 测试块 78 CHECK 覆盖 parse_sse_line ([DONE] 精确匹配/大小写/whitespace trimming/content delta/tool_calls 增量累积)/build_request_json (tool_use/tools_json/空输入 guard)/build_headers_json/extract_host_port/append_history (tool/assistant tool_calls/null 字段)。cmake --build build --config Release 0 error。ctest 8/8 (100%) pass。"
rating: A
current_groups:
- grp-quality-core (组长)
---