Files
WoW-Hybrid-gateway/docs/SOURCE_LOCAL_PROFILE_FIXTURE.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

51 lines
2.8 KiB
Markdown

# Local Source account fixture
`ops/run_source_local_fixture.py` builds and runs the owned Wine fixture in
`tests/source_local_account_fixture.c`. Its default mode exercises profile 4's
preflight and rejects an unauthenticated realm proposal. It does not open the
game client, access local credentials, or contact a server. The supplied PE
and Unix wire must be project files; `libgateway_native.so` must be present
beside the Unix wire. A dedicated work directory under `runtime/` holds the
compiled fixture, disposable Wine prefix, and private result files.
```sh
python3 ops/run_source_local_fixture.py \
--pe path/to/GWNativeWire.dll \
--unix-wire path/to/libgateway_wine_wire.so \
--work-dir runtime/my-local-source-fixture
```
For a separately authorized local account test, add `--real-once`, an explicit
`--realm-index`, and `--pin-receipt path/to/receipt.json`. The receipt must
contain the PE, Unix wire, and core hashes under `files_sha256` keys `pe_wire`,
`source59_unix_wire`, and `combined_native_core`. The fixture requires the
existing private local-account metadata, local IPv4 auth/world listeners on
3724/8090, and a stopped external gateway. The chosen genuine realm must resolve
to `127.0.0.1:8090`. Credentials pass through one bounded inherited stdin frame;
they are not arguments, environment variables, or log fields.
The account attempt uses a durable locked state at
`runtime/source-local-account-fixture.state`. An interrupted, failed, or
malformed prior state blocks another attempt until reviewed. A successful prior
attempt permits a later explicitly requested new attempt. The earlier
`local-account-real-once.lock` is retained; an unverified earlier outcome also
blocks a new attempt. Never automatically replay a rejected submission.
A successful fixture is evidence for the tested account and realm transport
only. It does not prove original client Lua registration, native realm UI,
character selection, world entry, or native Windows behavior.
# Explicit local-server build profile
Profile 5 extends the existing Source account path to an explicitly configured
local server. Pass `--source-only-profile 5`, `--source-local-auth-host`,
`--source-local-auth-port`, `--source-local-realm-host`, and
`--source-local-realm-port` to `ops/build_wine_wire.py`. Both hosts must be
numeric loopback or RFC1918 IPv4 addresses; DNS names and public addresses are
rejected. Auth and realm endpoints are pinned independently into the built PE,
and the user must still select a genuinely discovered matching realm.
The auth server's proof and the generation-bound preflight remain necessary;
the configured addresses do not establish authentication. Profile 5 is an
opt-in build and does not modify existing profiles or resolve the unqualified
native client-thread initialization. It has not been verified in a live client.