MDF-Boden: trust-aware over_bluffs auf Postflop-Aggression statt Preflop-Breite
Der Zwillings-Tor-Boden stand bei gto -36.25 bb/100 unter dem realistischen Memory-Read - ~12bb schlechter als die Oracle-Diagnose (-24.83), also lesegetrieben, nicht Cooler-Varianz. Wurzel: mdf_floor::over_bluffs feuerte auf classify==LooseAggressive, das auf Preflop-Breite (vpip>=0.35 & pfr>=0.20) stuft. Heads-up spielt ein balancierter Gegner eine weite Range (Button opent ~80%, BB verteidigt ~70%), sein Session-Read ist breit (vpip 0.70, pfr 0.46) bei Postflop-Aggression nur ~0.35 - also als Over-Bluffer fehlgelabelt. Der Boden force-callt seine Value-Bets: der -52bb Over-Call aus BEFUND-gto-ueberdefense, zurueck unter dem realistischen Read (das Oracle entkam nur ueber ein hand-gesetztes schmales vpip 0.32). Maniac (aggr 0.49) und balancierter gto (aggr 0.35) sind ueber vpip/pfr nicht unterscheidbar - nur die Postflop-Aggression trennt sie. Fix: over_bluffs = aggression >= 0.45 (war classify==LA || aggr>=0.60); 0.45 liegt zwischen balanciert (0.35/0.40) und Over-Bluffer (0.49/0.50). Das direkte Bluff-Signal, nicht die Range-Breite. Beweis: - Zwillings-Tor Baseline->Kandidat: Boden gto -36.25 -> -23.93, Offense +43.95 -> +44.16 (haelt), Exploitability 77.03 unveraendert (River-Batterie nutzt None-Profile, die der Fix nicht beruehrt) => Gate::passes. - Paired (floor_read, Memory, 4000 Austeilungen): gto +6.84+-6.74, gto-small +6.15+-4.50 Better, maniac Identisch (Over-Bluffer-Defense unberuehrt). - 93 Lib-Tests gruen (+1 Regressionstest a_wide_but_balanced_headsup...). Werkzeuge: src/bin/gto_read_probe.rs (zeigt die Fehlklassifikation), src/bin/floor_read.rs (Boden je Lese-Modus). Befund: docs/notizen/BEFUND-gto-ueberdefense-read.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
//! The read-driven slice of the GTO robustness floor: gto / gto-small per read mode.
|
||||
//!
|
||||
//! For a `Regular`/`Gto` the range model is gated to blind in every read mode (`earned_trust == 0`), so
|
||||
//! the only lever that touches it is the ungated MDF floor. Before the `over_bluffs` fix the session
|
||||
//! (Memory) read tagged the balanced heads-up opponent LooseAggressive on preflop width alone, firing
|
||||
//! the floor to force-call its value bets — so Memory sat with Blind, ~12 bb/100 below Oracle
|
||||
//! (BEFUND-gto-ueberdefense-read). After the fix the floor keys on measured postflop aggression, which
|
||||
//! the balanced opponent does not trip, so Memory recovers toward Oracle (the read-gap closes).
|
||||
//!
|
||||
//! Run: `cargo run --release --bin floor_read [deals]` (default 4000, twin_gate's archetype budget).
|
||||
|
||||
use rechner::sim::opponent::Opponent;
|
||||
use rechner::sim::reader::Style;
|
||||
use rechner::sim::session::{measure, ReadMode, Setup};
|
||||
|
||||
const SEED: u64 = 0x5EED_0001;
|
||||
const STACK_BB: f64 = 100.0;
|
||||
|
||||
fn row(style: Style, read: ReadMode, deals: u32) {
|
||||
let setup = Setup { players: 2, opponent: Opponent::Reader(style), deals, stack_bb: STACK_BB, seed: SEED, read };
|
||||
let m = measure(&setup);
|
||||
println!(
|
||||
" {:<9} {:<7} {:>+8.2} bb/100 ±{:>5.2}",
|
||||
style.name(),
|
||||
format!("{read:?}"),
|
||||
m.bb_per_100,
|
||||
m.ci95,
|
||||
);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let deals: u32 = std::env::args().nth(1).and_then(|s| s.parse().ok()).unwrap_or(4000);
|
||||
println!("=== Floor-Read: gto/gto-small je Lese-Modus, {deals} Austeilungen ===");
|
||||
println!("Nach dem Fix sollte Memory ~= Oracle sein (Read-Luecke geschlossen), nicht mehr = Blind.\n");
|
||||
for style in [Style::Gto, Style::GtoSmall] {
|
||||
for read in [ReadMode::Oracle, ReadMode::Blind, ReadMode::Memory] {
|
||||
row(style, read, deals);
|
||||
}
|
||||
println!();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
//! Does the session (Memory) read misclassify the balanced heads-up gto as LooseAggressive, tripping
|
||||
//! the MDF floor's `over_bluffs`? Accumulates `SessionMemory` over a session against the gto exactly as
|
||||
//! `session::deal_samples` does, and prints the evolving read + `classify` at checkpoints.
|
||||
//!
|
||||
//! Run: `cargo run --release --bin gto_read_probe [deals]`.
|
||||
|
||||
use rechner::exploit::style::classify;
|
||||
use rechner::rng::Rng;
|
||||
use rechner::sim::memory::SessionMemory;
|
||||
use rechner::sim::opponent::Opponent;
|
||||
use rechner::sim::reader::Style;
|
||||
use rechner::sim::table::{deal, play_hand_tracked, HandRead, HandSetup, TableCost};
|
||||
|
||||
const SEED: u64 = 0x5EED_0001;
|
||||
const STACK_BB: f64 = 100.0;
|
||||
const PLAYERS: usize = 2;
|
||||
|
||||
fn mix(seed: u64, n: u64) -> u64 {
|
||||
Rng::seeded(seed ^ n.wrapping_mul(0xD1B5_4A32_D192_ED03)).next_u64().0
|
||||
}
|
||||
|
||||
/// The shipped `over_bluffs` predicate (mdf_floor): measured postflop aggression ≥ 0.45, NOT preflop
|
||||
/// width. The old rule (`classify == LooseAggressive || aggr >= 0.60`) misfired on the balanced wide
|
||||
/// heads-up read; this probe shows why (classify still says LooseAggressive, but aggr stays ~0.35).
|
||||
fn over_bluffs_now(p: &rechner::exploit::profile::Profile) -> bool {
|
||||
p.aggression.is_some_and(|a| a >= 0.45)
|
||||
}
|
||||
|
||||
fn final_read(style: Style, deals: u32) {
|
||||
let mut memory = SessionMemory::new();
|
||||
for d in 0..deals {
|
||||
let (cards, _) = deal(PLAYERS, Rng::seeded(mix(SEED, d as u64)));
|
||||
for hero_seat in 1..=PLAYERS as u8 {
|
||||
let hand = HandSetup {
|
||||
deal: &cards,
|
||||
hero_seat,
|
||||
opponent: Opponent::Reader(style),
|
||||
stack_bb: STACK_BB,
|
||||
seed: mix(SEED ^ 0xA5A5, (d as u64) << 8 | hero_seat as u64),
|
||||
read: HandRead::Given(memory.read()),
|
||||
};
|
||||
play_hand_tracked(&hand, TableCost::FREE, Some(&mut memory));
|
||||
}
|
||||
}
|
||||
match memory.read() {
|
||||
None => println!(" {:<10} kein Read", style.name()),
|
||||
Some(p) => println!(
|
||||
" {:<10} vpip {:>4.2} pfr {:>4.2} fold2bet {:>4.2} aggr {:>4.2} -> {:<16} over_bluffs={}",
|
||||
style.name(),
|
||||
p.vpip.unwrap_or(f64::NAN),
|
||||
p.pfr.unwrap_or(f64::NAN),
|
||||
p.fold_to_bet.unwrap_or(f64::NAN),
|
||||
p.aggression.unwrap_or(f64::NAN),
|
||||
format!("{:?}", classify(&p)),
|
||||
over_bluffs_now(&p),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let deals: u32 = std::env::args().nth(1).and_then(|s| s.parse().ok()).unwrap_or(3000);
|
||||
println!("=== Memory-Read je Archetyp (Endstand), {deals} Austeilungen ===");
|
||||
println!("over_bluffs (geshippt) = aggression>=0.45 => MDF-Boden feuert (NICHT mehr Preflop-Breite).");
|
||||
println!("Balanciert (gto/gto-small) sollte over_bluffs=false sein, Maniac=true.\n");
|
||||
// Fast archetypes only here (no solver). `GTO_TOO=1` also runs gto/gto-small (slow solver).
|
||||
let mut styles = vec![Style::Maniac, Style::Fish, Style::Reg, Style::Nit];
|
||||
if std::env::var("GTO_TOO").is_ok() {
|
||||
styles.push(Style::Gto);
|
||||
styles.push(Style::GtoSmall);
|
||||
}
|
||||
for style in styles {
|
||||
final_read(style, deals);
|
||||
}
|
||||
}
|
||||
+41
-21
@@ -13,14 +13,16 @@
|
||||
//! 1.0). Flop and turn defence couples with realisation and is left to the equity line.
|
||||
|
||||
use crate::exploit::profile::Profile;
|
||||
use crate::exploit::style::{classify, Style};
|
||||
use crate::game::{ActionKind, Choice, Decision, Spot, Street};
|
||||
use crate::odds::break_even::break_even;
|
||||
use crate::read::made::Made;
|
||||
|
||||
/// At or above this observed postflop aggression the bettor bluffs enough that MDF defence is owed
|
||||
/// even without the loose-aggressive read (a genuine maniac who just is not loose preflop).
|
||||
const OVER_BLUFF_AGGRESSION: f64 = 0.60;
|
||||
/// At or above this observed postflop aggression the bettor bets and raises more than a value range
|
||||
/// supports, so MDF defence of a bluff-catcher is owed. Set BETWEEN a balanced range player's
|
||||
/// measured aggression and a genuine over-bluffer's: the near-GTO opponents read ~0.35-0.40
|
||||
/// (gto Memory 0.35, Oracle 0.40; gto-small lower), a maniac reads ~0.49-0.50 (Memory 0.49, Oracle
|
||||
/// 0.50). A threshold of 0.45 trips the maniac and spares the balanced player.
|
||||
const OVER_BLUFF_AGGRESSION: f64 = 0.45;
|
||||
|
||||
/// Fraction of random hands hero's made class beats by showdown - the MDF yardstick (rough,
|
||||
/// monotone in `Made`). Not an equity: only its order and rough level matter, to place the hand
|
||||
@@ -53,19 +55,22 @@ fn beats_bluffs(made: Made) -> bool {
|
||||
}
|
||||
|
||||
/// Positive, directly observed evidence that this bettor OVER-bluffs, so the range model's fold of a
|
||||
/// bluff-catcher is wrong and MDF defence is owed: a loose-aggressive style (a maniac bets far more
|
||||
/// than a value range supports), or an extreme raw aggression frequency that says the same without
|
||||
/// the loose read. Reads the robust observed FREQUENCY (`aggression`, vpip/pfr/fold), never the
|
||||
/// miscalibrated range model.
|
||||
/// bluff-catcher is wrong and MDF defence is owed: an observed postflop aggression frequency above
|
||||
/// what a value range supports. This is the DIRECT bluff signal — bets and raises per postflop action
|
||||
/// — not preflop range WIDTH.
|
||||
///
|
||||
/// A tight or balanced regular does NOT qualify (`classify` → `Regular`/`Nit`, moderate aggression):
|
||||
/// its river bets are value-weighted, so forcing an MDF call pays off value (BEFUND-gto-ueberdefense:
|
||||
/// −52 bb/100 from river calls below 45 % equity against the balanced opponent). There the floor
|
||||
/// stays off and we trust the model's fold - the crown equation's trust region (λ = earned trust):
|
||||
/// only a read that says "this bettor bluffs too much" overrides the model.
|
||||
/// Why width is excluded: an earlier version also fired on `classify == LooseAggressive`, which keys on
|
||||
/// vpip ≥ 0.35 ∧ pfr ≥ 0.20 — preflop range width. Heads-up, a correctly balanced opponent plays a wide
|
||||
/// range (button opens ~80 %, big blind defends ~70 %), so its MEASURED vpip/pfr read loose-aggressive
|
||||
/// (gto session read vpip 0.70, pfr 0.46) even though its postflop aggression is only ~0.35 and its
|
||||
/// bets are value-balanced. That width clause force-called the balanced opponent's value bets — the
|
||||
/// −52 bb/100 over-call BEFUND-gto-ueberdefense first saw under the oracle read, resurfacing under the
|
||||
/// realistic session read because the oracle vpip was hand-set to a narrow 0.32 but the session read
|
||||
/// measures the true 0.70 (BEFUND-gto-ueberdefense-read). Range width ≠ bluff frequency; only measured
|
||||
/// over-aggression earns the defence. The crown equation's trust region, defensive side: only a read
|
||||
/// that says "this bettor bluffs too much" overrides the model's fold.
|
||||
fn over_bluffs(profile: &Profile) -> bool {
|
||||
classify(profile) == Style::LooseAggressive
|
||||
|| profile.aggression.is_some_and(|a| a >= OVER_BLUFF_AGGRESSION)
|
||||
profile.aggression.is_some_and(|a| a >= OVER_BLUFF_AGGRESSION)
|
||||
}
|
||||
|
||||
/// Could the bet be bluff-heavy enough that MDF requires defending our bluff-catcher? Only against an
|
||||
@@ -194,19 +199,34 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn a_balanced_regular_is_not_floored() {
|
||||
// The near-GTO opponent (reads.rs p(0.32, 0.22, 0.42, 0.40)): tight-aggressive, folds near
|
||||
// MDF, moderate aggression. classify -> Regular, aggression < 0.60 -> no over-bluff evidence,
|
||||
// so the model's fold is trusted and a bluff-catcher is NOT force-called
|
||||
// (BEFUND-gto-ueberdefense: this is the −52 bb/100 river-call leak).
|
||||
// The near-GTO opponent (reads.rs oracle p(0.32, 0.22, 0.42, 0.40)): moderate aggression 0.40
|
||||
// < 0.45 -> no over-bluff evidence, so the model's fold is trusted and a bluff-catcher is NOT
|
||||
// force-called (BEFUND-gto-ueberdefense: this is the −52 bb/100 river-call leak).
|
||||
let gto = Profile { pfr: Some(0.22), ..prof(0.40, 0.32, 0.42) };
|
||||
let spot = Spot { villains: vec![villain(Some(gto))], ..river(12.0, 6.0) };
|
||||
assert!(!defends(&spot, Made::MiddlePair));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_wide_but_balanced_headsup_opponent_is_not_floored() {
|
||||
// The regression this fix buys: the gto's realistic SESSION read, vpip 0.70 / pfr 0.46 /
|
||||
// aggression 0.35 (measured heads-up, not the hand-set oracle). classify -> LooseAggressive on
|
||||
// preflop WIDTH alone, which the old `over_bluffs` fired on and force-called into a balanced
|
||||
// value range (BEFUND-gto-ueberdefense-read). Aggression 0.35 < 0.45 -> no over-bluff evidence,
|
||||
// so the floor now stays off and trusts the model's fold.
|
||||
let wide = Profile { pfr: Some(0.46), ..prof(0.35, 0.70, 0.50) };
|
||||
use crate::exploit::style::{classify, Style};
|
||||
assert_eq!(classify(&wide), Style::LooseAggressive);
|
||||
let spot = Spot { villains: vec![villain(Some(wide))], ..river(12.0, 6.0) };
|
||||
assert!(!defends(&spot, Made::MiddlePair));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_loose_aggressive_bettor_is_still_floored() {
|
||||
// The maniac (reads.rs p(0.76, 0.42, 0.50, 0.50)): loose-aggressive, bets far more than a
|
||||
// value range supports, so MDF defence against its bluffs is owed and the floor holds.
|
||||
// The maniac (reads.rs oracle p(0.76, 0.42, 0.50, 0.50); session read aggression ~0.49): its
|
||||
// measured postflop aggression 0.50 >= 0.45 bets far more than a value range supports, so MDF
|
||||
// defence against its bluffs is owed and the floor holds — on the direct aggression signal, not
|
||||
// preflop width (which it shares with the balanced wide opponent above).
|
||||
let maniac = Profile { pfr: Some(0.42), ..prof(0.50, 0.76, 0.50) };
|
||||
let spot = Spot { villains: vec![villain(Some(maniac))], ..river(12.0, 6.0) };
|
||||
assert!(defends(&spot, Made::MiddlePair));
|
||||
|
||||
Reference in New Issue
Block a user