Files

28 lines
4.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Source interruption must match deferred standing cast — 2026-11-27
Source0x2a6 is a broadcast naming one caster and spell. The gateway previously reset the local deferred standing cast unconditionally, before even validating the packet. A complete interruption for another player therefore deleted an unrelated local cast awaiting stand acknowledgement. A malformed packet could also delete it before throwing. The first unrelated-player case fails against the baseline ([before log](before.log)); this is a demonstrated runtime defect, not speculative client behavior.
The fix validates all12 source bytes, then retires the deferred standing cast only if its stored owner and original spell match. Existing matching-source cancellation is preserved; another caster/spell cannot cancel it. This introduces no fabricated cast, heartbeat, or source acknowledgement.
## Contract and native boundary
`/mnt/Games/@project/build/source-server-main-20261124/source/src/game/Spells/Spell.cpp:4926–4936`, Spell::SendInterrupted, writes the caster's ObjectGuid and spell ID into SMSG_SPELL_FAILED_OTHER, then broadcasts it to surrounding players including self. The source has no native cast ID in this packet, so only the named caster/spell can be correlated; no stronger identity is invented.
Existing gateway `defer_standing_cast` stores owner, original validated native request and source packet; `cancel_standing_cast` already compares its native cast/spell identity before local cancellation. The source broadcast must likewise be scoped to its available owner/spell fields. Matching interruption semantics remain as before, but happen only after complete framing validation.
Maintained native SpellPackets.cpp:532–554 writes per-caster/per-cast/per-spell failure events, not a global cancellation. This is supporting identity evidence, not a new70334 opcode-reader claim. No native writer or output mapping changes. Existing [observed interruption cases](../../../../tests/observed_spell_cast_test.cpp#L253) require a tracked START identity before producing native interruption and suppress an unobserved interruption; these paths are unchanged and their accepted checks are not independently rerun here.
## Focused integrated tests
The existing [native_stand_cast_pipeline_test.cpp](../../../../tests/native_stand_cast_pipeline_test.cpp) establishes a real stand request and deferred cast through gateway methods. New complete broadcast cases cover another player/same spell, another player/different spell, and local player/different spell, both before and after standing is acknowledged. The original request and exact source payload must survive. A genuine source stand-state acknowledgement then makes that exact cast sendable without falsely marking it already pending.
Matching local-owner/spell interruptions still retire the deferred cast in both phases; later stand acknowledgement cannot revive it. Every truncated0..11-byte interruption plus a13-byte trailing variant must throw and preserve the deferred request; subsequent genuine stand acknowledgement resumes it. Existing explicit cancel, timeout, target generation, world-state and source-create controls run as part of this changed fixture.
Only the changed world_translation unit is compiled and linked directly into the changed fixture, using the pinned75d0ba65 shared native/protocol snapshot and6dc6e75a headers. [Input hashes](host-inputs.json). No full gate, codec build or client action. Before execution stops at the first unrelated-player regression; no exhaustive before-failure count is claimed.
After correction: **190 counted checks PASS**, plus the fixture’s exception-rejection checks (which are not included in the counter), zero failures. [After log](after.log), [receipt](receipt.json). Compilation used C++20 and warnings-as-errors with the integration’s existing paired gameobject and staged item-render profile defines.
## Scope
Only the0x2a6 standing-cast retirement block, existing stand-cast fixture and this evidence change. Parent movement_sent work, book0x244, ops/CMake and0x130 handling are untouched. No attribution to queue43 or any live report. Native in-game acceptance and the parent's integrated release gate remain external.