Files

2.2 KiB

Deferred equipment aura provenance collision

A precreate source equipment SPELL_GO can arrive before SELF, its aura holder, and the owned item template. The login path correctly withholds the initial SELF aura until these facts agree. The generic aura-identity binder nevertheless ran while that output was withheld, assigning a fallback server/caster identity. When the genuine item template arrived, the equipment binder added the real item context to the same slot. The aura serializer then rejected the conflicting contexts (ambiguous aura cast provenance).

The existing native-server-equip-casts fixture reached this production defect after updating obsolete expectations that any presentation CastID implied a fabricated SPELL_GO. A new waiting-phase assertion fails before the fix: deferred login aura allocated fallback cast before equipment proof. The real late-template case previously threw during NativeAuraTranslation::flush.

The fix defers fallback self-applied/caster identity allocation for the same owner whose initial aura output is withheld by pending login equipment evidence. Other actors continue normally. Once the source equipment context is accepted or the pending evidence is rejected/expired, the normal identity and output paths resume. No item, spell, or character is special-cased; source event validation and bounded waiting remain unchanged.

Tests distinguish a presentation correlation identity from a real cast event. Genuine holders still receive nonempty identities; late, ambiguous, or expired events cannot fabricate SPELL_GO or unconfirmed equipment provenance. The fixture retains exact confirmed GO/Aura ordering, cast/item context, rejection of missing/ambiguous metadata, expiry, removal/recreation, client pending-cast isolation, and packet bounds. A focused aura test verifies that withholding one owner does not block another actor.

This is an offline reproduction, not attribution to a particular player report. Requires native rebuild and the integration gate; no codec/content change. Targeted CTests PASS: native-server-equip-casts, native-source-aura-slots (85 writer-parity variants plus lifecycle checks), and native-companion-source-pipeline.