Farm: Bitgleichprobe strenges Sidecar auf ed527e4cd (Basis 53a4a84aa, beide gebaut), Zaehlung 'Lage nicht treu'; kritischer Pfad erlaubt den Auftrag

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Marc Mintel
2026-12-05 18:03:30 +01:00
co-authored by Claude Opus 5.5
parent cd776cad1c
commit 7048b3d3dd
3 changed files with 37 additions and 4 deletions
+30
View File
@@ -0,0 +1,30 @@
# innovation 05.12. abends: Bitgleichprobe strenges Vorflop-selbst-Sidecar auf der Fassungs-Exe.
# Bau: Basis temperatur-uhr 53a4a84aa und claude/vorflop-selbst-streng ed527e4cd (53a4a84aa + uhr2 6a293e400), nativ mit .cargo,
# Loeserkopie wie bau-0995aa84.ps1 (postflop-solver-mess + loeser-temp.patch des Stands). Dann vs_bitgleich.py: A0, A0b, A, B.
$ErrorActionPreference = 'Continue'
if (Test-Path 'D:\Projects\pokerfreak\scratch\laeufer.pid') { 'SPIELT'; exit 2 }
$fremd = 'D:\Projects\fremd'; $patchexe = 'C:\Program Files\Git\usr\bin\patch.exe'; $z = 'C:\pf-arbeit\vs-streng'; New-Item -ItemType Directory -Force $z | Out-Null
$exe = @{}
foreach ($b in @(@('basis', '53a4a84aa', 'pokerbench-temperatur-uhr-53a4a84a.exe'), @('streng', 'ed527e4cd', 'pokerbench-innovation-vorflopselbst-streng.exe'))) {
$arm, $c, $name = $b; $kurz = $c.Substring(0, 8); $wt = "C:\pf-arbeit\pf-streng-$c"
if (-not (Test-Path "$wt\entscheiden\motor\Cargo.toml")) { New-Item -ItemType Directory -Force $wt | Out-Null; tar -xf "$wt.tar" -C $wt }
$temp = "$fremd\postflop-solver-temp-$kurz"
$toml = "$wt\entscheiden\motor\Cargo.toml"; (Get-Content $toml) -replace 'postflop-solver-temp"', "postflop-solver-temp-$kurz`"" | Set-Content $toml -Encoding utf8
if (-not (Test-Path $temp)) {
robocopy "$fremd\postflop-solver-mess" $temp /E /XD target .git /NFL /NDL /NJH /NJS | Out-Null
Push-Location $temp; & $patchexe -p1 --binary -i "$wt\entscheiden\motor\loeser-temp.patch"; $rc = $LASTEXITCODE; Pop-Location
if ($rc -ne 0) { "PATCH $arm fehlgeschlagen"; exit 1 }; "Loeserkopie $temp angelegt"
} else {
Push-Location $temp; & $patchexe -p1 --binary -R --dry-run -i "$wt\entscheiden\motor\loeser-temp.patch" | Out-Null; $rc = $LASTEXITCODE; Pop-Location
if ($rc -ne 0) { "Loeserkopie $temp passt nicht zum Patch"; exit 1 }; "Loeserkopie $temp passt"
}
"-- $arm $c .cargo " + (Test-Path "$wt\.cargo\config.toml")
Push-Location "$wt\entscheiden\motor"; cargo build --release --locked -j 16 --bin motor 2>&1 | Select-Object -Last 2; $rc = $LASTEXITCODE; Pop-Location
if ($rc -ne 0) { "BAU $arm fehlgeschlagen $rc"; exit 1 }
$exe[$arm] = "$z\$name"; if (-not (Test-Path $exe[$arm])) { Copy-Item "$wt\entscheiden\motor\target\release\motor.exe" $exe[$arm] }
"EXE $($exe[$arm]) " + (Get-FileHash $exe[$arm]).Hash
}
$sc = 'D:\Projects\pokerfreak-daten\innovation\vorflop_selbst\sechs100-v2-suche-br-bsaat.vselbst'; "SIDECAR " + (Get-FileHash $sc).Hash
$aus = 'D:\Projects\pokerfreak-daten\innovation\vorflop_selbst\bitgleich-streng'; New-Item -ItemType Directory -Force $aus | Out-Null
python -X utf8 C:\pf-arbeit\vs_bitgleich.py $exe.basis $exe.streng $sc D:\Projects\pokerfreak-daten\pruefstand\basis-rein\ein.jsonl $aus 100 2>&1 | % { "$_" }
exit $LASTEXITCODE
+6 -3
View File
@@ -27,6 +27,7 @@ UMG = {"RAYON_NUM_THREADS": "16", "R0": "1", "MOTOR_RAKE_REGEL": "1", "MOTOR_VOR
"MOTOR_RIVER_WERT_TAFEL": "D:/Projects/pokerfreak-daten/river-wert/river-wert-tafel-v3.txt"}
NORM = re.compile(r"\d+(\.\d+)?\s?ms")
MARKE = "Vorflop-selbst"
NICHT_TREU = "Lage nicht treu"
def schluessel(r):
@@ -65,11 +66,13 @@ def main():
antw[name] = [json.loads(z) for z in open(aus, encoding="utf-8") if z.strip()]
print("RUECKGABE %s %d nach %.1f min, %d Antworten" % (name, rc, (time.time() - t0) / 60, len(antw[name])), flush=True)
for a, b in (("A0", "A0b"), ("A0", "A"), ("A", "B")):
gleich, anders, ohne_marke, mit_marke_b = (collections.Counter() for _ in range(4))
gleich, anders, ohne_marke, mit_marke_b, nicht_treu = (collections.Counter() for _ in range(5))
bsp = []
for st, x, y in zip(strassen, antw[a], antw[b]):
if MARKE in str(y.get("reason")):
mit_marke_b[st] += 1
if NICHT_TREU in str(y.get("reason")):
nicht_treu[st] += 1
if schluessel(x) == schluessel(y):
gleich[st] += 1
else:
@@ -78,8 +81,8 @@ def main():
ohne_marke[st] += 1
if len(bsp) < 5:
bsp.append((st, str(x.get("action")), str(x.get("reason"))[:100], str(y.get("action")), str(y.get("reason"))[:100]))
print("%s gegen %s: gleich %s | anders %s | anders ohne '%s' im Grund %s | '%s' im Grund (%s) %s" % (
b, a, dict(gleich), dict(anders), MARKE, dict(ohne_marke), MARKE, b, dict(mit_marke_b)))
print("%s gegen %s: gleich %s | anders %s | anders ohne '%s' im Grund %s | '%s' im Grund (%s) %s | '%s' im Grund (%s) %s" % (
b, a, dict(gleich), dict(anders), MARKE, dict(ohne_marke), MARKE, b, dict(mit_marke_b), NICHT_TREU, b, dict(nicht_treu)))
for x in bsp:
print(" Beispiel ohne Marke:", x)
if len(antw[a]) != len(antw[b]):
@@ -1,7 +1,7 @@
# 05.12. main/Owner: Farm nur fuer den kritischen Pfad der Live-Fassung. Alles andere manuell anhalten bzw. halten (fortsetzbar, nichts beendet).
$Q = 'D:\Projects\pf-batterie\messung\farm\schlange'
$grund = 'manuell farm 05.12. ' + (Get-Date -Format 'HH:mm') + ': Owner - Farm nur kritischer Pfad (exakt-Bau 3e88ab53/Flop-Fenster, jamprobe-allein, temperatur, sim-gekauft); fortsetzen durch farm nach Freigabe'
function Erlaubt([string]$id) { $id -match '^(flop-fenster-.*3e88ab53|innovation-jamprobe-allein.*|innovation-vorflopselbst-bitgleich|motor-pi-aus-pruefung|temperatur-uhr-0995-.*|sim-?gekauft.*|simpool.*)$' }
function Erlaubt([string]$id) { $id -match '^(flop-fenster-.*3e88ab53|innovation-jamprobe-allein.*|innovation-vorflopselbst-bitgleich|innovation-vorflopselbst-streng|motor-pi-aus-pruefung|temperatur-uhr-0995-.*|sim-?gekauft.*|simpool.*)$' }
$rang = @{ 'flop-fenster' = -10; 'innovation' = -9; 'motor-pi' = -8; 'temperatur' = -8; 'sim-gekauft' = -7 }
foreach ($f in Get-ChildItem "$Q\laufend" -Filter *.json) {
$id = $f.BaseName