Files

1.8 KiB

Proficiency route validation, 2026-11-27

The world route for SMSG_SET_PROFICIENCY now uses the existing forever_set_proficiency helper. Previously it duplicated the byte reordering while omitting that helper's class validation, so all 254 non-weapon/non-armor byte values were forwarded. The source login and EffectProficiency paths send only weapon class 2 and armor class 4. The fix reuses that established contract without restricting subclass mask bits.

The same focused fixture ran 333 checks: 254 failed against the unchanged host, zero failed after rebuilding the changed translation unit. It covers every single mask bit, zero/all/alternating masks for both valid classes, every unsupported uint8 class, all truncated prefixes, trailing bytes, and valid recovery after malformed input. Positive cases compare the complete native batch, opcode, size, little-endian mask and class order.

The source server Player::SendProficiency and EffectProficiency callers establish source framing/allowed classes. The existing native ItemPackets writer and pinned codec-closure declaration establish mask:uint32 followed by class:uint8. The reference server's older opcode number is not used to change the current 70334 route 0x4701e0. Digests are in receipt.json; before/after results are retained here. This is offline admission coverage, not a new client reader proof, live proficiency acceptance, or attribution of the 126 historical drops in ec1b15b3.

Only the changed world translation unit and focused test were rebuilt; remaining completed host dependencies were reused read-only. Compile flags include -Wall -Wextra -Wpedantic -Werror. The new registered target is native-proficiency-route. A native rebuild is needed; no codec or content change is needed. Claude owns integration/platform gate and shipping. No client actions or publication occurred.