Spaces:
Running
Running
Commit History
-
Remove dead code left over from holdover-controller iterations
- environment: unused θ̂ history buffer and _theta_hat_at helper - sensors: unused PMUStream.arrived(), unused engage() argument - pll: unused SRFPLL.snapshot() - unused imports (pyflakes clean) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>ff68477 -
v2: physically correct SRF-PLL, realistic attacks, exploit-proof graders
Physics - Fix Clarke/Park transforms (vq was cos(θ+θ̂), so the PLL never locked); cosine-referenced amplitude-invariant transforms, all three phases, 5 kHz simulation, ωn=100 rad/s, ζ=0.707, amplitude-normalised PI loop - Natural grid events (phase jumps, sags, single-phase faults, harmonic steps, frequency events) as confounders; sensor noise + 12-bit ADC - Coordinated phase-spoofing attack for the hard task; trusted, delayed PMU stream; PMU-disciplined holdover and latched disconnect actions - Desync measured against the true grid angle; shadow PLL gives the counterfactual time-to-desync used by the hard grader Environment / graders / reward - 40 decisions x 50 ms, attack-free episodes, single seeded RNG tree - Ground truth hidden until done; env detector no longer leaked in info - Graders penalise false alarms; always/never/random policies score low, oracle scores >= 0.9 on every seed - Dense reward with Brier calibration, mitigation costs and harm penalty OpenEnv / in…c282634