$ErrorActionPreference = "Stop"

python .\tools\backfill_eod_replay_history.py --json .\GatherTradingData.json --history .\Temp\proposal_evaluation_history.json --lookback_days 110 --max_trade_days 55
python .\tools\build_evaluation_history_coverage_v1.py --history .\Temp\proposal_evaluation_history.json --out .\Temp\evaluation_history_coverage_v1.json
python .\tools\build_outcome_quality_score_v1.py --json .\GatherTradingData.json --out .\Temp\outcome_quality_score_v1.json --policy .\spec\strategy_execution_lock_policy.yaml

Write-Host "ONEOFF_BACKFILL_DONE"
