Skip to content

Training Cutoff & Forward Holdout Validation — Architecture Reference


status: active tier: 2 (design reference) last-verified: 2026-11-23 verified-against: 80197437 initiative: Projects/Post-Cutoff Forward Validation & Master-Anchored Windows/ supersedes: none


Purpose

Master parquets keep growing after a genome is evolved. Two guarantees: (1) nothing trained/evaluated "as of cutoff E" may read a bar with SessionDay > E; (2) bars after E are an honest, unseen holdout that automatically classifies each pre-registered genome.

Cutoff state (Backtesting/engine/cutoff.py)

  • results/cutoff_state.json: evolve_cutoff_date (default 2026-10-30), exclude_failed_holdout (default true), master_roll_pending, updated_at; atomic writes. TJ_EVOLVE_DATE_TO overrides (""/none/latest = uncapped). Controlled from the Dashboard âš¡ Data tab card 📅 Training Cutoff & Unseen Holdout (apply / roll to latest master / exclude-failed toggle) — no manual file editing.
  • resolve_anchor_ref = min(master_last_day, cutoff) anchors "N years" windows. Every row carries Evolve_End_Date (legacy = 2026-10-30). Rolling the cutoff never archives genomes: the pool stays eligible as warm-start seeds (champion_vault.get_champion_seeds(max_evolve_end_date=, exclude_uids=)).
  • A moved cutoff sets master_roll_pending; Stage 3 then runs build_lifetime_ledger.py --date_to <cutoff> --allow-master-sha-roll (an explicit D-12 re-key, never silent) and clears the flag on success.

Forward validation (scripts/run_forward_validation.py, Data-tab Stage 6)

  • Scope: locked Studio roster UIDs + World_Champion top-K per GA CSV with Evolve_End_Date < master_last_day (or explicit --uids/--ga-csv).
  • Replay over the full master (date_to=None); trades split into prefix_closed (exit ≤ E, not an end-of-data forced close), carry_in (entry ≤ E < exit — open across the 17:00 CT roll) and post_cutoff (entry > E = the holdout).
  • Dual basis (not interchangeable): lifetime (default, ties to Lifetime_Trades/Net) / windowed (genome date_from, ties to Trades/Net Ticks). One prepare_data + Layer A per (master, date_from) with eviction between masters.
  • Parity is fail-closed: with no carry-in the prefix must equal the stored count and net; with carry-in the stored count may exceed the prefix by at most the carry-in count. A mismatch writes forward_eval_cache/quarantine/<key>.json, the genome is never published (exit code 2).
  • Verdict: FAILED if wf_max_dd > 1.25·max(anchor_dd, oos_dd, 100) (any session count) or (≥20 sessions, ≥15 trades, wf_net ≤ −0.25·max(anchor_dd,100)); else INSUFFICIENT_DATA if <20 sessions or <15 trades; else PASSED (wf_net>0) / DEGRADED.
  • Outputs (atomic): per-genome cache keyed (uid, ds, basis, E, master_sha, engine_version), results/forward_eval_cache/summary.json (read by engine.cutoff), Backtesting/Reports/forward_validation_<date>.md (when unseen sessions exist or --report-out). When no master passes the cutoff it exits 0 in <1 s with a zero summary.

Demotion loop

summary.failed_uids → (toggle ON) excluded from champion_vault seeding and build_specialist_studio_cache candidate selection (rows stay on disk); Specialist Studio shows 🔴 FWD FAILED / 🟠 DEGRADED / 🟢 PASS / 🟡 <20d badges and a roster alert prompting a Stage 4 re-mine.

Tests

tests/test_cutoff_isolation.py, tests/test_forward_validation.py (product domain, hermetic: env TJ_CUTOFF_STATE_PATH, TJ_FORWARD_SUMMARY_PATH, TJ_FORWARD_REPORT_DIR, TJ_MASTER_MANIFEST_PATH).