W22: coverage metric + network tests + Tool stream feedback + stdin pipe + session path + dependency check (W22.1-W22.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
CI / Coverage (gcovr) / ubuntu-24.04 (push) Has been cancelled

- W22.1: gcovr 覆盖率度量 + CI coverage job(40% 阈值 warning)
- W22.2: network_plugin 单元测试(parse_headers_json/extract_host_port/SSE/异常保护)
- W22.3: Tool Calling 流式反馈(chat_stream + "[工具调用]/[工具结果]" 状态行)
- W22.4: --prompt stdin pipe(--prompt - 从 stdin 读取)
- W22.5: session 路径健壮化(static 缓存 + mkdir + fallback)
- W22.6: 插件依赖拓扑静态校验(validate_dependencies 循环/缺失检测)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 21:21:24 +08:00
parent b2b381b9b3
commit df3bf298ee
13 changed files with 753 additions and 23 deletions

View File

@@ -48,6 +48,9 @@ performance_log:
- date: 2026-05-27
event: "W19.3 (协作 王测): plugin_loader 5 条发现修复验证。代码审查确认F-18.3-1 5 个 ABI 调用点仅 initialize_all/initialize_pending 有 try/catch2/5load_plugin/unload_plugin/shutdown_all 仍缺保护F-18.3-2 load_plugin 5 个失败路径全静默返回 -1F-18.3-3 路径仅 null 检查无约束F-18.3-4 fprintf 未替换为 host->logF-18.3-5 next_id_ 非原子。5 条全部未修复,不予关单。编译 0 error + ctest 5/5 pass。"
rating: A
- date: 2026-05-27
event: "W22.6 完成plugin_loader 新增 validate_dependencies() —— 遍历所有已加载插件 deps[] 做缺失依赖检测 + 循环依赖检测topological_sort 异常捕获),返回 0/-1。initialize_all() 头部调用,失败时 WARN log 继续初始化不 crash。plugin_loader.hpp:54-55 声明plugin_loader.cpp:309-345 实现initialize_all L352-356 集成。cmake --build build --config Release 0 errorctest 8/8 pass"
rating: A
current_groups:
- grp-quality-core (成员)
- grp-ai-plugins (待命)