import json

path = '/home/aryy/.hermes/profiles/finance/backtests/xauusd_2026/hybrid/reviews/manual_replay_progress.json'
with open(path, 'r') as f:
    prog = json.load(f)

prog['cursor']['next_index'] = 57
prog['cursor']['processed_count'] = 57
prog['cursor']['rejected_count'] += 2
prog['cursor']['shadow_count'] += 1
prog['cursor']['needs_more_context_count'] -= 3
prog['cursor']['last_candidate_id'] = "candidate_2026-01-13T05-30-00Z_short_liquidity_sweep_reversal"

from datetime import datetime, timezone
prog['cursor']['last_updated'] = datetime.now(timezone.utc).isoformat()

with open(path, 'w') as f:
    json.dump(prog, f, indent=2)

print("Cursor updated.")
