from __future__ import annotations

import argparse
from pathlib import Path


def main() -> int:
    parser = argparse.ArgumentParser()
    parser.add_argument("--packet", required=True)
    parser.add_argument("--report", required=True)
    parser.add_argument("--strict", action="store_true")
    args = parser.parse_args()
    report = Path(args.report).read_text(encoding="utf-8")
    required = ["portfolio_health", "cash", "heat", "shadow_ledger", "evidence"]
    missing = [sec for sec in required if sec not in report]
    if missing:
        print("FAIL")
        for sec in missing:
            print(sec)
        return 1
    print("LLM_RESPONSE_OK")
    return 0


if __name__ == "__main__":
    raise SystemExit(main())

