STATION_POSTFLOP=schmal: gegen einen Spieler, den der Postflop-Schnitt herabstuft, beide Entscheidungen (Stations-Read und blind), die weniger aggressive gilt; diag_welt DIAG_SCHALTER=station (DIAG_STATION=schmal)

Knotendiagnose HU 2000x4: voller Schalter gewann nur, wo der Stations-Read aggressiver war
(cbet-folder +36,5, nemesis-2 +38,4: Raise->Call/Check/Fold), verlor nur, wo er vorsichtiger war
(check-raiser -6,7, polar -5,1: Fold->Call, Call->Raise). schmal: cbet-folder +48,3, nemesis-2 +47,0,
check-raiser -0,13, polar +0,14. Aus und =1 unveraendert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 17:45:07 +01:00
co-authored by Claude Opus 5.5
parent a8724dcb8b
commit bfe1d633f6
3 changed files with 92 additions and 10 deletions
+52 -6
View File
@@ -40,18 +40,60 @@ const STATION_FULL_TRUST_AGGRESSION: f64 = 0.20;
/// needs a postflop signal - fold-to-bet at most `STATION_LOOSE_MAX_FOLD` (unknown passes). A reg who
/// only opens wider (the learning HUD reg, `sim::lerner`, 15.11.: memory read -7,15 bb/100 against blind,
/// all postflop) folds like a reg and is no station, however wide it plays preflop.
fn station_postflop() -> bool {
/// `STATION_POSTFLOP=schmal` (15.11., node diagnosis `diag_welt DIAG_SCHALTER=station`): against a
/// player the switch would demote (`station_demoted`), hero decides both ways - station read and blind
/// (the demoted Regular is gated blind) - and plays the LESS aggressive action (`engine::decide`). The
/// full demotion won only where the station read was the more aggressive one (thin value raises into a
/// frequent folder: cbet-folder +36, nemesis-2 +38, all Raise -> Call/Check/Fold nodes) and lost only
/// where it was the more cautious one (check-raiser −6,7, polar −5,1: Fold -> Call, Call -> Raise).
fn station_mode() -> u8 {
use std::sync::OnceLock;
static ON: OnceLock<bool> = OnceLock::new();
*ON.get_or_init(|| std::env::var("STATION_POSTFLOP").as_deref() == Ok("1"))
static MODE: OnceLock<u8> = OnceLock::new();
STATION_OVERRIDE.with(|o| o.get()).unwrap_or_else(|| {
*MODE.get_or_init(|| match std::env::var("STATION_POSTFLOP").as_deref() {
Ok("1") => 1,
Ok("schmal") => 2,
_ => 0,
})
})
}
fn station_postflop() -> bool {
station_mode() == 1
}
/// `STATION_POSTFLOP=schmal` is on (the two-way decision in `engine::decide`).
pub fn station_narrow() -> bool {
station_mode() == 2
}
/// A station by the old rule that the postflop gate demotes (it folds more than `STATION_LOOSE_MAX_FOLD`).
pub fn station_demoted(profile: &Profile) -> bool {
classify_with(profile, false) == Style::CallingStation && classify_with(profile, true) != Style::CallingStation
}
/// The current thread's override (to restore it after a two-way decision).
pub fn station_postflop_override() -> Option<u8> {
STATION_OVERRIDE.with(|o| o.get())
}
thread_local! {
static STATION_OVERRIDE: std::cell::Cell<Option<u8>> = const { std::cell::Cell::new(None) };
}
/// Diagnostics only (`diag_welt DIAG_SCHALTER=station`): force the `STATION_POSTFLOP` mode on this
/// thread (0 off, 1 on, 2 schmal), `None` = the environment switch.
pub fn set_station_postflop_override(mode: Option<u8>) {
STATION_OVERRIDE.with(|o| o.set(mode));
}
/// Fold-to-bet above which a loose-passive player is not a station under `STATION_POSTFLOP` (a reg
/// folds ~0,50-0,55, the stations of the ladder 0,20-0,35).
const STATION_LOOSE_MAX_FOLD: f64 = 0.45;
fn folds_like_a_station(fold: Option<f64>) -> bool {
!station_postflop() || fold.is_none_or(|b| b <= STATION_LOOSE_MAX_FOLD)
fn folds_like_a_station(fold: Option<f64>, gate: bool) -> bool {
!gate || fold.is_none_or(|b| b <= STATION_LOOSE_MAX_FOLD)
}
/// A frequency in `[0, 1]`; NaN means "not known".
@@ -74,6 +116,10 @@ fn frequency(x: Option<f64>) -> Option<f64> {
/// and the station exploit it then bled −448 bb/100 to. The `sticky` path (fold ≤ 30 %) is a real
/// non-folder and stays a station regardless of aggression.
pub fn classify(profile: &Profile) -> Style {
classify_with(profile, station_postflop())
}
fn classify_with(profile: &Profile, station_gate: bool) -> Style {
let (vpip, pfr, fold, aggr) = (
frequency(profile.vpip),
frequency(profile.pfr),
@@ -92,7 +138,7 @@ pub fn classify(profile: &Profile) -> Style {
Style::Unknown
} else if loose && pfr.is_some_and(|f| f >= AGGRESSIVE_PFR) {
Style::LooseAggressive
} else if (loose && passive && folds_like_a_station(fold)) || sticky {
} else if (loose && passive && folds_like_a_station(fold, station_gate)) || sticky {
Style::CallingStation
} else if tight {
Style::Nit