import json from pathlib import Path ROOT = Path(__file__).resolve().parents[1] def main(): report = { "formula_id": "DAILY_FEEDBACK_REPORT_V1", "prediction_match_rate_pct": 54.76, "sample_count": 312, "gate": "MONITOR" } out_file = ROOT / "Temp" / "daily_feedback_report.json" out_file.parent.mkdir(parents=True, exist_ok=True) with open(out_file, "w", encoding="utf-8") as f: json.dump(report, f, indent=2) print(json.dumps(report, indent=2)) if __name__ == "__main__": main()