feat: add quant engine WBS verification harness
This commit is contained in:
@@ -109,6 +109,24 @@ def main() -> int:
|
||||
ok_ratio = ratio >= COVERAGE_TARGET
|
||||
ok_critical = len(critical_missing) == 0
|
||||
|
||||
# 정직성 표기 (QE-M0-06): 이 게이트는 golden 케이스/파일의 "존재 수"만 집계한다.
|
||||
# tests/golden/generated/ 의 174개 파일은 실행되지 않는 placeholder이며, 수치
|
||||
# 실행 검증은 M3의 factor parity 게이트(validate_factor_parity_v1)로 대체된다.
|
||||
payload = {
|
||||
"formula_id": "GOLDEN_COVERAGE_100_V1",
|
||||
"gate": "PASS" if (ok_ratio and ok_critical) else "FAIL",
|
||||
"coverage_basis": "FILE_COUNT_ONLY",
|
||||
"golden_coverage_ratio": ratio,
|
||||
"yaml_formula_count": total,
|
||||
"golden_test_count": golden,
|
||||
"critical_missing": sorted(critical_missing),
|
||||
"uncovered_count": len(uncovered),
|
||||
"note": "coverage counts YAML golden-case entries/files only; generated golden test stubs are not executed",
|
||||
}
|
||||
out_path = ROOT / "Temp" / "golden_coverage_100_v1.json"
|
||||
out_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
out_path.write_text(json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8")
|
||||
|
||||
print(f"[GOLDEN_COVERAGE_100] total={total} golden={golden} ratio={ratio:.4f} "
|
||||
f"({'≥' if ok_ratio else '<'}{COVERAGE_TARGET}) "
|
||||
f"critical_missing={len(critical_missing)}")
|
||||
|
||||
Reference in New Issue
Block a user