bug: leaderboard runs affected by two balatrobot defects — economy short-collected, losses recorded as wins

Aperta
#85 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Inizia da bot.py e dal ciclo di vita dell’executor descritto nel report, quindi riesegui il dataset BalatroBench per osservare il timing di cash_out e la persistenza dello stato di vittoria. Ispeziona l’allineamento di gamestates.jsonl in corrispondenza delle chiamate valide ma non eseguibili. Il lavoro è completo quando le Rewards e le label di vittoria/sconfitta interessate sono corrette o segnalate e sono documentati l’isolamento per esecuzione e i risultati della riesecuzione dopo la correzione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

We replayed the full BalatroBench CC0 dataset (241 runs, 18k+ actions) on a
vanilla-faithful Balatro simulator as a differential check. Two balatrobot-level
defects we found and filed upstream reach published results:

  1. cash_out race (coder/balatrobot#231). bot.py calls cash_out the moment
    it sees ROUND_EVAL; the endpoint fires G.FUNCS.cash_out before the
    round-eval rows finish committing, so affected cash-outs collect one blind
    reward short ($3/$4/$5), or $0 when the payout is only the reward row. In our
    replay, of the runs with money divergence, 61 had live short (the race
    direction) and 13 the opposite (unexplained, possibly a second mechanism).
    Several dataset runs die in the shop on purchases they could have afforded
    with the missing rewards.

  2. won-flag cross-run leak (coder/balatrobot#232). The executor starts its
    Balatro instances once and cycles the whole task list through them; each run
    begins with menu + start, and G.GAME.won survives that path. Since
    bot.py records finish_reason = "won" whenever gamestate["won"] is
    truthy, a loss that occurs on an instance after that instance has produced
    any win can be recorded — and published — as a win. We observed the
    leaked flag 16 times in our own long-lived-instance campaigns; the exposure
    here grows with tasks-per-instance.

A note for dataset consumers

Independent of the above: in gamestates.jsonl, ~1% of tool calls are
valid-but-unexecutable on live; they consume a response without emitting a
gamestate, which shifts every later index. Anyone aligning gamestates[i] with
action i needs to re-align at those events (we detected it when a "divergence"
decoded exactly to the following step's rearrange arguments).

Suggested Fixes

  • Pick up the balatrobot fixes when they land.
  • Affected wins are detectable after the fact: a recorded win whose final
    gamestate never beat the ante-8 boss (chips/ante inspection) is the leak.
    Consider re-scoring or flagging affected runs in the published data.
  • Meanwhile, for benchmark-grade integrity: one game process per run (avoids all
    cross-run G.GAME leaks), and delay cash_out until the eval rows commit.

Happy to share our replay tooling/results for cross-checking.

Lingua principale
Python
Stelle
114
Fork
14
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coder/balatrollm

Tutte le issue di coder/balatrollm

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.