Files
pokerfreak/src/bin/exploit_gap.rs
T
mmintelandClaude Opus 4.8 1492fb6a38 Synthetik-Labor: Population, Zwillings-Tor, adaptive Liga, Optimizer, Sim-to-Real
Ersetzt die irrefuehrende Oracle-Leiter durch eine ehrliche Messmethodik
(Oracle aus, Read via Memory/Posterior gegen eine gezogene Gegner-Population).

Stufen:
- 0 Exploitation-Luecke: +18.98 bb/100 gegen die gezogene Population
- 1 Kalibrierung an echte HUD-Daten (lesen/kalibrierung.py)
- 2 Zwillings-Tor (EGTA + Exploitability-Waechter): Offense +43.95,
  Boden gto -36.25 (verliert gegen Balancierte - die Oracle-verdeckte Wurzel)
- 3 Adaptive Liga L0-L3 (reaktiv / modellierend / Liga)
- 4 Sim-to-Real: HUD-Gap (sim::simreal) + Outcome-Abgleich (lesen/liveabgleich.py):
  real -266.75 vs Sim +43.95 => Gap -311; A/B-Pipeline + Runbook fertig,
  nur der geldechte Live-Lauf unter beiden Armen bleibt offen
- 5 Optimizer (Diagonal-CMA-ES, parallel): Nemesis -414.81 bb/100

Befunde und Architektur in docs/notizen/. Lab-Tests gruen
(Rust lib 92/0, python liveabgleich/kalibrierung/gegnersignal gruen).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-11 09:57:32 +01:00

40 lines
1.6 KiB
Rust

//! Stufe 0 of the synthetic lab: print the exploitation gap over a drawn opponent population.
//!
//! Draws a micro-stakes field, plays the live engine heads-up against each opponent with NO oracle
//! read — once blind, once inferring from session memory — and reports `memory - blind` in bb/100,
//! pooled and per hidden archetype. This is the exploitation number the fixed-bot ladder hides.
//!
//! Run: `cargo run --release --bin exploit_gap`.
use rechner::sim::exploit_pop::exploitation_gap;
use rechner::sim::population::Population;
const SEED: u64 = 0x5EED_0001;
const OPPONENTS: usize = 48;
const DEALS: u32 = 400;
fn main() {
let pop = Population::micro();
println!("=== Stufe 0: Exploitation-Lücke gegen eine gezogene Population ===");
println!("{OPPONENTS} Gegner x {DEALS} Austeilungen, heads-up, KEIN Oracle-Read (Engine muss erschließen).\n");
let r = exploitation_gap(&pop, OPPONENTS, DEALS, SEED);
println!("blind (kein Read) {:+8.2} bb/100", r.blind_bb_per_100);
println!("memory (erschlossen) {:+8.2} bb/100", r.memory_bb_per_100);
println!(
"\nEXPLOITATION-LÜCKE {:+8.2} bb/100 (paired +-{:.2}, anytime +-{:.2})",
r.gap_bb_per_100, r.ci95, r.anytime_ci95
);
let decisive = r.gap_bb_per_100 - r.ci95 > 0.0;
println!(
" {} bei 95 %\n",
if decisive { "SIGNIFIKANT POSITIV" } else { "noch nicht von 0 trennbar" }
);
println!("nach verdecktem Archetyp (mittlere Lücke je Gegner):");
for (label, (sum, n)) in &r.by_label {
println!(" {label:8} {:+7.2} bb/100 ({n} Gegner)", sum / *n as f64);
}
}