59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
5.6 KiB
Local real-client automation and measured iteration
Measurements on 2026-10-14 UTC use the same running 1920×1080 WowB70334 Northshire session. They measure Python subprocess wall time (including input, compositor and OCR), not Codex reasoning time. No client/server restart was needed for these changes.
| Operation | Before, seconds | After, seconds |
|---|---|---|
| Actual UI-state classification | 1.757 | 0.929 |
| Same read-only spellbook chat diagnostic | 22.593 | 8.125 |
| Focused compositor screenshot + credential guard | unmeasured | 0.927 |
| Four groups, existing world session | unmeasured | 9.655 |
| Credential verification and submit | unmeasured | 22.071 |
| Clean disconnect-modal → world recovery | unmeasured | 52.771 |
| Cold startup | unmeasured | pending |
ops/client_ui.py previously used 30ms after every key transition plus 15ms
after each typed character. The verified macro now works with 8ms transitions,
without that extra per-character sleep. The unchanged 256-Backspace credential
clear still bounds stale contents; its fixed delay falls from at least15.36 to
4.096 seconds per field. Complete account prefix/suffix and unmasked-secret
checks are retained. Actual optimized credential submission is still pending;
the successful macro alone did not establish login reliability. A later actual
login succeeded with proven30ms credential text/viewport pacing and8ms erasure.
The symbol lookup is cached per process. OCR uses one Tesseract thread and first checks the actual minimap label for an already-loaded Northshire world. Screen transitions fall back to full private classification. Credential entry always uses full private classification. Screenshots remain focus guarded; login captures are deleted. The existing compositor-settle allowance150ms and uinput enumeration allowance500ms remain until independently measured.
runtime/ui-timings.jsonl records fixed stage names, durations, success and wall
timestamps only; never commands, credentials or raw OCR. These are command and
client-wait timings. Time between commands and reasoning are not included.
ops/client_session.py ensure-world reuses an existing world session. Otherwise
it polls recognized login, ruleset, selected Gatewaytest roster, loading/unknown
and disconnected states with a bounded overall deadline. It uses the existing
guarded login routine and records each transition. Unknown scenes expire with
the client preserved. It does not kill or start a second client. Cold launch,
arbitrary-zone classification and positive hung-client detection remain work.
Real reconnect failures identified two classifier bugs: the Disconnected modal
overlays visible login labels, and EnterWorld needs its own cropped OCR plus
normalized spacing. Modal handling now takes precedence; the form underneath
remains screenshot-sensitive. Once a ruleset/roster has proved authentication,
transient login-looking loading frames do not trigger credential resubmission.
Recognition is rechecked before entry, and changes before typing are repolled.
Bounded focus recovery handles a lost activation before capture, while every
typed key still independently checks focus. launch preserves any existing
WowB process instead of creating duplicates. The successful clean reconnect
included ruleset selection2.304s and EnterWorld submission1.183s, plus actual
loading/polling; total controller wall time56.754s includes setup. These are
observed timings, not a before/after claim for unmeasured cold login.
ops/client_session.py run --groups population,character,spellbook,resources
uses one input device and one authenticated session. A nonblocking process lock
prevents two controllers manipulating it. Independent group failures retain
other evidence; world guards stop input after session loss. Captured screenshots
are explicitly captured-not-asserted, not automatic gameplay passes. Inspect
the evidence and compare Turtle packets/state before claiming functionality.
Actual first cycle: population1.580s, character1.627s, spellbook1.654s, resources4.794s. No movement, spells, talents or database records were changed by that cycle. Debug CTest4/4 passed, including loopback-auth-roster run with the local socket permissions the sandbox otherwise denies.
The native serializer builder now compiles separate objects with compiler-emitted dependency files. Content hashes include the compiler version, full flags, source/header dependencies and generated profiles; link hashes include all objects and the gateway static library. Generated files are rewritten only when their content changes. The old executable remains until a successful link. Pinned schema/DB2 checks still run on every invocation.
First cache population:14 objects,26.238s. Immediately repeated unchanged build: 0 objects, no link,0.073s. A focused compiler test changes an included header and checks changed executable behavior, then corrupts an object and verifies recovery. This improves unchanged rebuilds; it does not establish a measured improvement for every possible source edit.
Actual post-native-test recovery exposed two additional readiness/input issues.
The ruleset screen's title now identifies it when OCR misses its red Select
button; the original client successfully resumed the Turtle world after this fix.
A screenshot also showed /turtletalents still sitting in the chat input after
an8ms Return tap. Control keys now remain pressed for at least40ms; typing keeps
its previous8ms character rate. A subsequent Return delivered the command and
opened the native Turtle-backed frame. This is measured input loss, not a reason
to add multi-second sleeps. Current captures and authoritative state are under
docs/evidence/gameplay/native-fallback-restored-*.