Files

37 lines
5.4 KiB
Markdown

# Queue57: pet-control loss after looting remains a capture hold
Base b9d4dfed. Report20261127-224743-7c8441 repeats loss of pet control after looting; it also contains separately owned group-roll/follow complaints. This unit owns only pet control. No runtime defect was reproduced, and no runtime correction is proposed.
## New report evidence
Gateway.log and GatewayRequests.log each extend the queue47 report210328 files byte-for-byte. The current request log has35 occurrences of `pet command outside the current Source pet bar`:14 already present and21 in the new suffix. They are command attempts, not35 distinct pet-loss events. The two command/reaction-cell edit rejections are still present. No relevant packet-capture artifact was found by filename inventory; the logs contain no labeled179/SUMMON/CHARM transition data. Sanitized counts, prefix checks and hashes are in receipt.json. No account or roster text is retained.
The shared guard in native/world_translation.cpp, current_pet_command_unit, combines self-created, pending teleport, far transfer, missing/unshown bar and requested-unit mismatch. The later control guard separately checks actor lifetime and source reference. These logs cannot select the first failing condition, prove a zero pet snapshot, or establish that source SUMMON was cleared. Report prose supplies no packet-timestamp correlation.
## Contracts reused and checked
Retained source `build/source-server-main-20261124/source/src/game/Handlers/LootHandler.cpp:464`, DoLootRelease, clears the player's loot GUID, sends release, and removes UNIT_FLAG_LOOTING (0x400; Objects/UnitDefines.h:434). It contains no SetPetGuid, SetCharmGuid or RemovePetActionBar call. Source Unit.h:1398/1463 store pet/charm links in UNIT_FIELD_SUMMON/CHARM. Source Player.cpp PetSpellInitialize/RemovePetActionBar and Pet.cpp Unsummon contracts are retained in the accepted queue47 assessment: explicit nonzero179 publishes a bar; genuine zero179 clears it; pet unsummon clears owner state.
Current entity_translation.cpp merges only present sparse SUMMON/CHARM words; an unrelated UNIT_FIELD_FLAGS update does not reset either reference. A full self create treats omitted words as zero. Controlled-unit output requires a current eligible presented actor. world_translation.cpp takes source179 snapshots, and take_pet_bar checks ownership, generation, map/realm and controlled reference. These lifecycle guards remain unchanged. Source loot release alone does not write pet state, but the final world sweep can observe a state loss caused by earlier packets; temporal proximity is not proof of the origin.
## Focused integrated host proof
Extended ONLY tests/native_companion_pipeline_test.cpp within its existing controlled-pet mode. It uses actual NativeWorldTranslation, source object/value packets, native gameplay request/sent callbacks and matching e603 codec. No mock translator or new registration.
For both hunter and warlock pets, after genuine pet create/template/SUMMON/book publication:
1. Create a separate corpse actor, serialize/send its loot request, receive a complete empty ordinary loot response and verify native loot-window publication.
2. Dispatch source LOOTING flag set, then release and sparse flag clear in both orders. Verify native release, window/opening retirement, no pet-bar replacement/clear, unchanged SUMMON/native controlled identity, and successful native stop-attack command translated to source2ea with the exact pet GUID.
3. Dispatch genuine SUMMON zero: verify control clears, cached bar retires and commands reject.
4. Independently dispatch genuine179 zero: verify a native bar clear and command rejection while the source SUMMON identity remains intact. Thus bar loss and reference loss are observably distinct causes.
Result: **50 new checks PASS (25 per class)** on unchanged runtime, plus the existing controlled-pet assertions PASS. The existing charm branch still verifies source CHARM publication and explicit CHARM-zero retirement. This does not claim a newly added charmed-creature loot-cycle matrix. No failing-before runtime result exists: the tested release/flags hypothesis did not reproduce the reported bug. No weakened guard, synthetic repair snapshot, extra request or pet restoration was added.
Built this single changed fixture against private copies of parent's matched native/protocol artifacts; relevant world/entity/loot headers matched parent when copied. Codec SHA and all input hashes recorded. No native/codec rebuild, full gate, or client test. Parent loot files and world_translation were untouched.
## Exact remaining capture
The authorized client lane needs one failing transition with ordered source179 payload shape (zero/nonzero unit), self SUMMON and CHARM field masks/words, pet ownership fields/create/remove generation, source loot response/release and player FLAGS update, corresponding native bar/control outputs, and realm/map/teleport lifetime state. A diagnostic should identify which existing guard failed, not simply repeat its combined message. Retain only the relevant synthetic/redacted identities and transition fields, excluding credentials, account logs and roster data.
This distinguishes source removal, actor visibility/eligibility retirement, legitimate control-field clearing, and native presentation loss. No packet capture is available here to choose among them. The successful host sequence narrows the hypothesis; it does not close queue57 or establish an in-game fix.