File size: 1,320 Bytes
ef987bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[
  {
    "case_id": "ENHANCED_CASE_1",
    "instruction_evidence": "找出距离聚类中心最远的 5% 图像作为异常样本",
    "validator": "tests/validate_enhancements.py::case_1_top_five_percent_contract",
    "behavior": "Checks that anomalies.csv contains exactly 5% of fixture rows (with the required one-row minimum), uses unique fixture image ids, and reports finite non-negative distances."
  },
  {
    "case_id": "ENHANCED_CASE_2",
    "instruction_evidence": "使用 CSV 中的 RGB features 做 K-Means clustering,选择并报告合理的 K",
    "validator": "tests/validate_enhancements.py::case_2_center_table_is_well_formed",
    "behavior": "Checks a non-trivial K, the required center-table fields, unique cluster ids and center rows, and finite RGB center coordinates within the valid 0..255 feature domain."
  },
  {
    "case_id": "ENHANCED_CASE_3",
    "instruction_evidence": "生成 report.html、anomalies.csv、cluster_centers.csv 和 anomaly_grid.png;确定性验证器",
    "validator": "tests/validate_enhancements.py::case_3_artifacts_are_deterministic",
    "behavior": "Checks that the saved visualization has a PNG header and positive canvas dimensions, then reruns with proxies cleared and PYTHONHASHSEED fixed and requires all four artifacts to be byte-identical."
  }
]