Leak 2 war mit dem 0.45-Aggressions-Tor grob gefixt (classify liest den aggressiven Vielfalter als Regular, nicht Station). Die CMA-ES gegen die reparierte Engine fand aber nemesis-2 knapp unter dem Tor (aggr 0.41) -> voll getrustete Station -> -87.63 bb/100. Wurzel: das binaere earned_trust (1.0/0.0) gibt einem Grenzfall den vollen Exploit oder gar keinen. read_gate nennt die Loesung selbst - ein f64 fuer "partial, confidence-weighted trust". station_trust() ist jetzt eine Rampe: 1.0 fuer echte passive Station (bit-identisch zu vorher, keine Regression), linear auf 0 Richtung 0.45-Grenze. Vier gemessene Kanaele, die das Stations-Profil lesen, je per toward_blind mit dem Trust skaliert (bit-identisch bei c=1): adjust (Schwellen), style_rung (Boden-Sprosse), range_model (Band-Stretch), fold_chance (Fold-Equity, der dominante). nemesis-2 Memory -87.63 -> +83.72 bb/100 (Blind-Decke +114.01). Beweis: Zwillings-Tor Gate::passes (OFFENSE +50.58, Boden gto -23.93 und Exploitability 77.03 bit-identisch), Boden-Archetypen unregressiert, 101 Lib-Tests gruen. Der neue Worst-Case nemesis-3 (-26.59) ist read-invariant (Oracle=Blind=Memory, classify Regular) - ein vorbestehendes River-Overbet- Defense-Loch fuer den River-Solver, von diesem Fix unberuehrt. Befunde: BEFUND-nemesis-soft-trust.md, BEFUND-nemesis-station-fehllabel.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
81 lines
3.2 KiB
Rust
81 lines
3.2 KiB
Rust
//! Is the nemesis leak read-driven? Measure the engine's EV vs the fixed nemesis ruleset under each
|
||
//! read mode. If Blind >> Memory, the catastrophe is the TRUSTED CallingStation read (vpip 0.53 trips
|
||
//! the `loose -> CallingStation` path, earned_trust 1.0), and gating the nemesis to blind — by making
|
||
//! `classify` require a station to be postflop-passive, so this aggressive frequent-folder reads
|
||
//! Regular — recovers it toward the Blind ceiling.
|
||
//!
|
||
//! Run: `cargo run --release --bin nemesis_read [deals]`.
|
||
|
||
use rechner::exploit::style::classify;
|
||
use rechner::sim::opponent::Opponent;
|
||
use rechner::sim::reader::Rules;
|
||
use rechner::sim::session::{measure, ReadMode, Setup};
|
||
|
||
const SEED: u64 = 0x5EED_0001;
|
||
const STACK_BB: f64 = 100.0;
|
||
|
||
/// The original CMA-ES nemesis (full-budget, vs the pre-fix engine): a reg-tight low-bluff caller
|
||
/// that bet a lot and raised light. Fixed via the station-aggression gate (classify reads it Regular).
|
||
const NEMESIS: Rules = Rules {
|
||
call_margin: 0.215,
|
||
raise_at: 0.587,
|
||
bet_at: 0.548,
|
||
open_at: 0.729,
|
||
bluff: 0.068,
|
||
size: 0.441,
|
||
};
|
||
|
||
/// The NEW worst case the CMA-ES finds against the FIXED engine (fast scan 400x8, −173 bb/100): bets
|
||
/// tighter (0.748) but big (size ~pot), raises light (0.579), and actually bluffs (0.229).
|
||
const NEMESIS2: Rules = Rules {
|
||
call_margin: 0.173,
|
||
raise_at: 0.579,
|
||
bet_at: 0.748,
|
||
open_at: 0.800,
|
||
bluff: 0.229,
|
||
size: 0.996,
|
||
};
|
||
|
||
/// The worst case the CMA-ES finds against the SOFT-TRUST engine (fast scan 1000x14, −52.65 bb/100):
|
||
/// a different shape — folds air hard (call_margin 0.396), opens very wide (0.468), rarely raises
|
||
/// (0.769), overbets (size 1.148). Probe: is it the same read-driven family or a genuine hole?
|
||
const NEMESIS3: Rules = Rules {
|
||
call_margin: 0.396,
|
||
raise_at: 0.769,
|
||
bet_at: 0.615,
|
||
open_at: 0.468,
|
||
bluff: 0.261,
|
||
size: 1.148,
|
||
};
|
||
|
||
fn main() {
|
||
let deals: u32 = std::env::args().nth(1).and_then(|s| s.parse().ok()).unwrap_or(4000);
|
||
println!("=== Nemesis je Lese-Modus, {deals} Austeilungen ===");
|
||
println!("Blind >> Memory => lesegetriebenes Leck (Fehlklassifikation). Blind ~= Memory => echtes Loch.\n");
|
||
for (name, rules) in [("nemesis-1", NEMESIS), ("nemesis-2", NEMESIS2), ("nemesis-3", NEMESIS3)] {
|
||
println!("-- {name}: call_margin {:.3} raise_at {:.3} bet_at {:.3} open_at {:.3} bluff {:.3} size {:.3}",
|
||
rules.call_margin, rules.raise_at, rules.bet_at, rules.open_at, rules.bluff, rules.size);
|
||
for read in [ReadMode::Oracle, ReadMode::Blind, ReadMode::Memory] {
|
||
let setup = Setup {
|
||
players: 2,
|
||
opponent: Opponent::Styled(rules),
|
||
deals,
|
||
stack_bb: STACK_BB,
|
||
seed: SEED,
|
||
read,
|
||
};
|
||
let m = measure(&setup);
|
||
println!(" {:<7} {:>+9.2} bb/100 ±{:>5.2}", format!("{read:?}"), m.bb_per_100, m.ci95);
|
||
}
|
||
println!();
|
||
}
|
||
let p = rechner::exploit::profile::Profile {
|
||
vpip: Some(0.53),
|
||
pfr: Some(0.14),
|
||
fold_to_bet: Some(0.65),
|
||
aggression: Some(0.62),
|
||
..Default::default()
|
||
};
|
||
println!(" classify(nemesis-1-read vpip0.53 pfr0.14 fold0.65 aggr0.62) = {:?}", classify(&p));
|
||
}
|