Files
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

172 lines
10 KiB
Markdown

# Local integration: expanded authorization, 2026-10-14
The operator explicitly authorized local client/server/configuration/test-DB
changes and real Wine tests. No remote realms, production credentials or external
pushes are in scope. Reference client projects remain read-only.
## Recovery before mutation
`ops/local_tortoise.py provision` first created a private recovery point at
`recovery/20261014T030758Z`: consistent SQL dump of tw_logon and tw_char,
realmd.conf/mangosd.conf originals and a SHA256 manifest. Recovery files and
credentials are ignored by Git and mode 0600; the recovery directory is mode 0700.
The world DB and existing account passwords have not been changed.
For full database recovery, stop only the disposable mangosd/realmd containers,
then feed the recovery SQL on stdin to the local DB container's MariaDB client,
using its existing root password via MYSQL_PWD. Restore the two config files from
the recovery directory before starting those two containers. This replaces test
account/character state with the snapshot; do not apply it to a different database.
No restore was needed or performed. To undo just this milestone, the new account
511 and its server-created characters can be removed using normal server commands.
## Verified real Tortoise milestone
Existing local Docker services: realmd 127.0.0.1:3724, world 127.0.0.1:8090.
Created a new random-password GM test account rather than changing an existing
admin's credentials. Passwords are private files and never command-line arguments.
The C++ probe performed real SRP logon and verified the real server's M2. World
proof and header encryption were accepted; the server created persistent human
warriors and returned the nonempty roster:
- 4509 Gatewaytest, level 1, race 1, class 1
- 4510 Gatewayscout, level 1, race 1, class 1
- 4511 Gatewayhero, level 1, race 1, class 1
A read-only SQL query confirmed all three rows on test account 511, map 0 at
(-8949.95, -132.493, 83.5312). This verifies local server authentication, creation
and enumeration. It does not verify Forever display or world entry.
Findings fixed in the gateway:
- Login and world build values are independent. realmd's RealmList.cpp advertises
7272 for 1.18.1, but `IsAcceptableClientBuild` in
`src/game/Database/DBCStores.cpp:121` accepts **5875**. The real world server
rejected 7272. `--world-build 5875` is explicit in the local operator tool;
the server was not patched to accept a new build.
- `HandleCharCreateOpcode` requires a trailing uint32 challengeMask.
- Creation must follow initial enumeration: `_charactersCount` starts at 10 and
`HandleCharEnum` sets the real count. Creation before enum returned server-limit.
- CHAR_CREATE_SUCCESS is 0x2e, not 0x2f; the former probe assumption was corrected.
- Creation emitted proficiency/chat/cancel-combat notifications; the probe permits
their known opcodes while still aborting on Warden/unknown messages.
The server's existing StrictVersionCheck=1 and disabled Warden/Anticheat settings
were left unchanged. Its source build-table hashes are all zero, which its
`VerifyVersion` treats as unavailable data. The probe's zero version hash is an
explicit input matching that local setup, not a claim of client-file attestation.
The compressed GatewayLocal diagnostic addon record has no forged fingerprint
or signed-addon data. No build integrity protection was changed or bypassed.
Re-run with the private account directory:
```sh
python3 ops/local_tortoise.py probe --account-dir secrets/GW446480F299
```
## Next boundary
Keep the working Forever HTTPS/Battle.net/world authentication as a local provider.
A standalone gateway relay can sit on a new loopback world port, derive the same
world channel key from the approved local provider's session material, translate
Turtle rosters and preserve directional GCM counters. Realm-port routing must be
backed up and restored. This avoids changing WowB.exe or replacing the target client.
This next boundary is proposed until real-client tests validate it.
## Actual Forever display milestone — verified
The real 64-bit `/mnt/Games/Games/WoW-Forever/_classic_beta_/WowB.exe` was launched
through the existing Wine prefix. Its PE FileVersion is **1.60.1.70334** and
ProductVersion is **Version 1.60.1.70334**. The actual client's character-selection
screen displays Gatewaytest, Gatewayscout and Gatewayhero, all Level 1 Warriors,
with Gatewaytest selected and a rendered human model.
Evidence saved in the version-controlled gateway workspace:
- [Actual WowB.exe character-selection screenshot](evidence/forever-70334-turtle-roster.png)
- [Non-secret full-chain relay excerpt](evidence/actual-client-chain.log)
- [Client identity, hashes and character provenance](evidence/provenance.json)
The verified chain is:
1. Actual Forever login to the local HTTPS/Battle.net provider, using disposable
frontend game account 2. The provider validates SRP proofs and issues the realm
ticket; TLS uses the preserved trusted local certificate.
2. Realm 70 advertises loopback gateway port 19085. The standalone gateway relays
its world authentication to the original local worldserver at 8085.
3. The gateway binds this authenticated frontend account to disposable Turtle
account 511. It derives the world channel key from approved provider session
material, maintains four independent GCM/counter contexts and verifies tags.
4. On the actual client's `CMSG_ENUM_CHARACTERS` / provider enum response, it
performs a **fresh real Turtle SRP authentication**, verifies M2, performs world
authentication (login build 7272, world build 5875) and requests `CMSG_CHAR_ENUM`.
5. It decodes Turtle GUID64/name/race/class/level/position into the canonical roster
and writes Forever's packed GUID128, regionwide roster and restrictions packets.
6. The actual WowB.exe displays the translated names and Level 1 Warrior entries.
A local SQL check confirmed **zero Forever character rows for frontend account
2**. Turtle account 511 owns IDs 4509/4510/4511 with the displayed names. The gateway
never queries forever_characters; its provider SQL lookup reads only session
material from forever_auth. Its character data comes from real Turtle packets,
not copied or prepopulated Forever database records. Startup enumeration is only
preflight; the successful client enumeration authenticated and fetched again.
### Fixes discovered by actual-client testing
- Built-in client login originally failed with WOW51900317. The real 70334 SRP
JSON parser requires `use_srp` alongside the original challenge fields. The
tested provider patch adds `use_srp=true`, gated by
`Gateway.LocalSrpCompatibility=1` **and loopback address**. Existing SRP proof
verification remains enabled. Removing the SRP URL and returning only
`use_srp=false` were unsuccessful experiments; neither remains in the final
source or configuration. Only the working shape patch is tracked.
- The client's command-line parser rejects `-portal`; the local hostname is set
in the already-backed-up Config.wtf instead.
- X11 pixel reads can be stale for this GPU-rendered client. Verification uses
KDE Spectacle's compositor capture of the activated WowB.exe window. Input uses
a temporary virtual keyboard/mouse via the user's existing uinput ACL, with
a focus guard. No persistent input device was installed.
- Provider initialization/hotfix traffic exceeded the original codec bounds.
Relay channels now bound client packets at 1 MiB and authenticated server/
decompressed packets at 16 MiB; library defaults stay at 65535 bytes. Persistent
raw-deflate streams and both Adler checksums are validated. Every compressed
provider message is unwrapped before forwarding, so replacing an enum never
breaks the client's compression dictionary. GCM counters remain independent
when restrictions packets are injected.
- One input-focus failure during exploratory automation put a disposable password
into the email field. That password was rotated; credential-screen captures
were removed. The committed screenshot contains only character selection.
Private credential/recovery/runtime files are ignored by Git.
### Current state and recovery
The actual client remains at character selection. The gateway listens on
127.0.0.1:19085; PID/log records are under runtime/. The local bnetserver runs the
small shape patch, and realm 70 remains routed through the gateway. The original
worldserver, certificates, RAM key-patching service and reference client projects
were not changed. Tortoise binaries/configuration were not rebuilt or modified;
only disposable test-account/character state was added through authorized testing.
Recovery snapshot `recovery/forever-20261014T032224Z` contains the original
forever_auth SQL dump, bnetserver binary/source/config, worldserver.conf,
Config.wtf and Wine registry files. `ops/local_forever.py restore-routing` restores
only realm 70's original port. To recover the provider itself, stop only the PID
in runtime/bnet-provider.pid, restore bnetserver, LoginRESTService.cpp and
bnetserver.conf from that snapshot, and restart the restored binary with its
recorded local config and install/bin working directory. Stop only the PID in
runtime/relay.pid when removing the test relay. Close only the test WowB.exe window
before restoring client config/registry. Database dumps contain private test data;
restore them only to these local development databases, with services stopped,
if a full reset is desired. Existing account passwords were not changed.
### Implemented limits
The tested translator supports original human warriors, uses default appearance,
and omits equipment and extended cosmetic mapping. It does not claim the rendered
appearance exactly matches Turtle customization bytes. Realm/club/guild/content
mapping beyond this tested subset is pending. World login is intercepted and
reported as unavailable; it is not sent to the Forever provider as a request to
load a Turtle character from its database. Backend world entry, instance connection,
modern object-update fields, position synchronization and gameplay translation are
future milestones. **This completes actual character display, not gameplay.**