import { type ArmsMeasure, type HoleMeasure, type PreviewPose, type PreviewRest, type SilhouetteMeasure, type PostureMeasure } from '../../visualQa/avatarPreviewMath'; import type { VisualQaAssert } from '../../visualQa/types'; import type { MotionId } from './types'; export interface MotionLimit { /** Forearm/hand surface more than armDepthM inside the torso/hips, mean share over the cycle. */ armsInsideShareMax: number; /** Widest a rest-touching hole opens (m). */ holeOpenMaxM: number; /** Hair / cloth standing off the torso outline (m at 1.70 m). */ silhouetteMaxM: number; /** Head and torso lean mid-range vs the control's, same clip (deg). */ neckLeanDeltaMaxDeg: number; torsoLeanDeltaMaxDeg: number; /** Which of the measures block (the others are reported as warnings). */ block: { arms: boolean; holes: boolean; silhouette: boolean; posture: boolean; skin: boolean; }; } /** * Calibrated 2026-10-07 on the gate eval set (docs/character-check.md has the full table): Base Female, Base Male, 13 published * avatars and Cream Hoodie 1.0.8 (good), Cream Hoodie 1.0.6 and the Base Male fixtures (bad), all through the engine's own run and * idle. A measure BLOCKS only where the good set and the broken set are separated with a margin; elsewhere it is reported. * * run arms_clear good max 0.041 (peak 0.121), bad min 0.119 (arms-low, hoodie 1.0.6) -> block at 0.08 * surface_closed good max 4.0 cm (Iron Man), bad 48.6 cm (hoodie 1.0.6) -> block at 10 cm * silhouette good max 27.4 cm (Kemonomimi cape), bad 70.1 (slab fixture) -> block at 35 cm (gross outliers) * posture good -51.3 deg (Brass) .. +11.4, bad +42.3 (head-forward) -> NOT separable: report * skin_intact good max 0.007 / edge 0.002, bad 0.053 (collapse) / 0.037 (weights) -> the gate's own limits, block * idle arms_clear good max 0.142 (Pastel, arms bound at 20 deg), bad min 0.165 -> NOT separable: report at 0.15 * surface_closed good max 2.4 cm, bad 30.3 cm (hoodie 1.0.6) -> block at 10 cm * silhouette good max 20.9 cm, bad 82.7 (slab fixture) -> block at 35 cm * posture good -11.6 .. +11.6 deg, bad +42.5 (head-forward) -> the gate's 25 / 15 deg, block */ export declare const MOTION_LIMITS: Record<'run' | 'idle', MotionLimit>; export interface MotionMeasures { motion: MotionId; arms: ArmsMeasure | null; holes: HoleMeasure | null; silhouette: SilhouetteMeasure | null; posture: PostureMeasure | null; skinCollapsedStretched: number | null; skinEdgeStretched: number | null; maxTwistDeg: Record | null; } /** Posture of the posed skeleton through one cycle: neck and torso lean ranges (the walk's own measure). */ export declare function posture(rest: PreviewRest, poses: PreviewPose[]): PostureMeasure; export declare function measureMotion(motion: MotionId, rest: PreviewRest, poses: PreviewPose[]): MotionMeasures; /** * The run/idle asserts. `control` is the Base Female's measures on the SAME clip (for the relative posture limit); null = no * control read, which leaves posture not measured. */ export declare function judgeMotion(motion: 'run' | 'idle', m: MotionMeasures, control: MotionMeasures | null): VisualQaAssert[];