3.4 KiB
Auction hello validation before aux target commit — 2026-11-27
The source0x255 handler copied the first eight bytes into aux_auctioneer before validating the full reply, house or visible binding. A rejected truncated reply naming another NPC changed the auctioneer used by later aux requests. This fails the integrated regression before correction (before log). It is a state-commit ordering defect, not a new auction-house admission policy.
The fix constructs the response through the existing strict forever_auction_hello adapter first, then emits it and commits the validated auctioneer/gossip close. Invalid replies retain the previous target and gossip. No changes to the adapter, global bindings, addon grammar, or any other auction route.
Source/native evidence
Saved source /mnt/Games/@project/build/source-server-main-20261124/source/src/game/Handlers/AuctionHouseHandler.cpp:71–80, SendAuctionHello, writes the source unit GUID and uint32 houseId: exactly12 bytes. Existing gateway src/gameplay.cpp:247 checks that complete framing, nonzero/int32-range house and supported creature/pet category, and resolves the bound native GUID.
Maintained native /mnt/Games/@project/servers/trinity-forever/src/server/game/Server/Packets/AuctionHousePackets.cpp:547, AuctionHelloResponse::Write, writes auctioneer, delivery-delay fields, house and OpenForBusiness bit. The existing0x470199 mapping and empty delay defaults are retained; exact test bytes are independently assembled from that writer order. No new original70334 reader or UI claim.
Gateway NativeWorldTranslation::aux_request passes aux_auctioneer to aux_source_request and uses it when arming source lists. A rejected reply therefore must not authorize an aux-target switch. Actual source NPC/session checks remain authoritative; this task does not imply the server would accept a request addressed to an invalid auctioneer.
Focused regression
Existing native_auction_request_test.cpp adds an isolated copy of its auction world, two presented NPCs, and an exact valid hello establishing the first target. Each of17 invalid replies must reject and preserve that target and the open gossip: all12 truncated lengths, a trailing byte, zero/high-bit house IDs, unknown NPC and player-category GUID. The final valid reply for the second NPC must emit the exact native packet, commit the new target and close gossip. There are55 new assertions.
The original fixture state is not mutated by these isolated cases. Existing sell/cancel/bid/list behavior runs as part of the changed fixture. Before execution stops on the first state-preservation regression; no exhaustive before-failure count is claimed.
Only the changed world_translation unit and existing fixture are compiled, with the fixture’s registered GNU C++20/profile flags and warnings-as-errors for the runtime unit. Other functions use the pinned75d0ba65 native/protocol snapshot with6dc6e75a headers; input hashes. No codec build, full gate, client or database action.
After correction: 132 checks PASS, zero failures, including55 new assertions (after log, receipt).
Scope
Only0x255 in world_translation.cpp, tests/native_auction_request_test.cpp and this evidence change. Shared helpers/global bindings, bank, binder, ops/CMake and all other accepted routes are untouched. Parent owns integration and live native acceptance.