# IDA 9.4 cross-check: rove vs. Mac `RobloxPlayer` (ARM64 + Hex-Rays)

> Engine note from the Rove documentation: https://docs.rove.wtf/notes/ida-notes

Extracted binary artifacts live in `../rove-extract/` (`RobloxPlayer.i64`, 233k
symbols, 137 network vtables, 83 packet item classes, full Hex-Rays decompiler
and ARM64 leaf disassembly verification) with checked-in summaries in
`ida-packet-items.txt`, `ida-symbols.tsv`, and `ida-vtables.json`.

## Transport mapping

| IDA class | rove crate | status |
|---|---|---|
| `RBX::RbxTransport::Impl::QuicMultiplexedConnection` | `client-core/src/transport` (`quinn` + `wtransport`, WebTransport-style) | matches — rove joins real places over QUIC |
| `RBX::Network::RakNetConnection` / `RakNetClientConnection` | not used on the live QUIC path (legacy UDP) | documented gap, sessions work without it |
| `RBX::Network::Peer` / `Client` / `Server` vtables | `Client` / `Server` handled by `SessionCore` + `live_session` | ok |

## Core `RBX::Network::BitStream` primitives

| IDA helper | Primitive | Exact wire encoding |
|---|---|---|
| `sub_1016352F8` / `sub_10163523C` | `readUInt8` / `readInt8` | `u8` / `i8` (1B) |
| `sub_101635548` | `readBool` | `u8` (`0` or `1`, 1B) |
| `sub_10163548C` / `sub_1016353D0` | `readUInt16` / `readInt16` | `u16` / `i16` LE (2B) |
| `sub_101634FEC` / `sub_101634F30` | `readUInt32` / `readInt32` | `u32` / `i32` LE (4B) |
| `sub_101635180` / `sub_1016350C4` | `readUInt64` / `readInt64` | `u64` / `i64` LE (8B) |
| `sub_101635574` / `sub_101635630` | `readFloat` / `readDouble` | IEEE-754 `f32` (4B LE) / `f64` (8B LE) |
| `sub_1016347C4` / `sub_101634878` | `readVarUInt32` / `readVarUInt64` | Unsigned LEB128 (7 bits/byte, max 5B / 10B) |
| `sub_10163579C` | `readVarUInt16` | Unsigned LEB128 bounded `<= 0xFFFF` |
| `sub_1016349A0` / `sub_1016349E4` | `readZigZagInt32` / `readZigZagInt64` | `(u >> 1) ^ -(u & 1)` over `varuint32` / `varuint64` |
| `sub_1016358A4` | `readBoundedString` | `u32 byte_len` LE (4B) + `byte_len` raw bytes |
| `sub_101634B24` / `sub_104EAFE90` | `readVarIntString` | `varuint32 byte_len` + `byte_len` raw bytes |
| `sub_105034A48` | `RakString::Deserialize` | `u16 byte_len` LE (2B) + `byte_len` raw bytes (packet `147`) |
| `sub_104DDC584` | `Replicator::readGuid` | `varuint32 scope`: `0` -> Null (1B); else `u32 index` LE (`1..5 + 4`B) |
| `sub_105030414` | `StreamRegion::Id::read` | `u8 is_i32`: `0` -> `3 x i8` (4B total); `1` -> `3 x i32` LE (13B total) |
| `sub_104ED3A6C` | `readCompressedBitStream` | `u32 comp_len` LE + `u32 raw_len` LE + `comp_len` Zstd bytes |
| `sub_104EC5D0C` | `readContextTrail` | Per unresolved `SharedString`/`ProtectedString` (`6, 46, 47`): `16B` key + `u8 cached` (`1` = 0B; `0` = `varuint32 len` + `len`B Blake2b-128) |

## Top-level packet switch (`ClientReplicator::onReceive` & `Replicator::onReceive`)

Verified against `sub_104DABB58` (standard), `sub_104DADAFC` (shuffled alt IDs),
`sub_104EDE2F0` (`Replicator::onReceive`), and `sub_104EDC18C`
(`ProcessPacketsJob`). Routed in `rust-client/src/live_session.rs` and replayed
in `rust-client/src/capture_replay.rs`.

| Std ID | Shuffled Alt | Subsystem / Name | IDA Handler | Exact Header & Wire Format |
|---:|---:|---|---|---|
| `14` (`0x0E`) | `14` | RakNet PingProbe A | `sub_104EBE07C` | `u8(0x0E)` + `u32` (4B) |
| `15` (`0x0F`) | `15` | RakNet PingProbe B | `sub_104EBE1A8` | `u8(0x0F)` + `u32` (4B) |
| `16` (`0x10`) | `16` | `ID_CONNECTION_REQUEST_ACCEPTED` | `sub_104EDE2F0` | Connection accepted timing hook |
| `21` (`0x15`) | `21` | `ID_DISCONNECTION_NOTIFICATION` | `sub_104EC185C` | `u8(0x15)` + optional `i32 reason_code` (`257..=321`) + optional bounded text |
| `22` (`0x16`) | `22` | `ID_CONNECTION_LOST` | `sub_104EDE2F0` | `u8(0x16)` (+ optional `i32 reason_code`) |
| `27` (`0x1B`) | `27` | `ID_TIMESTAMP` | `sub_104EDC18C` | `u8(0x1B)` + `u64 remote_send_ms` + `u64 local_echo_ms` + `u8 inner_id` (or `u8 inner_id` + `u64 local_echo_ms` when `rep[16123]&2 != 0`) + inner payload |
| `129` (`0x81`) | — | `ID_TOP_REPLICATION` | `sub_104EBC9D8` | Top-container service instances + local peer scope (`SessionCore::ingest`) |
| `130` (`0x82`) | — | Legacy ignored | `sub_104EDE2F0` | No-op (`return 0`) |
| `131` (`0x83`) | `181` (`0xB5`) | `ID_DATA` | `sub_104ED5928` | `u8(0x83 or 0xB5)` + `ID_DATA` item opcodes (`1..=43`) terminated by `u8(0x00)` |
| `132` (`0x84`) | `176` (`0xB0`) | `ID_REQUEST_MARKER` | `sub_104EDE2F0` | `u8(0x84 or 0xB0)` + `u32 marker_id` (echoed as `MarkerItem` `4` in `ID_DATA`) |
| `133` (`0x85`) | `231` (`0xE7`) | `ID_PHYSICS` | `sub_104E54880` | `u8(0x85 or 0xE7)` + `MechanismItem` root stream terminated by `0x00` `Guid` |
| `134` (`0x86`) | `189` (`0xBD`) | `ID_TOUCHES` (`TouchItemS2`) | `sub_104E55A7C` | `u8(0x86 or 0xBD)` + `(Guid part_a, Guid part_b, u8 state <= 4)` loop until `part_a == Null` (`0x00`) |
| `135` (`0x87`) | — | `ID_CHAT_ALL` | `sub_104D8FA78` | `u8(0x87)` + `varuint32 scope + i32 idx` + `u32_string msg` + up to `2 x bool` |
| `136` (`0x88`) | — | `ID_CHAT_TEAM` | `sub_104D8FA78` | `u8(0x88)` + `varuint32 scope + i32 idx` + `u32_string msg` + up to `2 x bool` |
| `137` (`0x89`) | — | Legacy ignored | `sub_104EDE2F0` | No-op (`return 0`) |
| `139` (`0x8B`) | — | `ID_CHAT_GAME_MESSAGE` | `sub_104D8FA78` | `u8(0x8B)` + `u32_string msg` + up to `2 x bool` |
| `140` (`0x8C`) | — | `ID_CHAT_WHISPER` | `sub_104D8FA78` | `u8(0x8C)` + `varuint32 scope + i32 idx` + `Guid target` + `u32_string msg` + up to `2 x bool` |
| `141` (`0x8D`) | — | `ID_CLUSTER` (Terrain voxels) | `sub_104E833B8` | `u8(0x8D)` + `Guid terrain` + (if `Workspace.StreamingEnabled`: `u8 sub_id < 6` [+ `i32` if `sub_id == 5`]) + `readCompressedBitStream` |
| `142` (`0x8E`) | — | `ID_PROTOCOL_MISMATCH` | `sub_104DABB58` | `u8(0x8E)` -> disconnect reason `259` |
| `144` (`0x90`) | — | `ID_SUBMIT_TICKET` (C->S) | `ServerReplicator` | Client join authentication/ticket submission |
| `145` (`0x91`) | — | Legacy ignored | `sub_104EDE2F0` | No-op (`return 0`) |
| `146` (`0x92`) | — | `ID_PLACEID_VERIFICATION` | `sub_104DABB58` | `u8(0x92)` + `bool verified` (`true` -> verified; `false` -> disconnect reason `263`) |
| `147` (`0x93`) | — | `ID_PROTOCOL_SYNC` (FFlags) | `sub_104DBC164` | `u8(0x93)` + `u8 skipped` + `u16 count` + `count * (u16_str key, u16_str val)` (carries `DebugAdaptivePVCompressor`) |
| `151` (`0x97`) | — | `ID_SCHEMA_SYNC` | `sub_104EDC18C` | `u8(0x97)` + `readCompressedBitStream` network schema table |
| `152` (`0x98`) | `250` (`0xFA`) | `ID_KICK` (`Player::Kick`) | `sub_104DABB58` | `u8(0x98 or 0xFA)` + `u32_string message` + `u32_string extra_json` -> disconnect reason `267` |
| `154` (`0x9A`) | `164` (`0xA4`) | `ID_MICROPROFILER_DUMP` | `sub_104DAFC54` | `u8(0x9A)` + `i32` + `i32` + `readCompressedBitStream` |
| `155` (`0x9B`) | `207` (`0xCF`) | Challenge packet | `sub_104DAD44C` | `u8(0x9B or 0xCF)` + `u32 id1` + `u32 id2` + `u32_string payload` |
| `161` (`0xA1`) | `161` | `ID_ISR` | `sub_104532AD4` | `u8(0xA1)` + `u32 step` + `u32 group_count` + `i32 default_scope` + LOD groups |
| `162..=164` | `203..=205` | Channel control | `sub_104DAD8A4` | `u8(id)` + channel framing bytes |
| `165` (`0xA5`) | `165` | `ID_LARGE_REPLICATOR` | `sub_10453D020` | `u8(0xA5)` + `u8 sub_type` (`7` = ack, else chunk delivery) |
| `166` (`0xA6`) | `191` (`0xBF`) | `ID_INPUT` (`AuroraInput`) | `sub_104DE1FDC` | `u8(0xA6 or 0xBF)` + `AuroraInput` frame data |

## `ID_DATA` (`131` / `0x83`) item opcodes (`0..=46`)

Verified against `ClientReplicator::readItem` (`sub_104DAEA10`, max S->C `41`),
`ServerReplicator::readItem` (`sub_104F2A2C4`, max C->S `43`), and
`Replicator::itemTypeToString` (`sub_104DFF6D8`, `0..=46`). Implemented in
`client-core/src/replication.rs` and `client-core/src/replication_out.rs`.

| ID | Canonical Name (`sub_104DFF6D8`) | Dir | IDA Reader | Exact Wire Layout (after `u8` opcode) |
|---:|---|---|---|---|
| `0` | `End Item` | Both | `sub_104ED5310` | `0B` — terminates `ID_DATA` item loop |
| `1` | `Delete Items` | Both | `sub_104E84CF8` | `Guid target` |
| `2` | `New Items` | Both | `sub_104E97EC0` | `Guid instance` + `u16 class_id` + `PropLoop(group=2: {3,6,28,33,34,47,69}, compressed=true)` + `PropLoop(group=1: others, compressed=true)` + `ContextTrail` + `Guid parent` (+ optional `u8 intent_flags`) |
| `3` | `Change Property Items` | Both | `sub_104E80FF4` | `Guid instance` + `u16 prop_id` + VersionHeader (S->C `sub_104DBAE50`: `1B bool reset` only; C->S: `bool has_ver` [+ `zigzag32`]) + (`Guid parent` or `PropertyValue(compressed=true)` + `ContextTrail`) |
| `4` | `Marker Items` | Both | `sub_104E92A84` | `u32 marker_id` (4B LE) |
| `5` | `Other Items 1` (`PingItem`) | Both | `sub_104E9C9E0` | `u8 flags (<=0x1F)` + `u64 ts` + `u32 send_stats` + (`6 x u32` if `flags&1`, else `3 x f32` if `flags&2`) + `2 x u32` + `u8 unreliable` + (`u32` if `flags&4`) + (`f32` if `flags&0x10`) + (`u8` + tracer if `flags&8`) |
| `6` | `Other Items 2` (`PingBackItem`) | Both | `sub_104E9C9E0` | Identical layout to `5` |
| `7` | `Event Invocation Items` | Both | `sub_104E87044` | `Guid target` + `u16 event_id` + `schema.events[event_id]` args (`compressed=true`) + `ContextTrail` |
| `8` | `Request Character Items` | C->S | `sub_104F2DE10` | `u32 spawn_flags` + `u32_string avatar_token` + `Guid player` |
| `9` | `Other Items 3` (`PmcConfig` / `Rocky`) | Both | `sub_10502ECA4` / `sub_10502EBDC` | S->C: `u8 sub_type == 4` (1B); C->S: `u8 sub_type == 0` + `5 x u32` (21B) |
| `10` | `CFrame Ack Items` | C->S | `sub_104F2E050` | `Guid instance` + `u16 prop_id` + `bool has_ver` (+ `zigzag32` if true) + `i32 ack_step` |
| `11` | `Join Data Items` | S->C | `sub_104F777A4` | `u32 count`; if `> 0`: `readCompressedBitStream` of `count * JoinObject(compressed=false)` + `ContextTrail` |
| `12` | `Delete Pure Object Items` | C->S | `sub_104E84F50` | `Guid target` + `varuint32 token` |
| `13` | `Stream Data Items` | S->C | `sub_104F79B5C` | `JoinDataItem` (`11`) body + `do { u8 hdr; code = hdr & 0xF7: 0 => StreamRegion::Id, 1 => +Y, 2 => +Z, 3 => +X, 4 => (INT32_MAX)^3 } while (hdr & 0x08 != 0)` |
| `14` | `Region Removal Items` | C->S | `sub_104F83F48` | `StreamRegion::Id` + `u32 gc_token` + `u32 guid_count` + `u8 comp_flags` + inline/Zstd `guid_count * (Guid [+ varuint32_str(16) if has_hash])` |
| `15` | `Instance Removal Items` | C->S | `sub_104F85D48` | `Guid instance` |
| `16` | `Tag Items` | S->C | `sub_104EAA7A0` | `i32 tag_id` (`12` = `TopReplicationCompleted`, `13` = `JoinDataCompleted`) |
| `17` | `Stats Items` | S->C | `sub_104EA2D84` | `i32 version`: v9+ `2xf32`; v8+ `bool` [+ zstd `u32_str`]; v7+ `i32` + zstd `u32_str`; v6+ `f64 total` + **4** × `(i32 count + count*(u32_str + f64))` (`developerTags`, `internalCategories`, `placeScriptMemoryCategories`, `coreScriptMemoryCategories`); v3+ `bool` [+ `6xi32`]; jobs loop; scripts loop; `5xf32` |
| `18` | `Other Items 4` | C->S | `sub_104F2D528` | `u8 n`: if `0xFF` skip `4 * u8 + 4`B; else skip `4 * n + 4`B + `3 x u64` |
| `19` | `Resolve Atomic Tree Items` | S->C | `sub_104E94714` | `Guid root_instance` + `Guid parent_instance` |
| `20` | `Streaming Info Items` | S->C | `sub_104FAC3D0` | `StreamRegion::Id` + `i32 radius` + `u32 pause_version` |
| `21` | `Change Attribute Items` | Both | `sub_104E7FB6C` | `Guid instance` + `varuint32_str attr_name` (max 100) + `varuint32_str value_blob` (`[0x01]` = delete) |
| `22` | `Join Data Items V2` | S->C | `sub_104E8E91C` | `u8 subtype` + `readCompressedBitStream`: `1` = `SharedString` stream; `2..=4` = `u32 count + varuint32 skips + skip ranges` + `JoinObject`s; `5` = `NetAssets` stream |
| `23` | `Stream Terrain Item` | — | *(Top-level `141`)* | Outbound helper only (`readItem` throws inside `ID_DATA`) |
| `24` | `Stream Prefetch Info Items` | S->C | `sub_104FACCE4` | `StreamRegion::Id` + `i32 val0` + `i32 val1` |
| `25` | `Stream Prefetch Request Items` | Both | `sub_104FAC53C` | `3 x f32 center` + `f64 radius` + `i32 priority_or_timeout` (24B) |
| `26` | `Stream Replication Focus Items` | Both | `sub_104FAC670` | `u32 focus_id` + `StreamRegion::Id` + `i32 max_radius` + `f32 opt_radius` + `bool` + `bool` + `u32 step_id` |
| `27` | `Destroy Items` | S->C | `sub_104F39444` | `u32 count` + `count * Guid` (`DeserializedDestroyInstanceItem`) |
| `28` | `Client Quota Stream Update Items` | C->S | `sub_104F2DD44` | `u8 quota_flags` + `i32 memory_level` + `u16 max_regions` |
| `29` | `Stream Model Persistent Player Add` | S->C | `sub_104FACEB8` | `Guid model` |
| `30` | `Stream Model Persistent Player Remove` | S->C | `sub_104FAD01C` | `Guid model` |
| `31` | `Client QoS Items` | S->C | `sub_10502D3BC` | `u8 qos_type` + `u8 qos_val` + (`u32_string` iff `qos_type == 1 \|\| qos_type == 2`) |
| `32` | `Change Inst Item` (`Guacamole`) | S->C | `sub_10502CABC` | `u32 id` + `u32 byte_len` + `byte_len` raw bytes |
| `33` | `Change ObjProp Item` | C->S | `sub_10502E33C` | Direct writer (`u32 id + u32 byte_len + bytes`), not in `readItem` switch |
| `34` | `Deferred SharedString Item` | — | Internal | Synthesized from `JoinDataItemV2` (`22` subtype `1`) |
| `35` | `ISRTimestamp Items` | Both | `sub_104DE3C40` | `i32 isr_step` (4B LE, `DeserializedISRTimestampItem`) |
| `36` | `Stream Replication Focus Remove` | Both | `sub_104FACAB0` | `u32 focus_id` (4B LE) |
| `37` | `Stream Pin Data Items` | S->C | `sub_104F79D04` | `StreamDataItem` (`13`) body (`JoinData` + `0..=4`/`0x08` region loop) + `Guid target` + `i32 pin_id` + `bool pinned` |
| `38` | *(Unused)* | None | Throws | Unassigned |
| `39` | `Stream Replication Focus Frustum` | S->C | `sub_104FAD694` | `u32 focus_id` + `15 x f32` (64B) |
| `40` | `Stream Replication Focus Frustum Remove` | Both | `sub_104FAD538` | `u32 focus_id` (4B LE) |
| `41` | `Instance Intent Item` | S->C | `sub_104FAD1A0` | `u32 count` + `count * (Guid instance, u8 intent_mask)` (max S->C opcode) |
| `42` | `Stream Excluded Instances Item` | None | Throws | Registered name only |
| `43` | `Region Terrain LOD Removal Item` | C->S | `sub_104F85B44` | `StreamRegion::Id` + `u8 lod_level` (max C->S opcode) |
| `45` | `Cluster` (`DeserializedClusterItem`) | Top `141` | `sub_104E833B8` | Top-level `0x8D` (`ID_CLUSTER`) only |
| `46` | `Touch` (`DeserializedTouchItemS2`) | Top `134` | `sub_104E55A7C` | Top-level `0x86` (`ID_TOUCHES`) only |

## `PropertyType` (`0..=71`) & `ID_ISR` (`161` / `0xA1`) wire codecs

Verified across `Replicator::readPropertyValue` (`sub_104EB0C64`,
`compressed=true`), `Replicator::readVariantValue` (`sub_104EAC630`,
`compressed=false`), and
`InstanceStateSerializationManager::deserializeProperty` (`sub_104DE9410`,
`ID_ISR` `161`). Decoded in `client-core/src/{replication.rs,instance_state.rs}`,
encoded in `client-core/src/rpc.rs`, and normalized to Luau userdata/tables in
`rust-client/src/rust_host/values.rs`.

| ID | Engine `PropertyType` | `ID_DATA` / `JoinData` / `Variant` Wire Format | `ID_ISR` (`161`) Wire Format (`sub_104DE9410`) |
|---:|---|---|---|
| `0` | `Nil` (Variant) | `0B` in `Variant` (`sub_104EB0944`) | Throws |
| `1, 4, 5, 23, 45` | *(Unused)* | Throws `"Unsupported property type"` | Throws |
| `2` | `String` | `varuint32 len` + `len`B | `varuint32 len` + `len`B |
| `3` | `ProtectedString` (v0) | `0B` (no-op, Group 2) | `0B` (no-op) |
| `6` | `ProtectedString` (Cached) | `16B` Blake2b-128 hash + `ContextTrail` (Group 2) | `0B` (no-op) |
| `7` | `Enum` | `varuint32 token` (`Variant` prepends `u16 enum_id`) | `varuint32 token` |
| `8` | `ContentId` | `compressed=false`: `varuint32_str`; `compressed=true`: `u8 hdr` (`idx = hdr>>1` in `schema.strings` + `zigzag64` if `hdr&1` else `varuint32_str`) | `0B` (no-op) |
| `9` | `Bool` | `u8` (`0` or `1`, 1B) | `u8` (1B) |
| `10` | `Int` | `zigzag varint32` | `zigzag varint32` |
| `11` | `Float` | `f32` LE (4B) | `f32` LE (4B) |
| `12` | `Double` | `f64` LE (8B) | `f64` LE (8B) |
| `13` | `UDim` | `f32 scale` + `i32 offset` (8B) | `f32 + i32` (8B) |
| `14` | `UDim2` | `2 x (f32 scale, i32 offset)` (16B) | `2 x (f32, i32)` (16B) |
| `15` | `Ray` | `3 x f32 origin` + `3 x f32 direction` (24B) | `6 x f32` (24B) |
| `16` | `Faces` | `i32` LE (4B, `& 0x3F`) | `i32` LE (4B, `& 0x3F`) |
| `17` | `Axes` | `i32` LE (4B, `& 0x07`) | `i32` LE (4B, `& 0x07`) |
| `18` | `BrickColor` | `u16` LE (2B) | `u16` LE (2B) |
| `19` | `Color3` | `3 x f32` LE (12B) | `3 x f32` LE (12B) |
| `20` | `Color3uint8` | `3 x u8` (3B) | `3 x u8` (3B) |
| `21` | `Vector2` | `2 x f32` LE (8B) | `2 x f32` LE (8B) |
| `22` | `Vector3` | `3 x f32` LE (12B) | `3 x f32` LE (12B) |
| `24` | `Vector2int16` | `2 x i16` LE (4B) | `2 x i16` LE (4B) |
| `25` | `Vector3int16` | `3 x i16` LE (6B) | `3 x i16` LE (6B) |
| `26` | `CFrame` (Matrix) | `3 x f32 pos` + `u8 orient_id` (`1..=36` -> 13B; `0` -> `+ 9 x f32` = 49B) | Same (13B or 49B) |
| `27` | `CFrame` (Quat) | `3 x f32 pos` + `u8 orient_id` (`1..=36` -> 13B; `0` -> `+ u16 + u32` quat = 19B) | Same (13B or 19B) |
| `28` | `Object` (`Ref`) | `Guid` (Group 2) | `Guid` |
| `29` / `30` | `Tuple` / `ValueArray` | `varuint32 count` + `count * Variant` | `0B` (no-op) |
| `31` / `32` | `ValueTable` / `ValueMap` | `varuint32 count` + `count * (varuint32_str key, Variant)` | `0B` (no-op) |
| `33` | `BinaryString` | `readContentId` (Group 2) | `0B` (no-op) |
| `34` | `SystemAddress` | `varuint32` (Group 2) | `0B` (no-op) |
| `35` | `NumberSequence` | `u32 count` + `count * (f32 time, f32 val, f32 env)` (`4 + 12*count`B) | Same |
| `36` | `NumberSequenceKeypoint` | `3 x f32` (`time, val, env`, 12B) | `3 x f32` (12B) |
| `37` | `NumberRange` | `2 x f32` (`min, max`, 8B) | `2 x f32` (8B) |
| `38` | `ColorSequence` | `u32 count` + `count * (f32 time, 3xf32 rgb, f32 env)` (`4 + 20*count`B) | Same |
| `39` | `ColorSequenceKeypoint` | `5 x f32` (`time, r, g, b, env`, 20B) | `5 x f32` (20B) |
| `40` | `Rect2D` | `4 x f32` (`x0, y0, x1, y1`, 16B) | `4 x f32` (16B) |
| `41` | `PhysicalProperties` | `u8 flags`: `(flags&1)==0` -> 1B (`Null`); `<2` -> `5xf32` (21B); `>=2` -> `6xf32` (25B) | Same (1B, 21B, 25B) |
| `42` | `Region3` | `6 x f32` (`min` 3xf32 + `max` 3xf32, 24B) | `6 x f32` (24B) |
| `43` | `Region3int16` | `6 x i16` (`min` 3xi16 + `max` 3xi16, 12B) | `6 x i16` (12B) |
| `44` | `Int64` | `zigzag varint64` | `zigzag varint64` |
| `46` | `SharedString` | `16B` Blake2b-128 key + `ContextTrail` | `0B` (no-op) |
| `47` | `ProtectedString` (Bytecode) | `16B` Blake2b-128 key + `ContextTrail` (Group 2) | `0B` (no-op) |
| `48` | `DateTime` | `i64 unix_ms` LE (8B) | `i64` LE (8B) |
| `49` | `InstanceName` | `u8 hdr`: `hdr&0x80` -> `schema.names` index; else inline length + bytes | `0B` (no-op) |
| `50` | `OptionalCFrame` (Matrix) | `u8 hdr`: `<0x80` -> 1B (`Null`); `==0x80` -> `9xf32 + 3xf32` (49B); `>0x80` -> `3xf32` (13B) | Same (1B, 13B, 49B) |
| `51` | `OptionalCFrame` (Quat) | `u8 hdr`: `<0x80` -> 1B (`Null`); `==0x80` -> `6B quat + 3xf32` (19B); `>0x80` -> `3xf32` (13B) | Same (1B, 13B, 19B) |
| `52` | `UniqueId` | `u64 random` (8B) + `u32 time` (4B) + `u32 index` (4B) = 16B | Same (16B) |
| `53` | `PathWaypoint` | `3 x f32 pos` + `u8 action (<3)` + `u32_string label` | `0B` (no-op) |
| `54` | `Font` | `u16 weight` + `u8 style` + `u32_string family` (`\`->`/`) + `u32_string cachedFaceId` | Same |
| `55` | `SecurityCapabilities` | `u64` LE (8B) | `u64` LE (8B) |
| `56` | `Attributes` / `Buffer` | `varuint32 comp_len` + `varuint32 raw_len` + raw/Zstd bytes | `0B` (no-op) |
| `57` | `ReplicationPV` | `AdaptivePV` (`sub_10455D1B0`) when `DebugAdaptivePVCompressor=true`, else `LegacyPV` (`sub_105031284`, `lod=0`) | `AdaptivePV` (default) or `LegacyPV` (`lod=0..=3`) |
| `58` | `FacsReplicationData` | `u8 flags (<=7)` + `3 x u16` + `u8 len` + `len`B (`8 + len`B) | Same (`8 + len`B) |
| `59` / `60` | `NetAssetHandle` / `NetAssetRef` | With `schema.lr_types`: `varuint16 idx` (`0xFFFF` -> Null; else `u64 id + varuint32 idx`); else `u64 id + varuint32 idx + u64 type_word` | `0B` (no-op) |
| `61` | `Content` | `varuint32 source_type`: `0` -> Null; `1` -> `readContentId`; `2` -> `Guid`; `3` -> `varuint32_str` | Throws |
| `62` | `PredictionTimestamp` | `u64 microseconds` LE (8B) | `u64` LE (8B) |
| `63` | `SlimPayload` (`CSG`) | `i8 count`; if `> 0`: `count * (3xu8 pos + u32 quat)` + `count * u8` (`1 + 8*count`B) | Throws |
| `64` | *(Reserved)* | Throws | `0B` (no-op) |
| `65` | `AnimTrackPlayState` | `bool playing` + `f32 speed` + `f64 ref_step` (13B) | Same (13B) |
| `66` | `AnimTrackMetadata` | `bool looped` + `i16 priority` (3B) | Same (3B) |
| `67` | `AnimTrackWeight` | `f32 weight` + `f32 fade` + `f64 ref_step` (16B) | Same (16B) |
| `68` | `User` | `zigzag64 + varuint32 + zigzag64 + zigzag64` | Same |
| `69` | `WeakObject` | `Guid` (Group 2) | `Guid` |
| `70` | `TweenInfo` (v1) | `f32 time + f32 delay + i32 repeats + u8 style (<11) + u8 dir (<3) + bool reverses` (15B) | Same (15B) |
| `71` | `TweenInfo` (v2) | `15B` base (`style < 13`) + (`2xf32` if `style==12`; `u8 n + n*2xf32` if `style==11`) | Same |

### `ID_ISR` (`161` / `0xA1`) framing & `AdaptivePV` (`PropertyType 57`)

- **Packet & record framing** (`sub_104532AD4` / `sub_104DE80B0`):
  - 13-byte header: `u8(0xA1)` + `u32 packet_step` + `u32 group_count` + `i32 default_scope`.
  - Per-group 4-byte header: `u16 object_count` + `u8 lod (0..=3)` + `u8 time_delta`.
  - Per-object record: `Guid` + `u16 class_index` + `PropertyDirtySet` (`u16 bit_count <= 256` + `ceil(bit_count/64) * u64` mask) + `u16 payload_byte_len` + dirty properties bounded strictly by `payload_byte_len`.
- **Bit-exact `AdaptivePV`** (`sub_10455D1B0` + `sub_104912590` + `sub_102C7EC9C`):
  - `u8 hdr` (`bit 7 == 0`): `pos_zero = hdr & 1`, `pos_hi2 = (hdr >> 1) & 3`, `rot_mode = (hdr >> 3) & 3`, `linvel_zero = (hdr & 0x20) != 0`, `angvel_zero = (hdr & 0x40) != 0`.
  - Each non-zero vector reads `bucket = (hi2 << 4) | (b0 & 0x0F)`, bit width `W` (`0..=5 -> 12`, `6..=13 -> 20`, `14..=21 -> 28`, `22..=29 -> 36`, `30..=37 -> 44`, `38..=63 -> 52`), exact byte length `(4 + 3*W)/8` (`5, 8, 11, 14, 17, 20`B), LSB-packed signed `(qx, qy, qz)` scaled by `2^(bucket + 1 - W)`.
  - Trailing rotation (`rot_mode` `0..=3`): `0B` (identity), `4B` (`u32`, spherical table `(11, 21)`), `5B` (`u32 + u8`, table `(14, 26)`), or `6B` (`u32 + u16`, table `(16, 32)`), reconstructed via equal-area hemisphere rings and Rodrigues `exp([v]_x)`.
  - `decode_packet_adaptive` decodes strict `AdaptivePV`; `decode_packet(..., false)` retains strict error for legacy-config tests; `decode_packet_lenient(..., false)` probes `AdaptivePV` first and falls back to `LegacyPV` against record-tail alignment.

## `AttributesSerialize` (`1..=42`) binary codecs

Verified against `sub_1049C8E30` (`jpt_1049C8EE8`, fixed-LE `u32` string lengths).
Decoded in `client-core/src/replication.rs::read_attribute_value`.

| Tag | Attribute Type | Exact Wire Layout (after `u8 tag`) |
|---:|---|---|
| `1` / `22` | `Nil` / Empty | `0B` (`[0x01]` deletes attribute in `ChangeAttributeItem` `21`) |
| `2` | `String` | `u32 len` LE + `len`B |
| `3` | `Bool` | `u8` (`0` or `1`, 1B) |
| `4` | `Int` (`int32`) | `i32` LE (4B) |
| `5` | `Float` (`f32`) | `f32` LE (4B) |
| `6` | `Double` (`f64`) | `f64` LE (8B) |
| `7` | `ValueArray` | `u32 count` LE + `count * AttributeValue` (bounded depth `<= 16`, `<= 4,096` items) |
| `8` | `ValueMap` | `u32 count` LE + `count * (u32_str key, AttributeValue)` |
| `9` | `UDim` | `f32 scale` + `i32 offset` (8B) |
| `10` | `UDim2` | `2 x (f32 scale, i32 offset)` (16B) |
| `11` | `Ray` | `6 x f32` LE (24B) |
| `12` / `13` | `Faces` / `Axes` | `u32` LE (4B, `& 0x3F` / `& 0x07`) |
| `14` | `BrickColor` | `u32` LE (4B) |
| `15` / `16` / `17` | `Color3` / `Vector2` / `Vector3` | `3 x f32` (12B) / `2 x f32` (8B) / `3 x f32` (12B) |
| `18` / `19` | `Vector2int16` / `Vector3int16` | `2 x i16` (4B) / `3 x i16` (6B) |
| `20` | `CFrame` | `3 x f32 pos` + `u8 orient_id` (`0` -> `+ 9xf32` = 49B; `1..=36` -> 13B) |
| `21` | `EnumItem` | `u32_str enum_family` + `u32 token` LE |
| `23` | `NumberSequence` | `u32 count` + `count * (f32 env, f32 time, f32 val)` *(envelope first)* |
| `24` | `NumberSequenceKeypoint` | `f32 env, f32 time, f32 val` (12B) |
| `25` | `ColorSequence` | `u32 count` + `count * (f32 env, f32 time, 3xf32 rgb)` *(envelope first)* |
| `26` | `ColorSequenceKeypoint` | `f32 env, f32 time, 3xf32 rgb` (20B) |
| `27` / `28` | `NumberRange` / `Rect` | `2 x f32` (8B) / `4 x f32` (16B) |
| `29` | `PhysicalProperties` | `u8 flags`: `0` -> 0B (`Null`); `1` -> `5xf32` (20B); `2` -> `6xf32` (24B) |
| `30` | `Color3uint8` | `3 x u8` (3B) |
| `31` / `32` | `Region3` / `Region3int16` | `6 x f32` (24B) / `6 x i16` (12B) |
| `33` | `Font` | `u16 weight` + `u8 style` + `u32_str family` + `u32_str cachedFaceId` |
| `34` | `SecurityCapabilities` | `u64` LE (8B) |
| `35` | `UDim3` | `3 x (f32 scale, i32 offset)` (24B) |
| `36` | `TweenInfo` (v1) | `f32 time + f32 delay + i32 repeats + u32 style (<11) + u32 dir (<3) + bool reverses` (21B) |
| `37` | `InstanceRef` | `Guid` |
| `38` | `Int64` | `i64` LE (8B) |
| `39` | `Content` (URI) | `u32_str uri` |
| `40` | `Buffer` | `u32 len` LE + `len`B |
| `42` | `TweenInfo` (v2) | `21B` base (`style < 13`) + (`2xf32` if `style==12`; `u8 mode + 4xf32` if `style==11`) |

## Compression, VM, & RAM

- **Compression**: IDA shows `ZstdCompression` with bounded frames; `rove` uses `zstd` with explicit uncompressed caps (`client-core/src/wire.rs`).
- **VM**: Official Luau (`vendor/luau`, `Luau::CodeGen`) is embedded via `rust-runtime-sys`; IDA confirms the matching VM family (`lua_State`, `luarequire_Configuration`, bytecode v13..v14).
- **RAM**: `--lightweight` + `mimalloc` + 1 MiB cold-property disk cache measures 26–31 MB resident on a 5,000-node live place (`RAMBudgetBytes` -> `ram_budget_bytes`).
