128 lines
10 KiB
Markdown
128 lines
10 KiB
Markdown
# Source opcode coverage audit — 2026-11-27
|
|
|
|
Queue item 11. Full declaration inventory plus historical numeric counter evidence. This is not a claim that every referenced opcode has a correct end-to-end native implementation.
|
|
|
|
Gateway snapshot: `f15d124607737ee5c9b138e103ba2e125f5433e7`. Source: current LOCAL `build/source-server-main-20261124/source/src/game/Protocol/Opcodes_1_12_1.h`, SHA256 `0e12b66d7a3c643484789b6d9c3b489f4c0b1a657cd6babc1232ec7701768d43`.
|
|
|
|
## Denominators and counting contract
|
|
|
|
- 360 declared `SMSG_` messages and 80 `MSG_`/`UMSG_` messages are listed individually in `audit.json`. The older 350-opcode constructed-packet catalogue used a different denominator and must not be subtracted from this one.
|
|
- 59 SMSG declarations have no matching symbolic or hex reference across gateway `native/`, `src/`, and `include/gateway/`. Of these, 18 have source C++ use sites outside the opcode registration file; 41 have no such use site. Absence of references is a review candidate, not proof against every possible computed/decimal route.
|
|
- The other 301 SMSG declarations have references requiring semantic review. Numeric collisions, bit masks, client-direction code, and parser-only references are not automatically handlers. Table-driven speed/movement routes are included rather than counted as missing switch labels.
|
|
- 24 distinct diagnostic sessions (16 OCTO, 8 LOCAL), zero rejected capture inputs. Every captured stack_commit is null, so the recordings cannot be attributed to this current code revision.
|
|
- Latest cumulative counts per `(opcode, body_size)` are used, as implemented by the existing `diagnostics_packet_report.summarize`; copies of the same session are merged by maximum and distinct sessions summed. This yields 268 historical SMSG unhandled-boundary counts and 755 historical SMSG error-boundary counts. These are not total traffic or current failure counts.
|
|
- The older `ops/diagnostics_drops.py` adds every cumulative row and can overcount; it was not used to compute this report. Reuse the counter-aware parser for subsequent audits.
|
|
|
|
## Historical unhandled observations and current review
|
|
|
|
| Source opcode | Name | Historical count | Current review |
|
|
| --- | --- | ---: | --- |
|
|
| 0x92 | SMSG_GUILD_EVENT | 29 | current source has explicit world translation case; emission remains state-dependent |
|
|
| 0xb3 | SMSG_GAMEOBJECT_CUSTOM_ANIM | 3 | current source has explicit world translation case; emission remains state-dependent |
|
|
| 0x127 | SMSG_SET_PROFICIENCY | 126 | current source has explicit world translation case; emission remains state-dependent |
|
|
| 0x14e | SMSG_CANCEL_COMBAT | 6 | current source has explicit world translation case; emission remains state-dependent |
|
|
| 0x172 | SMSG_MOUNTSPECIAL_ANIM | 1 | current source has explicit world translation case; emission remains state-dependent |
|
|
| 0x215 | SMSG_GAMEOBJECT_DESPAWN_ANIM | 11 | current source has explicit world translation case; emission remains state-dependent |
|
|
| 0x21e | SMSG_SET_REST_START | 10 | recognized-consumed: native rest state is represented by update fields |
|
|
| 0x24c | SMSG_SPELLLOGEXECUTE | 62 | current source has explicit world translation case; emission remains state-dependent |
|
|
| 0x278 | SMSG_PLAY_OBJECT_SOUND | 3 | current source has explicit world translation case; emission remains state-dependent |
|
|
| 0x2f4 | SMSG_WEATHER | 11 | current source has explicit world translation case; emission remains state-dependent |
|
|
| 0x2fe | SMSG_SPLINE_SET_RUN_SPEED | 5 | table-driven remote_speeds route exists |
|
|
| 0x32f | SMSG_SPELLINSTAKILLLOG | 1 | held: source instakill lacks caster GUID; existing test requires no output |
|
|
|
|
Eleven of these twelve opcodes now have explicit or table-driven dispatch/consumption. Do not implement duplicate handlers based on the old journal. `0x32f` remains underdetermined: the source sends victim GUID plus spell, with no caster. `tests/source_combat_event_test.cpp:95` requires empty output for that shape. The related `0x1d7` enchant log also has a no-output assertion because source lacks the native item GUID/slot. Reusing guessed spell/caster/item identities is not a valid coverage fix.
|
|
|
|
## Historical error observations
|
|
|
|
| Opcode | Name | Error-boundary count |
|
|
| --- | --- | ---: |
|
|
| 0x51 | SMSG_NAME_QUERY_RESPONSE | 100 |
|
|
| 0x58 | SMSG_ITEM_QUERY_SINGLE_RESPONSE | 524 |
|
|
| 0x61 | SMSG_CREATURE_QUERY_RESPONSE | 66 |
|
|
| 0xa9 | SMSG_UPDATE_OBJECT | 63 |
|
|
| 0x2fb | SMSG_COMPRESSED_MOVES | 2 |
|
|
|
|
All five have current code references. The old numeric journals contain no failure result, payload, actor binding, or pinned stack commit, so the precise rejected guard cannot be reconstructed from these counts. Fresh d7260fb4/07a572e6-era close diagnostics and sanitized payload context are needed before assigning current failures.
|
|
|
|
## Full no-reference list
|
|
|
|
All 59 declarations are retained, including obsolete/debug messages. A zero observation means not seen in these sessions, not proved safe or impossible. Source site count includes references and must be checked against the constructor/send context.
|
|
|
|
| Opcode | Name | Source C++ sites | Historical unhandled |
|
|
| --- | --- | ---: | ---: |
|
|
| 0x1b | SMSG_FORCEACTIONSHOW | 0 | 0 |
|
|
| 0x23 | SMSG_GODMODE | 0 | 0 |
|
|
| 0x2f | SMSG_DEBUG_AISTATE | 0 | 0 |
|
|
| 0x113 | SMSG_OPEN_CONTAINER | 2 | 0 |
|
|
| 0x133 | SMSG_SPELL_FAILURE | 0 | 0 |
|
|
| 0x147 | SMSG_ATTACKSWING_NOTSTANDING | 1 | 0 |
|
|
| 0x14b | SMSG_VICTIMSTATEUPDATE_OBSOLETE | 0 | 0 |
|
|
| 0x14c | SMSG_DAMAGE_DONE_OBSOLETE | 0 | 0 |
|
|
| 0x14d | SMSG_DAMAGE_TAKEN_OBSOLETE | 0 | 0 |
|
|
| 0x14f | SMSG_PLAYER_COMBAT_XP_GAIN_OBSOLETE | 0 | 0 |
|
|
| 0x157 | SMSG_BINDZONEREPLY | 0 | 0 |
|
|
| 0x164 | SMSG_LOOT_ITEM_NOTIFY | 0 | 0 |
|
|
| 0x16f | SMSG_DISMOUNTRESULT | 1 | 0 |
|
|
| 0x170 | SMSG_PUREMOUNT_CANCELLED_OBSOLETE | 0 | 0 |
|
|
| 0x181 | SMSG_NPC_WONT_TALK | 0 | 0 |
|
|
| 0x1b6 | SMSG_PLAYERBINDERROR | 0 | 0 |
|
|
| 0x1d1 | SMSG_AURACASTLOG | 0 | 0 |
|
|
| 0x1d6 | SMSG_RESISTLOG | 0 | 0 |
|
|
| 0x1d7 | SMSG_ENCHANTMENTLOG | 1 | 0 |
|
|
| 0x1e4 | SMSG_PLAYER_MACRO_OBSOLETE | 0 | 0 |
|
|
| 0x1e7 | SMSG_INVALID_PROMOTION_CODE | 0 | 0 |
|
|
| 0x1fe | SMSG_RWHOIS | 0 | 0 |
|
|
| 0x206 | SMSG_GMTICKET_CREATE | 1 | 0 |
|
|
| 0x208 | SMSG_GMTICKET_UPDATETEXT | 1 | 0 |
|
|
| 0x20e | SMSG_POWERGAINLOG_OBSOLETE | 0 | 0 |
|
|
| 0x212 | SMSG_GMTICKET_GETTICKET | 2 | 0 |
|
|
| 0x214 | SMSG_GAMEOBJECT_SPAWN_ANIM | 3 | 0 |
|
|
| 0x23f | SMSG_BATTLEFIELD_WIN | 0 | 0 |
|
|
| 0x240 | SMSG_BATTLEFIELD_LOSE | 0 | 0 |
|
|
| 0x24d | SMSG_DEBUGAURAPROC | 0 | 0 |
|
|
| 0x252 | SMSG_RESURRECT_FAILED | 0 | 0 |
|
|
| 0x261 | SMSG_STANDSTATE_CHANGE_FAILURE | 0 | 0 |
|
|
| 0x27c | SMSG_DAMAGE_CALC_LOG | 0 | 0 |
|
|
| 0x28d | SMSG_AUCTION_REMOVED_NOTIFICATION | 1 | 0 |
|
|
| 0x299 | SMSG_MEETINGSTONE_MEMBER_ADDED | 1 | 0 |
|
|
| 0x2a5 | SMSG_SET_FORCED_REACTIONS | 1 | 0 |
|
|
| 0x2a7 | SMSG_GAMEOBJECT_RESET_STATE | 1 | 0 |
|
|
| 0x2af | SMSG_PET_BROKEN | 1 | 0 |
|
|
| 0x2b6 | SMSG_SCRIPT_MESSAGE | 0 | 0 |
|
|
| 0x2bc | SMSG_PLAYER_SKINNED | 1 | 0 |
|
|
| 0x2c5 | SMSG_ITEM_NAME_QUERY_RESPONSE | 1 | 0 |
|
|
| 0x2f5 | SMSG_PLAY_TIME_WARNING | 0 | 0 |
|
|
| 0x2f6 | SMSG_MINIGAME_SETUP | 0 | 0 |
|
|
| 0x2f7 | SMSG_MINIGAME_STATE | 0 | 0 |
|
|
| 0x2f9 | SMSG_MINIGAME_MOVE_FAILED | 0 | 0 |
|
|
| 0x313 | SMSG_SET_FACTION_ATWAR | 1 | 0 |
|
|
| 0x314 | SMSG_GAMETIMEBIAS_SET | 0 | 0 |
|
|
| 0x325 | SMSG_PET_DISMISS_SOUND | 0 | 0 |
|
|
| 0x326 | SMSG_GHOSTEE_GONE | 0 | 0 |
|
|
| 0x328 | SMSG_GM_TICKET_STATUS_UPDATE | 0 | 0 |
|
|
| 0x32d | SMSG_CHAT_PLAYER_AMBIGUOUS | 0 | 0 |
|
|
| 0x32f | SMSG_SPELLINSTAKILLLOG | 1 | 1 |
|
|
| 0x330 | SMSG_SPELL_UPDATE_CHAIN_TARGETS | 1 | 0 |
|
|
| 0x332 | SMSG_EXPECTED_SPAM_RECORDS | 0 | 0 |
|
|
| 0x333 | SMSG_SPELLSTEALLOG | 0 | 0 |
|
|
| 0x335 | SMSG_LOTTERY_QUERY_RESULT_OBSOLETE | 0 | 0 |
|
|
| 0x337 | SMSG_LOTTERY_RESULT_OBSOLETE | 0 | 0 |
|
|
| 0x338 | SMSG_CHARACTER_PROFILE | 0 | 0 |
|
|
| 0x339 | SMSG_CHARACTER_PROFILE_REALM_CONNECTED | 0 | 0 |
|
|
|
|
## Proposed family work, ordered by player impact
|
|
|
|
1. **Combat and spell feedback:** `0x147` attack-not-standing and `0x330` chain-target updates have source packet construction but no corresponding gateway reference. Compare the full native attack-error family and channel/chain target lifecycle before writing a family fixture. Keep `0x1d7`/`0x32f` explicit payload-deficiency holds.
|
|
2. **Reputation state:** `0x2a5` forced reactions and `0x313` faction-at-war updates are emitted by real server paths. Audit native faction state and dependent update fields together; do not limit coverage to reputation standing changes.
|
|
3. **Inventory and auction feedback:** `0x113` open-main-container, `0x2c5` item-name query response, and `0x28d` auction removal notification need native response/lifecycle contracts. The first has a real constructor in Player::SendOpenContainer, not merely a debug string.
|
|
4. **World-object lifecycle:** `0x214` spawn animation and `0x2a7` reset state need the object GUID/generation binding and native animation/reset contract as a pair. Existing despawn/custom-animation routes are not substitutes.
|
|
5. **Pet and player feedback:** `0x2af` broken pet, `0x16f` dismount result, and `0x2bc` player skinned should be audited against native error/UI and death/state transitions rather than faked messages.
|
|
6. **Support and group-finder:** `0x206`/`0x208`/`0x212` legacy ticket results and `0x299` meeting-stone member addition require feature-equivalence decisions. Do not manufacture a modern service the server does not provide.
|
|
7. **41 declarations without source use sites:** preserve the complete list but treat unused/debug/obsolete entries separately from proven server sends. Octo fork-only traffic remains a capture requirement.
|
|
|
|
Each row in `audit.json` includes source use locations, gateway reference locations, existing test locations, and both counter dimensions. No runtime changes, client actions, or proposed invented payload fields were made. This audit closes the inventory/report request, not the outstanding family implementations or runtime semantic holds.
|
|
|
|
## Reproduction
|
|
|
|
Private generator and logs: `runtime/continuation-20261113/codex/opcode-coverage-20261127/{audit.py,audit.log,audit.json}`. It reuses `rea_protocol_coverage.strip_comments` and `diagnostics_packet_report.summarize`, scans the full source header/current gateway and the explicitly selected numeric diagnostics directories, and never opens packet bodies, account caches or chat logs. The 24 session identities/scopes are recorded in the JSON. No new test run was needed for this documentation-only audit; numeric input validation, cumulative monotonicity and source/table review were performed during generation.
|