59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
96 lines
5.7 KiB
Markdown
96 lines
5.7 KiB
Markdown
# Native glue initialization and realm arguments
|
|
|
|
Native character selection/world entry are **not working yet**. The actual-client
|
|
checks below use a clearly labelled gateway reference to establish engine ABI and
|
|
initialization requirements. They are not evidence of native session adoption.
|
|
|
|
## Missing initialization dependency
|
|
|
|
The earlier readiness comparison identified phase0x145ead210 and boolean
|
|
0x145e6e976. Saved70334 code shows that handler0x1423f9440 writes those fields at
|
|
0x1423f99e7 and0x1423f99f7. Its log identifies “Glue feature system status
|
|
received” in `Mainline/Source/Glue/CGlueMgr.cpp`. These fields therefore cannot
|
|
be treated as account-authentication markers alone. No readiness field was set
|
|
by the compatibility code.
|
|
|
|
The source core enum `SMSG_FEATURE_SYSTEM_STATUS_GLUE_SCREEN` is0x450064;
|
|
`servers/trinity-forever/src/server/game/Server/Protocol/ClassicOpcodes.cpp::TranslateServerOpcode`
|
|
makes the actual70334 wire opcode **0x470064**. Its real decoder case at
|
|
0x1408e49b4 calls constructor0x1407fe7f0, which calls reader0x1407fd9e0.
|
|
The reader consumes six flag bytes followed by scalar/count fields and stores
|
|
the phase-related flag in the typed packet at+0x164. The old70009 reader address
|
|
in the server comment is not valid for this build. These fixed instruction checks
|
|
are reproducible with `python3 ops/native_lifecycle_audit.py`; code captures stay
|
|
private in ignored runtime, with the pinned executable identity verified.
|
|
|
|
`SystemPackets.cpp::FeatureSystemStatusGlueScreen::Write`, its active Classic
|
|
branch, defines the94-byte empty-array form. A real encrypted/authenticated
|
|
reference session supplied exactly94 bytes, SHA256
|
|
`da7269ea1606620c0e55c08428eb67f1acd4f75466620e538263dc769a914986`.
|
|
The new `forever_glue_features` codec matches an independently compiled source
|
|
writer for every explicit character-limit policy1..10. The reference body differs
|
|
only at byte18 (reference limit60) and byte42 (reference content set137).
|
|
|
|
The native codec uses Classic expansion/content0 and an explicit caller-provided
|
|
limit. Tortoise `src/game/World.cpp` bounds `CharactersPerRealm` to1..10; the
|
|
installed setting is not inferred from the source default. This packet is a
|
|
client capability policy, not realm metadata sent by Turtle. The C ABI
|
|
`gw_native_encode_glue_features` requires a genuinely authenticated backend
|
|
session, validates bounds, and reports required capacity without partial writes.
|
|
It does not authenticate/adopt the engine, invoke a handler, or bypass the state5
|
|
receiver guard. Native delivery/consumption of this dependency remains unverified.
|
|
|
|
Optional `GW_CAPTURE_GLUE_FEATURES=1` in the reference relay captures only this
|
|
94-byte public capability body after provider authentication. The fixed private
|
|
file is created0600/exclusive/no-follow; existing evidence is preserved. No auth
|
|
response, ticket, account buffer, key or arbitrary opcode is captured.
|
|
|
|
## Real realm-argument observation
|
|
|
|
The fixed observer watches a naturally invoked0x1422bbe90 on the owned private
|
|
client's main thread. It never calls that function. Actual WowB80539 invoked it
|
|
from returnPC0x142175f55, with a typed NetClient whose queue owner matched.
|
|
Observed public metadata:
|
|
|
|
- Realm address0x46010046.
|
|
- One direct IPv4 address127.0.0.1, port field19085, matching the reference gateway.
|
|
- Account/session prefix0x00..0x67 and element tail0x20..0x9f were never read.
|
|
- Hardware debug registers restored; no code, IP, connection or readiness writes.
|
|
- Actual Forever UI reached character selection; no character login was sent.
|
|
|
|
The first reader rejected the metadata because it incorrectly assumed a string.
|
|
Real copy routine0x141e4f4b0, stride0xa0, calls0x140917ab0: the first field is a
|
|
**tagged address union**, tag at+0x10, with port at+0x18. Tag1 copies4 bytes and
|
|
tag2 copies16; tag3 transfers an owned pointer-backed value. Only IPv4/IPv6 are
|
|
supported by the observer. Tag3 is rejected without dereferencing its pointer.
|
|
IPv6/nonlocal redaction/invalid bounds are tested synthetically, not claimed as
|
|
actual-client IPv6 verification. Full parameter initialization and ownership,
|
|
including the first0x68 bytes, are still unvalidated.
|
|
|
|
Three-second observations missed later calls. The initial-login observer now
|
|
uses a bounded eight-second interval; mouse travel is completed before arming.
|
|
This allows genuine Wine signals to be forwarded promptly. A reader failure
|
|
always restores debug registers and detaches; exception messages and registers
|
|
are not exported. The owned-child regression verifies both success and reader
|
|
exceptions without a SIGTRAP leak. No experimental Lua callback was re-enabled.
|
|
|
|
## Verification and continuation
|
|
|
|
Normal CTest24/24 passed18.84s; ASan/UBSan24/24 passed19.98s. These include genuine
|
|
synthetic SRP/M2 negative proofs, ordered packet/lifetime tests, Windows ABI
|
|
fixtures, talent regression, metadata privacy and source serializer parity.
|
|
`ops/build_forever_create.py` rebuilt the source codec successfully; the new native
|
|
codec has no runtime dependency on that external oracle.
|
|
|
|
Private screenshot: `runtime/native-realm-tagged-reference.png`. Sanitized
|
|
committed evidence: `evidence/gameplay/native-glue-realm-contract.json`.
|
|
Original clients/prefix, StartupFiles, test progression and credentials unchanged;
|
|
no new client fatal report was produced by these observer checks.
|
|
|
|
Next: derive the realm-parameter initialization and packet-pipe/transport
|
|
ownership from code before constructing anything. Retain genuine SRP/M2 and
|
|
world authentication. Do not copy modern tickets, cast sockets, write connected
|
|
flags, or fabricate a connected event. Stop the reference gateway/services before
|
|
actual native validation. The earlier in-process queue delivery still reaches a
|
|
state2 engine with no transport; this checkpoint does not solve that boundary.
|