50 项优化交付清单¶
这份清单把本轮升级拆成可验证的仓库能力。需要外部账号、模型或数据授权的项目,仓库提供了接口、示例和离线测试;不会把未配置的外部服务伪装成已运行。
| # | 优化项 | 交付位置 |
|---|---|---|
| 1 | 低值更好指标的最大门禁 | compare --max |
| 2 | 配置驱动的 group_by |
RunConfig.group_by / run JSON |
| 3 | 多 run 趋势报告 | trend |
| 4 | Bootstrap 置信区间 | ragproof.trend.bootstrap_interval |
| 5 | 阈值策略文件 | --policy / examples/threshold-policy.yaml |
| 6 | Provenance 差异说明 | compare provenance result |
| 7 | 最小样本数门禁 | min_sample_count |
| 8 | 历史阈值推荐 | threshold-recommend |
| 9 | 回归 bisect | bisect |
| 10 | 失败严重度排序 | report._sort_by_severity |
| 11 | 默认指标方向 | compare.LOWER_IS_BETTER |
| 12 | 覆盖率门禁 | min_coverage / --require-field |
| 13 | 数据集 lint | dataset-lint |
| 14 | 分层抽样 | stratify_by |
| 15 | 数据集 manifest | dataset-manifest |
| 16 | 近重复问题检测 | near_duplicate_questions |
| 17 | CSV/JSON/XLSX/Parquet 导入 | dataset.load |
| 18 | 数据集脱敏 | redact_text |
| 19 | 标准数据模板 | examples/ 与 schema 文档 |
| 20 | 基准数据清单 | examples/benchmark-manifest.json |
| 21 | 可选 embedding 相似度 | metrics.embedding |
| 22 | 中文/多语言启发式 tokenizer | tokenizer 配置 |
| 23 | Claim-level 支撑度 | claim_support |
| 24 | Citation span overlap | citation_span_overlap |
| 25 | 上下文多样性/冗余 | context_diversity / context_redundancy |
| 26 | Rank sensitivity | rank_sensitivity@k |
| 27 | 不可回答问题正确性 | unanswerable_correctness |
| 28 | Judge golden 校准 | judge-calibrate |
| 29 | Judge 多模型一致性 | judge_agreement |
| 30 | Judge prompt 版本/hash | run provenance |
| 31 | Judge 失败熔断 | JudgeConfig.max_failures |
| 32 | Judge 可用性检查 | judge-check |
| 33 | Token throughput | tokens_per_second |
| 34 | 自定义流式 token/done 标记 | stream_token_path / stream_done_markers |
| 35 | 多问题 probe | probe --question 可重复 |
| 36 | Probe 置信度 | inspect_response.confidence |
| 37 | Probe 请求模板骨架 | render_config |
| 38 | 缺失环境变量提示 | RunConfig.validation_errors |
| 39 | 值级 secret 脱敏 | config summary / dataset redact |
| 40 | 安全错误诊断 | HTTP _safe_error |
| 41 | 原生异步 adapter 与在途并发上限 | HTTPAdapter.aask / async_max_concurrency |
| 42 | Preset contract tests | tests/test_optimizations.py |
| 43 | 框架接入示例 | examples/*.yaml |
| 44 | JUnit XML | report -o report.xml |
| 45 | SARIF | report -o report.sarif |
| 46 | 可复用 GitHub Action | .github/actions/evaluate |
| 47 | Baseline/current 样本对照 | HTML/Markdown report |
| 48 | 趋势/分组可视化数据 | trend HTML + group heatmap table |
| 49 | 覆盖率分层门槛 | .github/workflows/ci.yml |
| 50 | 版本/发行准备 | pyproject.toml + CHANGELOG.md + .github/workflows/release.yml(当前版本 0.4.1) |
第 50 项由 v* tag 触发发行流程;当前最新正式版本为 v0.4.1。普通代码推送不会创建 Release,PyPI 发布仍受仓库变量和 Trusted Publisher 配置控制。
P1 加固补充¶
P1 后续把 HTTP adapter 拆为传输、SSE 解码、响应映射和契约校验四层,并加入多事件 SSE、原生 AsyncClient、批次 JSONL 结果槽、graded qrels、ID 归一化、可配置拒答规则、历史格式/报告契约/Hypothesis 测试、60 条透明合成基准及两条负向门禁。CI 同时覆盖 Python 3.10–3.13、macOS/Windows 冒烟、Action/YAML 元数据校验和全 SHA 固定;tag 发布会生成 SBOM、SHA256 校验和及 GitHub artifact attestation。
P2 展示与治理补充¶
P2 增加可搜索的 MkDocs/GitHub Pages 文档站,把 README 首屏重组为问题、30 秒体验、可复现证据、架构与适用边界,并提交可复现的终端 GIF 和社交预览图。仓库治理改为 Discussions 承接问答,空 Wiki 关闭;未接通且与 CHANGELOG 发行流程重复的 Release Drafter 配置已删除,并以有明确范围和验收标准的 good first issue 作为外部贡献入口。