File size: 779 Bytes
f791e67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
"""Fail-closed gate for the exact scientific Claim 5 contract."""
from __future__ import annotations

import json
from pathlib import Path


ROOT = Path(__file__).resolve().parents[1]
ROUTES = ROOT / "evidence/claim5/four_routes.json"


def main() -> None:
    evidence = json.loads(ROUTES.read_text())
    verdict = evidence["final_verdict"]
    if verdict == "VERIFIED":
        print("CLAIM5_EXACT_GATE_VERIFIED")
        return
    if verdict == "FALSIFIED":
        print("CLAIM5_EXACT_GATE_FALSIFIED")
        return
    print(
        "CLAIM5_EXACT_GATE_BLOCKED missing exact Table 5 implementations, "
        "training splits, checkpoints, and the Table 6 600M RLM checkpoint"
    )
    raise SystemExit(1)


if __name__ == "__main__":
    main()