feat(tools): baseline quality collection for model-watchdog
Summary / 概述
Baseline quality-collection tool for model-watchdog plus reference performance baselines.
供 model-watchdog 使用的基线质量收集工具与参考性能基线。
The Responses-layer fixes that previously lived in this PR have been split out into #7153-sibling PR (clearnature:pr-responses-fix) to keep each PR single-topic. This PR is now tools/baselines only.
原混在本 PR 的 Responses 层修复已拆分为独立 PR(
pr-responses-fix分支),本 PR 只保留 baseline 工具主题。
Changes / 改动
tools/baseline/main.go(new, ~390 lines) — standalone baseline quality-collection tool for model-watchdog: runs a model, records reference performance (latency / TTFT / output length / token usage), and writes a versioned JSON baseline with derived watchdog thresholds. / 独立基线质量收集工具:运行模型、记录参考性能并写出带阈值推断的版本化 JSON 基线。benchmarks/baselines/(new) — reference performance baselines fordeepseek-v4-flashandqwen3.8-max-preview(20 samples each, 0 errors), plus a README describing the format and regeneration workflow. / 两个模型的参考性能基线及格式说明。
Files / 文件
| File / 文件 | Change / 改动 |
|---|---|
tools/baseline/main.go |
new / 新增 |
benchmarks/baselines/README.md |
new / 新增 |
benchmarks/baselines/deepseek-v4-flash.json |
new / 新增 |
benchmarks/baselines/qwen3.8-max-preview.json |
new / 新增 |
Verification / 验证
go build ./tools/baseline/go vet ./tools/baseline/git diff --check
Cache-impact: none - offline-only tool and data; no provider-visible prompt, tool schema, or request serialization changes.
Cache-guard: n/a for runtime cache; go build ./tools/baseline/ guards the tool.
System-prompt-review: not required - no system-prompt content or composition changes in this PR; the cache-TTL config addition is orthogonal to the prompt prefix.