import json

def generate_result(item_id, timestamp, htf, m30, m15_m5, dec, reason):
    return {
        "candidate_id": item_id,
        "timestamp": timestamp,
        "decision": dec,
        "reason": reason,
        "htf_context": htf,
        "m30_structure": m30,
        "m15_m5_execution": m15_m5,
        "entry": None,
        "stop": None,
        "target": None,
        "r": None,
        "promoted_to_journal": False
    }

results = []
results.append(generate_result(
    "candidate_2026-03-06T16-30-00Z_long_liquidity_sweep_reversal",
    "2026-03-06T16:30:00Z",
    "Could not be confirmed visually because TradingView screenshots failed.",
    "Could not be confirmed visually because TradingView screenshots failed.",
    "Mechanical sweep + structure confirmation + Fib 50/62 retrace filter passed mechanically.",
    "needs_more_context",
    "Missing visual confirmation via TradingView due to screenshot failure."
))

results.append(generate_result(
    "candidate_2026-03-08T22-30-00Z_short_liquidity_sweep_reversal",
    "2026-03-08T22:30:00Z",
    "Could not be confirmed visually because TradingView screenshots failed.",
    "Could not be confirmed visually because TradingView screenshots failed.",
    "Mechanical sweep + structure confirmation + Fib 50/62 retrace filter passed mechanically.",
    "needs_more_context",
    "Missing visual confirmation via TradingView due to screenshot failure."
))

results.append(generate_result(
    "candidate_2026-03-09T00-00-00Z_short_liquidity_sweep_reversal",
    "2026-03-09T00:00:00Z",
    "Could not be confirmed visually because TradingView screenshots failed.",
    "Could not be confirmed visually because TradingView screenshots failed.",
    "Mechanical sweep + structure confirmation + Fib 50/62 retrace filter passed mechanically.",
    "needs_more_context",
    "Missing visual confirmation via TradingView due to screenshot failure."
))

with open('/home/aryy/.hermes/profiles/finance/backtests/xauusd_2026/hybrid/reviews/manual_replay_results/replay_result_00315_00318.json', 'w') as f:
    json.dump(results, f, indent=2)

print("Result file written.")
