Files
WoW-Hybrid-gateway/docs/LOGIN_STABILITY_20261015.md
praxisandClaude Fable 5.2 60b6d4b7a5 Design records
59 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

179 lines
10 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Login automation and crash stability
Current development is on master. Tested in-memory SRP is checkpoint `d1b5cc0`.
Incomplete UI capture is preserved on local branch
`experiments/ui-capture-disabled-20261015`, commit `6c623cd`, with its CLI/RPC
explicitly disabled. Configuration rollback and private diagnostics remain in
`recovery/native-ui-capture-experiment`. Private-prefix DXVK was restored to its
original hash. Original client, archive, prefix and gateway history are preserved.
## Three different failures
The new bounded `ops/crash_report.py` exports exception codes and code locations
only. It resolves report frames marked `<unknown>` against the report's actual
module ranges, without exporting raw summaries, stacks, registers or heap data.
| Report | Component and observed cause |
|---|---|
|05:24:20,0xC0000005|WowB+0x3a74f1, called from Lua VM+0x459c3e9. Captured native code checks a C callback pointer against the client image before dispatch; an external-DLL callback hits the deliberate null read. This directly relates to the experimental registration change. The later in-image adapter run avoided this fault, but does not establish a complete native login solution.|
|05:15:18,0xC00000E5|kernelbase+0x4e95c, raised from WowB_loader+0xf329f9 with diagnostic0xe1d05001/0x800 during the Windows-owned debug installer experiment.|
|05:49:40,0xC00000E5|Same loader/raise locations, diagnostic0xe1d05001/0x303 while the long-lived Login+0x99 capture breakpoint was armed. Account verification stopped before any password entry. Exact loader cause remains unresolved; this is not the preceding access violation.|
The installations contain no matching WowB.pdb/loader.pdb files. Those names in
the report are build references, not available symbolic source. Existing pinned
PE tables, executable-page captures and source analysis support the locations
above. No guard was disabled to conceal either failure. The known failing
configurations were not relaunched merely to provoke another crash.
## Clean actual-client control
Actual WowB23112 launched from the complete private installation with restored
DXVK, no LD_PRELOAD/native DLL and no debugger. Core executable, loader, ICU,
product/flavor and build metadata match both the original and archived-pristine
installations. StartupFiles validation was unchanged. After914s there were zero
new fatal reports; the client remained at login. This is an observed clean UI
control, not sustained gameplay coverage or proof of native connectivity.
The read-only Win32 probe found only `waApplication Window` and IME windows,
with **zero standard Edit controls**. It reads no window titles or field values.
The native fields are rendered Lua EditBoxes; OS edit-control selectors are not
available here. The actual extracted source provides a better navigation path:
- `accountlogin.xml:86`: AccountEditBox, limit320; OnTabPressed calls
AccountLogin_FocusPassword.
- `accountlogin.xml:116`: PasswordEditBox, limit128, password="1"; Tab calls
AccountLogin_FocusAccount.
- `accountlogin.lua:258`: the two focus functions call the actual frame SetFocus.
- `accountlogin.lua:266`: user focus highlights text; loss of focus clears it.
## Implemented corrections
Main-window selection uses PID, class and size. A same-class fatal/modal window
can no longer be mistaken for the game. Fatal modals stop input immediately;
`client_ui.py state` reports the blocked state instead of OCR-classifying the
login underlay. KWin activation is PID scoped, retries are bounded, and X11
PointerRoot/None is handled. A failed Session entry releases its lock/display
and input state, allowing recovery in a persistent controller. Key-release
safety remains intact when focus disappears.
Login preparation now uses End/Shift+Home/Backspace selection instead of256
Backspaces per field. Native Tab navigation identifies the password field.
Account readback occurs while that field is blurred, removing blinking-caret
interference; short accounts need only one complete view. Long account addresses
retain two-view coverage. OCR is limited to private field regions for value
checks; it is not used to select the game window or recover focus. Full form
classification remains a fresh guard because no safe native frame-state API has
been established. No OCR/raw field values are logged or committed.
The password provider is called only after account verification. Mask glyphs and
unchanged account text are checked afterwards; failed readback/masking clears
both inputs and sends no submission. Control characters/unsupported length are
rejected before typing. `ops/login_form_probe.py` supplies fixed synthetic
values, never reads stored credentials, never presses Return and clears both
fields afterwards.
Two initial actual-client synthetic cases passed, followed by six cases in one
session with deliberate minimize/recovery before each. All six passed: short
cycles7.906–7.936s, long10.277–10.430s, including cleanup; focus recovery43–53ms.
Earlier successful field preparation timings were39.816/39.869s. Inputs differ,
so this is not a controlled same-credential speedup or full authentication
latency measurement. Timings exclude Codex reasoning, and no relog/restart was
used between the six cases.
Ordinary CTest passed17/17 in15.13s and ASan/UBSan passed17/17 in15.71s.
Focused automation and private crash-metadata tests passed after their corrections.
Evidence: `evidence/gameplay/login-stability-control.json`. Character4509 remains
level60, health2609, money10000, map0 at its previous Hall of Arms position.
Tortoise remains authoritative; no progression, permission, reputation, talents,
items or position were changed. The gateway remains available and stopped.
Native engine authentication, character selection and world entry remain
unverified. Continue native protocol work without the disabled capture hook.
```
python3 ops/inspect_windows_ui.py
python3 ops/login_form_probe.py --repeat 3 --recover-focus
python3 tests/client_session_test.py
```
## Follow-up: focus loss during typing
Source review found that a focus loss between Shift-down and the following
character could leave Shift held until the input device closed. `type_text`
now releases character and modifier keys in `finally` blocks, and `key` releases
its control key if a hold is interrupted. The entire string is checked against
the supported keymap before any input, preventing partial commands/credentials
when a later character cannot be typed.
New focused regressions cover focus loss after Shift, interrupted key holds and
zero input for an unsupported string. The actual clean client also passed an
ordinary window-minimize experiment immediately after synthetic Shift-down:
typing stopped, Shift release was observed, and focus recovered. No client hook,
memory patch, debugger or credential file was involved.
The same client then passed two more synthetic field cycles in7.9443/10.2946s,
including cleanup, with focus recovery42.6/49.8ms. Both fields were cleared,
no Return/authentication request was sent, and no new fatal report appeared.
The full ordinary suite passed18/18 in16.79s after this correction. The preceding
packet-stream checkpoint also passed18/18 under ASan/UBSan in17.62s; these final
changes affect only Python input cleanup and its tests.
Evidence: `evidence/gameplay/login-focus-interruption.json`.
```
python3 ops/login_form_probe.py --recover-focus --interrupt-focus
```
## Follow-up: executable-call routing experiment quarantined
The23:17:43 report is **0xC00000E5**, raised through
kernelbase+0x4e95c from WowB_loader+0xf329f9, with diagnostic
0xe1d05001/0x303. It is not the earlier0xC0000005 Lua callback failure.
The same loader location/303 existed before this routing experiment; exact
causation remains unresolved. No matching loader.pdb is available. Do not
suppress the loader exception or treat its occurrence as proof of a specific
integrity check.
The experimental five-byte serialized-send callsite replacement has been removed
from the active build, CLI/RPC and test harness. Its exact source and hashes are
preserved privately in recovery/native-send-callsite-20261015/trial-state.
The executable on disk was unchanged; closing that process removed its RAM
patch. New launches use the rebuilt DLL without the callsite patch. Existing
per-object, data-only observers and the authorized local trust-key patch remain.
Do not rebuild/replace mapped native modules during a running actual-client test.
The23:17 run did forward instance-family packets after routing was changed, but
movement was rejected and no server-authoritative movement was verified. It is
not a safe-runtime checkpoint. Continue from the passive channel/lifecycle
observations rather than re-enabling this experiment.
## Follow-up: separate graphics startup access violation
A later reference launch (WowB363777,23:51:00), with the executable-call patch
absent and before authentication or a hardware probe, raised0xC0000005 in
**d3d11.dll+0x1d9583**. The matching instruction writes `[r8+0x10]`; the report
identifies a write to address0x10. This differs from both the earlier loader
fatal and the disabled Lua callback fault. The calling return PC is
DXVK+0x1d9878, followed by WowB+0x3e048e8/+0x3d439a5. Baseline and derivative
DXVK executable sections match; matching graphics symbols are unavailable.
Do not label this a proven native networking or integrity-check failure.
Automation refused input into its fatal dialog. Normal PID-scoped window close
was attempted and timed out; only verified crashed PID363777 was then terminated
with SIGTERM. `close_test_client` now has a close-only structural selector that
permits a normal WM_DELETE_WINDOW request without relaxing credential/focus/input
checks. Foreign and ambiguous windows still reject. This selector did not make
the crashed process honor shutdown; no successful graceful recovery is claimed.
After restoring byte-identical baseline DXVK in the disposable prefix, actual
WowB365045 reached login and remained stable during a25.082s bounded control,
without native DLL imports, authentication or new fatal reports. This is one
control, not proof of root cause or long-term stability. Original installations,
StartupFiles data and Wine prefix remain unchanged. Evidence:
`evidence/gameplay/private-client-graphics-startup-crash.json` and
`evidence/gameplay/graphics-baseline-control.json`.
The crash metadata parser now resolves the actual fault PC independently of
stack-return PCs. Tests cover unresolved modules and deliberate secret-bearing
raw text to ensure only bounded module/RVA metadata is exported.