[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JZW3P80HNSJ2DF01STDW0A":3,"skill-same:01M6JZW3P80HNSJ2DF01STDW0A":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6JZW3P80HNSJ2DF01STDW0A","audit-physics",null,"Deep audit of PHYSAL — the Havok→Rapier physics layer: collider classification, fixed-step determinism + explosion recovery, 4-phase ECS sync, ragdoll articulation, character\u002FNPC kinematic controller, WATAL buoyancy sink","matiaszanolli\u002FByroRedux","matiaszanolli","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2379093?v=4","01M6JZJDYMPY01793W4XK157YG","Matias Zanolli","01M6JZJE2KE2BXSDPAYPQC6BSH",40,"MIT","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.claude\u002Fcommands\u002Faudit-physics\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"audit","audit physics","physics","phase","depth","character","ecs","layer","sync","name","recovery","focus","controller","game","dimensions","classification","deep","explosion","2026-11-10 10:12:30",false,"---\ndescription: \"Deep audit of PHYSAL — the Havok→Rapier physics layer: collider classification, fixed-step determinism + explosion recovery, 4-phase ECS sync, ragdoll articulation, character\u002FNPC kinematic controller, WATAL buoyancy sink\"\nargument-hint: \"--focus \u003Cdimensions> --game \u003Cname> --depth shallow|deep\"\n---\n\n# Physics \u002F PHYSAL Audit\n\nRead `.claude\u002Fcommands\u002F_audit-common.md` (delta-first scoping, dedup, finding format) and `_audit-severity.md` for shared protocol.\n\nAudits whether the simulation is *correct*, not just locked\u002Funsafe: `crates\u002Fphysics\u002F` + `byroredux\u002Fsrc\u002Fragdoll.rs` + the character\u002FNPC drivers that call the solver. Orchestrator; one Task agent per dimension (max 3 concurrent).\n\n## Scope\n\n- `crates\u002Fphysics\u002Fsrc\u002F`: `world\u002F` (split by #5311, 12ca34a70: `mod.rs` = `PhysicsWorld` struct\u002Flifecycle\u002F`step` with the per-substep body in `run_substep`; `queries.rs` = casts, capsule probes, `move_character`, `CharacterMove*`; `recovery.rs` = `DynamicBodySnapshot`, restore\u002Fclamp, counters, `accept_keyframe_target`, `refresh_query_geometry_after_restore`; tests live in `mod.rs` + `broad_phase_tests.rs`), `sync.rs` (`physics_sync_system`, spawn census), `convert.rs` (`CollisionShape` → Rapier, `pose_from_trs`, `rotation_scaled_axis`), `config.rs` (`ContactConfig`, `TriMeshFlagBits`), `components.rs`, `ragdoll.rs`, `water.rs` (WATAL sink), `source_scan.rs` (re-exports core's canonical `production_text`, #5100 655b317c9). Backend: rapier 0.36 \u002F parry 0.31 on the workspace glam 0.33 (rapier's `Vector`\u002F`Rotation` ARE the engine's `Vec3`\u002F`Quat`; no nalgebra in the crate).\n- Engine side: `byroredux\u002Fsrc\u002Fragdoll.rs` (+ `ragdoll_installed_tests.rs`), `byroredux\u002Fsrc\u002Fragdoll_pose.rs` (+ `ragdoll_pose_tests.rs`, authored XRGD corpse pose), `byroredux\u002Fsrc\u002Fsystems\u002Fcharacter.rs` (player controller, swim, breath), `byroredux\u002Fsrc\u002Fsystems\u002Flocomotion.rs` (NPC KCC step), `byroredux\u002Fsrc\u002Fcommands\u002F{physics,water}.rs`, `byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Fphysics.rs`; parse side `crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002F`.\n- **Handoffs**: NPC *behaviour* on top of locomotion (Wander\u002FTravel\u002F…, stuck re-pick, walk speed, gait) → `\u002Faudit-gameplay`; WATR\u002FXCWT→`WaterMaterial` translation → `\u002Faudit-exterior`; water shading → `\u002Faudit-renderer` Dim 8; `bhk*` byte parsing → `\u002Faudit-nif`; `CollisionShape` extraction → `\u002Faudit-nifal`; lock order → `\u002Faudit-concurrency`.\n\n**Ground truth**: `docs\u002Fengine\u002Fphysal.md` (layer spec), `docs\u002Fengine\u002Fphysics.md`, `docs\u002Fengine\u002Fwatal.md` (water half; re-read its open list rather than trusting a copy here).\n\n**Known-open register** (dated 2026-11-09; check the owning doc\u002Fissue before re-filing):\n- Skyrim mass=0 Dynamic bodies are reclassified Static (*tes_grounding_zero_mass_dynamic_fix*, #1832 closed). Remaining door-threshold spawn gap is a content\u002Fcollision-import question, unchanged in `AUDIT_PHYSICS_2026-09-11.md`. A direct interior load spawns via `cell_loader\u002Finterior_spawn.rs`'s ladder: `COCMarkerHeading` REFR, then the linked door partner's `XTEL`, then the door\u002Fbbox fallback (*interior_spawn_point_fix*).\n- Open (verified 2026-11-06): none from the capsule clamp — #4134 is fixed (002fbd6ef: `character_capsule` in `world\u002Fqueries.rs` routes through `clamp_shape_extent`; guard `character_capsule_sanitises_non_finite_and_absurd_extents`). #3477 closed (regression guard: `registered_shape_generations` structural-generation cache, `newcomer_cache_detects_membership_changes_even_when_counts_match`). `BhkPlaneShape` produces no collider by design and is counted in the spawn census (#4407, #4408 both closed).\n- Water-walking and freezing are unbuilt (`docs\u002Fengine\u002Fwatal.md`).\n- #5161\u002F#5246 contain ragdoll solver explosions at the physics boundary (Dim 2); the *upstream* instability of mass-inverted rigs (palms heavier than the spine, authored restitution 0.8) stays open as root cause with no issue of its own (5ae7f8ad4). Two of its drivers are fixed and measured (c6327cc6b, #5536\u002F#5538, Dim 3): the FO3 real-data articulation gate (`ragdoll::installed_tests`, six environments x two yaws) is green again — re-measure it before re-opening the claim.\n- FO4 ragdolls are live (Dim 3; #6070 closed, 7c6e6c3e1): `spawn_skeleton_unit` installs `install_fallback_ragdoll_template`'s one-body capsule only when no decoded `RagdollTemplate` exists, and activation retires the keyframed stand-in capsule (Dim 3). `docs\u002Fsmoke-tests\u002Ffo4-ragdoll.sh` (under `BYRO_VALIDATION=1`) is the live gate: every body live and finite, every joint live, nothing parked. #6066 is closed (019b087e3: bodies read the blob's material and motion-property rows) and #6067 is closed (0d775dc61: the 67 of 850 bind-pose pivot disagreements on off-bone bodies stay a recorded property of the data; the decoded rigs hold every joint live in free fall). Still open: #6065 (FO4 XRGD poses — eight creature rigs are now admitted, brahmin\u002Fradstag\u002Fyaoguai\u002Fmirelurk\u002Fradroach on the verified bar and molerat\u002Fdog\u002Fstingwing on the owner's call, a3a36f1c7; the cat, Handy and FEV hound stay refused, three brahmin corpses carry 41\u002F42 entries for 39 bodies, and the ghoul 20-entry poses are unresolved). Open with no issue of its own: an FO4 corpse whose reference carries a large X\u002FY tilt (466 of 971 posed human\u002Fghoul corpses) is not posed correctly; its composition with the pose is not established (`ragdoll_pose.rs` module doc). The smoke excludes those corpses.\n- Ball-and-socket \u002F stiff-spring \u002F chain constraints are decoded (#4212) but have no canonical joint kind, so `extract_ragdoll` declines them like `Other` (`docs\u002Fengine\u002Fphysal.md` §3 table). By-design gap; a finding needs occupancy-census evidence that shipped content uses them.\n\n## Parameters\n\n`--focus \u003Cdims>` (default all 6) · `--game \u003Cname>` restricts Dim 3's per-game seam checks · `--depth shallow|deep` (`deep` traces a cell's colliders from NIF `bhk*` to solver; default deep).\n\n**Extra finding fields**: **Dimension**: Shape Translation | Step & Sync | Ragdoll & Constraint Seam | Character & NPC Controller | Water \u002F Buoyancy | Queries & Diagnostics. **Trigger Conditions**: what a cell must contain for the bug to fire.\n\n## Phase 1: Setup\n\n1. `mkdir -p \u002Ftmp\u002Faudit\u002Fphysics`; dedup per `_audit-common.md`. Read the latest `docs\u002Faudits\u002FAUDIT_PHYSICS_*.md` (date D = delta baseline).\n2. `cargo test -p byroredux-physics` and `cargo test -p byroredux -- ragdoll` \u002F `character` \u002F `locomotion` \u002F `water` (bin crate, no `--lib`); record counts. Note that `byroredux\u002Fsrc\u002Fragdoll_installed_tests.rs` (8 tests) is entirely `#[ignore]`d: six behind FO3 game data (`BYROREDUX_FO3_DATA`) and, since #6070, two behind FO4's (`BYROREDUX_FO4_DATA`: six rigs' bind-pose free fall, the MedTek XRGD-posed ghoul). Only `-- --ignored` runs them. Likewise `byroredux\u002Fsrc\u002Fragdoll_skeever_tests.rs` (`skeever_ragdoll_survives_six_hundred_floor_ticks`, the #5161 live-spec replay; reads the skeleton from `Skyrim - Meshes0.bsa` (`BYROREDUX_SKYRIMSE_DATA`), settles on a floor at the seed pose and 20 BU inside it, and is in `.github\u002Freal-data-pins.txt`; on rapier 0.36 it pins that nothing diverges, not the old panic) is `#[ignore]`d.\n3. No windowed engine launches (*feedback_no_parallel_engine_launch*): use `cargo test`, `BYRO_PROFILE=1` on an existing headless run, or read only.\n\n## Phase 2: Dimensions\n\n### Dim 1: Shape Translation\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002F{convert,config}.rs`, `crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002Fshape.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fconvert.rs crates\u002Fphysics\u002Fsrc\u002Fconfig.rs crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002F`\n**Guards** (default lane): `config.rs::trimesh_flag_bits_match_rapier_definitions` (Rapier flag pin), `convert.rs::huge_finite_*_clamps_to_sane_ceiling` (extent clamp; release-only), `non_finite_cuboid_extent_clamps_instead_of_reaching_rapier` (release-only — the #4686 debug-lane twin `non_finite_extents_clamp_in_the_debug_lane_too` covers the default lane). Aim at what they cannot see:\n- Every `CollisionShape` variant the importer emits has a translation arm (list variants vs arms, report the delta; same trap as *nif_shape_dispatch_resolve_parity*). A silently dropped shape is an invisible hole.\n- Compound\u002Ftransform children compose in authored order; non-uniform parent scale is rejected, converted to TriMesh, or documented, never averaged.\n- Scale is applied exactly once, at the Rapier sink (`docs\u002Fengine\u002Fphysal.md`: producers must not bake scale into vertices\u002Fprimitives, else scale²).\n- Every primitive routes through `clamp_shape_extent` (floor 1e-3, ceiling `MAX_SANE_SHAPE_EXTENT`, non-finite → floor); a new variant with a local `.max(1e-3)` regresses this — #4134 was exactly that in the controller\u002Fprobe capsules (`character_capsule`), now routed through the shared clamp.\n- Surface material (Wave 4): `RigidBodyData.surface_material` is a **u32** end to end (Skyrim's are CRC32 of the CK material name — a narrower column collided 8 pairs, #5542 c173147da, `FORMAT_MAJOR` bumped); the importer's `resolve_shape_with_materials` returns the per-leaf sequence from the SAME walk as the shape (#5550), so `RigidBodyData::part_surface_materials` (serde-skip, re-derived on load) is 1:1 with `collision_shape_to_parts`' part order; `0` is authored STONE only on bsver \u003C 83. Terrain ghosts take the LTEX Havok material of the texture covering most of the tile (`dominant_land_texture` → `land_surface_material` in `byroredux\u002Fsrc\u002Fcell_loader\u002Fterrain.rs`, passed to `spawn_trimesh_collider_ghost`; c53d87679, part of #6048 which is still open). `land_surface_material` takes the LTEX `HNAM` byte (Oblivion\u002FFO3\u002FFNV), else on Skyrim the id its `MNAM` `MATT` hashes to — nif.xml's `SkyrimHavokMaterial` is the CRC32 of the lowercase CK material name, computed with `byroredux_bsa::bscrc32` and merged across the load order into `EsmCellIndex::material_type_havok` (63 of Skyrim.esm's 78 MATTs hash to a listed id and all 68 vanilla LTEXs name one; 4ce5ddf2a). FO4\u002FStarfield MATTs are routed but stay empty (their collision is the Havok blob), so those tiles stay 0, and on every game the authored LTEX friction\u002Frestitution are decoded but not applied (what #6048 still tracks). `register_newcomers` packs each part's own material into its collider user-data (`collider_surface_material` reads it back); `build_ragdoll` packs nothing, so bone colliders read 0\u002FSTONE (#5557). A new `CollisionShape` variant that flattens differently from the importer's leaf order silently misaligns materials.\n- Contact combine rule: both collider producers (`register_newcomers`, the ragdoll bone builders) set `config::CONTACT_COEFFICIENT_COMBINE_RULE` = `GeometricMean` on friction AND restitution (Havok's `sqrt(a*b)`; rapier's default Average made a restitution-0 body bounce off a 0.8 floor at 0.4; 04cb6333d). It wins rapier's combine priority, so dropping it from either producer reverts every pair with an engine collider; pinned per production path by `every_registered_collider_carries_the_havok_contact_combine_rule` \u002F `every_ragdoll_collider_carries_the_havok_contact_combine_rule` (#5552) plus `restitution_zero_body_does_not_bounce_on_restitution_floor`.\n- The release-only Compound-child backstop is factored into `sanitize_child_pose` and tested in every profile (#5551).\n- `default_contact_skin_bu` (1.0 BU) is applied to every collider kind, not just TriMesh. Degenerate input (zero-area triangles, empty vertex sets, NaN transforms) is rejected before Rapier builds a BVH.\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_1.md`\n\n### Dim 2: Step, Wake & the 4(+1)-Phase Sync Tick\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fworld\u002F` (incl. `recovery.rs`, `broad_phase_tests.rs`), `crates\u002Fphysics\u002Fsrc\u002F{sync,components}.rs`, `byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Fphysics.rs`, `byroredux\u002Fsrc\u002Fcell_loader\u002Frapier_release_tests.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fworld\u002F crates\u002Fphysics\u002Fsrc\u002Fsync.rs byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Fphysics.rs`\n**Guards**: `byroredux\u002Fsrc\u002Fscheduler_access_tests.rs::physics_sync_declaration_reads_all_phase_and_diagnostic_types` + `contact_config_read_is_declared_on_both_physics_systems` (access declaration; it has been forgotten four times), `cell_loader\u002Frapier_release_tests.rs` (cell-unload handle release). Beyond them:\n- Accumulator clamp to `MAX_SUBSTEPS * PHYSICS_DT` precedes the loop; `frame_dt.max(0.0)` guards NaN\u002Fnegative. The catch-up loop stops at `SUBSTEP_TIME_BUDGET` and drops backlog (slow-motion, never a jump); the budget timer is the one documented non-determinism source, no wall-clock or `HashMap` order elsewhere in the solver path.\n- Static-scene fast path (no dynamic body in `islands.active_bodies()` — the active set also holds kinematics, but rapier 0.36 gives them a real sleep test, so an idle keyframed body leaves it after ≈0.5 s and `active_island_counts().1` is an ACTIVE count, not a live one: `live_kinematic_count` is the on-demand total, #5563 — and `!pending_wake`) zeroes the accumulator. Every motion starter except spawn calls `wake()`: `apply_impulse` on a multibody link (every ragdoll bone) is not applied immediately — rapier rebuilds a link's velocity from the multibody's generalized velocities at each island solve and overwrote it, so `knock_down`\u002F`PushActorAway` collapsed the actor in place; `PhysicsWorld::apply_impulse` queues it and `step` delivers it as the force `impulse \u002F PHYSICS_DT` for the first substep it runs (after the link-damping pass), then restores the body's previous user force exactly (#6487 eac3f73f9); `set_linear_velocity` (the crate's free helper delegates to `PhysicsWorld::set_linear_velocity`, which wakes and forgets the spawn sleep for a nonzero velocity only — a zero velocity is a stop and does neither, #6324 c91c128ad), kinematic push, ragdoll activation, buoyancy. Spawn is the deliberate exemption (#3969; `wake()`'s doc): `register_newcomers` builds dynamics asleep and only calls `queue_query_refresh()`, and first-frame consumers take `n_new > 0` \u002F `had_newcomers` explicitly. A `wake()` added to spawn is the regression (the measured multi-second streaming stall). The contract is ASLEEP-UNTIL-PROCESSED (#5544 f454e0abc): rapier 0.36's begin-touch strong-wake wakes a brand-new collider on its first stepping frame, so `step` re-sleeps every `spawn_sleep_pending` newcomer still within 4 BU of its spawn pose after that frame and drops its settle force-crossings (`resleep_spawned_newcomers`: the set of settled colliders is filled only from bodies actually re-slept, linear in events — a drifted newcomer's genuine first impact is kept, #5700 a2af867d9); the water pass's deliberate wakes are exempt (`water_force_targets`), and so is any newcomer an explicit request woke before its first step — `add_force`\u002F`add_torque`\u002F`apply_impulse`\u002F`reset_forces` with wake, `set_body_type` with wake drop it from `spawn_sleep_pending` (`forget_spawn_sleep`, #5936 00ec063ec; guard `explicit_impulse_keeps_newcomer_awake_through_first_step`). Confirm a same-frame wake cannot be swallowed.\n- Registration: `register_newcomers` runs `collision_shape_to_parts` over the batch on the rayon pool before taking `PhysicsWorld`, then inserts serially in newcomer order (ad1d53a11), so Rapier sees the serial sequence. Guard: `register_newcomers_parallel_section_holds_no_world_guard`. Rapier 0.35+'s `BroadPhaseBvh` withholds fixed-on-fixed pairs itself (the `ActiveCollisionTypes` filter at pair creation) and re-inserts a body's colliders on a type change, so pairs denied while both were fixed are reported again — the job the engine's *FixedPairFilterBroadPhase* (fe80f4d76, deleted with *broad_phase.rs* in ac81a09f9) did on rapier 0.22. Guards: `world\u002Fbroad_phase_tests.rs::{two_fixed_bodies_never_reach_the_narrow_phase, a_fixed_body_turned_dynamic_stays_on_what_it_rested_on, removing_a_fixed_body_with_withheld_pairs_is_a_no_op_for_them}`.\n- `wake()` does not guarantee a substep. Scene queries borrow the broad phase's BVH (`PhysicsWorld::queries`), which only the step updates; colliders inserted on a no-substep frame must be queued with `queue_query_refresh` (`register_newcomers`, `build_ragdoll` since #3968), and `step` inserts exactly those leaves (`BroadPhaseBvh::set_aabb`) before it returns. `update_query_pipeline()` is the O(all colliders) cold-start\u002Ftest refresh — it must never run per frame (`step_cost_rationale_is_scoped_to_history_and_names_the_real_cost_centre` pins that `step`, `run_substep` and `refresh_query_geometry_after_restore` do not call it, each scan window checked to be the function it names, #5558).\n- **Explosion recovery**: each substep snapshots ALL dynamic-body poses (not just active islands, so a freshly activated ragdoll's first solve is covered; check the per-substep `Vec` cost on a body-heavy exterior); `restore_invalid_dynamic_bodies` reverts any body that is non-finite or moved more than `MAX_DYNAMIC_SUBSTEP_DISPLACEMENT` (2,048 BU) in one substep, sleeps it, logs at error, and zeroes the accumulator. Verify the snapshot precedes every substep, the bound is a delta not a coordinate (far exteriors), and the zeroed accumulator does not eat the frame's wake. #4683: recovery is COUNTED (`recovery_counts()` = lifetime *events*, *bodies* restored last step, bodies parked — distinct units since #5127; surfaced in `phys.stats`\u002F`ragdoll.status` with live joint counts) — assert on the counter, not just post-recovery state. #4687: already-non-finite bodies are parked (not left awake), restored poses are propagated to colliders + the query BVH same-frame (#5126; now `BroadPhaseBvh::set_aabb` per touched collider — the rapier 0.22 form needed *update_incremental(…, true)*; the guard `restored_pose_is_visible_to_ray_queries_same_frame` drives a real `step` recovery), and EVERY invalidated articulation is detached, not just the first. **Rapier 0.36 layers (#5488)**: rapier caps rigid-body speed INSIDE each internal substep (`IN_STEP_LINEAR_SPEED_CAP_BU_PER_S` = 28 000 BU\u002Fs via `normalized_max_linear_velocity`; deliberately ABOVE the 20 000 sanity cap so the ladder below still sees a capped burst — `in_step_speed_cap_bounds_an_explosion_inside_one_step`), but NOT multibody links (forward kinematics integrates outside the solver's per-body cap), so the displacement restore and DOF clamp remain the articulation guards. Rapier quarantines non-finite bodies by DISABLING them; `restore_invalid_dynamic_bodies` takes `pipeline.quarantine().bodies()` and parks them, and `run_substep` re-enables them after the NEXT step via `quarantine_cooldown` (52de1bc0a; `a_quarantined_body_is_re_enabled_and_parked`). A substep-armed wake (cooldown re-enable, fresh detection) rides `substep_wake_requested` and re-arms `pending_wake` AFTER `step`'s post-loop clear — without it, in a quiescent scene the re-enabled body's colliders stayed `DisabledByParent` and invisible to rays\u002FKCC until unrelated motion (#5543 b0a86c6aa). Both directions are regressions: a quarantined body left disabled, and one re-enabled in the same frame — the disable is then never processed, the body keeps its stale solver state and is re-quarantined every woken step (`ragdoll.rs::a_quarantined_rig_resting_on_a_floor_recovers_once`; live: 253 restores on a Whiterun corpse in the P1 smoke). The rapier 0.22 *sap_axis.rs* multi-SAP panic class (#5161\u002F#5488, closed by the ac81a09f9 migration) is gone with the BVH broad phase; do not re-derive caps from its ≈2.68e11 grid boundary. **Escalation (#5161, 5ae7f8ad4; #5246, e8de9f8c8)**: `clamp_explosive_velocities` runs at the end of every substep — including a recovery substep, for the bodies the restore did not claim (#5352; `a_restore_substep_still_clamps_the_bodies_it_did_not_claim`): caps body speed at `VELOCITY_SANITY_CAP_BU_PER_S` (20k) \u002F spin 100 rad\u002Fs and articulation DOF velocities at `ARTICULATION_DOF_SANITY_CAP` (DOFs integrate through forward kinematics before any body clamp) — except a dynamic root's six free-joint DOFs (linear BU\u002Fs first, then angular rad\u002Fs; `FREE_ROOT_DOFS`), which take the body caps: the joint-axis cap of 100 held every falling ragdoll to 100 BU\u002Fs against 686.7 BU\u002Fs² of gravity (#5353); the DOF walk is `clamp_articulation_dofs` (one pass per multibody, keyed by its root body, returning `(root, clamped DOFs)` so the warning names the rig through `body_labels`, #5531; guard `the_dof_clamp_attributes_each_rig_by_its_root_body`); non-finite velocity is zeroed, never passed through (one step later it is a quarantined, disabled body); escalation is a LIFETIME per-body offence count (1 clamp, 2 park, 3 `remove_multibody_articulations`) — a count reset on clean substeps is the #5246 regression. `explosive_detaches_total` counts only a third-offence burst whose `rigid_body_link` finds a live articulation, so clutter and already-freed rigs park without a count (#5356); `clamp_explosive_velocities` skips handles in the (stale-tolerant) dynamic index that are no longer Dynamic, so a scripted `SetMotionType(Keyframed)` teleport is not counted as an explosion (#5555 aedd31a43); `articulation_joints` is swept against liveness at the top of every clamp, and `remove_body` prunes `explosion_offences` \u002F `keyframe_refusals_logged` beside `body_labels` (#5355\u002F#5272; both 26a1277bc) — a per-body map that outlives its body is the regression. `push_kinematic` refuses non-finite or > `KEYFRAME_TARGET_SANE_BOUND_BU` targets via `accept_keyframe_target` (the only guard for keyframed live-actor bones, which the Dynamic-only snapshot skips). Counters (velocity clamps, explosive detaches, keyframe refusals, seed refusals) surface in `phys.stats`. Guards: `explosive_velocities_are_capped_and_persistent_exploders_are_parked`, `nan_velocities_are_zeroed_on_the_first_clamp`, `a_second_burst_parks_even_after_a_clean_substep`, `the_third_burst_detaches_a_live_articulation`, `the_third_burst_parks_a_jointless_body_without_counting_a_detach`, `articulation_joints_are_swept_when_their_articulation_dies`, `remove_body_prunes_the_offence_ladder_and_refusal_set`, `accept_keyframe_target_refuses_insane_but_finite_poses`, `ragdoll.rs::exploding_articulation_dofs_are_capped_before_forward_kinematics`, `ragdoll.rs::a_free_ragdoll_falls_at_gravity_without_tripping_the_dof_clamp`, `ragdoll.rs::an_exploding_free_root_dof_is_capped_at_the_body_speed_cap`. Note: multibody (ragdoll) joints are DETACHED on restore by design (`remove_multibody_articulations`; `playable-vertical-slice.md` § P5, \"FO3 restored-ragdoll recovery\") — a joint-restoration claim is the pre-#4687 error. Tests: `world\u002Fmod.rs::invalid_dynamic_body_reverts_to_its_last_valid_substep_pose`, `finite_but_impossible_dynamic_jump_reverts_to_its_last_valid_pose`, `recovery_counter_counts_a_real_substep_explosion`, `recovery_snapshot_index_tracks_dynamics_not_the_arena`, the three `#4687` edge tests.\n- **Contact-force events** (Wave 4 impacts): the step runs a `ChannelEventCollector` whose collision\u002Ftear receivers are dropped on purpose; dynamic bodies' colliders carry `ActiveEvents::CONTACT_FORCE_EVENTS` only while `contact_force_events_enabled` and the parent body is Rapier-dynamic NOW — one rule, `contact_force_active_events(enabled, body_is_dynamic)`, called by `register_newcomers`, `build_ragdoll`, `set_contact_force_events_enabled` and `set_motion_type` (which retags on a flip either way), so the impact set is history-independent (#6325 e9f84c535); a producer that tags by its own test is the regression (off by default; `impact_audio_system` turns it on only when `ImpactConfig` has sound content, and `set_contact_force_events_enabled` retags existing dynamic colliders and drains the buffer on disable, #5711 e3a4d5e18 — a producer that sets the flag unconditionally re-buys the callback cost) and only the `started` crossings drain into `pending_force_events` (cleared ONCE at `step` entry, substeps APPEND — a per-substep clear loses all but the last, #5557), taken by `take_contact_force_events` (`impact_audio_system`, `\u002Faudit-audio` Dim 5). `run_substep` truncates the buffer back to its pre-substep length when the substep is rolled back (`restored > 0`), so an explosion's insane forces never become an impact burst (#5554). `contact_event_position` resolves an impact from the pair's deepest solver contact (`solver_contact_world_points` through current poses), then (also when the pair has left the narrow phase by the time the consumer asks, #5937 b3b473487) the dynamic side's translation, then the old origin midpoint — never the body-origin midpoint first (static ghosts and exterior terrain tiles park their bodies at the placement\u002Fworld origin, #5675 0d8ea5d6e; guard `contact_event_position_is_the_contact_not_the_body_origins`). The receiver sits in a `Mutex` because `Receiver` is `!Sync` and `PhysicsWorld` must stay `Sync`; rapier's `parallel` feature is off in this build, so the callback runs on the stepping thread (82c675113 corrected the rayon claim). `phys.stats` prints `contact_counts()` by scope — `pairs` is the whole narrow-phase graph, `contacts`\u002F`constraints` the awake island only, and `constraints` never counts a multibody joint — beside `multibody_joint_count` (#5564).\n- Kill plane (`KILL_PLANE_Y`): active dynamic bodies below it are zeroed and slept so unsupported clutter cannot keep the fast path off forever. Verify the constant sits below any real geometry (deep water\u002Fexterior lows) and only bodies that actually stepped are scanned.\n- Lock discipline: newcomers are collected under read locks that are released before write locks on `PhysicsWorld` + `RapierHandles` (report the trace here; `\u002Faudit-concurrency` owns the rule). Phase order is collect\u002Fregister → push kinematic → buoyancy → step → pull dynamic (buoyancy must precede the step). An entity with `RapierHandles` is never registered twice. Pull-dynamic writes `Transform`, not `GlobalTransform`. Absent `PhysicsWorld` early-returns without panic.\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_2.md`\n\n### Dim 3: Ragdoll Articulation & the Per-Game Constraint Seam\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fragdoll.rs`, `byroredux\u002Fsrc\u002Fragdoll.rs`, `byroredux\u002Fsrc\u002Fragdoll_pose.rs`, `byroredux\u002Fsrc\u002Fragdoll_installed_tests.rs`, `crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002F{ragdoll,mod}.rs`, `crates\u002Fnif\u002Fsrc\u002Fblocks\u002Fcollision\u002F{constraints,np_ragdoll}.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fragdoll.rs byroredux\u002Fsrc\u002Fragdoll.rs crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002Fragdoll.rs`\n**Guards**: `ragdoll.rs::{ragdoll_solver_budget_preserves_the_world_default_mass_and_limits, a_ragdoll_does_not_change_an_unrelated_bodys_solve}`, `build_ragdoll_is_queryable_on_a_zero_substep_frame`, `byroredux\u002Fsrc\u002Fragdoll.rs::activation_before_first_physics_sync_prevents_duplicate_followers`; the FO3 finite-pose and FO4 hold-together tests only run with data (Phase 1). The gate command is `-- --ignored ragdoll::installed_tests` (the module path; a *ragdoll_installed* filter matches zero tests and exits green).\n- **PHYSAL doctrine.** `docs\u002Fengine\u002Fphysal.md` §3 names three source-boundary seams, all at parse→canonical: constraint CInfo decode, `havok_scale_for` (`crates\u002Fnif\u002Fsrc\u002Flib.rs`), collision-object-kind dispatch. Grep the solver side (`crates\u002Fphysics\u002F`, `byroredux\u002Fsrc\u002Fragdoll.rs`) for `GameKind` \u002F `bsver` \u002F version constants: each hit is either parse-side material that belongs upstream or a stale doc; both are findings with different fixes.\n- Constraint coverage matches the doc table: Ragdoll \u002F LimitedHinge \u002F Hinge (synthesised ±π) \u002F Prismatic have importers; the breakable wrapper decodes all four; `bhkGenericConstraint` and unknown malleable inners stay `Other`. Byte consumption is exact for the decoded types, trailing `bhkConstraintMotorCInfo` included (bare dispatch and the Malleable wrapper; the breakable wrapper consumes it itself, exactly once — #5960 a071ed217 deleted the motor-tail drift allowlist and `crates\u002Fnif\u002Ftests\u002Fconstraint_drift_corpus.rs` requires drift == 0 on Oblivion\u002FFO3\u002FFNV\u002FSkyrim LE+SE), so drift telemetry is live for them. FO4's `bhkRagdollSystem` blob (`hknpRagdollData`) decodes through `decode_np_ragdoll` into the same `RagdollCInfo`\u002F`LimitedHingeCInfo` records; `extract_ragdoll` takes that path when a scene authors no discrete constraints (e1bd40bcf; all 75 vanilla blobs, 986 bodies incl. convex-polytope\u002Fcompound shapes and 850 joints incl. breakable-wrapped, #6067 fc4a15104). Each body reads friction\u002Frestitution from the blob's material row and linear\u002Fangular damping from its motion-property row, both indexed by the body's *motion* index (`read_properties`; a blob with no readable rows falls back to the Skyrim humanoid constants; #6066 019b087e3; default-lane `a_body_reads_its_material_and_damping_rows_by_motion_index`, ignored corpus `crates\u002Fnif\u002Ftests\u002Fnp_ragdoll_corpus.rs`). Its offsets are corpus-inferred and pinned by independent checks (`docs\u002Fengine\u002Fphysal.md` §5).\n- Solver budget: `RAGDOLL_EXTRA_SOLVER_ITERATIONS` = **0** (#5546 9da0cf9f8): rapier 0.36 shares one island across every awake body and splits per-body budgets only while no multibody exists, so the old `+12` made every awake dynamic body solve 16 substeps while any ragdoll bone was awake (~2x step cost, unrelated trajectories changed); re-measured +0\u002F+4\u002F+12 all bounded on the FO3 gate. Pinned by `a_ragdoll_does_not_change_an_unrelated_bodys_solve`; confirm nothing raised the global budget or the constant. Authored masses\u002Flimits are preserved.\n- Joint limits follow Havok's convention (#5536 c6327cc6b): Havok measures the hinge angle of A (attached) relative to B (reference), rapier's coordinate is the CHILD relative to the parent — non-flip (A parent) negates+swaps, flip (A child) passes through; the ragdoll twist and prismatic travel carry the same derivation (the mirrored version enforced hyperextension and forbade flexion on every vanilla elbow\u002Fknee\u002Fankle\u002Fwrist). Joints carry `RAGDOLL_JOINT_SOFTNESS` (30 Hz, ζ 1) so a bind pose outside its limits is pulled in over frames, not corrected in one substep (#5538; rapier's 1e6 Hz default produced 617 BU\u002Fs at tick 0). Multibody links get drag and authored damping as FORCE\u002FTORQUE, since rapier applies body damping only on the rigid-body writeback path that skips links (#5540 b4accad7e); the angular term is −c·I·ω from the world inertia, built in one place (`PhysicsWorld::angular_damping_torque`, used by the dry link pass and both wet-scan sites) — the old −c·m·ω made authored bone angular damping ~60x too weak (#5697 8ed551fe5).\n- Rig geometry is read through every NiNode-family parent: `crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002Fragdoll.rs::node_world` folds `compose_transforms` (with #4549's overflow sanitiser, converting to `Mat3` once) and parents resolve through `any_ni_node` (`as_ni_node` plus the switch\u002FLOD nodes), so a bone under `BSMultiBoundNode` \u002F `NiSwitchNode` \u002F `NiLODNode` no longer truncates the chain and poses its body off the bone (#6303 aadb39649; vanilla FO4 skeletons unchanged) — a bare `NiNode` downcast or a hand-composed `NiTransform` chain there is the regression. Bone→body index mapping (off-by-one explodes on activation); authored limits use consistent units with a documented fallback for degenerate limits; `ragdoll_extra_angular_damping` stays inert (0.0) and is added once per body (for links it now also reaches the solver through the force\u002Ftorque path above).\n- Seeds are validated before any articulation exists (#5161): `seed_pose_is_sane` (finite, ≤ `SEED_SANE_ABS_BOUND_BU`, ≤ `SEED_SANE_MAX_ROOT_OFFSET_BU` from the actor root) runs in both the bin activator and `build_ragdoll`'s backstop; a rejected spec builds nothing and counts one refusal (guards `activation_refuses_a_seed_beyond_actor_reach`, `activation_refuses_a_non_finite_seed`). Ragdoll bodies carry evidence labels (`actor \u003Cid> bone \u003Cname>`) so recovery logs name the owner.\n- Activation removes every spec body's `RigidBodyData` recipe AND its `CollisionShape` even when no follower handles exist yet (restored corpse activated before its first sync), so no duplicate kinematic bodies feed the solver; both are parked on the skeleton root's `RetiredBodyRows` and `stand_up` restores exactly those (shape first), so authored flags, `havok_layer`, surface materials, friction, restitution and mass survive a get-up and row-less template bones stay row-less (#6326 5d6368aa0, #6134 a15ea5274; a shape left behind was a permanently incomplete `collect_newcomers` candidate that kept the #3477 newcomer-scan cache off while any corpse was resident; the component is unsaved by design — a load respawns the actor with fresh rows). Activation also stamps the placement root as `ActorColliderOwner` on every body that lacks one, since retiring the FO4 stand-in capsule removes the actor's only marked collider and a ray hit on a decoded bone otherwise could not be resolved to its actor — the corpse could not be targeted, looted, or stop occluding its own line of sight (#6255 817afa277). It frees the actor's keyframed stand-in capsule (`FallbackActorCollider` marker, found by `fallback_colliders_of`) unless that capsule is itself a body of a one-body template, and `stand_up` puts its recipe back (#6070 7c6e6c3e1, `activation_retires_the_stand_in_capsule_and_stand_up_restores_it`). Left in place, the capsule overlapped every limb and the solver threw the FO4 rig (`live_joints` 0 of 17). `spawn_skeleton_unit` must not install the stand-in template over a decoded one (`the_stand_in_ragdoll_template_never_replaces_a_decoded_one`). `remove_ragdoll` releases every body\u002Fcollider\u002Fjoint (`body_count`\u002F`awake_counts` before\u002Fafter are the observable).\n- Authored corpse pose (#5015, closed 2026-10-19 and split into #6065–#6070): a Starts-Dead actor's XRGD is parked at spawn as `AuthoredRagdollPose` and consumed by the death reconciliation, which writes it onto the skeleton just BEFORE `activate_ragdoll` seeds the bodies (so the seed validator sees the lying pose); an evicted corpse's root pose rides `ReferenceState.corpse_pose` (#6073 611769b16). The XRGD layout is an *empirical interpretation* (`ragdoll_pose.rs` module doc): Skyrim entry k = the skeleton's ragdoll body k, FO4 entries map to bodies by bone id on the human \u002F ghoul \u002F super mutant rigs (`RagdollTemplateBody::pose_bone_id`, which `template_from_imported` must carry — dropping it refused every FO4 pose live, fc2b32d9e) and, on the creature rigs that author bone id 0 on nearly every body, by the skeleton's depth-first body order (`entries_by_tree_order`, whose walk carries a visited set and the hierarchy budget and is allowlisted in the hand-rolled-walk guard because core's `collect_subtree` visits siblings in reverse; a3a36f1c7); both use parent-local NIF-frame rotations, `euler_zup_to_quat_yup_mode` 0, entry 0 = COM, and a trailing zero-rotation marker entry is set aside (2139ae20e). Each rig is admitted only after its own corpora pass the two checks (offset length within 3 %, Euler convention ranked first; `scripts\u002Fxrgd-skyrim-rigs.py`, `scripts\u002Fxrgd-fo4-rigs.py`): Skyrim humanoid (18b3d87a7), draugr, SkeletonS (19 bodies), skeever, deer\u002Felk, falmer (#6068\u002F#6069 dfbcf7e2c; 730 of 1,077 corpses); FO4 human + feral ghoul (e1bd40bcf), super mutant (28e1f413e) and the eight creature rigs above (1,035 of 1,053 corpses on a verified skeleton resolve); FO3\u002FFNV humanoid (`Bip01` body set, 17\u002F17 bones within 3 %, #6252 107cc1d79: 202 FNV and 310 FO3 dead-base corpses, 202 and 307 posed — the three 19-entry FO3 poses fail the count gate; pinned by the ignored `fnv_xrgd_…`\u002F`fo3_xrgd_corpse_poses_line_up_with_the_humanoid_ragdoll` over `fallout_xrgd_census`, #6463 16de258dd; the forearms and hands follow the elbow\u002Fwrist hinges' child pivot, and the root body is placed at the skeleton root's position in its parent frame, not at a zero local translation, because `Bip01 NonAccum`'s parent carries the 67.8-unit hip height — Skyrim\u002FFO4 agree with that form since their COM parents are at the origin). `parks_authored_pose` parks for a Starts-Dead placement OR a dead base record (translated per game at the record boundary: Oblivion's header bit, FO3\u002FFNV DATA health \u003C= 0) with no runtime `GameKind` term (#6490 a53173780); a pose on a live base is not parked, and whether a parked pose applies is `pose_skeleton`'s rig gate — Oblivion's humanoid rig (`OBLIVION_HUMANOID_RAGDOLL_BODIES`, spine-first, no `Bip01 Neck1`, `SideWeapon`) matches no verified set, so its 125 posed corpses park and are refused; creatures stay refused. A game check reappearing in `parks_authored_pose` is the regression. Any other rig or entry-count mismatch is refused (keeps the collapse) — admitting a rig without its census is the regression. A tilted FO4 reference (large X\u002FY rotation) still composes to a non-lying seed (see Known-open).\n- Writeback drives `GlobalTransform` from `body_pose` (not `Transform` — re-verified #4692); the Z-up→Y-up conversion happens upstream, not again here. FO4+ skeleton ragdolls decode (above); precombined `BhkSystemBinary` geometry stays opaque (`hknpCompressedMeshShapeData` layout), and `summarize_collision_authoring` must let the loader report \"authored but opaque\" rather than \"no collision\".\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_3.md`\n\n### Dim 4: Character Controller, Grounding & the NPC KCC (M42.10)\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fworld\u002Fqueries.rs` (`move_character`), `crates\u002Fphysics\u002Fsrc\u002Fcomponents.rs`, `byroredux\u002Fsrc\u002Fsystems\u002F{character,locomotion}.rs`\n**First step**: `git log --since=D -- byroredux\u002Fsrc\u002Fsystems\u002Fcharacter.rs byroredux\u002Fsrc\u002Fsystems\u002Flocomotion.rs crates\u002Fphysics\u002Fsrc\u002Fworld\u002F`\n**Guards**: `world\u002Fmod.rs::kcc_filter_groups_mask_actor_bone_colliders` (non-vacuous: the unmasked sweep must be blocked), `capsule_clearance_rejects_door_overlap_and_can_exclude_self`, `capsule_clearance_ignores_sensors_and_live_actor_bones`; `character.rs` tests for `integrate_vertical`\u002F`horizontal_motion`; `locomotion.rs::stuck_tests`. Physics-side contract only; NPC behaviour is `\u002Faudit-gameplay`.\n- **NPC step**: `step_toward_detailed` drives XZ through `PhysicsWorld::move_character` with `filter_groups: Some(actor_move_interaction_groups())`, which equals `ground_probe_groups()` (masks `ACTOR_BONE_GROUP` wholesale — so NPCs ghost through NPCs, and clutter blocks but is never shoved: no collision impulses, autostep refuses dynamic bodies; #4690). The step OWNS its vertical (#5539 2917ab372): a straight-down `cast_ray_down` measures the support gap (the capsule shape-cast misreads convex floors from inside the contact-offset band) and the request carries exactly `clamp(-(feet - support - offset), -step_height, +offset)`; `LOCOMOTION_NPC_SNAP_TO_GROUND` is **0** because rapier 0.36's snap fires on every horizontal move and its unchecked cast sank NPCs knee- to waist-deep into box\u002Fhull floors (guard `grounded_npc_does_not_sink_through_convex_floors_across_absolute_y`). That correction is also why the `dt = 0` boot tick is an ordinary slide: rapier 0.36's `move_shape` depenetrates whenever `|desired| \u003C 1e-5` and production never sends a zero request (`a_zero_dt_boot_step_matches_a_normal_first_step_for_embedded_npcs`, #5559; removing the correction is the regression). Movers that must notice an obstacle use `step_along_waypoints_detailed`'s `blocked` flag (#5452). The airborne fallback `cast_ray_down` is origin-lifted by `LOCOMOTION_GROUND_RAY_UP_OFFSET` (256) and clamped to `LOCOMOTION_MAX_DROP` (256 BU) so a ledge cannot teleport the actor under the shell; its `None` exclusion is correct only because the group mask covers the actor's ~18 bone bodies (a bone is a separate body, so a single `exclude_collider` can never cover them). Any new NPC cast without the mask self-hits. `forcegreet_system` (Update) and `eat_sleep_system` (PostUpdate) also step through `step_toward`; both write the step through `Transform` (a `GlobalTransform` write is erased by propagation, #5373) with `PhysicsWorld` held only for the step (#5371; both f0c683ef1).\n- The `LOCOMOTION_NPC_*` constants are DERIVED from their sources (#4689): KCC offset reads `ContactConfig::DEFAULT`, the step trio reads `CharacterController::HUMAN`, the capsule pair shares one const with `install_fallback_actor_collider`; pinned by `npc_locomotion_constants_match_their_sources` (which also restates the `> 2 * default_contact_skin_bu` invariant). Verify the derivation wasn't reverted to literals.\n- `capsule_overlaps_solid` tests the final placement (spawn ladder, doors) with `solid_probe_filter` (kinematic architecture in; dynamics, sensors, actor bones out); the query pipeline must be current.\n- Player: `kcc_offset_bu` applied and above the contact-skin pair; walkable-slope threshold is a named constant with rationale; grounding mechanism (collider present → cast hits → grounded) traced without re-filing the closed mass=0 case — `resolve_ground_contact`'s OR of the support probe into the KCC verdict is load-bearing while WALKING (parry 0.31's support cast returns a tilted GJK normal at the offset gap and the KCC alone answers `grounded = false` on ~80\u002F600 frames walking +X; pinned by `walking_capsule_loses_kcc_grounded_on_frames_the_support_probe_covers`, #5560 f89802955); the idle case is covered by the KCC's own explicit grounded check (738ab7391); and a downward request the KCC sweeps to no descent (`character.rs::fall_blocked`) consults the walkable probe once where the capsule stands, because the support probe otherwise runs only for a capsule grounded LAST frame and every teleport (save restore, door arrival) hands over an ungrounded one that hung at the restore pose with its fall velocity at the -2000 clamp (#5155 966579f57; a moving fall never qualifies). The player passes no actor-bone mask, so an idle player overlapped by an NPC limb or clutter is depenetrated while a walking one is not — recorded at the `move_character` call as an unreferenced gameplay choice (#5559); `integrate_vertical` terminal clamp after accumulation and `MAX_FRAME_DT` so a stalled frame cannot tunnel the floor; diagonal input normalised before the speed multiply; `player_accepts_movement_input` honours `PlayerControlState` and `ActorControlState.restrained` (UI focus is enforced upstream: `\u002Faudit-ui` Dim 6); `snap_character_body_to_camera` takes `&World` by documented design and `toggle_player_mode` is reachable only from console \u002F exclusive paths. Every player-body teleport (camera snap, transition arrival grounding, save restore — which first refuses a non-finite or out-of-world saved pose via `PhysicsWorld::translation_is_sane`, the bound `accept_keyframe_target` uses, #5530 d28545728 — `combat.approach`) goes through `systems::place_character_body` — Transform + GlobalTransform + `CharacterController::clear_momentum` + kinematic-body sync, each store in its own short lock scope (#5591 946310eb9; test `place_character_body_moves_both_transforms_and_clears_momentum`); a site that clears momentum or writes the body pose by hand is the regression. Over-encumbrance (`PlayerEncumbrance::movement()`) scales walk speed \u002F removes sprint in `character_controller_system` (M47.2). The player's `ActorValues` carry evaluated PlayerOnly rows (#4674), re-evaluated every frame by `refresh_player_only_bases` in `player_derived_stats_system` (#5039), `CharacterLevel`\u002F`Background` are stamped (#4678), and the HUD bars resolve AVIF editor ids through `PlayerVitals` reading the player only (#4675).\n- Third-person player body (`byroredux\u002Fsrc\u002Fplayer_body.rs`, a070baaad): the body is visual-only. `attach_player_body` strips `CollisionShape`\u002F`RigidBodyData` from its imported nodes before the first physics sync (guard `attach_reparents_offsets_retargets_and_strips_collision`), because player casts exclude one body handle, not a group. The `THIRD_PERSON_BOOM_BU` camera offset in `character.rs` is unswept (no camera-collision probe). `player_camera_boom` is its single source: `camera_follow_system` places the camera with it and `interaction::camera_ray` adds it back, so every player gameplay ray (activation, melee, studio host, view commands) starts at the eye (#5124, 69157c7cd); a caller casting from the raw camera pose is the regression.\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_4.md`\n\n### Dim 5: WATAL Physics Sink: Buoyancy, Damping, Current, Swim\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fwater.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fcomponents\u002Fwater.rs` (+ `water\u002Fsurface_grid.rs`, `water\u002Fbed_field.rs`), `byroredux\u002Fsrc\u002Fsystems\u002F{character,water}.rs`, `byroredux\u002Fsrc\u002Fcell_loader\u002Fwater.rs` (volume depth), `byroredux\u002Fsrc\u002Fcommands\u002Fwater.rs`, `byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Flate\u002F{water_hazards,scripted_combat}.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fwater.rs byroredux\u002Fsrc\u002Fsystems\u002Fwater.rs byroredux\u002Fsrc\u002Fsystems\u002Fcharacter.rs`\n**Guards**: `scheduler_access_tests.rs::water_and_animation_parallel_accesses_are_complete`; `character.rs::{swim_damping_is_frame_rate_independent, zero_dt_tick_while_submerged_does_not_refill_breath, swimming_drift_scales_the_plane_by_fraction_and_the_marker_at_full_strength, the_marker_reaches_the_swimmer_through_drift_not_the_column_state, a_marker_outside_every_plane_still_drifts_the_player, swimlevel_predicate_agrees_between_pose_and_depth_forms}`; `water.rs::placed_current_volume_is_collected_without_becoming_a_water_surface`.\n- `submerged_fraction` clamps to [0,1] and survives a zero-height AABB. Lift is proportional to submerged volume and opposes gravity in the renderer's Y-up frame (units BU). Lift is re-derived at the top of EVERY fixed substep: the scan registers each awake wet body's `WaterLift` and `PhysicsWorld::refresh_water_lift` recomputes it from the current AABB and velocity, adding only the change to rapier's persistent user force (a lift held over 5 substeps x the solver's internal steps was a limit cycle whose threshold scaled with render fps, #5547 c5bf46e59); thin floats additionally get a vertical heave damping (`heave_hold_damping`, ∝ 1\u002Fh, rescaled by rho*|g| over the measured reference stiffness and capped at `0.9\u002FPHYSICS_DT` for stability — #5618; the lift spring itself loses stability below ~0.08 BU). The per-body water latches (`rest_depth`, `water_force_targets`, the re-sleep settled set) are `FxHashMap`\u002F`FxHashSet`, not SipHash, and `rest_depth` entries carry a scan-generation stamp so the despawn sweep is one retain (#5709 5f01d1a7f; guards `water_scan_latches_are_not_siphash`, `a_despawned_sleeper_leaves_no_rest_depth_latch`). Dry-link damping (`apply_multibody_link_damping`) walks the multibody links, not the body arena, and owns forces only on bodies the water scan did NOT register: the current arm notes a marker-only-current body in `water_force_targets`, and the set is cleared at the top of the scan before its early returns, so a streamed-out plane cannot leave ex-wet links excluded (#5698\u002F#5699 a2af867d9); since it owns the force accumulator, the marker-only arm applies the link's authored damping itself when no surface arm did (#5934 b6577da90). A marker-only current's user force is released when the body leaves the marker, and also when the marker streams out and the scan takes its no-marker early return. Both exits go through `release_current_forces` over the `in_current_prev` latch; before that fix the last drag term stayed as a constant push (#5933 eab6b131f; `leaving_a_marker_only_current_releases_its_force`). A sleeping float re-wakes against the depth it SETTLED at (latched in `WaterContactScratch`, dropped on wake\u002Fexit\u002Fdespawn), not the per-scan delta (#5561). Jointed links take buoyancy drag as force\u002Ftorque (#5540).\n- Wake discipline: buoyancy never pins the static-scene fast path for *other* bodies; it wakes only on submersion change, and the `n_new > 0` escape (a body streaming in already submerged, spawned asleep) still exists. Since the swell landed (7dd294ee3) a float on wind-driven water rides the swell and does NOT sleep, so the invariant is \"awake dynamic count never exceeds the wet floats\" (the `w2-dynamic-water.sh` gate, rewritten that way), not \"reaches zero\"; calm planes still settle and sleep. `waves_require_contact_rescan` sizes each surface's reach as its ripple amplitude plus the swell crest at full shoaling gain (from the plane's kind-damped weather scroll), so a swell-only wind-driven plane keeps the rescan armed and a still plane quiesces (#6489 b76b674df; a float asleep on a calm swell otherwise stayed parked through a wind change).\n- Volume depth is the cell kind's, not the plane's size: `cell_loader\u002Fwater.rs::water_volume_depth(interior)` gives a 200 BU column for an interior and the exterior cell width otherwise, and both callers pass the flag explicitly. It was inferred from the plane's half-extent (`\u003C= 1024` = interior), so a large interior whose placement clamps to the exterior's 2048 got the 4096 BU column and swam ~20x deeper depending on where unrelated REFRs sat (#6135 dcad3669d). A depth keyed on plane size is the regression.\n- **Bed field, swell and river current (7dd294ee3, 8647c1128, 4427ce44f; WATAL, not a numbered issue)**: `cell_loader\u002Fwater.rs::bed_field_from_land` samples the LAND heightfield under a plane once into a `WaterBedField` (core `water\u002Fbed_field.rs`: signed surface-minus-bed depth on LAND's 33x33 lattice, bilinear `sample` -> depth + shoreward direction, clamped so the waterline is exact; `sample_baked` is the mesh's border rule, the direction scaling from 0 on the plane's border to full one lattice step in, #6420 94159d26e), bakes `sample_baked` into the mesh vertex colour behind the sentinel alpha `WATER_BED_VALID_ALPHA`, and attaches it to the plane entity; interior, LOD and placed-mesh water carry none and take the open-water path. Wind-driven (calm) planes carry a `WaterSwell` (`WATER_SWELL_*`: 1000 BU wavelength, dispersion-relation speed, wind-scaled height) that shoals over a rising bed, refracts toward the shore and is capped at `WATER_SWELL_BREAK_RATIO` of the depth; the CPU sampler is `authored_wave_height_over_bed` (`authored_wave_height_with_weather` is its no-bed form; it, the river-current sampler and the bake all read `sample_baked`) and `water.vert` evaluates the same law from `shader_constants` — a constant or formula edited on one side only is the #5582 drift again, and the shore-refraction shape parameters are named in core (`WATER_SHORE_RIPPLE_TURN_SHARE`, `WATER_SWELL_SHORE_TOWARD_RAMP`, `WATER_SHORE_MIN_UPHILL_LEN`) and exported to GLSL, so a retyped literal on either side fails the text pin (#6419 010bb4314); the share fades in with a smoothstep over the toward-shore ramp on both sides (4427ce44f; `a_swell_running_offshore_keeps_its_heading_and_never_collapses`). Rivers\u002FRapids run `WaterFlow::over_bed` (slower over the shallows, turned along the bank) for the current on dynamic bodies, evaluated at the collider-centre `reference_point` and published on `WaterContact` (guard `river_current_on_a_floating_body_follows_the_bed`). Every sampler passes the plane's bed: buoyancy, `player_water_state` and `submersion_system` do for the wave height, and the plane's CURRENT goes through the one `byroredux_physics::local_current(kind, flow, bed, x, z)` (a River\u002FRapids flow runs `over_bed`; every other kind, bed-less water and a point outside the bed keep the plane's flow) in both the dynamic path (force + `WaterContact.flow`) and `player_water_state` → `player_current_drift` (#6488 6390bfb90: the swimmer was pushed up to ~3x harder than the barrel beside them and in the authored heading) — a flow read off the plane without `local_current` is the two-samplers regression. `WaterBedField` is allowlisted as derived (re-baked at cell load, not saved) and the buoyancy \u002F camera \u002F player systems declare its read.\n- **Two target sources** (#3492): the `RapierHandles`+`RigidBodyData{Dynamic}` scan and the `Ragdoll` scan (`RagdollBuoyancy` caches first collider + effective damping at `build_ragdoll` because activation strips the bones' rows). Both feed the same targets\u002Fwrites pipeline and `clear_stale_water_contacts` has the matching `Ragdoll` arm, else a corpse leaving water keeps a latched `WaterContact`.\n- Current drag is bounded (clamp + named constant). One `reference_point` (collider AABB centre) feeds the union prefilter, current-volume containment and surface XZ containment; a revert to the raw body origin on any axis is the regression.\n- `WaterContact` emits one transition frame at zero so FX\u002Faudio consumers see the edge.\n- **Two samplers must agree**: the dynamic path (`apply_buoyancy_with_scratch`) and the kinematic player's `player_water_state` in `character.rs`. Every water input added to one (plane flow, placed `WaterCurrentVolume` marker, wave height, damage) must exist in the other (every CPU wave sampler takes `WaterKind::weather_scroll_for`, the one policy that damps the atmospheric scroll on flowing kinds, and buoyancy samples at the collider AABB centre — #5354 cff1f9c42; the wave tuning and scroll prep live once in core as `WATER_WAVE_*` \u002F `WaterMaterial::wave_scrolls`, which `water.vert`, the GPU upload and the CPU crest sampler all read — #5582 7cf2bd086; authored hazard damage is applied ONLY by Late `water_damage_system`, including to the swimming player, whose controller arm was a second 1x, #5548), and both COMPOSE plane + marker ADDITIVELY with the same per-source scale: plane drag × submerged fraction, marker at full strength (`frac = 1.0`). On the player the marker never enters `PlayerWaterState` (its `flow` and the published `WaterContact` carry the plane column's flow only, matching the dynamic path's `flow: s.flow`); `player_current_drift` adds it in both the swim and wade arms (#4691 fixed plane-wins `or_else`; #5357, dd3a506e9, fixed the swim arm scaling the folded sum by the fraction). Surface height for mesh water without a phantom is `WaterVolume::surface_y_at` over its `WaterSurfaceMesh` triangles (17c01a4e5; a stream can descend ~1800 BU); buoyancy, `player_water_state` and `submersion_system` must all sample it, never the flat `max.y`. The player sampler tolerates a missing `WaterCurrentVolume` storage (#4791).\n- `WaterContact` carries an optional `waterline` (AABB-centre XZ at the sampled surface height, waves included) written by the buoyancy phase; the splash\u002Fripple adapter places events on it, and a producer with no collider AABB (the player capsule) leaves it `None` and keeps origin + depth (#5562; not saved).\n- Swim\u002Fdrown (`swimlevel_reached`, `swim_vertical_velocity`, `advance_breath`, `apply_player_drowning_damage`) are in scope like any code: damping is dt-correct, zero-dt never credits breath. Water-hazard and drowning deaths reconcile in ONE place, `reconcile_pending_dead_actors_system` (`Stage::Late` exclusive, `byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Flate\u002Fscripted_combat.rs`, which names it `run_after` both death producers — `water_damage_system` and `scripted_kill_system`, #6702); a second inline teardown site is the regression (#3119).\n- Contact→event adapters in `byroredux\u002Fsrc\u002Fsystems\u002Fwater.rs` (`Stage::Late` exclusives, `late\u002Fwater_hazards.rs`, with `submersion_system` after `ragdoll_writeback_system` and `water_damage_system` after it as named `run_after` constraints: submersion → `water_damage_system` → death reconcile → `make_water_interaction_system` → water audio; every drowning death also raises the KILL story event, #5434): `submersion_system` reads the camera pose after `camera_follow_system` (guard `scheduler_access_tests.rs::submersion_runs_after_camera_follow_and_before_water_audio`); damage and splash\u002Fripple markers derive from `WaterContact` edges, keeping `crates\u002Fphysics` free of scripting\u002Fpresentation deps (#4183 closed: wave parameters are snapshotted before the water storage guards). `compute_underwater_frame` (tint) belongs to `\u002Faudit-renderer` \u002F `\u002Faudit-exterior`.\n- Seams reported once, here, with pointers: tri-state `XCLW` decode (`\u002Faudit-esm`), render half (`\u002Faudit-renderer` Dim 8).\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_5.md`\n\n### Dim 6: Queries, Diagnostics & Cost\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fworld\u002F{queries,mod}.rs` (casts, census), `crates\u002Fphysics\u002Fsrc\u002Fsync.rs`, `byroredux\u002Fsrc\u002Fcommands\u002Fphysics.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fsync.rs byroredux\u002Fsrc\u002Fcommands\u002Fphysics.rs`\n**Guards**: `sync.rs::census_excluded_body_prevents_a_self_hit_on_the_players_own_capsule`, `census_reports_full_extent_and_scale_not_just_the_y_range`.\n- Every cast the controllers use excludes the caster (self-hit = permanently grounded on your own capsule): the player passes its body handle, actors use the group mask (Dim 4). A live census caller (`phys.census`) must pass `Some(player_body)`. `cast_ray_corridor` (#5160: a ball shape-cast on the same query surface as `cast_ray`, sensors excluded, used by the melee swing and the `combat.approach` LOS check in `commands\u002Fview.rs`) excludes one body only — a live actor's own keyframed bones are separate bodies and stay hittable (combat treats a self-root hit as a miss; `\u002Faudit-gameplay` Dim 4). Guard `corridor_cast_hits_a_bone_the_zero_width_ray_threads`. `PhysicsWorld::movable_body_blocks_line` (AIP-UW-003, 47207ecb0) answers whether a movable (dynamic) body is the first solid thing on a line, excluding the shooter and target bodies — walls, fixed props and kinematic bodies do not count — and shares the `update_query_pipeline` caller contract of the other probes (its one caller is `faction_hostility::movable_object_blocks_fire`, for the UseWeapon package). `cast_ray_corridor_where` is the same cast over a body predicate (both route through one `cast_ray_corridor_filtered`; a zero radius is the predicate-filtered ray, and a parentless collider stays eligible because there is no body for the predicate to reject — #5945 b4bff7784, `corridor_filter_keeps_parentless_colliders_and_zero_radius_is_a_ray`): `systems\u002Fprojectiles.rs` sweeps solid geometry with a thin ray at the projectile's radius and actors with the wider corridor, ignoring the launcher's own colliders (a corridor as wide as a bone box starts inside the wall a trap port is mounted in; f6a64fe20) — a projectile cast without the launcher exclusion is the regression.\n- `surface_material_under(..., excluded_body)` (the footstep surface probe, `world\u002Fqueries.rs`) takes the walker's body handle as a MANDATORY argument like `cast_ray_down`: the player capsule's centre is the footstep trigger, so an unexcluded solid ray hits it at toi 0 and every step reads material 0 (#5545 3909778eb; guard `surface_material_under_skips_the_walkers_own_capsule`). Its one live caller is `footstep_system` (`\u002Faudit-audio` Dim 5). `phys.stats` (`commands\u002Fphysics.rs`) labels every counter by scope: recovery events\u002Fbodies\u002Fparked, contact `pairs`\u002F`contacts`\u002F`constraints`, `multibody_joint_count`, and active-beside-live kinematic counts (#5563\u002F#5564).\n- The census (`dump_spawn_collider_census`, `phys.stats`\u002F`phys.census` via `byro-dbg`; each row and each nearby-collider query row also carries the collider's `shape` label — Ball \u002F Cuboid \u002F TriMesh \u002F Compound \u002F ConvexPolyhedron \u002F … via `shape_label`, cb403a202, so a zero-thickness trimesh reads differently from a box) distinguishes *no collider authored* from *dropped in translation* from *present but not walkable*, and reports full AABB extent + owning placement scale so a scale-drift collider is distinguishable.\n- `colliders_near_xz` allocates per call: check caller frequency (a per-frame call on a radius-12 exterior is a hot-path allocation; `\u002Faudit-performance` owns the fix).\n- Cost model (#4685\u002F#4682, re-stated for rapier 0.36): there is no separate query tree — queries borrow the broad phase's BVH, which `pipeline.step` maintains incrementally; a frame that steps nothing inserts only the queued leaves; the recovery snapshot reads a maintained dynamic-body index rather than the arena. The rapier-0.22-era 'budget from the rebuild' and 'snapshot walks the arena' attributions are both historical. `step_cost_rationale_is_scoped_to_history_and_names_the_real_cost_centre` pins the in-code comment; re-measure with real TriMesh-heavy content before citing a number.\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_6.md`\n\n## Phase 3: Merge\n\nCombine `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_*.md` into `docs\u002Faudits\u002FAUDIT_PHYSICS_\u003CTODAY>.md` (header per `_audit-common.md` Report finalization): Executive Summary (findings by severity; PHYSAL verdict = are the three named seams the only per-game branches; which games' collision data was traced), **Solver Invariant Matrix** (fixed step \u002F wake \u002F lock order \u002F phase order \u002F explosion recovery \u002F teardown, each verified or drifted), Findings (deduplicated), **Known-Open Register** (what this pass changed). Then `rm -rf \u002Ftmp\u002Faudit\u002Fphysics`; suggest `\u002Faudit-publish docs\u002Faudits\u002FAUDIT_PHYSICS_\u003CTODAY>.md` (labels `physics`, plus `water` for buoyancy-sink findings and `game:*` when Havok-data-specific).\n","# Physics \u002F PHYSAL Audit\n\nRead `.claude\u002Fcommands\u002F_audit-common.md` (delta-first scoping, dedup, finding format) and `_audit-severity.md` for shared protocol.\n\nAudits whether the simulation is *correct*, not just locked\u002Funsafe: `crates\u002Fphysics\u002F` + `byroredux\u002Fsrc\u002Fragdoll.rs` + the character\u002FNPC drivers that call the solver. Orchestrator; one Task agent per dimension (max 3 concurrent).\n\n## Scope\n\n- `crates\u002Fphysics\u002Fsrc\u002F`: `world\u002F` (split by #5311, 12ca34a70: `mod.rs` = `PhysicsWorld` struct\u002Flifecycle\u002F`step` with the per-substep body in `run_substep`; `queries.rs` = casts, capsule probes, `move_character`, `CharacterMove*`; `recovery.rs` = `DynamicBodySnapshot`, restore\u002Fclamp, counters, `accept_keyframe_target`, `refresh_query_geometry_after_restore`; tests live in `mod.rs` + `broad_phase_tests.rs`), `sync.rs` (`physics_sync_system`, spawn census), `convert.rs` (`CollisionShape` → Rapier, `pose_from_trs`, `rotation_scaled_axis`), `config.rs` (`ContactConfig`, `TriMeshFlagBits`), `components.rs`, `ragdoll.rs`, `water.rs` (WATAL sink), `source_scan.rs` (re-exports core's canonical `production_text`, #5100 655b317c9). Backend: rapier 0.36 \u002F parry 0.31 on the workspace glam 0.33 (rapier's `Vector`\u002F`Rotation` ARE the engine's `Vec3`\u002F`Quat`; no nalgebra in the crate).\n- Engine side: `byroredux\u002Fsrc\u002Fragdoll.rs` (+ `ragdoll_installed_tests.rs`), `byroredux\u002Fsrc\u002Fragdoll_pose.rs` (+ `ragdoll_pose_tests.rs`, authored XRGD corpse pose), `byroredux\u002Fsrc\u002Fsystems\u002Fcharacter.rs` (player controller, swim, breath), `byroredux\u002Fsrc\u002Fsystems\u002Flocomotion.rs` (NPC KCC step), `byroredux\u002Fsrc\u002Fcommands\u002F{physics,water}.rs`, `byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Fphysics.rs`; parse side `crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002F`.\n- **Handoffs**: NPC *behaviour* on top of locomotion (Wander\u002FTravel\u002F…, stuck re-pick, walk speed, gait) → `\u002Faudit-gameplay`; WATR\u002FXCWT→`WaterMaterial` translation → `\u002Faudit-exterior`; water shading → `\u002Faudit-renderer` Dim 8; `bhk*` byte parsing → `\u002Faudit-nif`; `CollisionShape` extraction → `\u002Faudit-nifal`; lock order → `\u002Faudit-concurrency`.\n\n**Ground truth**: `docs\u002Fengine\u002Fphysal.md` (layer spec), `docs\u002Fengine\u002Fphysics.md`, `docs\u002Fengine\u002Fwatal.md` (water half; re-read its open list rather than trusting a copy here).\n\n**Known-open register** (dated 2026-11-09; check the owning doc\u002Fissue before re-filing):\n- Skyrim mass=0 Dynamic bodies are reclassified Static (*tes_grounding_zero_mass_dynamic_fix*, #1832 closed). Remaining door-threshold spawn gap is a content\u002Fcollision-import question, unchanged in `AUDIT_PHYSICS_2026-09-11.md`. A direct interior load spawns via `cell_loader\u002Finterior_spawn.rs`'s ladder: `COCMarkerHeading` REFR, then the linked door partner's `XTEL`, then the door\u002Fbbox fallback (*interior_spawn_point_fix*).\n- Open (verified 2026-11-06): none from the capsule clamp — #4134 is fixed (002fbd6ef: `character_capsule` in `world\u002Fqueries.rs` routes through `clamp_shape_extent`; guard `character_capsule_sanitises_non_finite_and_absurd_extents`). #3477 closed (regression guard: `registered_shape_generations` structural-generation cache, `newcomer_cache_detects_membership_changes_even_when_counts_match`). `BhkPlaneShape` produces no collider by design and is counted in the spawn census (#4407, #4408 both closed).\n- Water-walking and freezing are unbuilt (`docs\u002Fengine\u002Fwatal.md`).\n- #5161\u002F#5246 contain ragdoll solver explosions at the physics boundary (Dim 2); the *upstream* instability of mass-inverted rigs (palms heavier than the spine, authored restitution 0.8) stays open as root cause with no issue of its own (5ae7f8ad4). Two of its drivers are fixed and measured (c6327cc6b, #5536\u002F#5538, Dim 3): the FO3 real-data articulation gate (`ragdoll::installed_tests`, six environments x two yaws) is green again — re-measure it before re-opening the claim.\n- FO4 ragdolls are live (Dim 3; #6070 closed, 7c6e6c3e1): `spawn_skeleton_unit` installs `install_fallback_ragdoll_template`'s one-body capsule only when no decoded `RagdollTemplate` exists, and activation retires the keyframed stand-in capsule (Dim 3). `docs\u002Fsmoke-tests\u002Ffo4-ragdoll.sh` (under `BYRO_VALIDATION=1`) is the live gate: every body live and finite, every joint live, nothing parked. #6066 is closed (019b087e3: bodies read the blob's material and motion-property rows) and #6067 is closed (0d775dc61: the 67 of 850 bind-pose pivot disagreements on off-bone bodies stay a recorded property of the data; the decoded rigs hold every joint live in free fall). Still open: #6065 (FO4 XRGD poses — eight creature rigs are now admitted, brahmin\u002Fradstag\u002Fyaoguai\u002Fmirelurk\u002Fradroach on the verified bar and molerat\u002Fdog\u002Fstingwing on the owner's call, a3a36f1c7; the cat, Handy and FEV hound stay refused, three brahmin corpses carry 41\u002F42 entries for 39 bodies, and the ghoul 20-entry poses are unresolved). Open with no issue of its own: an FO4 corpse whose reference carries a large X\u002FY tilt (466 of 971 posed human\u002Fghoul corpses) is not posed correctly; its composition with the pose is not established (`ragdoll_pose.rs` module doc). The smoke excludes those corpses.\n- Ball-and-socket \u002F stiff-spring \u002F chain constraints are decoded (#4212) but have no canonical joint kind, so `extract_ragdoll` declines them like `Other` (`docs\u002Fengine\u002Fphysal.md` §3 table). By-design gap; a finding needs occupancy-census evidence that shipped content uses them.\n\n## Parameters\n\n`--focus \u003Cdims>` (default all 6) · `--game \u003Cname>` restricts Dim 3's per-game seam checks · `--depth shallow|deep` (`deep` traces a cell's colliders from NIF `bhk*` to solver; default deep).\n\n**Extra finding fields**: **Dimension**: Shape Translation | Step & Sync | Ragdoll & Constraint Seam | Character & NPC Controller | Water \u002F Buoyancy | Queries & Diagnostics. **Trigger Conditions**: what a cell must contain for the bug to fire.\n\n## Phase 1: Setup\n\n1. `mkdir -p \u002Ftmp\u002Faudit\u002Fphysics`; dedup per `_audit-common.md`. Read the latest `docs\u002Faudits\u002FAUDIT_PHYSICS_*.md` (date D = delta baseline).\n2. `cargo test -p byroredux-physics` and `cargo test -p byroredux -- ragdoll` \u002F `character` \u002F `locomotion` \u002F `water` (bin crate, no `--lib`); record counts. Note that `byroredux\u002Fsrc\u002Fragdoll_installed_tests.rs` (8 tests) is entirely `#[ignore]`d: six behind FO3 game data (`BYROREDUX_FO3_DATA`) and, since #6070, two behind FO4's (`BYROREDUX_FO4_DATA`: six rigs' bind-pose free fall, the MedTek XRGD-posed ghoul). Only `-- --ignored` runs them. Likewise `byroredux\u002Fsrc\u002Fragdoll_skeever_tests.rs` (`skeever_ragdoll_survives_six_hundred_floor_ticks`, the #5161 live-spec replay; reads the skeleton from `Skyrim - Meshes0.bsa` (`BYROREDUX_SKYRIMSE_DATA`), settles on a floor at the seed pose and 20 BU inside it, and is in `.github\u002Freal-data-pins.txt`; on rapier 0.36 it pins that nothing diverges, not the old panic) is `#[ignore]`d.\n3. No windowed engine launches (*feedback_no_parallel_engine_launch*): use `cargo test`, `BYRO_PROFILE=1` on an existing headless run, or read only.\n\n## Phase 2: Dimensions\n\n### Dim 1: Shape Translation\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002F{convert,config}.rs`, `crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002Fshape.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fconvert.rs crates\u002Fphysics\u002Fsrc\u002Fconfig.rs crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002F`\n**Guards** (default lane): `config.rs::trimesh_flag_bits_match_rapier_definitions` (Rapier flag pin), `convert.rs::huge_finite_*_clamps_to_sane_ceiling` (extent clamp; release-only), `non_finite_cuboid_extent_clamps_instead_of_reaching_rapier` (release-only — the #4686 debug-lane twin `non_finite_extents_clamp_in_the_debug_lane_too` covers the default lane). Aim at what they cannot see:\n- Every `CollisionShape` variant the importer emits has a translation arm (list variants vs arms, report the delta; same trap as *nif_shape_dispatch_resolve_parity*). A silently dropped shape is an invisible hole.\n- Compound\u002Ftransform children compose in authored order; non-uniform parent scale is rejected, converted to TriMesh, or documented, never averaged.\n- Scale is applied exactly once, at the Rapier sink (`docs\u002Fengine\u002Fphysal.md`: producers must not bake scale into vertices\u002Fprimitives, else scale²).\n- Every primitive routes through `clamp_shape_extent` (floor 1e-3, ceiling `MAX_SANE_SHAPE_EXTENT`, non-finite → floor); a new variant with a local `.max(1e-3)` regresses this — #4134 was exactly that in the controller\u002Fprobe capsules (`character_capsule`), now routed through the shared clamp.\n- Surface material (Wave 4): `RigidBodyData.surface_material` is a **u32** end to end (Skyrim's are CRC32 of the CK material name — a narrower column collided 8 pairs, #5542 c173147da, `FORMAT_MAJOR` bumped); the importer's `resolve_shape_with_materials` returns the per-leaf sequence from the SAME walk as the shape (#5550), so `RigidBodyData::part_surface_materials` (serde-skip, re-derived on load) is 1:1 with `collision_shape_to_parts`' part order; `0` is authored STONE only on bsver \u003C 83. Terrain ghosts take the LTEX Havok material of the texture covering most of the tile (`dominant_land_texture` → `land_surface_material` in `byroredux\u002Fsrc\u002Fcell_loader\u002Fterrain.rs`, passed to `spawn_trimesh_collider_ghost`; c53d87679, part of #6048 which is still open). `land_surface_material` takes the LTEX `HNAM` byte (Oblivion\u002FFO3\u002FFNV), else on Skyrim the id its `MNAM` `MATT` hashes to — nif.xml's `SkyrimHavokMaterial` is the CRC32 of the lowercase CK material name, computed with `byroredux_bsa::bscrc32` and merged across the load order into `EsmCellIndex::material_type_havok` (63 of Skyrim.esm's 78 MATTs hash to a listed id and all 68 vanilla LTEXs name one; 4ce5ddf2a). FO4\u002FStarfield MATTs are routed but stay empty (their collision is the Havok blob), so those tiles stay 0, and on every game the authored LTEX friction\u002Frestitution are decoded but not applied (what #6048 still tracks). `register_newcomers` packs each part's own material into its collider user-data (`collider_surface_material` reads it back); `build_ragdoll` packs nothing, so bone colliders read 0\u002FSTONE (#5557). A new `CollisionShape` variant that flattens differently from the importer's leaf order silently misaligns materials.\n- Contact combine rule: both collider producers (`register_newcomers`, the ragdoll bone builders) set `config::CONTACT_COEFFICIENT_COMBINE_RULE` = `GeometricMean` on friction AND restitution (Havok's `sqrt(a*b)`; rapier's default Average made a restitution-0 body bounce off a 0.8 floor at 0.4; 04cb6333d). It wins rapier's combine priority, so dropping it from either producer reverts every pair with an engine collider; pinned per production path by `every_registered_collider_carries_the_havok_contact_combine_rule` \u002F `every_ragdoll_collider_carries_the_havok_contact_combine_rule` (#5552) plus `restitution_zero_body_does_not_bounce_on_restitution_floor`.\n- The release-only Compound-child backstop is factored into `sanitize_child_pose` and tested in every profile (#5551).\n- `default_contact_skin_bu` (1.0 BU) is applied to every collider kind, not just TriMesh. Degenerate input (zero-area triangles, empty vertex sets, NaN transforms) is rejected before Rapier builds a BVH.\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_1.md`\n\n### Dim 2: Step, Wake & the 4(+1)-Phase Sync Tick\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fworld\u002F` (incl. `recovery.rs`, `broad_phase_tests.rs`), `crates\u002Fphysics\u002Fsrc\u002F{sync,components}.rs`, `byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Fphysics.rs`, `byroredux\u002Fsrc\u002Fcell_loader\u002Frapier_release_tests.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fworld\u002F crates\u002Fphysics\u002Fsrc\u002Fsync.rs byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Fphysics.rs`\n**Guards**: `byroredux\u002Fsrc\u002Fscheduler_access_tests.rs::physics_sync_declaration_reads_all_phase_and_diagnostic_types` + `contact_config_read_is_declared_on_both_physics_systems` (access declaration; it has been forgotten four times), `cell_loader\u002Frapier_release_tests.rs` (cell-unload handle release). Beyond them:\n- Accumulator clamp to `MAX_SUBSTEPS * PHYSICS_DT` precedes the loop; `frame_dt.max(0.0)` guards NaN\u002Fnegative. The catch-up loop stops at `SUBSTEP_TIME_BUDGET` and drops backlog (slow-motion, never a jump); the budget timer is the one documented non-determinism source, no wall-clock or `HashMap` order elsewhere in the solver path.\n- Static-scene fast path (no dynamic body in `islands.active_bodies()` — the active set also holds kinematics, but rapier 0.36 gives them a real sleep test, so an idle keyframed body leaves it after ≈0.5 s and `active_island_counts().1` is an ACTIVE count, not a live one: `live_kinematic_count` is the on-demand total, #5563 — and `!pending_wake`) zeroes the accumulator. Every motion starter except spawn calls `wake()`: `apply_impulse` on a multibody link (every ragdoll bone) is not applied immediately — rapier rebuilds a link's velocity from the multibody's generalized velocities at each island solve and overwrote it, so `knock_down`\u002F`PushActorAway` collapsed the actor in place; `PhysicsWorld::apply_impulse` queues it and `step` delivers it as the force `impulse \u002F PHYSICS_DT` for the first substep it runs (after the link-damping pass), then restores the body's previous user force exactly (#6487 eac3f73f9); `set_linear_velocity` (the crate's free helper delegates to `PhysicsWorld::set_linear_velocity`, which wakes and forgets the spawn sleep for a nonzero velocity only — a zero velocity is a stop and does neither, #6324 c91c128ad), kinematic push, ragdoll activation, buoyancy. Spawn is the deliberate exemption (#3969; `wake()`'s doc): `register_newcomers` builds dynamics asleep and only calls `queue_query_refresh()`, and first-frame consumers take `n_new > 0` \u002F `had_newcomers` explicitly. A `wake()` added to spawn is the regression (the measured multi-second streaming stall). The contract is ASLEEP-UNTIL-PROCESSED (#5544 f454e0abc): rapier 0.36's begin-touch strong-wake wakes a brand-new collider on its first stepping frame, so `step` re-sleeps every `spawn_sleep_pending` newcomer still within 4 BU of its spawn pose after that frame and drops its settle force-crossings (`resleep_spawned_newcomers`: the set of settled colliders is filled only from bodies actually re-slept, linear in events — a drifted newcomer's genuine first impact is kept, #5700 a2af867d9); the water pass's deliberate wakes are exempt (`water_force_targets`), and so is any newcomer an explicit request woke before its first step — `add_force`\u002F`add_torque`\u002F`apply_impulse`\u002F`reset_forces` with wake, `set_body_type` with wake drop it from `spawn_sleep_pending` (`forget_spawn_sleep`, #5936 00ec063ec; guard `explicit_impulse_keeps_newcomer_awake_through_first_step`). Confirm a same-frame wake cannot be swallowed.\n- Registration: `register_newcomers` runs `collision_shape_to_parts` over the batch on the rayon pool before taking `PhysicsWorld`, then inserts serially in newcomer order (ad1d53a11), so Rapier sees the serial sequence. Guard: `register_newcomers_parallel_section_holds_no_world_guard`. Rapier 0.35+'s `BroadPhaseBvh` withholds fixed-on-fixed pairs itself (the `ActiveCollisionTypes` filter at pair creation) and re-inserts a body's colliders on a type change, so pairs denied while both were fixed are reported again — the job the engine's *FixedPairFilterBroadPhase* (fe80f4d76, deleted with *broad_phase.rs* in ac81a09f9) did on rapier 0.22. Guards: `world\u002Fbroad_phase_tests.rs::{two_fixed_bodies_never_reach_the_narrow_phase, a_fixed_body_turned_dynamic_stays_on_what_it_rested_on, removing_a_fixed_body_with_withheld_pairs_is_a_no_op_for_them}`.\n- `wake()` does not guarantee a substep. Scene queries borrow the broad phase's BVH (`PhysicsWorld::queries`), which only the step updates; colliders inserted on a no-substep frame must be queued with `queue_query_refresh` (`register_newcomers`, `build_ragdoll` since #3968), and `step` inserts exactly those leaves (`BroadPhaseBvh::set_aabb`) before it returns. `update_query_pipeline()` is the O(all colliders) cold-start\u002Ftest refresh — it must never run per frame (`step_cost_rationale_is_scoped_to_history_and_names_the_real_cost_centre` pins that `step`, `run_substep` and `refresh_query_geometry_after_restore` do not call it, each scan window checked to be the function it names, #5558).\n- **Explosion recovery**: each substep snapshots ALL dynamic-body poses (not just active islands, so a freshly activated ragdoll's first solve is covered; check the per-substep `Vec` cost on a body-heavy exterior); `restore_invalid_dynamic_bodies` reverts any body that is non-finite or moved more than `MAX_DYNAMIC_SUBSTEP_DISPLACEMENT` (2,048 BU) in one substep, sleeps it, logs at error, and zeroes the accumulator. Verify the snapshot precedes every substep, the bound is a delta not a coordinate (far exteriors), and the zeroed accumulator does not eat the frame's wake. #4683: recovery is COUNTED (`recovery_counts()` = lifetime *events*, *bodies* restored last step, bodies parked — distinct units since #5127; surfaced in `phys.stats`\u002F`ragdoll.status` with live joint counts) — assert on the counter, not just post-recovery state. #4687: already-non-finite bodies are parked (not left awake), restored poses are propagated to colliders + the query BVH same-frame (#5126; now `BroadPhaseBvh::set_aabb` per touched collider — the rapier 0.22 form needed *update_incremental(…, true)*; the guard `restored_pose_is_visible_to_ray_queries_same_frame` drives a real `step` recovery), and EVERY invalidated articulation is detached, not just the first. **Rapier 0.36 layers (#5488)**: rapier caps rigid-body speed INSIDE each internal substep (`IN_STEP_LINEAR_SPEED_CAP_BU_PER_S` = 28 000 BU\u002Fs via `normalized_max_linear_velocity`; deliberately ABOVE the 20 000 sanity cap so the ladder below still sees a capped burst — `in_step_speed_cap_bounds_an_explosion_inside_one_step`), but NOT multibody links (forward kinematics integrates outside the solver's per-body cap), so the displacement restore and DOF clamp remain the articulation guards. Rapier quarantines non-finite bodies by DISABLING them; `restore_invalid_dynamic_bodies` takes `pipeline.quarantine().bodies()` and parks them, and `run_substep` re-enables them after the NEXT step via `quarantine_cooldown` (52de1bc0a; `a_quarantined_body_is_re_enabled_and_parked`). A substep-armed wake (cooldown re-enable, fresh detection) rides `substep_wake_requested` and re-arms `pending_wake` AFTER `step`'s post-loop clear — without it, in a quiescent scene the re-enabled body's colliders stayed `DisabledByParent` and invisible to rays\u002FKCC until unrelated motion (#5543 b0a86c6aa). Both directions are regressions: a quarantined body left disabled, and one re-enabled in the same frame — the disable is then never processed, the body keeps its stale solver state and is re-quarantined every woken step (`ragdoll.rs::a_quarantined_rig_resting_on_a_floor_recovers_once`; live: 253 restores on a Whiterun corpse in the P1 smoke). The rapier 0.22 *sap_axis.rs* multi-SAP panic class (#5161\u002F#5488, closed by the ac81a09f9 migration) is gone with the BVH broad phase; do not re-derive caps from its ≈2.68e11 grid boundary. **Escalation (#5161, 5ae7f8ad4; #5246, e8de9f8c8)**: `clamp_explosive_velocities` runs at the end of every substep — including a recovery substep, for the bodies the restore did not claim (#5352; `a_restore_substep_still_clamps_the_bodies_it_did_not_claim`): caps body speed at `VELOCITY_SANITY_CAP_BU_PER_S` (20k) \u002F spin 100 rad\u002Fs and articulation DOF velocities at `ARTICULATION_DOF_SANITY_CAP` (DOFs integrate through forward kinematics before any body clamp) — except a dynamic root's six free-joint DOFs (linear BU\u002Fs first, then angular rad\u002Fs; `FREE_ROOT_DOFS`), which take the body caps: the joint-axis cap of 100 held every falling ragdoll to 100 BU\u002Fs against 686.7 BU\u002Fs² of gravity (#5353); the DOF walk is `clamp_articulation_dofs` (one pass per multibody, keyed by its root body, returning `(root, clamped DOFs)` so the warning names the rig through `body_labels`, #5531; guard `the_dof_clamp_attributes_each_rig_by_its_root_body`); non-finite velocity is zeroed, never passed through (one step later it is a quarantined, disabled body); escalation is a LIFETIME per-body offence count (1 clamp, 2 park, 3 `remove_multibody_articulations`) — a count reset on clean substeps is the #5246 regression. `explosive_detaches_total` counts only a third-offence burst whose `rigid_body_link` finds a live articulation, so clutter and already-freed rigs park without a count (#5356); `clamp_explosive_velocities` skips handles in the (stale-tolerant) dynamic index that are no longer Dynamic, so a scripted `SetMotionType(Keyframed)` teleport is not counted as an explosion (#5555 aedd31a43); `articulation_joints` is swept against liveness at the top of every clamp, and `remove_body` prunes `explosion_offences` \u002F `keyframe_refusals_logged` beside `body_labels` (#5355\u002F#5272; both 26a1277bc) — a per-body map that outlives its body is the regression. `push_kinematic` refuses non-finite or > `KEYFRAME_TARGET_SANE_BOUND_BU` targets via `accept_keyframe_target` (the only guard for keyframed live-actor bones, which the Dynamic-only snapshot skips). Counters (velocity clamps, explosive detaches, keyframe refusals, seed refusals) surface in `phys.stats`. Guards: `explosive_velocities_are_capped_and_persistent_exploders_are_parked`, `nan_velocities_are_zeroed_on_the_first_clamp`, `a_second_burst_parks_even_after_a_clean_substep`, `the_third_burst_detaches_a_live_articulation`, `the_third_burst_parks_a_jointless_body_without_counting_a_detach`, `articulation_joints_are_swept_when_their_articulation_dies`, `remove_body_prunes_the_offence_ladder_and_refusal_set`, `accept_keyframe_target_refuses_insane_but_finite_poses`, `ragdoll.rs::exploding_articulation_dofs_are_capped_before_forward_kinematics`, `ragdoll.rs::a_free_ragdoll_falls_at_gravity_without_tripping_the_dof_clamp`, `ragdoll.rs::an_exploding_free_root_dof_is_capped_at_the_body_speed_cap`. Note: multibody (ragdoll) joints are DETACHED on restore by design (`remove_multibody_articulations`; `playable-vertical-slice.md` § P5, \"FO3 restored-ragdoll recovery\") — a joint-restoration claim is the pre-#4687 error. Tests: `world\u002Fmod.rs::invalid_dynamic_body_reverts_to_its_last_valid_substep_pose`, `finite_but_impossible_dynamic_jump_reverts_to_its_last_valid_pose`, `recovery_counter_counts_a_real_substep_explosion`, `recovery_snapshot_index_tracks_dynamics_not_the_arena`, the three `#4687` edge tests.\n- **Contact-force events** (Wave 4 impacts): the step runs a `ChannelEventCollector` whose collision\u002Ftear receivers are dropped on purpose; dynamic bodies' colliders carry `ActiveEvents::CONTACT_FORCE_EVENTS` only while `contact_force_events_enabled` and the parent body is Rapier-dynamic NOW — one rule, `contact_force_active_events(enabled, body_is_dynamic)`, called by `register_newcomers`, `build_ragdoll`, `set_contact_force_events_enabled` and `set_motion_type` (which retags on a flip either way), so the impact set is history-independent (#6325 e9f84c535); a producer that tags by its own test is the regression (off by default; `impact_audio_system` turns it on only when `ImpactConfig` has sound content, and `set_contact_force_events_enabled` retags existing dynamic colliders and drains the buffer on disable, #5711 e3a4d5e18 — a producer that sets the flag unconditionally re-buys the callback cost) and only the `started` crossings drain into `pending_force_events` (cleared ONCE at `step` entry, substeps APPEND — a per-substep clear loses all but the last, #5557), taken by `take_contact_force_events` (`impact_audio_system`, `\u002Faudit-audio` Dim 5). `run_substep` truncates the buffer back to its pre-substep length when the substep is rolled back (`restored > 0`), so an explosion's insane forces never become an impact burst (#5554). `contact_event_position` resolves an impact from the pair's deepest solver contact (`solver_contact_world_points` through current poses), then (also when the pair has left the narrow phase by the time the consumer asks, #5937 b3b473487) the dynamic side's translation, then the old origin midpoint — never the body-origin midpoint first (static ghosts and exterior terrain tiles park their bodies at the placement\u002Fworld origin, #5675 0d8ea5d6e; guard `contact_event_position_is_the_contact_not_the_body_origins`). The receiver sits in a `Mutex` because `Receiver` is `!Sync` and `PhysicsWorld` must stay `Sync`; rapier's `parallel` feature is off in this build, so the callback runs on the stepping thread (82c675113 corrected the rayon claim). `phys.stats` prints `contact_counts()` by scope — `pairs` is the whole narrow-phase graph, `contacts`\u002F`constraints` the awake island only, and `constraints` never counts a multibody joint — beside `multibody_joint_count` (#5564).\n- Kill plane (`KILL_PLANE_Y`): active dynamic bodies below it are zeroed and slept so unsupported clutter cannot keep the fast path off forever. Verify the constant sits below any real geometry (deep water\u002Fexterior lows) and only bodies that actually stepped are scanned.\n- Lock discipline: newcomers are collected under read locks that are released before write locks on `PhysicsWorld` + `RapierHandles` (report the trace here; `\u002Faudit-concurrency` owns the rule). Phase order is collect\u002Fregister → push kinematic → buoyancy → step → pull dynamic (buoyancy must precede the step). An entity with `RapierHandles` is never registered twice. Pull-dynamic writes `Transform`, not `GlobalTransform`. Absent `PhysicsWorld` early-returns without panic.\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_2.md`\n\n### Dim 3: Ragdoll Articulation & the Per-Game Constraint Seam\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fragdoll.rs`, `byroredux\u002Fsrc\u002Fragdoll.rs`, `byroredux\u002Fsrc\u002Fragdoll_pose.rs`, `byroredux\u002Fsrc\u002Fragdoll_installed_tests.rs`, `crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002F{ragdoll,mod}.rs`, `crates\u002Fnif\u002Fsrc\u002Fblocks\u002Fcollision\u002F{constraints,np_ragdoll}.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fragdoll.rs byroredux\u002Fsrc\u002Fragdoll.rs crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002Fragdoll.rs`\n**Guards**: `ragdoll.rs::{ragdoll_solver_budget_preserves_the_world_default_mass_and_limits, a_ragdoll_does_not_change_an_unrelated_bodys_solve}`, `build_ragdoll_is_queryable_on_a_zero_substep_frame`, `byroredux\u002Fsrc\u002Fragdoll.rs::activation_before_first_physics_sync_prevents_duplicate_followers`; the FO3 finite-pose and FO4 hold-together tests only run with data (Phase 1). The gate command is `-- --ignored ragdoll::installed_tests` (the module path; a *ragdoll_installed* filter matches zero tests and exits green).\n- **PHYSAL doctrine.** `docs\u002Fengine\u002Fphysal.md` §3 names three source-boundary seams, all at parse→canonical: constraint CInfo decode, `havok_scale_for` (`crates\u002Fnif\u002Fsrc\u002Flib.rs`), collision-object-kind dispatch. Grep the solver side (`crates\u002Fphysics\u002F`, `byroredux\u002Fsrc\u002Fragdoll.rs`) for `GameKind` \u002F `bsver` \u002F version constants: each hit is either parse-side material that belongs upstream or a stale doc; both are findings with different fixes.\n- Constraint coverage matches the doc table: Ragdoll \u002F LimitedHinge \u002F Hinge (synthesised ±π) \u002F Prismatic have importers; the breakable wrapper decodes all four; `bhkGenericConstraint` and unknown malleable inners stay `Other`. Byte consumption is exact for the decoded types, trailing `bhkConstraintMotorCInfo` included (bare dispatch and the Malleable wrapper; the breakable wrapper consumes it itself, exactly once — #5960 a071ed217 deleted the motor-tail drift allowlist and `crates\u002Fnif\u002Ftests\u002Fconstraint_drift_corpus.rs` requires drift == 0 on Oblivion\u002FFO3\u002FFNV\u002FSkyrim LE+SE), so drift telemetry is live for them. FO4's `bhkRagdollSystem` blob (`hknpRagdollData`) decodes through `decode_np_ragdoll` into the same `RagdollCInfo`\u002F`LimitedHingeCInfo` records; `extract_ragdoll` takes that path when a scene authors no discrete constraints (e1bd40bcf; all 75 vanilla blobs, 986 bodies incl. convex-polytope\u002Fcompound shapes and 850 joints incl. breakable-wrapped, #6067 fc4a15104). Each body reads friction\u002Frestitution from the blob's material row and linear\u002Fangular damping from its motion-property row, both indexed by the body's *motion* index (`read_properties`; a blob with no readable rows falls back to the Skyrim humanoid constants; #6066 019b087e3; default-lane `a_body_reads_its_material_and_damping_rows_by_motion_index`, ignored corpus `crates\u002Fnif\u002Ftests\u002Fnp_ragdoll_corpus.rs`). Its offsets are corpus-inferred and pinned by independent checks (`docs\u002Fengine\u002Fphysal.md` §5).\n- Solver budget: `RAGDOLL_EXTRA_SOLVER_ITERATIONS` = **0** (#5546 9da0cf9f8): rapier 0.36 shares one island across every awake body and splits per-body budgets only while no multibody exists, so the old `+12` made every awake dynamic body solve 16 substeps while any ragdoll bone was awake (~2x step cost, unrelated trajectories changed); re-measured +0\u002F+4\u002F+12 all bounded on the FO3 gate. Pinned by `a_ragdoll_does_not_change_an_unrelated_bodys_solve`; confirm nothing raised the global budget or the constant. Authored masses\u002Flimits are preserved.\n- Joint limits follow Havok's convention (#5536 c6327cc6b): Havok measures the hinge angle of A (attached) relative to B (reference), rapier's coordinate is the CHILD relative to the parent — non-flip (A parent) negates+swaps, flip (A child) passes through; the ragdoll twist and prismatic travel carry the same derivation (the mirrored version enforced hyperextension and forbade flexion on every vanilla elbow\u002Fknee\u002Fankle\u002Fwrist). Joints carry `RAGDOLL_JOINT_SOFTNESS` (30 Hz, ζ 1) so a bind pose outside its limits is pulled in over frames, not corrected in one substep (#5538; rapier's 1e6 Hz default produced 617 BU\u002Fs at tick 0). Multibody links get drag and authored damping as FORCE\u002FTORQUE, since rapier applies body damping only on the rigid-body writeback path that skips links (#5540 b4accad7e); the angular term is −c·I·ω from the world inertia, built in one place (`PhysicsWorld::angular_damping_torque`, used by the dry link pass and both wet-scan sites) — the old −c·m·ω made authored bone angular damping ~60x too weak (#5697 8ed551fe5).\n- Rig geometry is read through every NiNode-family parent: `crates\u002Fnif\u002Fsrc\u002Fimport\u002Fcollision\u002Fragdoll.rs::node_world` folds `compose_transforms` (with #4549's overflow sanitiser, converting to `Mat3` once) and parents resolve through `any_ni_node` (`as_ni_node` plus the switch\u002FLOD nodes), so a bone under `BSMultiBoundNode` \u002F `NiSwitchNode` \u002F `NiLODNode` no longer truncates the chain and poses its body off the bone (#6303 aadb39649; vanilla FO4 skeletons unchanged) — a bare `NiNode` downcast or a hand-composed `NiTransform` chain there is the regression. Bone→body index mapping (off-by-one explodes on activation); authored limits use consistent units with a documented fallback for degenerate limits; `ragdoll_extra_angular_damping` stays inert (0.0) and is added once per body (for links it now also reaches the solver through the force\u002Ftorque path above).\n- Seeds are validated before any articulation exists (#5161): `seed_pose_is_sane` (finite, ≤ `SEED_SANE_ABS_BOUND_BU`, ≤ `SEED_SANE_MAX_ROOT_OFFSET_BU` from the actor root) runs in both the bin activator and `build_ragdoll`'s backstop; a rejected spec builds nothing and counts one refusal (guards `activation_refuses_a_seed_beyond_actor_reach`, `activation_refuses_a_non_finite_seed`). Ragdoll bodies carry evidence labels (`actor \u003Cid> bone \u003Cname>`) so recovery logs name the owner.\n- Activation removes every spec body's `RigidBodyData` recipe AND its `CollisionShape` even when no follower handles exist yet (restored corpse activated before its first sync), so no duplicate kinematic bodies feed the solver; both are parked on the skeleton root's `RetiredBodyRows` and `stand_up` restores exactly those (shape first), so authored flags, `havok_layer`, surface materials, friction, restitution and mass survive a get-up and row-less template bones stay row-less (#6326 5d6368aa0, #6134 a15ea5274; a shape left behind was a permanently incomplete `collect_newcomers` candidate that kept the #3477 newcomer-scan cache off while any corpse was resident; the component is unsaved by design — a load respawns the actor with fresh rows). Activation also stamps the placement root as `ActorColliderOwner` on every body that lacks one, since retiring the FO4 stand-in capsule removes the actor's only marked collider and a ray hit on a decoded bone otherwise could not be resolved to its actor — the corpse could not be targeted, looted, or stop occluding its own line of sight (#6255 817afa277). It frees the actor's keyframed stand-in capsule (`FallbackActorCollider` marker, found by `fallback_colliders_of`) unless that capsule is itself a body of a one-body template, and `stand_up` puts its recipe back (#6070 7c6e6c3e1, `activation_retires_the_stand_in_capsule_and_stand_up_restores_it`). Left in place, the capsule overlapped every limb and the solver threw the FO4 rig (`live_joints` 0 of 17). `spawn_skeleton_unit` must not install the stand-in template over a decoded one (`the_stand_in_ragdoll_template_never_replaces_a_decoded_one`). `remove_ragdoll` releases every body\u002Fcollider\u002Fjoint (`body_count`\u002F`awake_counts` before\u002Fafter are the observable).\n- Authored corpse pose (#5015, closed 2026-10-19 and split into #6065–#6070): a Starts-Dead actor's XRGD is parked at spawn as `AuthoredRagdollPose` and consumed by the death reconciliation, which writes it onto the skeleton just BEFORE `activate_ragdoll` seeds the bodies (so the seed validator sees the lying pose); an evicted corpse's root pose rides `ReferenceState.corpse_pose` (#6073 611769b16). The XRGD layout is an *empirical interpretation* (`ragdoll_pose.rs` module doc): Skyrim entry k = the skeleton's ragdoll body k, FO4 entries map to bodies by bone id on the human \u002F ghoul \u002F super mutant rigs (`RagdollTemplateBody::pose_bone_id`, which `template_from_imported` must carry — dropping it refused every FO4 pose live, fc2b32d9e) and, on the creature rigs that author bone id 0 on nearly every body, by the skeleton's depth-first body order (`entries_by_tree_order`, whose walk carries a visited set and the hierarchy budget and is allowlisted in the hand-rolled-walk guard because core's `collect_subtree` visits siblings in reverse; a3a36f1c7); both use parent-local NIF-frame rotations, `euler_zup_to_quat_yup_mode` 0, entry 0 = COM, and a trailing zero-rotation marker entry is set aside (2139ae20e). Each rig is admitted only after its own corpora pass the two checks (offset length within 3 %, Euler convention ranked first; `scripts\u002Fxrgd-skyrim-rigs.py`, `scripts\u002Fxrgd-fo4-rigs.py`): Skyrim humanoid (18b3d87a7), draugr, SkeletonS (19 bodies), skeever, deer\u002Felk, falmer (#6068\u002F#6069 dfbcf7e2c; 730 of 1,077 corpses); FO4 human + feral ghoul (e1bd40bcf), super mutant (28e1f413e) and the eight creature rigs above (1,035 of 1,053 corpses on a verified skeleton resolve); FO3\u002FFNV humanoid (`Bip01` body set, 17\u002F17 bones within 3 %, #6252 107cc1d79: 202 FNV and 310 FO3 dead-base corpses, 202 and 307 posed — the three 19-entry FO3 poses fail the count gate; pinned by the ignored `fnv_xrgd_…`\u002F`fo3_xrgd_corpse_poses_line_up_with_the_humanoid_ragdoll` over `fallout_xrgd_census`, #6463 16de258dd; the forearms and hands follow the elbow\u002Fwrist hinges' child pivot, and the root body is placed at the skeleton root's position in its parent frame, not at a zero local translation, because `Bip01 NonAccum`'s parent carries the 67.8-unit hip height — Skyrim\u002FFO4 agree with that form since their COM parents are at the origin). `parks_authored_pose` parks for a Starts-Dead placement OR a dead base record (translated per game at the record boundary: Oblivion's header bit, FO3\u002FFNV DATA health \u003C= 0) with no runtime `GameKind` term (#6490 a53173780); a pose on a live base is not parked, and whether a parked pose applies is `pose_skeleton`'s rig gate — Oblivion's humanoid rig (`OBLIVION_HUMANOID_RAGDOLL_BODIES`, spine-first, no `Bip01 Neck1`, `SideWeapon`) matches no verified set, so its 125 posed corpses park and are refused; creatures stay refused. A game check reappearing in `parks_authored_pose` is the regression. Any other rig or entry-count mismatch is refused (keeps the collapse) — admitting a rig without its census is the regression. A tilted FO4 reference (large X\u002FY rotation) still composes to a non-lying seed (see Known-open).\n- Writeback drives `GlobalTransform` from `body_pose` (not `Transform` — re-verified #4692); the Z-up→Y-up conversion happens upstream, not again here. FO4+ skeleton ragdolls decode (above); precombined `BhkSystemBinary` geometry stays opaque (`hknpCompressedMeshShapeData` layout), and `summarize_collision_authoring` must let the loader report \"authored but opaque\" rather than \"no collision\".\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_3.md`\n\n### Dim 4: Character Controller, Grounding & the NPC KCC (M42.10)\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fworld\u002Fqueries.rs` (`move_character`), `crates\u002Fphysics\u002Fsrc\u002Fcomponents.rs`, `byroredux\u002Fsrc\u002Fsystems\u002F{character,locomotion}.rs`\n**First step**: `git log --since=D -- byroredux\u002Fsrc\u002Fsystems\u002Fcharacter.rs byroredux\u002Fsrc\u002Fsystems\u002Flocomotion.rs crates\u002Fphysics\u002Fsrc\u002Fworld\u002F`\n**Guards**: `world\u002Fmod.rs::kcc_filter_groups_mask_actor_bone_colliders` (non-vacuous: the unmasked sweep must be blocked), `capsule_clearance_rejects_door_overlap_and_can_exclude_self`, `capsule_clearance_ignores_sensors_and_live_actor_bones`; `character.rs` tests for `integrate_vertical`\u002F`horizontal_motion`; `locomotion.rs::stuck_tests`. Physics-side contract only; NPC behaviour is `\u002Faudit-gameplay`.\n- **NPC step**: `step_toward_detailed` drives XZ through `PhysicsWorld::move_character` with `filter_groups: Some(actor_move_interaction_groups())`, which equals `ground_probe_groups()` (masks `ACTOR_BONE_GROUP` wholesale — so NPCs ghost through NPCs, and clutter blocks but is never shoved: no collision impulses, autostep refuses dynamic bodies; #4690). The step OWNS its vertical (#5539 2917ab372): a straight-down `cast_ray_down` measures the support gap (the capsule shape-cast misreads convex floors from inside the contact-offset band) and the request carries exactly `clamp(-(feet - support - offset), -step_height, +offset)`; `LOCOMOTION_NPC_SNAP_TO_GROUND` is **0** because rapier 0.36's snap fires on every horizontal move and its unchecked cast sank NPCs knee- to waist-deep into box\u002Fhull floors (guard `grounded_npc_does_not_sink_through_convex_floors_across_absolute_y`). That correction is also why the `dt = 0` boot tick is an ordinary slide: rapier 0.36's `move_shape` depenetrates whenever `|desired| \u003C 1e-5` and production never sends a zero request (`a_zero_dt_boot_step_matches_a_normal_first_step_for_embedded_npcs`, #5559; removing the correction is the regression). Movers that must notice an obstacle use `step_along_waypoints_detailed`'s `blocked` flag (#5452). The airborne fallback `cast_ray_down` is origin-lifted by `LOCOMOTION_GROUND_RAY_UP_OFFSET` (256) and clamped to `LOCOMOTION_MAX_DROP` (256 BU) so a ledge cannot teleport the actor under the shell; its `None` exclusion is correct only because the group mask covers the actor's ~18 bone bodies (a bone is a separate body, so a single `exclude_collider` can never cover them). Any new NPC cast without the mask self-hits. `forcegreet_system` (Update) and `eat_sleep_system` (PostUpdate) also step through `step_toward`; both write the step through `Transform` (a `GlobalTransform` write is erased by propagation, #5373) with `PhysicsWorld` held only for the step (#5371; both f0c683ef1).\n- The `LOCOMOTION_NPC_*` constants are DERIVED from their sources (#4689): KCC offset reads `ContactConfig::DEFAULT`, the step trio reads `CharacterController::HUMAN`, the capsule pair shares one const with `install_fallback_actor_collider`; pinned by `npc_locomotion_constants_match_their_sources` (which also restates the `> 2 * default_contact_skin_bu` invariant). Verify the derivation wasn't reverted to literals.\n- `capsule_overlaps_solid` tests the final placement (spawn ladder, doors) with `solid_probe_filter` (kinematic architecture in; dynamics, sensors, actor bones out); the query pipeline must be current.\n- Player: `kcc_offset_bu` applied and above the contact-skin pair; walkable-slope threshold is a named constant with rationale; grounding mechanism (collider present → cast hits → grounded) traced without re-filing the closed mass=0 case — `resolve_ground_contact`'s OR of the support probe into the KCC verdict is load-bearing while WALKING (parry 0.31's support cast returns a tilted GJK normal at the offset gap and the KCC alone answers `grounded = false` on ~80\u002F600 frames walking +X; pinned by `walking_capsule_loses_kcc_grounded_on_frames_the_support_probe_covers`, #5560 f89802955); the idle case is covered by the KCC's own explicit grounded check (738ab7391); and a downward request the KCC sweeps to no descent (`character.rs::fall_blocked`) consults the walkable probe once where the capsule stands, because the support probe otherwise runs only for a capsule grounded LAST frame and every teleport (save restore, door arrival) hands over an ungrounded one that hung at the restore pose with its fall velocity at the -2000 clamp (#5155 966579f57; a moving fall never qualifies). The player passes no actor-bone mask, so an idle player overlapped by an NPC limb or clutter is depenetrated while a walking one is not — recorded at the `move_character` call as an unreferenced gameplay choice (#5559); `integrate_vertical` terminal clamp after accumulation and `MAX_FRAME_DT` so a stalled frame cannot tunnel the floor; diagonal input normalised before the speed multiply; `player_accepts_movement_input` honours `PlayerControlState` and `ActorControlState.restrained` (UI focus is enforced upstream: `\u002Faudit-ui` Dim 6); `snap_character_body_to_camera` takes `&World` by documented design and `toggle_player_mode` is reachable only from console \u002F exclusive paths. Every player-body teleport (camera snap, transition arrival grounding, save restore — which first refuses a non-finite or out-of-world saved pose via `PhysicsWorld::translation_is_sane`, the bound `accept_keyframe_target` uses, #5530 d28545728 — `combat.approach`) goes through `systems::place_character_body` — Transform + GlobalTransform + `CharacterController::clear_momentum` + kinematic-body sync, each store in its own short lock scope (#5591 946310eb9; test `place_character_body_moves_both_transforms_and_clears_momentum`); a site that clears momentum or writes the body pose by hand is the regression. Over-encumbrance (`PlayerEncumbrance::movement()`) scales walk speed \u002F removes sprint in `character_controller_system` (M47.2). The player's `ActorValues` carry evaluated PlayerOnly rows (#4674), re-evaluated every frame by `refresh_player_only_bases` in `player_derived_stats_system` (#5039), `CharacterLevel`\u002F`Background` are stamped (#4678), and the HUD bars resolve AVIF editor ids through `PlayerVitals` reading the player only (#4675).\n- Third-person player body (`byroredux\u002Fsrc\u002Fplayer_body.rs`, a070baaad): the body is visual-only. `attach_player_body` strips `CollisionShape`\u002F`RigidBodyData` from its imported nodes before the first physics sync (guard `attach_reparents_offsets_retargets_and_strips_collision`), because player casts exclude one body handle, not a group. The `THIRD_PERSON_BOOM_BU` camera offset in `character.rs` is unswept (no camera-collision probe). `player_camera_boom` is its single source: `camera_follow_system` places the camera with it and `interaction::camera_ray` adds it back, so every player gameplay ray (activation, melee, studio host, view commands) starts at the eye (#5124, 69157c7cd); a caller casting from the raw camera pose is the regression.\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_4.md`\n\n### Dim 5: WATAL Physics Sink: Buoyancy, Damping, Current, Swim\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fwater.rs`, `crates\u002Fcore\u002Fsrc\u002Fecs\u002Fcomponents\u002Fwater.rs` (+ `water\u002Fsurface_grid.rs`, `water\u002Fbed_field.rs`), `byroredux\u002Fsrc\u002Fsystems\u002F{character,water}.rs`, `byroredux\u002Fsrc\u002Fcell_loader\u002Fwater.rs` (volume depth), `byroredux\u002Fsrc\u002Fcommands\u002Fwater.rs`, `byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Flate\u002F{water_hazards,scripted_combat}.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fwater.rs byroredux\u002Fsrc\u002Fsystems\u002Fwater.rs byroredux\u002Fsrc\u002Fsystems\u002Fcharacter.rs`\n**Guards**: `scheduler_access_tests.rs::water_and_animation_parallel_accesses_are_complete`; `character.rs::{swim_damping_is_frame_rate_independent, zero_dt_tick_while_submerged_does_not_refill_breath, swimming_drift_scales_the_plane_by_fraction_and_the_marker_at_full_strength, the_marker_reaches_the_swimmer_through_drift_not_the_column_state, a_marker_outside_every_plane_still_drifts_the_player, swimlevel_predicate_agrees_between_pose_and_depth_forms}`; `water.rs::placed_current_volume_is_collected_without_becoming_a_water_surface`.\n- `submerged_fraction` clamps to [0,1] and survives a zero-height AABB. Lift is proportional to submerged volume and opposes gravity in the renderer's Y-up frame (units BU). Lift is re-derived at the top of EVERY fixed substep: the scan registers each awake wet body's `WaterLift` and `PhysicsWorld::refresh_water_lift` recomputes it from the current AABB and velocity, adding only the change to rapier's persistent user force (a lift held over 5 substeps x the solver's internal steps was a limit cycle whose threshold scaled with render fps, #5547 c5bf46e59); thin floats additionally get a vertical heave damping (`heave_hold_damping`, ∝ 1\u002Fh, rescaled by rho*|g| over the measured reference stiffness and capped at `0.9\u002FPHYSICS_DT` for stability — #5618; the lift spring itself loses stability below ~0.08 BU). The per-body water latches (`rest_depth`, `water_force_targets`, the re-sleep settled set) are `FxHashMap`\u002F`FxHashSet`, not SipHash, and `rest_depth` entries carry a scan-generation stamp so the despawn sweep is one retain (#5709 5f01d1a7f; guards `water_scan_latches_are_not_siphash`, `a_despawned_sleeper_leaves_no_rest_depth_latch`). Dry-link damping (`apply_multibody_link_damping`) walks the multibody links, not the body arena, and owns forces only on bodies the water scan did NOT register: the current arm notes a marker-only-current body in `water_force_targets`, and the set is cleared at the top of the scan before its early returns, so a streamed-out plane cannot leave ex-wet links excluded (#5698\u002F#5699 a2af867d9); since it owns the force accumulator, the marker-only arm applies the link's authored damping itself when no surface arm did (#5934 b6577da90). A marker-only current's user force is released when the body leaves the marker, and also when the marker streams out and the scan takes its no-marker early return. Both exits go through `release_current_forces` over the `in_current_prev` latch; before that fix the last drag term stayed as a constant push (#5933 eab6b131f; `leaving_a_marker_only_current_releases_its_force`). A sleeping float re-wakes against the depth it SETTLED at (latched in `WaterContactScratch`, dropped on wake\u002Fexit\u002Fdespawn), not the per-scan delta (#5561). Jointed links take buoyancy drag as force\u002Ftorque (#5540).\n- Wake discipline: buoyancy never pins the static-scene fast path for *other* bodies; it wakes only on submersion change, and the `n_new > 0` escape (a body streaming in already submerged, spawned asleep) still exists. Since the swell landed (7dd294ee3) a float on wind-driven water rides the swell and does NOT sleep, so the invariant is \"awake dynamic count never exceeds the wet floats\" (the `w2-dynamic-water.sh` gate, rewritten that way), not \"reaches zero\"; calm planes still settle and sleep. `waves_require_contact_rescan` sizes each surface's reach as its ripple amplitude plus the swell crest at full shoaling gain (from the plane's kind-damped weather scroll), so a swell-only wind-driven plane keeps the rescan armed and a still plane quiesces (#6489 b76b674df; a float asleep on a calm swell otherwise stayed parked through a wind change).\n- Volume depth is the cell kind's, not the plane's size: `cell_loader\u002Fwater.rs::water_volume_depth(interior)` gives a 200 BU column for an interior and the exterior cell width otherwise, and both callers pass the flag explicitly. It was inferred from the plane's half-extent (`\u003C= 1024` = interior), so a large interior whose placement clamps to the exterior's 2048 got the 4096 BU column and swam ~20x deeper depending on where unrelated REFRs sat (#6135 dcad3669d). A depth keyed on plane size is the regression.\n- **Bed field, swell and river current (7dd294ee3, 8647c1128, 4427ce44f; WATAL, not a numbered issue)**: `cell_loader\u002Fwater.rs::bed_field_from_land` samples the LAND heightfield under a plane once into a `WaterBedField` (core `water\u002Fbed_field.rs`: signed surface-minus-bed depth on LAND's 33x33 lattice, bilinear `sample` -> depth + shoreward direction, clamped so the waterline is exact; `sample_baked` is the mesh's border rule, the direction scaling from 0 on the plane's border to full one lattice step in, #6420 94159d26e), bakes `sample_baked` into the mesh vertex colour behind the sentinel alpha `WATER_BED_VALID_ALPHA`, and attaches it to the plane entity; interior, LOD and placed-mesh water carry none and take the open-water path. Wind-driven (calm) planes carry a `WaterSwell` (`WATER_SWELL_*`: 1000 BU wavelength, dispersion-relation speed, wind-scaled height) that shoals over a rising bed, refracts toward the shore and is capped at `WATER_SWELL_BREAK_RATIO` of the depth; the CPU sampler is `authored_wave_height_over_bed` (`authored_wave_height_with_weather` is its no-bed form; it, the river-current sampler and the bake all read `sample_baked`) and `water.vert` evaluates the same law from `shader_constants` — a constant or formula edited on one side only is the #5582 drift again, and the shore-refraction shape parameters are named in core (`WATER_SHORE_RIPPLE_TURN_SHARE`, `WATER_SWELL_SHORE_TOWARD_RAMP`, `WATER_SHORE_MIN_UPHILL_LEN`) and exported to GLSL, so a retyped literal on either side fails the text pin (#6419 010bb4314); the share fades in with a smoothstep over the toward-shore ramp on both sides (4427ce44f; `a_swell_running_offshore_keeps_its_heading_and_never_collapses`). Rivers\u002FRapids run `WaterFlow::over_bed` (slower over the shallows, turned along the bank) for the current on dynamic bodies, evaluated at the collider-centre `reference_point` and published on `WaterContact` (guard `river_current_on_a_floating_body_follows_the_bed`). Every sampler passes the plane's bed: buoyancy, `player_water_state` and `submersion_system` do for the wave height, and the plane's CURRENT goes through the one `byroredux_physics::local_current(kind, flow, bed, x, z)` (a River\u002FRapids flow runs `over_bed`; every other kind, bed-less water and a point outside the bed keep the plane's flow) in both the dynamic path (force + `WaterContact.flow`) and `player_water_state` → `player_current_drift` (#6488 6390bfb90: the swimmer was pushed up to ~3x harder than the barrel beside them and in the authored heading) — a flow read off the plane without `local_current` is the two-samplers regression. `WaterBedField` is allowlisted as derived (re-baked at cell load, not saved) and the buoyancy \u002F camera \u002F player systems declare its read.\n- **Two target sources** (#3492): the `RapierHandles`+`RigidBodyData{Dynamic}` scan and the `Ragdoll` scan (`RagdollBuoyancy` caches first collider + effective damping at `build_ragdoll` because activation strips the bones' rows). Both feed the same targets\u002Fwrites pipeline and `clear_stale_water_contacts` has the matching `Ragdoll` arm, else a corpse leaving water keeps a latched `WaterContact`.\n- Current drag is bounded (clamp + named constant). One `reference_point` (collider AABB centre) feeds the union prefilter, current-volume containment and surface XZ containment; a revert to the raw body origin on any axis is the regression.\n- `WaterContact` emits one transition frame at zero so FX\u002Faudio consumers see the edge.\n- **Two samplers must agree**: the dynamic path (`apply_buoyancy_with_scratch`) and the kinematic player's `player_water_state` in `character.rs`. Every water input added to one (plane flow, placed `WaterCurrentVolume` marker, wave height, damage) must exist in the other (every CPU wave sampler takes `WaterKind::weather_scroll_for`, the one policy that damps the atmospheric scroll on flowing kinds, and buoyancy samples at the collider AABB centre — #5354 cff1f9c42; the wave tuning and scroll prep live once in core as `WATER_WAVE_*` \u002F `WaterMaterial::wave_scrolls`, which `water.vert`, the GPU upload and the CPU crest sampler all read — #5582 7cf2bd086; authored hazard damage is applied ONLY by Late `water_damage_system`, including to the swimming player, whose controller arm was a second 1x, #5548), and both COMPOSE plane + marker ADDITIVELY with the same per-source scale: plane drag × submerged fraction, marker at full strength (`frac = 1.0`). On the player the marker never enters `PlayerWaterState` (its `flow` and the published `WaterContact` carry the plane column's flow only, matching the dynamic path's `flow: s.flow`); `player_current_drift` adds it in both the swim and wade arms (#4691 fixed plane-wins `or_else`; #5357, dd3a506e9, fixed the swim arm scaling the folded sum by the fraction). Surface height for mesh water without a phantom is `WaterVolume::surface_y_at` over its `WaterSurfaceMesh` triangles (17c01a4e5; a stream can descend ~1800 BU); buoyancy, `player_water_state` and `submersion_system` must all sample it, never the flat `max.y`. The player sampler tolerates a missing `WaterCurrentVolume` storage (#4791).\n- `WaterContact` carries an optional `waterline` (AABB-centre XZ at the sampled surface height, waves included) written by the buoyancy phase; the splash\u002Fripple adapter places events on it, and a producer with no collider AABB (the player capsule) leaves it `None` and keeps origin + depth (#5562; not saved).\n- Swim\u002Fdrown (`swimlevel_reached`, `swim_vertical_velocity`, `advance_breath`, `apply_player_drowning_damage`) are in scope like any code: damping is dt-correct, zero-dt never credits breath. Water-hazard and drowning deaths reconcile in ONE place, `reconcile_pending_dead_actors_system` (`Stage::Late` exclusive, `byroredux\u002Fsrc\u002Fboot\u002Fschedule\u002Flate\u002Fscripted_combat.rs`, which names it `run_after` both death producers — `water_damage_system` and `scripted_kill_system`, #6702); a second inline teardown site is the regression (#3119).\n- Contact→event adapters in `byroredux\u002Fsrc\u002Fsystems\u002Fwater.rs` (`Stage::Late` exclusives, `late\u002Fwater_hazards.rs`, with `submersion_system` after `ragdoll_writeback_system` and `water_damage_system` after it as named `run_after` constraints: submersion → `water_damage_system` → death reconcile → `make_water_interaction_system` → water audio; every drowning death also raises the KILL story event, #5434): `submersion_system` reads the camera pose after `camera_follow_system` (guard `scheduler_access_tests.rs::submersion_runs_after_camera_follow_and_before_water_audio`); damage and splash\u002Fripple markers derive from `WaterContact` edges, keeping `crates\u002Fphysics` free of scripting\u002Fpresentation deps (#4183 closed: wave parameters are snapshotted before the water storage guards). `compute_underwater_frame` (tint) belongs to `\u002Faudit-renderer` \u002F `\u002Faudit-exterior`.\n- Seams reported once, here, with pointers: tri-state `XCLW` decode (`\u002Faudit-esm`), render half (`\u002Faudit-renderer` Dim 8).\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_5.md`\n\n### Dim 6: Queries, Diagnostics & Cost\n**Paths**: `crates\u002Fphysics\u002Fsrc\u002Fworld\u002F{queries,mod}.rs` (casts, census), `crates\u002Fphysics\u002Fsrc\u002Fsync.rs`, `byroredux\u002Fsrc\u002Fcommands\u002Fphysics.rs`\n**First step**: `git log --since=D -- crates\u002Fphysics\u002Fsrc\u002Fsync.rs byroredux\u002Fsrc\u002Fcommands\u002Fphysics.rs`\n**Guards**: `sync.rs::census_excluded_body_prevents_a_self_hit_on_the_players_own_capsule`, `census_reports_full_extent_and_scale_not_just_the_y_range`.\n- Every cast the controllers use excludes the caster (self-hit = permanently grounded on your own capsule): the player passes its body handle, actors use the group mask (Dim 4). A live census caller (`phys.census`) must pass `Some(player_body)`. `cast_ray_corridor` (#5160: a ball shape-cast on the same query surface as `cast_ray`, sensors excluded, used by the melee swing and the `combat.approach` LOS check in `commands\u002Fview.rs`) excludes one body only — a live actor's own keyframed bones are separate bodies and stay hittable (combat treats a self-root hit as a miss; `\u002Faudit-gameplay` Dim 4). Guard `corridor_cast_hits_a_bone_the_zero_width_ray_threads`. `PhysicsWorld::movable_body_blocks_line` (AIP-UW-003, 47207ecb0) answers whether a movable (dynamic) body is the first solid thing on a line, excluding the shooter and target bodies — walls, fixed props and kinematic bodies do not count — and shares the `update_query_pipeline` caller contract of the other probes (its one caller is `faction_hostility::movable_object_blocks_fire`, for the UseWeapon package). `cast_ray_corridor_where` is the same cast over a body predicate (both route through one `cast_ray_corridor_filtered`; a zero radius is the predicate-filtered ray, and a parentless collider stays eligible because there is no body for the predicate to reject — #5945 b4bff7784, `corridor_filter_keeps_parentless_colliders_and_zero_radius_is_a_ray`): `systems\u002Fprojectiles.rs` sweeps solid geometry with a thin ray at the projectile's radius and actors with the wider corridor, ignoring the launcher's own colliders (a corridor as wide as a bone box starts inside the wall a trap port is mounted in; f6a64fe20) — a projectile cast without the launcher exclusion is the regression.\n- `surface_material_under(..., excluded_body)` (the footstep surface probe, `world\u002Fqueries.rs`) takes the walker's body handle as a MANDATORY argument like `cast_ray_down`: the player capsule's centre is the footstep trigger, so an unexcluded solid ray hits it at toi 0 and every step reads material 0 (#5545 3909778eb; guard `surface_material_under_skips_the_walkers_own_capsule`). Its one live caller is `footstep_system` (`\u002Faudit-audio` Dim 5). `phys.stats` (`commands\u002Fphysics.rs`) labels every counter by scope: recovery events\u002Fbodies\u002Fparked, contact `pairs`\u002F`contacts`\u002F`constraints`, `multibody_joint_count`, and active-beside-live kinematic counts (#5563\u002F#5564).\n- The census (`dump_spawn_collider_census`, `phys.stats`\u002F`phys.census` via `byro-dbg`; each row and each nearby-collider query row also carries the collider's `shape` label — Ball \u002F Cuboid \u002F TriMesh \u002F Compound \u002F ConvexPolyhedron \u002F … via `shape_label`, cb403a202, so a zero-thickness trimesh reads differently from a box) distinguishes *no collider authored* from *dropped in translation* from *present but not walkable*, and reports full AABB extent + owning placement scale so a scale-drift collider is distinguishable.\n- `colliders_near_xz` allocates per call: check caller frequency (a per-frame call on a radius-12 exterior is a hot-path allocation; `\u002Faudit-performance` owns the fix).\n- Cost model (#4685\u002F#4682, re-stated for rapier 0.36): there is no separate query tree — queries borrow the broad phase's BVH, which `pipeline.step` maintains incrementally; a frame that steps nothing inserts only the queued leaves; the recovery snapshot reads a maintained dynamic-body index rather than the arena. The rapier-0.22-era 'budget from the rebuild' and 'snapshot walks the arena' attributions are both historical. `step_cost_rationale_is_scoped_to_history_and_names_the_real_cost_centre` pins the in-code comment; re-measure with real TriMesh-heavy content before citing a number.\n**Output**: `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_6.md`\n\n## Phase 3: Merge\n\nCombine `\u002Ftmp\u002Faudit\u002Fphysics\u002Fdim_*.md` into `docs\u002Faudits\u002FAUDIT_PHYSICS_\u003CTODAY>.md` (header per `_audit-common.md` Report finalization): Executive Summary (findings by severity; PHYSAL verdict = are the three named seams the only per-game branches; which games' collision data was traced), **Solver Invariant Matrix** (fixed step \u002F wake \u002F lock order \u002F phase order \u002F explosion recovery \u002F teardown, each verified or drifted), Findings (deduplicated), **Known-Open Register** (what this pass changed). Then `rm -rf \u002Ftmp\u002Faudit\u002Fphysics`; suggest `\u002Faudit-publish docs\u002Faudits\u002FAUDIT_PHYSICS_\u003CTODAY>.md` (labels `physics`, plus `water` for buoyancy-sink findings and `game:*` when Havok-data-specific).\n",{"description":7,"argument-hint":42},"--focus \u003Cdimensions> --game \u003Cname> --depth shallow|deep","main","6afdb791976ed2c24a6c7e61fcbe0cd1f8776061",".claude\u002Fcommands\u002Faudit-physics",6,"https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli","matiaszanolli.com","15+ years turning mate into code, and just getting started! All things Python and data lover overall. Music addict, always looking to unite music and tech.","2026-11-15 04:03:52",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add matiaszanolli\u002FByroRedux --skill audit-physics",{"tool":58,"command":59},"bunx","bunx skills add matiaszanolli\u002FByroRedux --skill audit-physics",{"tool":61,"command":62},"pnpm","pnpm dlx skills add matiaszanolli\u002FByroRedux --skill audit-physics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.claude\u002Fcommands\u002Faudit-physics\u002FSKILL.md",true,[],[67,76,85,94,103,111],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":37},"01M6K028GPYDYZ5441BW6YDFNK","trace-flow","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Ftrace-flow\u002FSKILL.md",[],[73,74,75],"trace flow","trace","flow",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":37},"01M6K026GTTXBBXXCH09SDRNX6","session-close","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Fsession-close\u002FSKILL.md",[],[82,83,84],"close","session close","session",{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":37},"01M6K024KA1JFTV7BGYFSZV2VV","legacy-lookup","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Flegacy-lookup\u002FSKILL.md",[],[91,92,93],"lookup","legacy lookup","Legacy",{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":37},"01M6K022H36BJ35KB6MT2NHVH6","fix-issue","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Ffix-issue\u002FSKILL.md",[],[100,101,102],"issue","fix","fix issue",{"skillNo":104,"name":105,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":37},"01M6K0208JHG4WDJX143YKFF0W","audit-ui","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Faudit-ui\u002FSKILL.md",[],[109,110,19],"audit ui","ui",{"skillNo":112,"name":113,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":37},"01M6K01XPHAPHF9BPS4CG5DDWX","audit-tooling","https:\u002F\u002Fgithub.com\u002Fmatiaszanolli\u002FByroRedux\u002Fblob\u002Fmain\u002F.zcode\u002Fcommands\u002Faudit-tooling\u002FSKILL.md",[],[19,117,118],"audit tooling","tooling"]