import json
import os
from datetime import datetime, timezone

def update_progress():
    progress_path = "/home/aryy/.hermes/profiles/finance/backtests/xauusd_2026/hybrid/reviews/manual_replay_progress.json"
    
    with open(progress_path, 'r') as f:
        progress = json.load(f)
        
    progress['last_processed_index'] = 167
    
    # We append our result to the latest run
    if progress['runs']:
        progress['runs'][-1]['result_files'].append("hybrid/reviews/manual_replay_results/replay_result_00165_00168.json")
    
    with open(progress_path, 'w') as f:
        json.dump(progress, f, indent=2)

if __name__ == "__main__":
    update_progress()