Arena API findings (2026-10-25)

Primary sources: Blizzard's shipped UI/API definitions, mirrored by Gethe.

https://raw.githubusercontent.com/Gethe/wow-ui-source/live/Interface/AddOns/Blizzard_APIDocumentationGenerated/PvpInfoDocumentation.lua
GetArenaOpponentSpec is explicitly Namespace="" (global), returns specializationID and gender, and has SecretReturns=true. Do not compare or use restricted values to select actions.

https://raw.githubusercontent.com/Gethe/wow-ui-source/live/Interface/AddOns/Blizzard_UnitFrame/Shared/UnitFrameUtil.lua
Lines 271-307 confirm GetSpecializationInfoByID returns id, name, description, icon, role, classToken, localizedClassName. The sixth return really IS the class token. The prior bug is not a sixth-versus-seventh return mixup.
Lines 403-414 expose public addon-safe display delegates because GetArenaOpponentSpec always returns secrets:
UpdateArenaOpponentSpecDisplay({specNameText,classNameText,specPortrait,roleIcon,barTexture},arenaIndex,optionalTextureMap)
UpdateArenaOpponentSpecDisplayName(nameText,arenaIndex,preferredName)
Their return values may be secret. The addon ignores these returns and lets Blizzard write the display sinks. It never reads back a restricted texture/text value to infer identity or actions.

https://raw.githubusercontent.com/Gethe/wow-ui-source/live/Interface/AddOns/Blizzard_APIDocumentationGenerated/SpecializationSharedDocumentation.lua
GetSpecializationInfoForSpecID is another GLOBAL function. Its sixth/seventh returns are recommended/allowedForBoost booleans, not class identity. Class ID may be read from C_SpecializationInfo.GetClassIDFromSpecID for accessible IDs, then resolved via GetClassInfo.

https://raw.githubusercontent.com/Gethe/wow-ui-source/live/Interface/AddOns/Blizzard_RestrictedAddOnEnvironment/SecureStateDriver.lua
State drivers evaluate SecureCmdOptionParse. The old [instance:arena] dependency was replaced by explicit IsInInstance() arena context outside combat rather than relying on an unverified macro conditional. Protected visibility/action changes defer during lockdown and refresh on PLAYER_REGEN_ENABLED. Native arena1/2/3 target/focus and user-confirmed native Assistant macro remain unchanged.

https://raw.githubusercontent.com/Gethe/wow-ui-source/live/Interface/AddOns/Blizzard_UnitFrame/Mainline/CompactArenaFrame.lua
Native arena frames use opponent-spec counts before units exist; its stealthed display calls the same UnitFrameUtil delegates. This explains why native UI can display preparation metadata while a plain addon reader cannot.

Replacement readiness:
CompactArenaFrame:GetArenaSize uses GetNumArenaOpponentSpecs then GetNumArenaOpponents as ordinary layout counts. The addon accepts only accessible integer counts 1-3. For every counted row it requires successful public display and name delegate calls against the row's real spec/name/icon/role/bar regions, or complete accessible class/spec/role information on clients where that fallback is available. Only pcall's ordinary success boolean is retained. The delegate's possibly-secret hasSpec return and rendered text/texture values are never inspected. This proves the supported display path was applied, not that a specific opponent identity was learned. Native suppression affects display only; action targets remain fixed arena1/2/3 and do not depend on metadata.

Fallback and verification limits:
Missing/zero/restricted opponent counts, unavailable/failing helpers with no complete accessible fallback, or more than three opponents preserve native frames. Successful replacement readiness is configured outside combat and remains active through secure combat entry; it is not reset merely because identity becomes restricted. Changes that would require protected visibility updates during lockdown defer to PLAYER_REGEN_ENABLED. A helper that starts failing during combat cannot immediately restore a protected native frame through insecure code. Helpers report only a possibly-secret hasSpec value, so the addon cannot prove semantic content by reading their return or the rendered sinks; it relies on the public helper contract plus nonsecret opponent count. No opponent identity metadata is cached across Shuffle rounds. Offline Lua tests verify the documented return shapes, display-delegate contract, slot actions, native replacement/fallback, and world/setup cleanup. A live WoW arena is still needed to verify actual protected/secret behavior and visual layout; the mock is not a client emulator.
