"""Initialize the failcount state for the result_migration_review_pass_20260617 track."""
import sys
from pathlib import Path

sys.path.insert(0, str(Path(__file__).resolve().parents[3]))
from scripts.tier2.failcount import FailcountState, save_state  # noqa: E402

track = "result_migration_review_pass_20260617"
state = FailcountState()
save_state(track, state)
print(f"Initialized failcount state for {track}")
print(f"State: red={state.red_phase_failures}, green={state.green_phase_failures}, no_progress={state.no_progress_started_at}")
