@@ -31,26 +31,62 @@ def run_optional(cmd: list[str], cwd: Path, required_path: Path, label: str) ->
3131 print (f"SKIP { label } : missing private/local paper data at { required_path } " )
3232
3333
34+ def run_optional_min_files (cmd : list [str ], cwd : Path , files : list [Path ], min_files : int , label : str ) -> None :
35+ if len (files ) >= min_files :
36+ run (cmd , cwd )
37+ return
38+ print (f"SKIP { label } : found { len (files )} reviewer file(s), need { min_files } " )
39+
40+
3441def main () -> None :
3542 repo_root = Path (__file__ ).resolve ().parents [2 ]
3643 python_executable = sys .executable
37- paper_data = repo_root / "papers" / "diffaudit-evidence-paper" / "data"
44+ paper_root = Path (os .environ .get ("DIFFAUDIT_EVIDENCE_PAPER_DIR" , repo_root / "papers" / "diffaudit-evidence-paper" )).resolve ()
45+ paper_data = paper_root / "data"
3846 claim_trace = paper_data / "claim_trace.csv"
47+ preflight_dir = repo_root / "docs" / "internal" / "e2-n50-freeze-preflight-2026-06-06"
48+ e2q005_review_files = sorted (preflight_dir .glob ("e2q005_external_style_review_[A-Z]_2026_06_06.csv" ))
49+ e2_freeze_ledger_input = preflight_dir / "e2_high_value_public_asset_delta_refresh_late_2026_06_09.csv"
50+ e2_false_promotion_queue_input = preflight_dir / "e2_n50_public_surface_metadata_refresh.csv"
51+ e2_freeze_preflight_input = preflight_dir / "e2_n50_freeze_review_decisions_v1.csv"
52+ false_promotion_bundle_input = preflight_dir / "e2sct004_genai_confessions_public_surface_check_2026_06_06.md"
53+ false_promotion_bundle_zip = paper_root / "build" / "diffaudit-false-promotion-review-bundle.zip"
3954
4055 run ([python_executable , "scripts/util/run_docs_checks.py" ], repo_root )
4156 run ([python_executable , "scripts/paper/render_admitted_risk_card.py" , "--check" ], repo_root )
4257 run_optional ([python_executable , "scripts/e2/build_claim_gate_recode_packet.py" , "--check" ], repo_root , claim_trace , "claim-gate recode packet" )
4358 run_optional ([python_executable , "scripts/paper/evaluate_report_correctness_faults.py" , "--check" ], repo_root , claim_trace , "report-correctness faults" )
44- run_optional ([python_executable , "scripts/e2/aggregate_e2q005_external_review.py" , "--min-reviewers" , "3" ], repo_root , claim_trace , "E2Q-005 review aggregation" )
59+ run_optional_min_files (
60+ [python_executable , "scripts/e2/aggregate_e2q005_external_review.py" , "--min-reviewers" , "3" ],
61+ repo_root ,
62+ e2q005_review_files ,
63+ 3 ,
64+ "E2Q-005 review aggregation" ,
65+ )
4566 run_optional ([python_executable , "scripts/e2/aggregate_false_promotion_external_review.py" , "--check" ], repo_root , claim_trace , "false-promotion review aggregation" )
46- run_optional ([python_executable , "scripts/e2/build_e2_public_freeze_ledger.py" , "--check" ], repo_root , claim_trace , "E2 public freeze ledger" )
47- run_optional ([python_executable , "scripts/e2/build_e2_false_promotion_expansion_queue.py" , "--check" ], repo_root , claim_trace , "false-promotion expansion queue" )
48- run_optional ([python_executable , "scripts/e2/check_e2_freeze_preflight.py" ], repo_root , claim_trace , "E2 freeze preflight" )
49- run_optional ([python_executable , "scripts/paper/check_paper_release_packet.py" ], repo_root , claim_trace , "paper release packet" )
67+ run_optional ([python_executable , "scripts/e2/build_e2_public_freeze_ledger.py" , "--check" ], repo_root , e2_freeze_ledger_input , "E2 public freeze ledger" )
68+ run_optional (
69+ [python_executable , "scripts/e2/build_e2_false_promotion_expansion_queue.py" , "--check" ],
70+ repo_root ,
71+ e2_false_promotion_queue_input ,
72+ "false-promotion expansion queue" ,
73+ )
74+ run_optional ([python_executable , "scripts/e2/check_e2_freeze_preflight.py" ], repo_root , e2_freeze_preflight_input , "E2 freeze preflight" )
75+ run_optional ([python_executable , "scripts/paper/check_paper_release_packet.py" , "--profile" , "phase-g" ], repo_root , claim_trace , "paper release packet" )
5076 run_optional ([python_executable , "scripts/paper/export_paper_supplement.py" , "--check" ], repo_root , claim_trace , "paper supplement export" )
5177 run_optional ([python_executable , "scripts/paper/export_paper_supplement.py" , "--check-output" ], repo_root , claim_trace , "paper supplement output" )
52- run_optional ([python_executable , "scripts/e2/export_false_promotion_review_bundle.py" , "--check" ], repo_root , claim_trace , "false-promotion review bundle" )
53- run_optional ([python_executable , "scripts/e2/export_false_promotion_review_bundle.py" , "--check-output" ], repo_root , claim_trace , "false-promotion review bundle output" )
78+ run_optional (
79+ [python_executable , "scripts/e2/export_false_promotion_review_bundle.py" , "--check" ],
80+ repo_root ,
81+ false_promotion_bundle_input ,
82+ "false-promotion review bundle" ,
83+ )
84+ run_optional (
85+ [python_executable , "scripts/e2/export_false_promotion_review_bundle.py" , "--check-output" ],
86+ repo_root ,
87+ false_promotion_bundle_zip ,
88+ "false-promotion review bundle output" ,
89+ )
5490 run (
5591 [
5692 python_executable ,
0 commit comments