---
name: evolveguard-auditor
description: Audit evolutionary LLM strategy search runs (OpenEvolve, MadEvolve, SwarmEvolve, QuantEvolve, AlphaEvolve) and Numerai v5.2 tournament pipelines for genealogical overfitting, Slepian reversal, heavy-tail Student-t_nu data dredging, walk-forward collapse, execution fragility, and Berkson regime filtering using EvolveGuard (Genealogical Q-DSR_nu^evo + Minimax SIPS_infinity^evo + Purged CPCV + Optimal Stopping G*).
---

# EvolveGuard — Certified Anti-Overfitting Auditor for Evolutionary LLM Search & Numerai

> **Author & Scientific Grounding:** Fabien Pierret (`ORCID: 0009-0001-1223-2170` · `wallstreetdebug.com`)  
> **Foundation CERN Zenodo DOIs:** `10.5281/zenodo.24591062` (Suite) · `10.5281/zenodo.24591340` ($\mathrm{Q\text{-}DSR}_\nu$) · `10.5281/zenodo.24591378` (KV-Cache / Eval Loopholes) · `10.5281/zenodo.24591422` ($\mathrm{SIPS}_\infty$ & Manski–Rosenbaum)  
> **Companion Preprint:** *Genealogical Overfitting in Evolutionary LLM Search: Exact Heavy-Tail Ratchet Laws for MAP-Elites and Certified Minimax Control via EvolveGuard*

## Mandatory Epistemic Rules

1. **Zero *quantum woo*:** Strictly classical extreme-value theory, stochastic geometry on $\mathbb{S}^{d-1}$, adaptive combinatorics, causal partial identification, and minimax decision theory.
2. **Never use static i.i.d. Bailey–López de Prado DSR($N$) to certify an evolutionary LLM run:** Under parent-child inheritance $\rho > 0$ (OpenEvolve, MadEvolve, QuantEvolve, SwarmEvolve), positive correlation *reverses* Slepian's inequality and inflates null maxima from $O(\sqrt{2\ln N})$ to $\Theta(\sqrt{G \cdot c_2(\lambda)})$ ($3\times$–$4\times$ higher at the same $N$).
3. **Never certify an evolved trading strategy with a linear average of sub-metrics:** Single-mode evolutionary cheats (slippage blindness, 1-spike luck, Berkson crash-day abstention) bypass convex averages with $R_{\max} = 1$. Always enforce the non-compensatory minimax veto $\mathrm{SIPS}_\infty^{\mathrm{evo}} = \max(I_{\mathrm{mul}}^{\mathrm{evo}}, I_{\mathrm{OOD}}^{\mathrm{CPCV}}, I_{\mathrm{inv}}^{\mathrm{exec}}, I_{\mathrm{col}}^{\mathrm{arch}})$.
4. **Always enforce Era-Purged CV (`purge_eras >= 4`, `embargo_eras >= 4`) on Numerai v5.2** to eliminate 20-day overlapping target leakage.

## Execution Commands

### Mode 1: Audit an OpenEvolve / MadEvolve / SwarmEvolve Run Parameters
```bash
python3 scripts/audit_evolveguard.py run \
  --sharpe 3.2 --T 252 -G 50 -L 10 -B 16 --rho 0.90 --nu 3.0
```

### Mode 2: Full 4-Pillar Minimax Audit on a Backtest Returns CSV
```bash
python3 scripts/audit_evolveguard.py csv path/to/evolved_strategy_returns.csv \
  -G 50 -L 10 -B 16 --rho 0.85 --purge 5 --embargo 5 --gamma 1.5
```

### Mode 3: Competition-to-Live Numerai v5.2 Certification & Verified Submission
```bash
python3 scripts/audit_evolveguard.py numerai \
  -G 12 -L 6 --purge-eras 4 --embargo-eras 4 --submission-out ./live_submission.csv
```

## Required Deliverable Structure

1. **Verdict Banner:** `CERTIFIED_ELITE` or `VETO_REJECTED` (plus `FALSE GREEN LIGHT` flag whenever naive static DSR($N$) or linear weighting would have passed).
2. **4-Pillar Minimax Table:** Exact scores for $I_{\mathrm{mul}}^{\mathrm{evo}}$, $I_{\mathrm{OOD}}^{\mathrm{CPCV}}$, $I_{\mathrm{inv}}^{\mathrm{exec}}$, $I_{\mathrm{col}}^{\mathrm{arch}}$, Slepian Reversal Ratio, and $\mathrm{SIPS}_\infty^{\mathrm{evo}}$.
3. **Optimal Stopping Recommendation ($G^*$):** Whether to continue evolving or halt immediately to protect live OOS Sharpe and LLM compute budget.
4. **SHA-256 Certificate Digest** when exporting a report or Numerai submission CSV.
