Der Kanalweg (pipe.py/kanal.py) war nur am lebenden Client pruefbar - jede neue Form kostete einen
Abend an der App. mock/bruecke.py baut jetzt dieselben zwei Sockets: je Raum /tmp/<Raumname>
(little-endian, schweigt beim Verbinden) und /tmp/lobby-pipe (big-endian, Sofort-Gruss mit Token,
VPN-Regel und Sitzungsschluessel, Schluessel woertlich '<fill in>'), bindet wie die Lobby (lebender
Name -> Suffix, Leiche wird ersetzt) und fuehrt Serverbefehle aus (game.user_action, game.sitout,
game.take_Seat, game.leave_Seat, game.quit_table, focus/close, extra_time, rit).
Antwortformen sind aus dem Bestand gelesen, nicht geraten: send_to_table mit event_type api und
data.msg.<userId>.1.{13 Felder} aus main.1.log.gz 28.10. 20:53:42 (auch als receive_from_lobby
vorhanden), three_bet_user_stats als msg.<userId>.{aicMember,...} aus 20:55:05 - damit sieht
kanal.hud() gegen den Klon dasselbe wie live. Die Feldnamen in BeanData sind ANNAHME und werden
mitgeschrieben.
Pruefung: tests/bruecke_spec.py (24 Faelle, kein Chrome) und tests/bruecke_kette_spec.py (Kette,
headless) fahren den echten Weg mit pipe/kanal gegen den Klon: Steuerprobe, HUD, Tischkanal mit dem
Fenster, sitzen per Befehl, eigener Zug, Sitout und zurueck. Dazu drei stale Erwartungen an ihren
neuen Vertrag angepasst (allowedSizes gehoert dem Kern; Frische-Reload als benannte Wartezeit
FRISCH_FRIST; der Mock zaehlt nur den echten Join).
(1) Alle Testeinstiege setzen MOCK_HEADLESS=1 (sichtbar mit MOCK_HEADLESS=0) - der Klon kann es
laengst, es war nur nicht Standard; die vielen Chrome-Fenster nervten. (2) Die Lobbyliste ist vor
dem Auswaehlen oft veraltet ('3/6' in der Liste, sechs sitzen wirklich) - deshalb jetzt Reload vor
der Wahl und nach dem Join eine Voll-Pruefung, die zum naechsten Kandidaten weiterzieht.
(3) hand/tasten.py: Tastenversand mit den aus dem Client-IL gelesenen KeyCodes (C/Vollbild/S/T/
Komma) - eine Taste hat keinen Trefferbereich.
Live 30.10.: ESC at 11:03:09 set all stop files, yet the runner clicked
"max" and "buyin" at 11:03:12 - stellen_klicken checked only before a
sequence, the mouse path never, and cleanup clicked sitout/cross
"trotz_stopp". hand/notaus.py is now the one source for the stop files
(act, click, stopp); click.click checks before start, on every movement
step and before pressing (KlickNotAus), pid_klick too, sequences check
before each click, trotz_stopp no longer overrides Not-Aus, dialog.esc
sends no key and the live pointer stops. The runner logs "nicht geklickt
(Not-Aus)" instead of a sitout it did not do. The header counted every
window of a table process (table + dialog = 2); it now counts rooms from
the process list. Tests get their own stop folder (POKERFREAK_STOPP_ORDNER)
so they never see or touch the machine's Not-Aus.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live 30.10. the bot clicked the Practice tab it was already on and the
user saw clicks beside the window. Lobby: read the active tab (.active-tab,
measured) and click only if needed, then verify it switched; never Join a
table whose window is open (fill and self-heal). A real mouse click is only
sent when the point and its scattered end lie inside the target window
(KlickAusserhalb, a FensterNichtVorn), and not at all without a lobby
window. Two mcp_server_spec tests patched the wrong name and clicked the
real lobby with the real mouse whenever CoinPoker ran - they now patch
lobby_adapter and demand an opened table; tests/lauf.py blocks the real
debug port for every spec.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tournament lobby was already parsed but never reached the core. Each
tournament table is now linked to its lobby (tourneyLobbyName or
tournamentId) and the request carries `tournament`; a missing price or
rank list makes the turn unclear instead of guessing. K-Poker tables
(roomProperties.isKPoker) abstain until the key table is measured
(mock/vorlage/kpoker-tasten.md). The clone writes the rank list with each
lobby update and the tournament ids where the real log has them; the
view shows level, field and bubble, or menu and clock.
klonmaus appends mock/ to sys.path so mock/turnier.py no longer shadows
lesen/turnier.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Die volle Kette startet Chrome, setzt sich und spielt Haende in echter Denkzeit -
sie braucht Minuten und belegt die festen Klonports. tests/lauf.py schnell laeuft
parallel und ist in rund 20 Sekunden durch; kette nur am Meilenstein.