fix: address whole-impl review (INFRA T0 rows, reproducible manifest, evolution_target report, dead config, canonical DRY)
C-1: persist_infra_t0_rows 补 INFRA/空预测错题的 T0 信号行(不进诊断故须单独落库),run_pipeline 加 Phase 0,dry-run 用假数据走通。 C-2: CLI 加 --generated-at,真实运行默认盖真实 UTC now,可显式固定以字节级复现 manifest。 I-1: coverage_report 增 evolution_target_distribution(T2 信号按 tool/skill/system 计数)。 I-2: 删除 PoolConfig 死字段 n_trainval/floor_k/epsilon/report_floor/val_wrong_min(grep 确认无消费者,视频级切分用独立 VideoSplitConfig/SplitBuildConfig/SelectConfig)。 I-3: 抽共享 load_canonical_predictions(db_path, run_id),CLI 与 build_split 共用;消除 canonical 取行 + correct 判定重复。 M-1: build_split docstring 注明 val_wrong_min-agnostic 契约(McNemar 护栏由 CLI 冻结后执行,Task 11 契约)。
This commit is contained in:
@@ -153,3 +153,10 @@ def test_end_to_end_freezes_valid_pools(tmp_path: Path) -> None:
|
||||
assert coverage["grid_total"] == 48
|
||||
assert "tier_distribution" in coverage
|
||||
assert manifest_path.exists()
|
||||
|
||||
# I-1:evolution_target_distribution 出现在 coverage_report,且 T2 信号按 tool/skill/system 计数。
|
||||
target_dist = coverage["evolution_target_distribution"]
|
||||
assert set(target_dist) <= {"tool", "skill", "system"}
|
||||
# 全部错题构造为 T2(error_type 四类轮转),进化目标覆盖三层且计数为正。
|
||||
assert sum(target_dist.values()) > 0
|
||||
assert set(target_dist) == {"tool", "skill", "system"}
|
||||
|
||||
Reference in New Issue
Block a user