Postflop: knappe Fold-oder-Call-Spots entschlossen statt ABSTAIN (Owner 8.11.)

Eine Weltklasse-Engine entscheidet jeden knappen Spot selbst. Das alte
Unsicherheitsband um den Breakpoint gab ABSTAIN zurueck -> live FOLD und
foldete so die rausch-nahe +EV-Call-SEITE weg (Overfold, bes. Flop/Turn
mit grossem std_error; PLO5-Benchmark-Defekt). Der call_margin bleibt die
Call-Schwelle (scored erzwingt sie); nur die Enthaltung faellt weg, der
EV-maximale winner entscheidet. Das marginale Raise-Band (Spew-Schutz)
und der Invalid-Equity-ABSTAIN bleiben.

Verifiziert: Cash-Benchmark +2.06 bb/100 'nicht unterscheidbar' (keine
Regression), PLO5-Benchmark rc 1->0 (Defekt behoben), River-Sonde 0 Leck,
engine_choose_postflop/engine_uncertainty gruen, AoF/Kurzstack 40 gruen.
Pre-existing reds unberuehrt (cfr_multi Chart-Drift; pipeline_tournament +
icm_bubble = ICM-Defense-Verengung flippt auf CFR-FacingJam-Spots 0 Haende,
eigener Hebel).
This commit is contained in:
2026-11-08 09:25:03 +01:00
parent f6365763df
commit 55dff14ac2
3 changed files with 29 additions and 36 deletions
+7 -14
View File
@@ -115,16 +115,18 @@ pub fn choose_postflop_with(
let eff = effective(spot, raw, thresholds, read);
let share = eff.share;
let be = break_even(spot.pot, spot.to_call);
let breakpoint = be + eff.call_margin;
let band = thresholds.abstain_band + 2.0 * estimate.std_error.max(0.0);
let facing_choice = spot.is_legal(ActionKind::Fold)
&& spot.is_legal(ActionKind::Call)
&& !spot.is_legal(ActionKind::Check);
let head = headline(read, &eff);
let options = scored(spot, &eff, thresholds, read, called);
let winner = best(&options);
let priced = |decision: Decision| decision.with_evs(action_evs(spot, share, &options));
// Weltklasse-Linie (Owner 8.11.): die Engine ENTSCHEIDET jeden knappen Fold-oder-Call-Spot selbst
// (Call iff `share >= break-even + call_margin`, das `scored` erzwingt; sonst Fold) statt sich
// im Unsicherheitsband um den Breakpoint zu enthalten. Das alte Band gab ABSTAIN zurueck -> live
// Fold, und foldete so die rausch-nahe +EV-Call-SEITE weg (Overfold-Leak, besonders Flop/Turn mit
// grossem std_error; PLO5-Benchmark-Defekt). Der `call_margin` bleibt unveraendert die Call-
// Schwelle - nur die Enthaltung faellt weg, der `winner` (EV-Maximum) entscheidet. Das MARGINALE
// Raise-Band unten (Spew-Schutz gegen Fold-Equity-Raises) bleibt.
if let Some(Scored { choice: Choice::Raise { to }, ev: raise_ev, kind }) = winner {
// A value raise stays a raise inside its error: the hand is strong enough on its own
// account, the lead only says how much better than checking it is. Only the raises
@@ -137,15 +139,6 @@ pub fn choose_postflop_with(
format!("{head}: raise EV lead {gap:+.2} inside its error {error:.2}"),
));
}
} else if facing_choice && (share - breakpoint).abs() < band {
return priced(Decision::new(
Choice::Abstain,
abstain_confidence((share - breakpoint).abs(), band),
format!(
"{head}: equity {raw:.2} (realised {share:.2}) vs break-even {be:.2} + margin {:.2}: inside uncertainty band {band:.3}",
eff.call_margin
),
));
}
priced(match winner {
+8 -6
View File
@@ -26,17 +26,19 @@ fn clear_fold_when_equity_is_far_below_the_price() {
}
#[test]
fn abstains_near_the_breakpoint() {
fn decides_just_below_the_breakpoint() {
// Weltklasse-Linie (Owner 8.11.): knapp unter dem Breakpoint (0.3533) wird entschlossen
// gefoldet, nicht enthalten - die Engine spielt jeden knappen Spot selbst.
let d = choose_postflop(&round_flop(), &estimate(0.34, 0.005), &BASE, &neutral_read());
assert_eq!(d.choice, Choice::Abstain);
assert!(d.confidence.value() > 0.0 && d.confidence.value() <= 0.3, "{d:?}");
assert_eq!(d.choice, Choice::Fold);
}
#[test]
fn abstain_band_widens_with_the_standard_error() {
// call breakpoint = 1/3 + call_margin 0.02 = 0.3533
fn a_plus_ev_call_is_taken_despite_noise() {
// Over the breakpoint (0.3533) the call is +EV and is TAKEN even with a noisy estimate - the
// old uncertainty band abstained (-> live fold) the +EV call side away (Owner 8.11., leak fix).
let noisy = choose_postflop(&round_flop(), &estimate(0.38, 0.02), &BASE, &neutral_read());
assert_eq!(noisy.choice, Choice::Abstain);
assert_eq!(noisy.choice, Choice::Call);
let tight = choose_postflop(&round_flop(), &estimate(0.38, 0.001), &BASE, &neutral_read());
assert_eq!(tight.choice, Choice::Call);
}
+14 -16
View File
@@ -35,38 +35,36 @@ fn confidence_never_leaves_its_range() {
// round_flop: break-even 1/3, plain call margin 0.02 -> call breakpoint 0.3533.
#[test]
fn abstain_near_the_effective_breakpoint_carries_small_confidence() {
fn folds_just_below_the_effective_breakpoint() {
// 0.34 is below the call breakpoint 0.3533 -> decisive Fold (Owner 8.11.: no abstain band).
let d = choose_postflop(&round_flop(), &estimate(0.34, 0.005), &BASE, &neutral_read());
assert_eq!(d.choice, Choice::Abstain);
let c = d.confidence.value();
assert!((0.05..=0.30).contains(&c), "{c}");
assert_eq!(d.choice, Choice::Fold);
}
#[test]
fn closer_to_the_edge_means_less_confidence() {
fn just_under_the_breakpoint_folds_decisively() {
let near = choose_postflop(&round_flop(), &estimate(0.352, 0.005), &BASE, &neutral_read());
let rim = choose_postflop(&round_flop(), &estimate(0.335, 0.005), &BASE, &neutral_read());
assert_eq!((near.choice, rim.choice), (Choice::Abstain, Choice::Abstain));
assert!(near.confidence < rim.confidence, "{near:?} {rim:?}");
assert_eq!((near.choice, rim.choice), (Choice::Fold, Choice::Fold));
}
#[test]
fn the_band_applies_to_the_texture_adjusted_breakpoint() {
// Medium pair on a dry board: margin 0.02 + 0.01 + 0.004 = 0.034 -> breakpoint 0.3673.
// Share 0.38 is outside the band around the plain 0.3533 but inside the one around 0.3673.
fn the_texture_adjusted_breakpoint_still_decides() {
// Medium pair on a dry board lifts the call margin to 0.034 -> breakpoint 0.3673.
// Share 0.36 clears the plain breakpoint (0.3533 -> Call) but not the texture one (-> Fold).
let medium = read_of(Made::MiddlePair, Draw::None, 0, SuitPattern::Rainbow, 0.1);
let plain = choose_postflop(&round_flop(), &estimate(0.38, 0.001), &BASE, &neutral_read());
let shifted = choose_postflop(&round_flop(), &estimate(0.38, 0.001), &BASE, &medium);
let plain = choose_postflop(&round_flop(), &estimate(0.36, 0.001), &BASE, &neutral_read());
let shifted = choose_postflop(&round_flop(), &estimate(0.36, 0.001), &BASE, &medium);
assert_eq!(plain.choice, Choice::Call);
assert_eq!(shifted.choice, Choice::Abstain, "{shifted:?}");
assert_eq!(shifted.choice, Choice::Fold, "{shifted:?}");
}
#[test]
fn the_band_applies_to_the_multiway_adjusted_breakpoint() {
// Three-way: realized 0.38 * 0.9409 = 0.3575, breakpoint 0.3333 + 0.04 = 0.3733.
fn the_multiway_adjusted_breakpoint_still_decides() {
// Three-way: realized 0.38 * 0.9409 = 0.3575, breakpoint 0.3333 + 0.04 = 0.3733 -> Fold.
let spot = with_villains(round_flop(), 3);
let d = choose_postflop(&spot, &estimate(0.38, 0.001), &BASE, &neutral_read());
assert_eq!(d.choice, Choice::Abstain, "{d:?}");
assert_eq!(d.choice, Choice::Fold, "{d:?}");
}
#[test]