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

353 lines
22 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.
# Native engine-owned Turtle packet pipe
Actual Forever70334 (`WowB152365`) completes legitimate Turtle authentication
and receives/decodes four actual Tortoise characters without gateway, modern
bnet/world provider, codec subprocess, database provider or second world socket.
**Character selection remains blocked at “Retrieving character list”; world
entry is not implemented or verified.**
Evidence: [public counters](evidence/gameplay/native-engine-roster-pending.json)
and [actual UI](evidence/gameplay/native-engine-roster-pending.png).
## Ownership and installation
The existing verified Windows account worker performs genuine SRP/M2 and selects
an actual advertised local online realm. Its opaque socket-free channel is
borrowed synchronously; no keys or account buffers enter an engine object.
`wine_engine_realm.c` calls the verified original OpenRealm once. Original engine
construction, TCP listener, connection events, queue ownership/refcounts,
main-thread processing and state transitions remain intact.
`engine_pipe_host.py` binds only at natural constructor return141e46101, after
141e446f0 has allocated the actual primary TCP pipe and before connect begins.
It validates indirect owner+228 holder, owner/queue/listener/TCP identities,
complete nine-method table and proof-gated channel. Only the pipe object's
vtable pointer changes: own clone retains RTTI, destructor, reserve/crypto and
activation methods, replaces read/write. Rollback journal precedes publication.
Guarded client code pages are not continuously readable/executable. They can be
inaccessible at the queue safepoint although ordinary live diagnostics verify
them. The fixed staged observer validates OpenRealm/setup live beforehand, then
arms the known constructor-return address and validates its exact prefix on
actual natural execution. It forwards genuine Wine exceptions and restores all
debug registers. No page permissions, code bytes or RIP are changed. The real
six-argument queue-submit boundary141e54190 was already verified in previous
actual-client experiments; it need not be artificially made executable.
This is a development installer/diagnostic parent, not a packet translator.
Self-contained startup installation and production lifecycle remain unfinished.
## Packet path
`native/wine_pipe_host.c` runs on real Windows threads: observed main36/write and
I/O388/read. Existing listener holds NetClient's lock around incoming reads.
Own SRW lock serializes adapter stream/counters/buffers. Descriptor stride32,
byte length+16 and actual TCP wrapper+144 write/+136 close were source/actual
verified. No POSIX or WinSock descriptor is cast to an engine object.
- Reassemble genuine8-byte Turtle challenge, generate the legitimate world proof,
send via engine TCP, wipe temporary authentication bytes.
- Reuse tested socket-free framing/ciphers and fail closed on integrity challenge.
- Only after accepted world authentication, use the original source-derived
AuthResponse serializer and glue-feature codec, delivered through original
deep-copy queue. Source codec loads inside WowB through the owned Wine ABI.
- Forward actual Forever ENUM0x440014 as Turtle0x37; real0x3b roster becomes
Forever0x470018 plus restrictions0x470019. No Forever database supplies characters.
- Translate ping/pong; ordinary LOG_DISCONNECT closes the real engine wrapper.
- Count unimplemented opcodes/sizes only; never export packet bodies, credentials
or session keys. Modern creation entitlements are empty/unsupported; nonzero
unverified billing profiles return unsupported rather than inventing metadata.
Unknown gameplay packets are not implemented. This adapter is a narrowly scoped
character-phase experiment, not a complete native world protocol implementation.
The account worker's120-second bounded diagnostic retention remains in force.
## Verified result and next dependency
Original engine connected state5 and socket6; world-auth accepted marker true,
glue initialized/phase1, authentic character enumeration requested twice and
four roster entries decoded into the original handler's pending owned packet.
Actual UI has character-selection chrome and a retrieving-character-list spinner.
Original consumer marker remains false. Readiness145700079,145ffa559,145e720f8
and poll gate1456ad44d need their legitimate lifecycle events/dependencies.
No readiness/authentication booleans were written to manufacture success.
Full normal regression38/38 passed25.44s. Prior core ASan/UBSan37/37 passed;
Wine PE fixtures are not sanitizer-instrumented. Dedicated binding regression
checks proof, owner/types, all preserved methods, wrong callers/connection state,
public-only diagnostics and rollback after original pipe destruction.
Actual test restored pipe/listener/poll, cancelled account, closed normally and
restored byte-identical private DXVK. Original binaries/data/prefix and disposable
character progression unchanged. No new fatal/access-violation crash observed.
Rollback: normal private client close, then
`python3 ops/native_pe_bridge.py restore`. Never restore a historical pipe heap
pointer unless the engine still owns that same primary pipe.
## Source-correct bootstrap follow-up
Actual WowB159162 consumed source AvailableHotfixes0x4b0001 with an explicitly
empty modern hotfix catalog. The startup service's normal callback clears
145700079 and sets145ffa559. Source source references:
`HotfixPackets.cpp::AvailableHotfixes::Write`, `HotfixHandler.cpp::SendAvailableHotfixes`,
`WowClient_StartupService.cpp` (binary embedded source path at144c2ac20),
callbacks140225a10/14022a630 registered through14064bdc0.
Collection initialization is emitted AFTER the actual roster, following
`CharacterHandler.cpp::HandleCharEnumOpcode`'s callback and
`CollectionMgr::SendWarbandSceneCollectionData`. ClassicOpcodes.cpp defines the
70334-specific4-byte empty payload; retail's10-byte writer is inappropriate.
The earlier pre-roster-only attempt did not complete character readiness; its
failure was retained and the source ordering corrected.
The client then requests128 records in two DB_QUERY_BULK packets: actual table
hash0xdf2f53cf, identified as TactKey from the installed WDC5 DB2 header (offset152,
not the older-format offset20). Diagnostics export only table hash, counts and
at most32 public record IDs per request. They do not read/export key bytes.
The compatibility provider has no modern records to serve, so it now responds
with the VERBATIM source `HotfixPackets.cpp::DBReply::Write`, statusInvalid3,
no data. This follows `HotfixHandler.cpp::HandleDBQueryBulk`'s missing-record
path; it does not declare records valid/removed or supply artificial keys.
Actual engine consumed128 negative replies and cleared outstanding object
146004ea8. Remaining readiness145e720f8 and1456ad44d still block consumption.
These are specific remaining dependencies, not evidence that native client
architecture is impossible. World entry is still unverified.
Normal38/38 passed24.60s after these changes. Source packet tests and own-PE
fixtures cover exact bootstrap ordering phases, invalid inputs, public query
parsing and proof-gated negative replies. Evidence:
`evidence/gameplay/native-engine-bootstrap-readiness.json`.
`ops/native_engine_character_test.py` replaces ad hoc per-stage waits with bounded
conditions/fresh trace ownership checks, passively requires gateway/reference
listeners absent, never enters login credentials and reports partial UI as an
unsuccessful character-selection milestone. Actual native cycle12.527s includes
5-second consumer readiness bound and screenshot/OCR, excluding model reasoning.
Frame control steps54–56ms, engine open/setup271ms. No comparable previous full
native cycle is available to establish a before/after speedup.
Cold engine methods use the unchanged pinned image and matching previously
actual-verified captured-code hashes. Runtime guarded bytes need not be plaintext
just because Linux maps showRX. No page protections or guard handlers change;
the constructor-return prefix is always revalidated at natural execution before
binding. The queue boundary/signature remains the already actual-verified one.
## Character-order cache dependency resolved
Actual read-only write watch in the labelled local gateway reference identified
14244556a setting145e720f8. A fixed execution watch then captured the actual
142444c50 completion entry/caller1422ccdf3. Source `WorldSession.h` identifies
account cache16 asGLOBAL_CHARACTER_LIST_ORDER. The initializer14241dd90
registers a type16 callback through1422cec00. No callback was called by our
instrumentation and no account data buffers were read.
The local Tortoise source is explicit: CharacterHandler.cpp sends32 zero account
data timestamps; MiscHandler.cpp's account-data request/update handlers have no
storage implementation. Therefore the modern-only character-order cache is
legitimately empty, not a Battle.net authentication requirement. Native bootstrap
now emits VERBATIM `ClientConfigPackets.cpp::AccountDataTimes::Write`, empty GUID,
20 zero timestamps and explicit bridge UTC. This initializes destination-client
cache capabilities earlier than Vanilla needs them. It does not reset server
character progression, invent stored settings or claim persistence for modern
account-cache updates (still unsupported).
Actual native WowB185205 accepted this packet and its original cache callback
set145e720f8=true. All character-list predicate conditions are now true. The
separate collection poll gate1456ad44d remains set, so the roster is pending and
the actual client still shows the retrieval spinner. This remains an incomplete
character-selection milestone. Evidence: `evidence/gameplay/native-account-cache-readiness.json`.
## Actual native character selection verified
**Actual WowB192991 displays all four Turtle characters with gateway and modern
reference services stopped.** Screenshot and completed engine-consumer evidence:
[evidence](evidence/gameplay/native-characters-displayed.json),
[actual character screen](evidence/gameplay/native-characters-displayed.png),
[explicitly selected level60 Warrior](evidence/gameplay/native-selected-warrior.png).
No character database changes or world login were made during this milestone.
The last blocker was a source/protocol-version mismatch, not an absent engine
account session: binary70334 jump-table case0x470363 -> reader140840800 -> typed
slot145e6ed18 -> actual character collection handler14241f8c0. Its genuine
write14241fa01 clears1456ad44d. Old source0x470361 maps to an UNREGISTERED typed
handler and its four-byte stub cannot satisfy the gate. The valid empty packet
is10 bytes: uint32 unknown0, uint8 WarbandScene7, uint32 count0, bit(false)/flush.
The unchanged source CollectionPackets::AccountItemCollectionData writer matches
the verified reader. No unrelated RecentAlly payload or status flag is substituted.
Prior four-byte claims above describe the failed earlier experiment and are
superseded by this actual opcode/reader/handler proof.
Consumer marker now true, pending roster false, all readiness conditions true.
Real SRP/M2 and world proof are retained; transport, queue and UI processing run
inside actual WowB. The diagnostic parent installs data-only development bindings
but neither supplies nor translates packets. A final self-contained startup/UI
installer and authentic Realm Selection controls are still unfinished.
Full normal39/39 passed27.81s; source serializer regression preserves baseline
bytes,72 concurrent calls and seven existing gameplay fixture groups. Native
character cycle8.456s. Equipment previews remain naked/unimplemented; world entry
and movement remain unverified and are the next protocol milestones. The bounded
120-second account retention must be replaced with engine-owned lifetime before
sustained gameplay. Do not declare full native compatibility from this checkpoint.
## Engine-owned authenticated lifetime
Actual WowB197053 retained its genuine M2/world-authenticated session through
137.254 seconds of character selection with the gateway/reference services
stopped, exceeding the old120-second diagnostic expiration. Only the verified
main-frame wrapper renews the lease while the current engine owner, state4/5,
connection and pipe identities match. Attach independently checks the opaque
registry world-authentication result, rather than accepting a caller flag.
The worker synchronizes channel borrowing and close; a final locked lease check
avoids attach/expiration races. Original diagnostic expiry still protects
unadopted channels;30 seconds without a genuine frame heartbeat expires a lease.
Normal character-screen Back detached/released the channel with error0 and
returned engine state2. No secrets, account authentication flags or game state
were written/exported. Evidence: `evidence/gameplay/native-session-lifetime.json`.
This verifies character-screen lifetime and normal disconnect, not long loading
screens, reconnect, world entry or final autonomous client startup. The unsafe
Lua namespace callback remains disabled. Original bindings/private DXVK were
restored and the test client normally closed before rebuilding.
## Owned character/world translation preparation
The new socket-free native begin-world API validates Forever's packed128 GUID,
far-clip and flags against the genuine received Turtle roster. Raw SEND cannot
override character login. A successful bounded encode commits one selected
character; insufficient buffers do not advance the cipher or commit selection.
The independent encrypted fixture verifies wrong realm, foreign GUID, trailing
fields, retries, duplicate login, real map initialization and subsequent cipher
continuity. World translation consumes only the last genuine delivered packet,
never an injected payload: map/bind/time/states/account-cache/spells/actions and
source self creation. Native modern account GUIDs are empty because Turtle does
not supply Battle.net identities. Existing nonzero gateway profile is preserved.
Actual character-screen tests exposed an earlier engine dependency: original
EnterWorld requests a Battle.net realm-list ticket and reports329, before any
CMSG_PLAYER_LOGIN. Regionwide enum was mismatched to a realm-owned transport;
realm-scoped enumeration now displays correctly but still needs the engine
realm-selection context. No world entry is claimed. Fixed code observation of
original generated EnterWorld wrapper141343000 follows registration lea141346c6e.
No unsafe Lua callback, fabricated ticket or auth-state write is introduced.
## Native realm routing and character login gate
The retained-engine realm manager `142429ba0` compares the selected character's
virtual realm at character-record offset `0x274` with the current engine owner
at `+0x898` before using the already-owned world connection. The high-level
realm opener `1422bbe90` normally copies the advertised routing namespace into
owner offsets `+0x198` and `+0x898`; the lower-level TCP opener `141e46020` does
not. The native adapter now captures those two public values before the
original opener, then compare-and-adopts only the real selected realm after
genuine SRP/M2, accepted world proof and original engine success callbacks.
It rejects unexpected intervening changes and writes only those eight routing
bytes. A fixed unit test covers old realm values, conflicts, failed auth flags,
bounds and idempotence. This fixed the real-realm mismatch for a remembered
previous realm without modifying account authentication state.
The next original login validator `140208810` reads a race/class vector at
`0x147c67110`/`0x147c67118` and displays a disabled-login modal when it is empty.
In the fresh actual client, source-auth response serialization included the
Turtle-DBC-backed Human/Warrior availability row, the engine accepted that
response and displayed all four genuine Turtle characters, but the public
vector remained null/count0. A fixed write watch on its pointer observed no
write during world authentication, response consumption and roster display.
Pressing the original Enter World control then reproduced the modal; no player
login packet was sent. This means realm-session adoption is now past the prior
ticket/context rejection, while native world entry is still blocked by the
engine's race/class capability initialization path.
The auth response callback is `1422be450` and calls its typed parser at
`14224df60`. The executable trace currently establishes the validator and
empty public vector. The separate response and Enter-World containers are
traced below; the global vector's legitimate initialization path and row
semantics remain unresolved beyond the validator's 32-byte stride. Do not write
guessed vector contents or bypass the validator. Next trace the client data or
initialization owner for that exact table.
### Auth-response versus Enter-World availability (offline code trace)
The pinned executable code archive resolves part of that uncertainty. The
typed AuthResponse object keeps `VirtualRealms`, `AvailableClasses`, and
`Templates` in containers at `+0x10`, `+0x30`, and `+0x50`, respectively,
matching the server writer's field order and parser's copy paths. At
`14224df60`, `AvailableClasses` is copied into the authenticated
`ClientConnection` at `+0x838` (and the other two containers at `+0x818` and
`+0x850`). This is a per-connection parsed result; the parser does not
reference the separate Enter-World table at
`0x147c67110`/`0x147c67118`. The fixed client-side validator
`140208810` reads that global vector and calls `14224ea80` to check the
character's race/class pair. The separate reader at `142406df5` and character
presentation path at `142418d48` also consult that global table. Thus receiving
and parsing one valid Human/Warrior availability row into the connection-owned
container cannot by itself satisfy the original login gate.
This was confirmed by offline disassembly of the pinned `forever-70334-code-after.zip`;
no engine state was changed. The local `tw_world` schema currently has no
`class_expansion_requirement` table, so that table cannot be treated as a live
source for a missing client-side global. Source code defines it as a server-side
expansion eligibility input, while Turtle's `CharBaseInfo.dbc` defines
race/class presentation pairs; neither fact proves the native client's global
table layout or its legitimate initialization API. The next investigation is
the client data/initialization owner for this global and its available public
API path. Do not transplant the connection container or populate the global by
raw memory writes.
A fresh actual-client run with the external gateway stopped adds one runtime
observation: after genuine SRP/M2, world-auth acceptance, and consumption of all
four Tortoise characters, the 24-byte field at `ClientConnection+0x838` was
readable and nonzero, while `0x147c67110` still had count zero. The client was
on its real character-selection screen. This confirms the response field has
state independent of the Enter-World table; because the destination layout is
not fully decoded, the diagnostic exports only whether the header is all-zero.
It does not claim the class row itself was semantically accepted. Sanitized
summary: `evidence/gameplay/native-auth-global-race-table.json`; full private
runtime output and screenshot remain ignored under `runtime/`.
The derived AuthResponse handler's existing observer at
`ClientConnection+0xc58`, virtual slot `+0x20`, resolved in the live process to
code address `0x1422b8780`. This was read-only identification; the callback was
not invoked by the diagnostic. Its pinned disassembly updates login-state
status fields and, when its status argument is nonzero, calls a function pointer
loaded from the service object at `+0x2c50` with a fixed 64-bit selector and a
stack output buffer. The receiver body has no direct reference to the
Enter-World table. The selector's callback contract and returned object are not
decoded, so this is not a safe call site to reuse.
The client was then taken through its ordinary Create Character UI. This
naturally loaded the guarded code page containing
`C_CharacterCreation.GetAvailableRaces` at `0x140ed2f30`; a code-only sampler
captured pages `0x140ed2000` and `0x140ed3000` from its owned child. Its initial
instructions use existing Lua argument/string helpers and a `0x88`-stride
container path, but available disassembly is incomplete across guarded pages
and does not establish a connection to the Enter-World vector. The callback was
not invoked by instrumentation. The screenshot also confirms Forever draws a
local Human Warrior creation preview outfit; this does not solve the distinct
naked Turtle character-selection equipment preview.
The exact native regression was repeated: genuine local SRP/server proof,
actual realm/world authentication, four Tortoise characters displayed, gateway
stopped, zero adapter error. The selected Gatewaytest character remains on the
character screen; no player-login packet or world entry occurred. The semantic
owner of the empty global vector remains unresolved. Evidence is summarized in
`evidence/gameplay/native-auth-global-race-table.json`; the actual character
list and creation preview screenshots are
`evidence/gameplay/native-auth-character-selection.png` and
`evidence/gameplay/native-character-creation-preview.png`. Raw sampled
executable pages remain private under ignored `runtime/`.
A second fixed watch began during private-client startup, before native auth.
Across initial login readiness it observed no write to the vector pointer;
initial/final count remained zero and all hardware debug registers were
restored. The earlier post-auth watch also observed no write during AuthResponse
and roster handling. These observations exclude a simple startup or response
handler write, but not a later event or another initialization source.
Actual-client screenshot and public metadata are in
`evidence/gameplay/native-race-class-login-attempt.png` and
`evidence/gameplay/native-race-class-login-gate.json`. The new owned-child watch
test verifies its hardware registers are restored and no packet/authentication
buffers are read. It does not claim world entry.