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>
39 lines
1.8 KiB
Rust
39 lines
1.8 KiB
Rust
//! Per-archetype Blind vs Memory EV: does acting on the (station) read HELP or HURT each archetype?
|
||
//! This decides whether softening the binary CallingStation trust is safe. If Memory ≥ Blind the read
|
||
//! is a net gain (keep trust high); if Memory < Blind the station exploit is already costing and
|
||
//! softening helps. Prints the gap = Memory − Blind.
|
||
//!
|
||
//! Run: `cargo run --release --bin arch_read [deals]` (default 4000; fast threshold styles only —
|
||
//! gto/gto-small run a per-decision solver and are covered by the twin gate).
|
||
|
||
use rechner::exploit::style::classify;
|
||
use rechner::sim::opponent::Opponent;
|
||
use rechner::sim::reader::Style;
|
||
use rechner::sim::reads::opponent_profile;
|
||
use rechner::sim::session::{measure, ReadMode, Setup};
|
||
|
||
const SEED: u64 = 0x5EED_0001;
|
||
const STACK_BB: f64 = 100.0;
|
||
|
||
fn ev(style: Style, read: ReadMode, deals: u32) -> f64 {
|
||
let setup =
|
||
Setup { players: 2, opponent: Opponent::Reader(style), deals, stack_bb: STACK_BB, seed: SEED, read };
|
||
measure(&setup).bb_per_100
|
||
}
|
||
|
||
fn main() {
|
||
let deals: u32 = std::env::args().nth(1).and_then(|s| s.parse().ok()).unwrap_or(4000);
|
||
println!("=== Archetyp Blind vs Memory, {deals} Austeilungen ===");
|
||
println!("gap = Memory - Blind (>0: Read nuetzt, <0: Station-Exploit kostet schon)\n");
|
||
println!(" {:<8} {:>9} {:>9} {:>9} {}", "style", "blind", "memory", "gap", "oracle-classify");
|
||
for style in [Style::Fish, Style::Reg, Style::Nit, Style::Maniac] {
|
||
let blind = ev(style, ReadMode::Blind, deals);
|
||
let memory = ev(style, ReadMode::Memory, deals);
|
||
let oc = opponent_profile(Opponent::Reader(style)).map(|p| format!("{:?}", classify(&p)));
|
||
println!(
|
||
" {:<8} {:>+9.2} {:>+9.2} {:>+9.2} {}",
|
||
style.name(), blind, memory, memory - blind, oc.unwrap_or_else(|| "-".into())
|
||
);
|
||
}
|
||
}
|