Files

80 lines
4.5 KiB
Markdown

# Queue 47: confirmed skinning loot admission
This completes the metadata/admission follow-up to `a9d21af1`; the pet and
native click-to-skin capture holds in assessment.md remain unchanged.
## Catalogue and source ordering
`ops/source_skinning_profile.py` reuses `turtle_data.DBC` and `spell_layout`.
It scans every row of both retained 173-column Spell catalogues, selecting
any row whose effects 61..63 contain SPELL_EFFECT_SKINNING (95). The server
has 30,790 rows and the client export 27,988. Both produce exactly 8613,
8617, 8618 and 10768, with effects [95,118,0], speed zero and unchanneled
attributes. The generated header is a complete effect-class profile,
not a manually chosen spell/item exception. `skinning-catalogue.json`
records hashes, counts and selected semantic rows. Catalogue disagreement,
empty membership, changed disk shape, projectile speed, channeling, or
instakill/spawn combinations fail generation rather than silently omitting
an effect-95 row.
Source SpellDefines.h assigns SKINNING=95, SPAWN=46 and the channel flags
0x4/0x40. Spell.cpp:3515 delays spells for projectile speed or crowd control
against a player; skinning requires a creature. `handle_immediate` at 3987
calls SendSpellGo before effects unless there is instakill/spawn. None of
these four rows has those exceptions. SendSpellGo at 4649 serializes caster,
unit, spell, successful-hit/miss lists and targets before broadcasting to
the caster. EffectSkinning at 5067 then calls Player::SendLoot immediately.
The source cast checks at Spell.cpp:6229 require a skinnable creature,
permission to skin it, and skill eligibility. This is the authorization;
the gateway does not invent skinnable/death/ownership state.
## Bounded change
A complete parsed successful self GO for the generated effect class arms
only its exact current f130 creature target. It requires active world,
no transfer/teleport/logout, a single matching hit and no misses, and a
sent/eligible current actor with matching native identity, generation,
realm and map. The hook covers both pending local requests and genuine
source-confirmed casts without a pending request. START never arms it.
The loot binding retains that scope and expires after ten seconds, using
the existing confirmed-interaction deadline. No state layout/ABI member
was added. An existing opening or window is never replaced. The later
same-owner response must still match the actor generation/presentation
and current realm/map. Only this confirmed creature binding admits the
source-normalized type 2 content; arbitrary type-2 responses and other
unit spells stay unadmitted. Source slot data, group-policy checks,
random-suffix holds and the existing codec writer remain intact. No
native loot type is fabricated: the existing writer retains source wire
reason 2. A successful response consumes the opening, so duplicate
responses cannot publish again.
## Validation
The final extended existing `native_loot_test.cpp` against the unchanged
pinned runtime fails at skinning assertion 5: normal loot and release,
unarmed request/START controls pass, but the successful GO supplies no
opening. The changed world and loot translation objects linked against
the same native/protocol libraries pass all **120 new skinning assertions**
and all pre-existing fixture assertions. The earlier first implementation
also exposed the separate content gate rejecting type 2; it was narrowed
to the confirmed binding, rather than enabling arbitrary type-2 loot.
Coverage includes all four catalogue spells with and without pending
requests; source START versus GO; real codec LootResponse publication;
no duplicate publication; unrelated spell/caster, miss/no-hit, actor kind,
sent/eligible/generation, realm/map, transfer/teleport/logout/self readiness,
identity mismatch; post-GO removal, generation change, scope change,
expiry, wrong owner and wrong wire type; truncated GO; and an existing
window that must not be replaced. The pre-existing fixture retains actual
codec item/slot/group/release checks. No mock replacement of the world
or loot implementation is used.
Both changed C++ units and the final fixture compile with
`-Wall -Wextra -Wpedantic -Werror`. Measured focused runtime is 0.035s.
No CMake timeout change is required. Only these two native units were
compiled; the codec was not rebuilt. No full gate or client test was run.
The original report's precise runtime sequence remains unobserved; this
is a host-proven repair of the source contract gap, not an in-game claim
that all three symptoms are resolved.