Files

4.1 KiB

Queue 56: resume non-opener group rolls after real item metadata

Superseded and held; not a release recommendation. Further source review disproved the max-stack-1 quantity inference below. The original-client API proof and final slot-presentation correction replace this proposal; its new metadata hooks were removed. This file retains the historical test rationale, including its corrected mistake.

The existing route admitted source START_ROLL for a visible corpse but could publish it only when the item was already in inventory.peer_templates. It neither requested a missing definition nor resumed the retained roll on a later accepted reply. Definitions moved into the owned-item cache were also invisible to this fast path. This gives a concrete offline reproduction of a roll that appears only after the viewer opens the corpse.

Report 20261127-224743-7c8441 describes that symptom. It contains no retained roll payload or item ID, so this is a source-contract regression, not a replay of a captured reporter packet or proof of every instance of the symptom.

Source and quantity authority

Pinned source Group/Group.cpp:763 sends owner GUID, slot, item, suffix/property and countdown to every eligible recipient, including non-openers. It does not send stack count. The existing rule remains: a genuine source template with max stack 1 proves count 1. Stackable, zero-stack and missing definitions do not authorize an invented quantity. These remain pending for a matching genuine loot response.

Change

After the world loot dispatcher admits a roll, the new refresh method uses the existing inventory definition lookup (owned and peer caches). Missing definitions use the existing bounded and deduplicated peer query path. An accepted source item-template reply refreshes pending rolls without opening or acquiring a loot window. Cached owned definitions can publish immediately. A published sibling or existing matching window supplies the same presentation object; otherwise the existing serial allocator supplies it. The original deadline is retained, buffered validated selections replay once, and numeric results still await the source terminal event.

Expired, retired/recreated, changed-map or changed-realm owners do not resume. Group transitions clear the existing rolls. Near/far transfers and completed logout suppress refresh at the world hooks. The request still uses the exact original owner/slot; a vote is retired only after actual serialization/send confirmation. No auto-loot request, item award, fabricated item count, extra server feature, per-item rule or codec change is introduced.

Regression and validation

The expanded existing native_loot_roll_test.cpp against the unchanged copied host native fails at assertion 3: no query is queued for the unknown item. With only the two changed native translation units, the same integrated fixture passes 61 new checks plus the existing lifecycle checks against the exact e603 codec. The native StartLootRoll payload is independently compared in full against the maintained LootPackets writer layout, with a bounded live countdown. A first draft of that golden reversed LootItemType and LootListID; inspecting the writer corrected the test before the final passing run.

Covered: cold definition request; duplicate start without deadline extension or duplicate query; two slots sharing a definition and presentation GUID; buffered selection; duplicate/unrelated/malformed replies and recovery; both cache classes; exact source vote and send retirement; all-pass terminal; stackable/negative definitions; expiry, destroy, generation, group, map, realm, near/far transfer, logout, and terminal-before-metadata suppression. Source files and copied build inputs are hashed in receipt.json.

No new state members or native internal ABI layout changes. This focused proof is not a full regression gate or native engine/UI acceptance. Rebuild the changed native consumers in the integration lane. Queue 57 pet control is a separate investigation. Stackable roll quantity and incidents with absent corpse presentation remain explicit limits, not silently marked fixed.