# Reference-rig keyframe performances

The reference presets generate nine named clips on the exact RobotExpressive and Fox rigs.
The source GLBs remain byte-identical. Physics still owns actor translation and collisions.
These keyframes provide the missing actions for the diagnostic example.
They do not establish human motion approval, pet realism or measured paw contact.

## Action bindings

| Rig | Action | Clip | Duration | Source |
| --- | --- | --- | --- | --- |
| Robot | jump | Jump, takeoff phase | about 0.180 s | Contact-node kinematics of the existing source Jump |
| Robot | fall | Gamespork Fall | 0.600 s, looping | Authored airborne tuck on the Idle pose |
| Robot | land | Gamespork Land | 0.400 s | Authored compression and recovery; timing derived from source Jump |
| Robot | crouchIdle | Gamespork CrouchIdle | Source Idle duration | Idle motion with a 0.20 m body drop and planted feet |
| Robot | crouchWalk | Gamespork CrouchWalk | Source Walking duration | Walking motion with a 0.15 m body drop and 60% swing-foot lift |
| Fox | jump | Gamespork Jump | 0.320 s | Anticipation crouch followed by launch |
| Fox | fall | Gamespork Fall | 0.500 s, looping | Authored airborne stretch on the Survey pose |
| Fox | land | Gamespork Land | 0.360 s | Front-first touchdown, compression and recovery |
| Fox | crouchIdle | Gamespork CrouchIdle | Source Survey duration | Survey motion with a 0.07 m hip drop and planted paws |
| Fox | crouchWalk | Gamespork CrouchWalk | Source Walk duration | Walk motion with a 0.06 m hip drop and retained paw paths |

`generateAuthoredClips(asset, id)` accepts only the registered asset SHA-256.
It caches each result per asset. Every output contains explicit LINEAR translation and quaternion tracks.
Quaternion keys use unit length and the shorter interpolation arc.
The authoring solver preserves limb lengths and checks reach before baking each key.
Derived clips use the union of source keyframe times and preserve untouched channels, including morphs.

`set.actions[state]` exposes the clip name, provenance, interval, duration, looping policy, rate and transitions.
Its `events` list names actual player events: `transition`, `loop` and `complete`.
Pause and resume use `setPaused(true)` and `setPaused(false)`.
`reset()` clears actions and restores the rig rest pose. `dispose()` rejects later mutations.
The read-only diagnostic snapshot exposes these contracts as `motion[mode].actionContracts`.

Jump chains into looping fall. A real controller landing event starts land.
Land resumes the last grounded loop, unless a newer state request takes precedence.
Fall does not overwrite that return state. Crossfades use the existing bounded player.

## Source Jump phase measurement

The robot's Jump contract samples both authored foot-node heights at 240 intervals.
It selects the longest shared lift interval above 8% of each foot's height range.
On the pinned file, takeoff is approximately 0.180 s and landing is approximately 0.478 s.
`segmentContract.phases` records takeoff, airborne and landing intervals in source seconds.
This is a kinematic estimate from the clip, not a contact measurement or a general jump classifier.
The contract keeps `measured: false` and names its method `authored-clip-kinematics`.

`source-clip`, `source-clip-measured-phase` and `hand-authored-keyframes` identify supplied performances.
Arbitrary segment reuse stays `source-clip-segment`; declared stand-ins stay `stand-in`.
Both reuse cases remain `authored: false`. These flags describe clip supply, not production acceptance.

## Credits and limits

Gamespork authored the added poses and transformations. Original modifications are CC0 1.0.
RobotExpressive and its source motion retain their existing [CC0 credits](../../../../apps/web/public/game-assets/outpost-v1/CREDITS.md).
Fox adaptations retain [CC BY 4.0 and the original attribution](assets/fox/CREDITS.md).
The combined Fox clips are labelled `CC-BY-4.0`; the modification licence does not replace those rights.

No captured motion, force measurement, horizontal foot locking or anatomical sole registration is supplied.
The upright quadruped capsule and existing ground-IK limits remain.
Review the new clips at normal speed before accepting motion quality.
The Shiba, Studio and sound integrations belong to separate work.

## Verify

Run `node --test apps/web/tests/systems-motion.test.mjs` from the repository root.
The suite compares generated joint and morph samples against Three.js AnimationMixer.
It checks contact paths, bone lengths, cyclic fall, landing recovery, transitions and lifecycle.
Node comparisons explicitly omit texture decoding. Native Chrome loads the original Fox texture.
See [the evidence bundle](evidence/reference-performances/README.md) for native captures and exact commands.
