[System] You are Pozify's grounded coach-summary model. Use only the provided structured evidence and knowledge cards. Return coach_summary.json as JSON only.

[User]
{
  "user_profile": {
    "goal": "beginner_practice",
    "experience_level": "beginner",
    "intended_exercise": "auto",
    "intended_variation": null,
    "known_limitations": [],
    "equipment": "bodyweight"
  },
  "exercise_classification": {
    "exercise": "squat",
    "confidence": 0.92,
    "fallback_required": false
  },
  "variation": {
    "exercise": "squat",
    "detected_variation": "wide_squat_stance",
    "variation_confidence": 0.95,
    "not_issues": [
      "low_rom_requires_user_intent_check",
      "wide_stance"
    ]
  },
  "rep_summary": {
    "rep_count": 15,
    "aggregate_metrics": {
      "avg_rom_score": 0.57,
      "avg_stability_score": 0.68,
      "avg_symmetry_score": 0.56,
      "avg_rep_duration_sec": 2.2,
      "avg_tempo_consistency_score": 0.9453,
      "avg_landmark_confidence": 0.9173,
      "fatigue_trend_rom_delta": -0.1,
      "pose_valid_ratio": 1.0,
      "avg_stance_width_ratio": 1.3752,
      "avg_bottom_pause_sec": 0.278
    },
    "rep_metrics": [
      {
        "rep_id": 1,
        "duration_sec": 1.77,
        "range_of_motion_score": 0.59,
        "stability_score": 0.64,
        "symmetry_score": 0.46,
        "metrics": {
          "rep_duration_sec": 1.77,
          "eccentric_duration_sec": 1.2,
          "concentric_duration_sec": 0.57,
          "tempo_ratio": 2.11,
          "top_pause_sec": 0.6,
          "bottom_pause_sec": 0.27,
          "smoothness_score": 0.99,
          "jerk_score": 0.0018,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0094,
          "min_knee_angle_deg": 115.91,
          "max_knee_angle_deg": 177.98,
          "min_hip_angle_deg": 98.12,
          "max_hip_angle_deg": 153.15,
          "hip_depth_delta": -0.0548,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.14,
          "knee_valgus_proxy": 0.1648,
          "knee_tracking_score": 0.84,
          "stance_width_ratio": 1.44,
          "hip_shift": 0.0094,
          "bottom_stability_score": 0.64,
          "tempo_consistency_score": 0.8
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 2,
        "duration_sec": 2.13,
        "range_of_motion_score": 0.49,
        "stability_score": 0.64,
        "symmetry_score": 0.51,
        "metrics": {
          "rep_duration_sec": 2.13,
          "eccentric_duration_sec": 1.53,
          "concentric_duration_sec": 0.6,
          "tempo_ratio": 2.55,
          "top_pause_sec": 0.93,
          "bottom_pause_sec": 0.27,
          "smoothness_score": 0.99,
          "jerk_score": 0.0017,
          "landmark_confidence": 0.91,
          "hip_lateral_drift": 0.0082,
          "min_knee_angle_deg": 122.92,
          "max_knee_angle_deg": 174.7,
          "min_hip_angle_deg": 103.24,
          "max_hip_angle_deg": 155.66,
          "hip_depth_delta": -0.0581,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.67,
          "knee_valgus_proxy": 0.1742,
          "knee_tracking_score": 0.83,
          "stance_width_ratio": 1.38,
          "hip_shift": 0.0082,
          "bottom_stability_score": 0.64,
          "tempo_consistency_score": 0.97
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 3,
        "duration_sec": 2.27,
        "range_of_motion_score": 0.64,
        "stability_score": 0.62,
        "symmetry_score": 0.54,
        "metrics": {
          "rep_duration_sec": 2.27,
          "eccentric_duration_sec": 1.5,
          "concentric_duration_sec": 0.77,
          "tempo_ratio": 1.95,
          "top_pause_sec": 0.9,
          "bottom_pause_sec": 0.27,
          "smoothness_score": 0.99,
          "jerk_score": 0.0017,
          "landmark_confidence": 0.91,
          "hip_lateral_drift": 0.0074,
          "min_knee_angle_deg": 108.84,
          "max_knee_angle_deg": 177.76,
          "min_hip_angle_deg": 88.95,
          "max_hip_angle_deg": 155.15,
          "hip_depth_delta": -0.0444,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.23,
          "knee_valgus_proxy": 0.1405,
          "knee_tracking_score": 0.86,
          "stance_width_ratio": 1.323,
          "hip_shift": 0.0074,
          "bottom_stability_score": 0.62,
          "tempo_consistency_score": 0.97
        },
        "variation_hints": []
      },
      {
        "rep_id": 4,
        "duration_sec": 2.27,
        "range_of_motion_score": 0.64,
        "stability_score": 0.61,
        "symmetry_score": 0.54,
        "metrics": {
          "rep_duration_sec": 2.27,
          "eccentric_duration_sec": 1.43,
          "concentric_duration_sec": 0.83,
          "tempo_ratio": 1.72,
          "top_pause_sec": 0.4,
          "bottom_pause_sec": 0.2,
          "smoothness_score": 0.98,
          "jerk_score": 0.0019,
          "landmark_confidence": 0.91,
          "hip_lateral_drift": 0.0086,
          "min_knee_angle_deg": 107.57,
          "max_knee_angle_deg": 177.36,
          "min_hip_angle_deg": 87.97,
          "max_hip_angle_deg": 156.16,
          "hip_depth_delta": -0.0457,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.72,
          "knee_valgus_proxy": 0.1715,
          "knee_tracking_score": 0.83,
          "stance_width_ratio": 1.357,
          "hip_shift": 0.0086,
          "bottom_stability_score": 0.61,
          "tempo_consistency_score": 0.97
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 5,
        "duration_sec": 2.03,
        "range_of_motion_score": 0.59,
        "stability_score": 0.68,
        "symmetry_score": 0.51,
        "metrics": {
          "rep_duration_sec": 2.03,
          "eccentric_duration_sec": 1.3,
          "concentric_duration_sec": 0.73,
          "tempo_ratio": 1.78,
          "top_pause_sec": 0.77,
          "bottom_pause_sec": 0.2,
          "smoothness_score": 0.99,
          "jerk_score": 0.0017,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0119,
          "min_knee_angle_deg": 115.92,
          "max_knee_angle_deg": 177.36,
          "min_hip_angle_deg": 92.92,
          "max_hip_angle_deg": 151.75,
          "hip_depth_delta": -0.0527,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.88,
          "knee_valgus_proxy": 0.1751,
          "knee_tracking_score": 0.82,
          "stance_width_ratio": 1.412,
          "hip_shift": 0.0119,
          "bottom_stability_score": 0.68,
          "tempo_consistency_score": 0.92
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 6,
        "duration_sec": 2.23,
        "range_of_motion_score": 0.57,
        "stability_score": 0.67,
        "symmetry_score": 0.52,
        "metrics": {
          "rep_duration_sec": 2.23,
          "eccentric_duration_sec": 1.5,
          "concentric_duration_sec": 0.73,
          "tempo_ratio": 2.05,
          "top_pause_sec": 0.97,
          "bottom_pause_sec": 0.23,
          "smoothness_score": 0.98,
          "jerk_score": 0.002,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.007,
          "min_knee_angle_deg": 121.18,
          "max_knee_angle_deg": 178.76,
          "min_hip_angle_deg": 96.18,
          "max_hip_angle_deg": 155.38,
          "hip_depth_delta": -0.0495,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.53,
          "knee_valgus_proxy": 0.1945,
          "knee_tracking_score": 0.81,
          "stance_width_ratio": 1.388,
          "hip_shift": 0.007,
          "bottom_stability_score": 0.67,
          "tempo_consistency_score": 0.99
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 7,
        "duration_sec": 2.3,
        "range_of_motion_score": 0.57,
        "stability_score": 0.66,
        "symmetry_score": 0.49,
        "metrics": {
          "rep_duration_sec": 2.3,
          "eccentric_duration_sec": 1.5,
          "concentric_duration_sec": 0.8,
          "tempo_ratio": 1.88,
          "top_pause_sec": 0.47,
          "bottom_pause_sec": 0.27,
          "smoothness_score": 0.99,
          "jerk_score": 0.0016,
          "landmark_confidence": 0.93,
          "hip_lateral_drift": 0.0081,
          "min_knee_angle_deg": 119.09,
          "max_knee_angle_deg": 177.01,
          "min_hip_angle_deg": 94.4,
          "max_hip_angle_deg": 154.05,
          "hip_depth_delta": -0.0485,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 17.32,
          "knee_valgus_proxy": 0.1665,
          "knee_tracking_score": 0.83,
          "stance_width_ratio": 1.37,
          "hip_shift": 0.0081,
          "bottom_stability_score": 0.66,
          "tempo_consistency_score": 0.96
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 8,
        "duration_sec": 2.23,
        "range_of_motion_score": 0.51,
        "stability_score": 0.66,
        "symmetry_score": 0.48,
        "metrics": {
          "rep_duration_sec": 2.23,
          "eccentric_duration_sec": 1.47,
          "concentric_duration_sec": 0.77,
          "tempo_ratio": 1.91,
          "top_pause_sec": 0.9,
          "bottom_pause_sec": 0.37,
          "smoothness_score": 0.99,
          "jerk_score": 0.0016,
          "landmark_confidence": 0.93,
          "hip_lateral_drift": 0.0078,
          "min_knee_angle_deg": 120.94,
          "max_knee_angle_deg": 176.79,
          "min_hip_angle_deg": 100.11,
          "max_hip_angle_deg": 155.16,
          "hip_depth_delta": -0.0659,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.1,
          "knee_valgus_proxy": 0.1679,
          "knee_tracking_score": 0.83,
          "stance_width_ratio": 1.36,
          "hip_shift": 0.0078,
          "bottom_stability_score": 0.66,
          "tempo_consistency_score": 0.99
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 9,
        "duration_sec": 2.6,
        "range_of_motion_score": 0.57,
        "stability_score": 0.71,
        "symmetry_score": 0.54,
        "metrics": {
          "rep_duration_sec": 2.6,
          "eccentric_duration_sec": 1.63,
          "concentric_duration_sec": 0.97,
          "tempo_ratio": 1.68,
          "top_pause_sec": 1.0,
          "bottom_pause_sec": 0.33,
          "smoothness_score": 0.99,
          "jerk_score": 0.0014,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0069,
          "min_knee_angle_deg": 113.47,
          "max_knee_angle_deg": 176.36,
          "min_hip_angle_deg": 99.22,
          "max_hip_angle_deg": 155.04,
          "hip_depth_delta": -0.0645,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 17.7,
          "knee_valgus_proxy": 0.1556,
          "knee_tracking_score": 0.84,
          "stance_width_ratio": 1.338,
          "hip_shift": 0.0069,
          "bottom_stability_score": 0.71,
          "tempo_consistency_score": 0.82
        },
        "variation_hints": []
      },
      {
        "rep_id": 10,
        "duration_sec": 2.23,
        "range_of_motion_score": 0.45,
        "stability_score": 0.74,
        "symmetry_score": 0.61,
        "metrics": {
          "rep_duration_sec": 2.23,
          "eccentric_duration_sec": 1.43,
          "concentric_duration_sec": 0.8,
          "tempo_ratio": 1.79,
          "top_pause_sec": 0.87,
          "bottom_pause_sec": 0.23,
          "smoothness_score": 0.99,
          "jerk_score": 0.0014,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0134,
          "min_knee_angle_deg": 127.14,
          "max_knee_angle_deg": 178.05,
          "min_hip_angle_deg": 102.47,
          "max_hip_angle_deg": 154.25,
          "hip_depth_delta": -0.0718,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 19.11,
          "knee_valgus_proxy": 0.1995,
          "knee_tracking_score": 0.8,
          "stance_width_ratio": 1.372,
          "hip_shift": 0.0134,
          "bottom_stability_score": 0.74,
          "tempo_consistency_score": 0.99
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 11,
        "duration_sec": 2.1,
        "range_of_motion_score": 0.6,
        "stability_score": 0.72,
        "symmetry_score": 0.7,
        "metrics": {
          "rep_duration_sec": 2.1,
          "eccentric_duration_sec": 1.4,
          "concentric_duration_sec": 0.7,
          "tempo_ratio": 2.0,
          "top_pause_sec": 0.63,
          "bottom_pause_sec": 0.37,
          "smoothness_score": 0.99,
          "jerk_score": 0.0016,
          "landmark_confidence": 0.93,
          "hip_lateral_drift": 0.0073,
          "min_knee_angle_deg": 117.08,
          "max_knee_angle_deg": 179.14,
          "min_hip_angle_deg": 92.36,
          "max_hip_angle_deg": 155.39,
          "hip_depth_delta": -0.0494,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.13,
          "knee_valgus_proxy": 0.2167,
          "knee_tracking_score": 0.78,
          "stance_width_ratio": 1.403,
          "hip_shift": 0.0073,
          "bottom_stability_score": 0.72,
          "tempo_consistency_score": 0.95
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 12,
        "duration_sec": 2.33,
        "range_of_motion_score": 0.61,
        "stability_score": 0.68,
        "symmetry_score": 0.63,
        "metrics": {
          "rep_duration_sec": 2.33,
          "eccentric_duration_sec": 1.63,
          "concentric_duration_sec": 0.7,
          "tempo_ratio": 2.33,
          "top_pause_sec": 0.53,
          "bottom_pause_sec": 0.3,
          "smoothness_score": 0.99,
          "jerk_score": 0.0014,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0074,
          "min_knee_angle_deg": 113.08,
          "max_knee_angle_deg": 178.58,
          "min_hip_angle_deg": 94.09,
          "max_hip_angle_deg": 152.83,
          "hip_depth_delta": -0.0549,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.38,
          "knee_valgus_proxy": 0.1825,
          "knee_tracking_score": 0.82,
          "stance_width_ratio": 1.352,
          "hip_shift": 0.0074,
          "bottom_stability_score": 0.68,
          "tempo_consistency_score": 0.94
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 13,
        "duration_sec": 2.1,
        "range_of_motion_score": 0.63,
        "stability_score": 0.7,
        "symmetry_score": 0.64,
        "metrics": {
          "rep_duration_sec": 2.1,
          "eccentric_duration_sec": 1.53,
          "concentric_duration_sec": 0.57,
          "tempo_ratio": 2.68,
          "top_pause_sec": 0.63,
          "bottom_pause_sec": 0.33,
          "smoothness_score": 0.99,
          "jerk_score": 0.0018,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0051,
          "min_knee_angle_deg": 107.03,
          "max_knee_angle_deg": 178.0,
          "min_hip_angle_deg": 88.29,
          "max_hip_angle_deg": 156.04,
          "hip_depth_delta": -0.0495,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 17.68,
          "knee_valgus_proxy": 0.1974,
          "knee_tracking_score": 0.8,
          "stance_width_ratio": 1.35,
          "hip_shift": 0.0051,
          "bottom_stability_score": 0.7,
          "tempo_consistency_score": 0.95
        },
        "variation_hints": []
      },
      {
        "rep_id": 14,
        "duration_sec": 2.27,
        "range_of_motion_score": 0.6,
        "stability_score": 0.69,
        "symmetry_score": 0.68,
        "metrics": {
          "rep_duration_sec": 2.27,
          "eccentric_duration_sec": 1.57,
          "concentric_duration_sec": 0.7,
          "tempo_ratio": 2.24,
          "top_pause_sec": 0.73,
          "bottom_pause_sec": 0.23,
          "smoothness_score": 0.99,
          "jerk_score": 0.0018,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0047,
          "min_knee_angle_deg": 115.32,
          "max_knee_angle_deg": 178.25,
          "min_hip_angle_deg": 91.41,
          "max_hip_angle_deg": 152.66,
          "hip_depth_delta": -0.0526,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 17.91,
          "knee_valgus_proxy": 0.1918,
          "knee_tracking_score": 0.81,
          "stance_width_ratio": 1.364,
          "hip_shift": 0.0047,
          "bottom_stability_score": 0.69,
          "tempo_consistency_score": 0.97
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 15,
        "duration_sec": 2.17,
        "range_of_motion_score": 0.49,
        "stability_score": 0.73,
        "symmetry_score": 0.61,
        "metrics": {
          "rep_duration_sec": 2.17,
          "eccentric_duration_sec": 1.53,
          "concentric_duration_sec": 0.63,
          "tempo_ratio": 2.43,
          "top_pause_sec": 0.8,
          "bottom_pause_sec": 0.3,
          "smoothness_score": 0.99,
          "jerk_score": 0.0015,
          "landmark_confidence": 0.88,
          "hip_lateral_drift": 0.0057,
          "min_knee_angle_deg": 122.57,
          "max_knee_angle_deg": 176.95,
          "min_hip_angle_deg": 102.68,
          "max_hip_angle_deg": 152.65,
          "hip_depth_delta": -0.0673,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.49,
          "knee_valgus_proxy": 0.21,
          "knee_tracking_score": 0.79,
          "stance_width_ratio": 1.419,
          "hip_shift": 0.0057,
          "bottom_stability_score": 0.73,
          "tempo_consistency_score": 0.99
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      }
    ]
  },
  "issue_summary": {
    "issue_counts": {
      "shallow_depth": 22
    },
    "issues": [
      {
        "rep_id": 1,
        "issue": "shallow_depth",
        "severity": 0.56,
        "start_frame": 31,
        "end_frame": 45,
        "start_sec": 1.033,
        "end_sec": 1.5,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.065,
          "threshold": -0.03,
          "confidence": 0.53,
          "peak_frame": 31,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0475,
          "supporting_frames": 15,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 2,
        "issue": "shallow_depth",
        "severity": 0.67,
        "start_frame": 95,
        "end_frame": 109,
        "start_sec": 3.167,
        "end_sec": 3.633,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0634,
          "threshold": -0.03,
          "confidence": 0.56,
          "peak_frame": 95,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0526,
          "supporting_frames": 15,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 3,
        "issue": "shallow_depth",
        "severity": 0.45,
        "start_frame": 168,
        "end_frame": 174,
        "start_sec": 5.6,
        "end_sec": 5.8,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0656,
          "threshold": -0.03,
          "confidence": 0.5,
          "peak_frame": 174,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0444,
          "supporting_frames": 7
        }
      },
      {
        "rep_id": 4,
        "issue": "shallow_depth",
        "severity": 0.51,
        "start_frame": 225,
        "end_frame": 229,
        "start_sec": 7.5,
        "end_sec": 7.633,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0623,
          "threshold": -0.03,
          "confidence": 0.51,
          "peak_frame": 225,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0459,
          "supporting_frames": 5,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 4,
        "issue": "shallow_depth",
        "severity": 0.55,
        "start_frame": 237,
        "end_frame": 241,
        "start_sec": 7.9,
        "end_sec": 8.033,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0741,
          "threshold": -0.03,
          "confidence": 0.51,
          "peak_frame": 241,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0493,
          "supporting_frames": 5,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 5,
        "issue": "shallow_depth",
        "severity": 0.58,
        "start_frame": 289,
        "end_frame": 294,
        "start_sec": 9.633,
        "end_sec": 9.8,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0711,
          "threshold": -0.03,
          "confidence": 0.58,
          "peak_frame": 289,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0494,
          "supporting_frames": 6,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 5,
        "issue": "shallow_depth",
        "severity": 0.58,
        "start_frame": 299,
        "end_frame": 304,
        "start_sec": 9.967,
        "end_sec": 10.133,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0616,
          "threshold": -0.03,
          "confidence": 0.58,
          "peak_frame": 303,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0496,
          "supporting_frames": 6,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 6,
        "issue": "shallow_depth",
        "severity": 0.39,
        "start_frame": 356,
        "end_frame": 371,
        "start_sec": 11.867,
        "end_sec": 12.367,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0656,
          "threshold": -0.03,
          "confidence": 0.52,
          "peak_frame": 371,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0421,
          "supporting_frames": 16,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 7,
        "issue": "shallow_depth",
        "severity": 0.31,
        "start_frame": 422,
        "end_frame": 427,
        "start_sec": 14.067,
        "end_sec": 14.233,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.055,
          "threshold": -0.03,
          "confidence": 0.5,
          "peak_frame": 422,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0394,
          "supporting_frames": 6,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 7,
        "issue": "shallow_depth",
        "severity": 0.4,
        "start_frame": 433,
        "end_frame": 439,
        "start_sec": 14.433,
        "end_sec": 14.633,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0641,
          "threshold": -0.03,
          "confidence": 0.52,
          "peak_frame": 439,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0425,
          "supporting_frames": 7,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 8,
        "issue": "shallow_depth",
        "severity": 0.68,
        "start_frame": 490,
        "end_frame": 508,
        "start_sec": 16.333,
        "end_sec": 16.933,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0735,
          "threshold": -0.03,
          "confidence": 0.58,
          "peak_frame": 490,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0549,
          "supporting_frames": 19,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 9,
        "issue": "shallow_depth",
        "severity": 0.46,
        "start_frame": 560,
        "end_frame": 577,
        "start_sec": 18.667,
        "end_sec": 19.233,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0618,
          "threshold": -0.03,
          "confidence": 0.58,
          "peak_frame": 576,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0445,
          "supporting_frames": 18
        }
      },
      {
        "rep_id": 10,
        "issue": "shallow_depth",
        "severity": 0.8,
        "start_frame": 633,
        "end_frame": 648,
        "start_sec": 21.1,
        "end_sec": 21.6,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.094,
          "threshold": -0.03,
          "confidence": 0.68,
          "peak_frame": 633,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0606,
          "supporting_frames": 16,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 11,
        "issue": "shallow_depth",
        "severity": 0.51,
        "start_frame": 695,
        "end_frame": 702,
        "start_sec": 23.167,
        "end_sec": 23.4,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0676,
          "threshold": -0.03,
          "confidence": 0.59,
          "peak_frame": 695,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0462,
          "supporting_frames": 8,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 11,
        "issue": "shallow_depth",
        "severity": 0.65,
        "start_frame": 711,
        "end_frame": 716,
        "start_sec": 23.7,
        "end_sec": 23.867,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0661,
          "threshold": -0.03,
          "confidence": 0.62,
          "peak_frame": 715,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0531,
          "supporting_frames": 6,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 12,
        "issue": "shallow_depth",
        "severity": 0.41,
        "start_frame": 768,
        "end_frame": 776,
        "start_sec": 25.6,
        "end_sec": 25.867,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.065,
          "threshold": -0.03,
          "confidence": 0.54,
          "peak_frame": 768,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0429,
          "supporting_frames": 9,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 12,
        "issue": "shallow_depth",
        "severity": 0.61,
        "start_frame": 780,
        "end_frame": 789,
        "start_sec": 26.0,
        "end_sec": 26.3,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0655,
          "threshold": -0.03,
          "confidence": 0.58,
          "peak_frame": 787,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0529,
          "supporting_frames": 10,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 13,
        "issue": "shallow_depth",
        "severity": 0.5,
        "start_frame": 834,
        "end_frame": 839,
        "start_sec": 27.8,
        "end_sec": 27.967,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0658,
          "threshold": -0.03,
          "confidence": 0.57,
          "peak_frame": 834,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0459,
          "supporting_frames": 6
        }
      },
      {
        "rep_id": 13,
        "issue": "shallow_depth",
        "severity": 0.61,
        "start_frame": 848,
        "end_frame": 852,
        "start_sec": 28.267,
        "end_sec": 28.4,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0605,
          "threshold": -0.03,
          "confidence": 0.59,
          "peak_frame": 851,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0508,
          "supporting_frames": 5
        }
      },
      {
        "rep_id": 14,
        "issue": "shallow_depth",
        "severity": 0.67,
        "start_frame": 900,
        "end_frame": 906,
        "start_sec": 30.0,
        "end_sec": 30.2,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0647,
          "threshold": -0.03,
          "confidence": 0.6,
          "peak_frame": 900,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0509,
          "supporting_frames": 7,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 14,
        "issue": "shallow_depth",
        "severity": 0.67,
        "start_frame": 910,
        "end_frame": 918,
        "start_sec": 30.333,
        "end_sec": 30.6,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0641,
          "threshold": -0.03,
          "confidence": 0.61,
          "peak_frame": 916,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0542,
          "supporting_frames": 9,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 15,
        "issue": "shallow_depth",
        "severity": 0.82,
        "start_frame": 967,
        "end_frame": 984,
        "start_sec": 32.233,
        "end_sec": 32.8,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0714,
          "threshold": -0.03,
          "confidence": 0.66,
          "peak_frame": 967,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0583,
          "supporting_frames": 18,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      }
    ],
    "top_issue_intervals": [
      {
        "issue": "shallow_depth",
        "rep_id": 15,
        "severity": 0.82,
        "start_sec": 32.233,
        "end_sec": 32.8,
        "evidence": {
          "hip_depth_delta": -0.0714,
          "threshold": -0.03,
          "confidence": 0.66,
          "peak_frame": 967,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0583,
          "supporting_frames": 18,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "issue": "shallow_depth",
        "rep_id": 10,
        "severity": 0.8,
        "start_sec": 21.1,
        "end_sec": 21.6,
        "evidence": {
          "hip_depth_delta": -0.094,
          "threshold": -0.03,
          "confidence": 0.68,
          "peak_frame": 633,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0606,
          "supporting_frames": 16,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "issue": "shallow_depth",
        "rep_id": 8,
        "severity": 0.68,
        "start_sec": 16.333,
        "end_sec": 16.933,
        "evidence": {
          "hip_depth_delta": -0.0735,
          "threshold": -0.03,
          "confidence": 0.58,
          "peak_frame": 490,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0549,
          "supporting_frames": 19,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      }
    ]
  },
  "priority_cues": [
    "Sit slightly deeper before standing up.",
    "Slow the bottom portion so depth stays consistent.",
    "Reference depth, torso control, and rep-to-rep consistency using the measured evidence.",
    "Keep top fixes practical, such as controlling the descent or sitting slightly deeper when `shallow_depth` is present.",
    "Keep language descriptive rather than diagnostic.",
    "Prefer control and repeatability cues that do not assume external load adjustments."
  ],
  "knowledge_cards": [
    {
      "card_id": "exercise:squat",
      "card_type": "exercise",
      "labels": [
        "squat"
      ],
      "title": "Squat",
      "summary": "A squat summary should stay grounded in rep evidence while using standardized execution cues for depth, balance, torso position, and stance context.",
      "evidence_rules": [
        "Use rep analysis and issue markers instead of inferring directly from the video.",
        "Describe squat depth, torso control, and balance only when supported by structured evidence.",
        "Treat stance-width context as a valid variation unless issue markers show a separate problem."
      ],
      "coaching_points": [
        "Reference depth, torso control, and rep-to-rep consistency using the measured evidence.",
        "Keep top fixes practical, such as controlling the descent or sitting slightly deeper when `shallow_depth` is present.",
        "Keep language descriptive rather than diagnostic."
      ],
      "allowed_interpretations": [
        "Target muscles commonly include quads and glutes, but coaching should remain focused on the observed movement evidence."
      ],
      "forbidden_claims": [],
      "related_cards": [
        "issue:shallow_depth",
        "issue:excessive_torso_lean"
      ],
      "source_kind": "external",
      "source_path": "/Users/t/Documents/tihado/formcoach-ai/data/knowledge_cards/grounded_exercise_expansion.json"
    },
    {
      "card_id": "issue:shallow_depth",
      "card_type": "issue",
      "labels": [
        "shallow_depth"
      ],
      "title": "Shallow Depth",
      "summary": "The squat bottom position stayed above the expected depth threshold in the issue markers.",
      "evidence_rules": [
        "Only mention this issue when `shallow_depth` exists in `issue_markers.json`."
      ],
      "coaching_points": [
        "Sit slightly deeper before standing up.",
        "Slow the bottom portion so depth stays consistent."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "equipment:bodyweight",
      "card_type": "equipment",
      "labels": [
        "bodyweight"
      ],
      "title": "Bodyweight Context",
      "summary": "Bodyweight sessions should keep cues simple and focused on repeatable control.",
      "evidence_rules": [
        "Treat equipment as context for cue wording, not as a new issue."
      ],
      "coaching_points": [
        "Prefer control and repeatability cues that do not assume external load adjustments."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "goal:beginner_practice",
      "card_type": "goal",
      "labels": [
        "beginner_practice"
      ],
      "title": "Beginner Practice Goal",
      "summary": "Beginner practice coaching should stay simple, encouraging, and concrete.",
      "evidence_rules": [
        "Limit the number of corrections in a single summary."
      ],
      "coaching_points": [
        "Pick the top one or two form priorities for next time."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "goal_overlay:squat:beginner_practice",
      "card_type": "goal_overlay",
      "labels": [
        "squat:beginner_practice"
      ],
      "title": "Squat Beginner Overlay",
      "summary": "For beginner-practice squats, keep the tone encouraging and corrections minimal.",
      "evidence_rules": [
        "Use this overlay only as a prioritization hint for the detected exercise and goal."
      ],
      "coaching_points": [
        "Explain what looked stable before introducing the top squat fix.",
        "Use simple depth or balance language rather than stacking many cues."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "safety:grounded_only",
      "card_type": "safety_rule",
      "labels": [
        "grounded_only"
      ],
      "title": "Grounded Only",
      "summary": "The summary must explain only the structured evidence and retrieved knowledge cards.",
      "evidence_rules": [
        "Do not infer new issues that are absent from JSON."
      ],
      "coaching_points": [
        "State confidence limits when the evidence is thin."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "safety:no_diagnosis",
      "card_type": "safety_rule",
      "labels": [
        "no_diagnosis"
      ],
      "title": "No Diagnosis",
      "summary": "The summary must not diagnose pain, injury, imbalance, mobility deficits, or pathology.",
      "evidence_rules": [
        "Do not use diagnostic language."
      ],
      "coaching_points": [
        "Use uncertainty language when evidence is limited."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [
        "diagnosis",
        "injury",
        "pathology",
        "medical assessment"
      ],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "safety:no_injury_prevention_claim",
      "card_type": "safety_rule",
      "labels": [
        "no_injury_prevention_claim"
      ],
      "title": "No Injury Prevention Claim",
      "summary": "The summary must not claim that a cue will prevent injury.",
      "evidence_rules": [
        "Do not promise injury prevention."
      ],
      "coaching_points": [
        "Keep coaching language descriptive and performance-focused."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [
        "injury prevention",
        "prevent injury"
      ],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "safety:variation_not_issue",
      "card_type": "safety_rule",
      "labels": [
        "variation_not_issue"
      ],
      "title": "Variation Is Not Automatically An Issue",
      "summary": "A detected variation or listed not-issue should not be overcorrected as a mistake.",
      "evidence_rules": [
        "Keep valid variation context separate from issue language."
      ],
      "coaching_points": [
        "Explain why the variation is treated as context when needed."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    }
  ]
}

[Assistant]
{
  "summary": "The pipeline segmented 15 squat reps from the current pose stream. Exercise routing, variation labeling, and coaching language may still use lightweight rules or placeholders. The detected variation is `wide_squat_stance`. The strongest frame-level marker is `shallow_depth`, with timestamps and metric evidence in the issue timeline.",
  "what_you_did": [],
  "what_looked_good": [],
  "what_changed_across_reps": [],
  "valid_variation_vs_issue": [],
  "top_fixes": [
    "Keep the same setup and record from a stable camera angle.",
    "Stop the set when the first repeated issue marker appears.",
    "Use slower reps until the highlighted metric improves."
  ],
  "next_session_plan": [
    "Warm up with 1 easy set of 5 controlled reps.",
    "Perform 2 working sets and keep the camera angle consistent.",
    "Compare the next run against this report's issue timeline."
  ],
  "confidence_notes": [
    "Current mock classifier confidence placeholder: 92%.",
    "Rep segmentation can run on real pose, but downstream interpretation is still partially mocked."
  ]
}


[System] You are Pozify's grounded coach-summary model. Use only the provided structured evidence and knowledge cards. Return coach_summary.json as JSON only.

[User]
{
  "user_profile": {
    "goal": "beginner_practice",
    "experience_level": "beginner",
    "intended_exercise": "auto",
    "intended_variation": null,
    "known_limitations": [],
    "equipment": "bodyweight"
  },
  "exercise_classification": {
    "exercise": "squat",
    "confidence": 0.92,
    "fallback_required": false
  },
  "variation": {
    "exercise": "squat",
    "detected_variation": "wide_squat_stance",
    "variation_confidence": 0.95,
    "not_issues": [
      "low_rom_requires_user_intent_check",
      "wide_stance"
    ]
  },
  "rep_summary": {
    "rep_count": 15,
    "aggregate_metrics": {
      "avg_rom_score": 0.57,
      "avg_stability_score": 0.68,
      "avg_symmetry_score": 0.56,
      "avg_rep_duration_sec": 2.2,
      "avg_tempo_consistency_score": 0.9453,
      "avg_landmark_confidence": 0.9173,
      "fatigue_trend_rom_delta": -0.1,
      "pose_valid_ratio": 1.0,
      "avg_stance_width_ratio": 1.3752,
      "avg_bottom_pause_sec": 0.278
    },
    "rep_metrics": [
      {
        "rep_id": 1,
        "duration_sec": 1.77,
        "range_of_motion_score": 0.59,
        "stability_score": 0.64,
        "symmetry_score": 0.46,
        "metrics": {
          "rep_duration_sec": 1.77,
          "eccentric_duration_sec": 1.2,
          "concentric_duration_sec": 0.57,
          "tempo_ratio": 2.11,
          "top_pause_sec": 0.6,
          "bottom_pause_sec": 0.27,
          "smoothness_score": 0.99,
          "jerk_score": 0.0018,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0094,
          "min_knee_angle_deg": 115.91,
          "max_knee_angle_deg": 177.98,
          "min_hip_angle_deg": 98.12,
          "max_hip_angle_deg": 153.15,
          "hip_depth_delta": -0.0548,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.14,
          "knee_valgus_proxy": 0.1648,
          "knee_tracking_score": 0.84,
          "stance_width_ratio": 1.44,
          "hip_shift": 0.0094,
          "bottom_stability_score": 0.64,
          "tempo_consistency_score": 0.8
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 2,
        "duration_sec": 2.13,
        "range_of_motion_score": 0.49,
        "stability_score": 0.64,
        "symmetry_score": 0.51,
        "metrics": {
          "rep_duration_sec": 2.13,
          "eccentric_duration_sec": 1.53,
          "concentric_duration_sec": 0.6,
          "tempo_ratio": 2.55,
          "top_pause_sec": 0.93,
          "bottom_pause_sec": 0.27,
          "smoothness_score": 0.99,
          "jerk_score": 0.0017,
          "landmark_confidence": 0.91,
          "hip_lateral_drift": 0.0082,
          "min_knee_angle_deg": 122.92,
          "max_knee_angle_deg": 174.7,
          "min_hip_angle_deg": 103.24,
          "max_hip_angle_deg": 155.66,
          "hip_depth_delta": -0.0581,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.67,
          "knee_valgus_proxy": 0.1742,
          "knee_tracking_score": 0.83,
          "stance_width_ratio": 1.38,
          "hip_shift": 0.0082,
          "bottom_stability_score": 0.64,
          "tempo_consistency_score": 0.97
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 3,
        "duration_sec": 2.27,
        "range_of_motion_score": 0.64,
        "stability_score": 0.62,
        "symmetry_score": 0.54,
        "metrics": {
          "rep_duration_sec": 2.27,
          "eccentric_duration_sec": 1.5,
          "concentric_duration_sec": 0.77,
          "tempo_ratio": 1.95,
          "top_pause_sec": 0.9,
          "bottom_pause_sec": 0.27,
          "smoothness_score": 0.99,
          "jerk_score": 0.0017,
          "landmark_confidence": 0.91,
          "hip_lateral_drift": 0.0074,
          "min_knee_angle_deg": 108.84,
          "max_knee_angle_deg": 177.76,
          "min_hip_angle_deg": 88.95,
          "max_hip_angle_deg": 155.15,
          "hip_depth_delta": -0.0444,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.23,
          "knee_valgus_proxy": 0.1405,
          "knee_tracking_score": 0.86,
          "stance_width_ratio": 1.323,
          "hip_shift": 0.0074,
          "bottom_stability_score": 0.62,
          "tempo_consistency_score": 0.97
        },
        "variation_hints": []
      },
      {
        "rep_id": 4,
        "duration_sec": 2.27,
        "range_of_motion_score": 0.64,
        "stability_score": 0.61,
        "symmetry_score": 0.54,
        "metrics": {
          "rep_duration_sec": 2.27,
          "eccentric_duration_sec": 1.43,
          "concentric_duration_sec": 0.83,
          "tempo_ratio": 1.72,
          "top_pause_sec": 0.4,
          "bottom_pause_sec": 0.2,
          "smoothness_score": 0.98,
          "jerk_score": 0.0019,
          "landmark_confidence": 0.91,
          "hip_lateral_drift": 0.0086,
          "min_knee_angle_deg": 107.57,
          "max_knee_angle_deg": 177.36,
          "min_hip_angle_deg": 87.97,
          "max_hip_angle_deg": 156.16,
          "hip_depth_delta": -0.0457,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.72,
          "knee_valgus_proxy": 0.1715,
          "knee_tracking_score": 0.83,
          "stance_width_ratio": 1.357,
          "hip_shift": 0.0086,
          "bottom_stability_score": 0.61,
          "tempo_consistency_score": 0.97
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 5,
        "duration_sec": 2.03,
        "range_of_motion_score": 0.59,
        "stability_score": 0.68,
        "symmetry_score": 0.51,
        "metrics": {
          "rep_duration_sec": 2.03,
          "eccentric_duration_sec": 1.3,
          "concentric_duration_sec": 0.73,
          "tempo_ratio": 1.78,
          "top_pause_sec": 0.77,
          "bottom_pause_sec": 0.2,
          "smoothness_score": 0.99,
          "jerk_score": 0.0017,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0119,
          "min_knee_angle_deg": 115.92,
          "max_knee_angle_deg": 177.36,
          "min_hip_angle_deg": 92.92,
          "max_hip_angle_deg": 151.75,
          "hip_depth_delta": -0.0527,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.88,
          "knee_valgus_proxy": 0.1751,
          "knee_tracking_score": 0.82,
          "stance_width_ratio": 1.412,
          "hip_shift": 0.0119,
          "bottom_stability_score": 0.68,
          "tempo_consistency_score": 0.92
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 6,
        "duration_sec": 2.23,
        "range_of_motion_score": 0.57,
        "stability_score": 0.67,
        "symmetry_score": 0.52,
        "metrics": {
          "rep_duration_sec": 2.23,
          "eccentric_duration_sec": 1.5,
          "concentric_duration_sec": 0.73,
          "tempo_ratio": 2.05,
          "top_pause_sec": 0.97,
          "bottom_pause_sec": 0.23,
          "smoothness_score": 0.98,
          "jerk_score": 0.002,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.007,
          "min_knee_angle_deg": 121.18,
          "max_knee_angle_deg": 178.76,
          "min_hip_angle_deg": 96.18,
          "max_hip_angle_deg": 155.38,
          "hip_depth_delta": -0.0495,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.53,
          "knee_valgus_proxy": 0.1945,
          "knee_tracking_score": 0.81,
          "stance_width_ratio": 1.388,
          "hip_shift": 0.007,
          "bottom_stability_score": 0.67,
          "tempo_consistency_score": 0.99
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 7,
        "duration_sec": 2.3,
        "range_of_motion_score": 0.57,
        "stability_score": 0.66,
        "symmetry_score": 0.49,
        "metrics": {
          "rep_duration_sec": 2.3,
          "eccentric_duration_sec": 1.5,
          "concentric_duration_sec": 0.8,
          "tempo_ratio": 1.88,
          "top_pause_sec": 0.47,
          "bottom_pause_sec": 0.27,
          "smoothness_score": 0.99,
          "jerk_score": 0.0016,
          "landmark_confidence": 0.93,
          "hip_lateral_drift": 0.0081,
          "min_knee_angle_deg": 119.09,
          "max_knee_angle_deg": 177.01,
          "min_hip_angle_deg": 94.4,
          "max_hip_angle_deg": 154.05,
          "hip_depth_delta": -0.0485,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 17.32,
          "knee_valgus_proxy": 0.1665,
          "knee_tracking_score": 0.83,
          "stance_width_ratio": 1.37,
          "hip_shift": 0.0081,
          "bottom_stability_score": 0.66,
          "tempo_consistency_score": 0.96
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 8,
        "duration_sec": 2.23,
        "range_of_motion_score": 0.51,
        "stability_score": 0.66,
        "symmetry_score": 0.48,
        "metrics": {
          "rep_duration_sec": 2.23,
          "eccentric_duration_sec": 1.47,
          "concentric_duration_sec": 0.77,
          "tempo_ratio": 1.91,
          "top_pause_sec": 0.9,
          "bottom_pause_sec": 0.37,
          "smoothness_score": 0.99,
          "jerk_score": 0.0016,
          "landmark_confidence": 0.93,
          "hip_lateral_drift": 0.0078,
          "min_knee_angle_deg": 120.94,
          "max_knee_angle_deg": 176.79,
          "min_hip_angle_deg": 100.11,
          "max_hip_angle_deg": 155.16,
          "hip_depth_delta": -0.0659,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.1,
          "knee_valgus_proxy": 0.1679,
          "knee_tracking_score": 0.83,
          "stance_width_ratio": 1.36,
          "hip_shift": 0.0078,
          "bottom_stability_score": 0.66,
          "tempo_consistency_score": 0.99
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 9,
        "duration_sec": 2.6,
        "range_of_motion_score": 0.57,
        "stability_score": 0.71,
        "symmetry_score": 0.54,
        "metrics": {
          "rep_duration_sec": 2.6,
          "eccentric_duration_sec": 1.63,
          "concentric_duration_sec": 0.97,
          "tempo_ratio": 1.68,
          "top_pause_sec": 1.0,
          "bottom_pause_sec": 0.33,
          "smoothness_score": 0.99,
          "jerk_score": 0.0014,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0069,
          "min_knee_angle_deg": 113.47,
          "max_knee_angle_deg": 176.36,
          "min_hip_angle_deg": 99.22,
          "max_hip_angle_deg": 155.04,
          "hip_depth_delta": -0.0645,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 17.7,
          "knee_valgus_proxy": 0.1556,
          "knee_tracking_score": 0.84,
          "stance_width_ratio": 1.338,
          "hip_shift": 0.0069,
          "bottom_stability_score": 0.71,
          "tempo_consistency_score": 0.82
        },
        "variation_hints": []
      },
      {
        "rep_id": 10,
        "duration_sec": 2.23,
        "range_of_motion_score": 0.45,
        "stability_score": 0.74,
        "symmetry_score": 0.61,
        "metrics": {
          "rep_duration_sec": 2.23,
          "eccentric_duration_sec": 1.43,
          "concentric_duration_sec": 0.8,
          "tempo_ratio": 1.79,
          "top_pause_sec": 0.87,
          "bottom_pause_sec": 0.23,
          "smoothness_score": 0.99,
          "jerk_score": 0.0014,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0134,
          "min_knee_angle_deg": 127.14,
          "max_knee_angle_deg": 178.05,
          "min_hip_angle_deg": 102.47,
          "max_hip_angle_deg": 154.25,
          "hip_depth_delta": -0.0718,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 19.11,
          "knee_valgus_proxy": 0.1995,
          "knee_tracking_score": 0.8,
          "stance_width_ratio": 1.372,
          "hip_shift": 0.0134,
          "bottom_stability_score": 0.74,
          "tempo_consistency_score": 0.99
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 11,
        "duration_sec": 2.1,
        "range_of_motion_score": 0.6,
        "stability_score": 0.72,
        "symmetry_score": 0.7,
        "metrics": {
          "rep_duration_sec": 2.1,
          "eccentric_duration_sec": 1.4,
          "concentric_duration_sec": 0.7,
          "tempo_ratio": 2.0,
          "top_pause_sec": 0.63,
          "bottom_pause_sec": 0.37,
          "smoothness_score": 0.99,
          "jerk_score": 0.0016,
          "landmark_confidence": 0.93,
          "hip_lateral_drift": 0.0073,
          "min_knee_angle_deg": 117.08,
          "max_knee_angle_deg": 179.14,
          "min_hip_angle_deg": 92.36,
          "max_hip_angle_deg": 155.39,
          "hip_depth_delta": -0.0494,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.13,
          "knee_valgus_proxy": 0.2167,
          "knee_tracking_score": 0.78,
          "stance_width_ratio": 1.403,
          "hip_shift": 0.0073,
          "bottom_stability_score": 0.72,
          "tempo_consistency_score": 0.95
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 12,
        "duration_sec": 2.33,
        "range_of_motion_score": 0.61,
        "stability_score": 0.68,
        "symmetry_score": 0.63,
        "metrics": {
          "rep_duration_sec": 2.33,
          "eccentric_duration_sec": 1.63,
          "concentric_duration_sec": 0.7,
          "tempo_ratio": 2.33,
          "top_pause_sec": 0.53,
          "bottom_pause_sec": 0.3,
          "smoothness_score": 0.99,
          "jerk_score": 0.0014,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0074,
          "min_knee_angle_deg": 113.08,
          "max_knee_angle_deg": 178.58,
          "min_hip_angle_deg": 94.09,
          "max_hip_angle_deg": 152.83,
          "hip_depth_delta": -0.0549,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 18.38,
          "knee_valgus_proxy": 0.1825,
          "knee_tracking_score": 0.82,
          "stance_width_ratio": 1.352,
          "hip_shift": 0.0074,
          "bottom_stability_score": 0.68,
          "tempo_consistency_score": 0.94
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 13,
        "duration_sec": 2.1,
        "range_of_motion_score": 0.63,
        "stability_score": 0.7,
        "symmetry_score": 0.64,
        "metrics": {
          "rep_duration_sec": 2.1,
          "eccentric_duration_sec": 1.53,
          "concentric_duration_sec": 0.57,
          "tempo_ratio": 2.68,
          "top_pause_sec": 0.63,
          "bottom_pause_sec": 0.33,
          "smoothness_score": 0.99,
          "jerk_score": 0.0018,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0051,
          "min_knee_angle_deg": 107.03,
          "max_knee_angle_deg": 178.0,
          "min_hip_angle_deg": 88.29,
          "max_hip_angle_deg": 156.04,
          "hip_depth_delta": -0.0495,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 17.68,
          "knee_valgus_proxy": 0.1974,
          "knee_tracking_score": 0.8,
          "stance_width_ratio": 1.35,
          "hip_shift": 0.0051,
          "bottom_stability_score": 0.7,
          "tempo_consistency_score": 0.95
        },
        "variation_hints": []
      },
      {
        "rep_id": 14,
        "duration_sec": 2.27,
        "range_of_motion_score": 0.6,
        "stability_score": 0.69,
        "symmetry_score": 0.68,
        "metrics": {
          "rep_duration_sec": 2.27,
          "eccentric_duration_sec": 1.57,
          "concentric_duration_sec": 0.7,
          "tempo_ratio": 2.24,
          "top_pause_sec": 0.73,
          "bottom_pause_sec": 0.23,
          "smoothness_score": 0.99,
          "jerk_score": 0.0018,
          "landmark_confidence": 0.92,
          "hip_lateral_drift": 0.0047,
          "min_knee_angle_deg": 115.32,
          "max_knee_angle_deg": 178.25,
          "min_hip_angle_deg": 91.41,
          "max_hip_angle_deg": 152.66,
          "hip_depth_delta": -0.0526,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 17.91,
          "knee_valgus_proxy": 0.1918,
          "knee_tracking_score": 0.81,
          "stance_width_ratio": 1.364,
          "hip_shift": 0.0047,
          "bottom_stability_score": 0.69,
          "tempo_consistency_score": 0.97
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      },
      {
        "rep_id": 15,
        "duration_sec": 2.17,
        "range_of_motion_score": 0.49,
        "stability_score": 0.73,
        "symmetry_score": 0.61,
        "metrics": {
          "rep_duration_sec": 2.17,
          "eccentric_duration_sec": 1.53,
          "concentric_duration_sec": 0.63,
          "tempo_ratio": 2.43,
          "top_pause_sec": 0.8,
          "bottom_pause_sec": 0.3,
          "smoothness_score": 0.99,
          "jerk_score": 0.0015,
          "landmark_confidence": 0.88,
          "hip_lateral_drift": 0.0057,
          "min_knee_angle_deg": 122.57,
          "max_knee_angle_deg": 176.95,
          "min_hip_angle_deg": 102.68,
          "max_hip_angle_deg": 152.65,
          "hip_depth_delta": -0.0673,
          "hip_depth_relative_to_knee": "above_parallel",
          "max_torso_lean_deg": 16.49,
          "knee_valgus_proxy": 0.21,
          "knee_tracking_score": 0.79,
          "stance_width_ratio": 1.419,
          "hip_shift": 0.0057,
          "bottom_stability_score": 0.73,
          "tempo_consistency_score": 0.99
        },
        "variation_hints": [
          "wide_squat_stance"
        ]
      }
    ]
  },
  "issue_summary": {
    "issue_counts": {
      "shallow_depth": 22
    },
    "issues": [
      {
        "rep_id": 1,
        "issue": "shallow_depth",
        "severity": 0.56,
        "start_frame": 31,
        "end_frame": 45,
        "start_sec": 1.033,
        "end_sec": 1.5,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.065,
          "threshold": -0.03,
          "confidence": 0.53,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0475,
          "supporting_frames": 15,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 2,
        "issue": "shallow_depth",
        "severity": 0.67,
        "start_frame": 95,
        "end_frame": 109,
        "start_sec": 3.167,
        "end_sec": 3.633,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0634,
          "threshold": -0.03,
          "confidence": 0.56,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0526,
          "supporting_frames": 15,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 3,
        "issue": "shallow_depth",
        "severity": 0.45,
        "start_frame": 168,
        "end_frame": 174,
        "start_sec": 5.6,
        "end_sec": 5.8,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0656,
          "threshold": -0.03,
          "confidence": 0.5,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0444,
          "supporting_frames": 7
        }
      },
      {
        "rep_id": 4,
        "issue": "shallow_depth",
        "severity": 0.51,
        "start_frame": 225,
        "end_frame": 229,
        "start_sec": 7.5,
        "end_sec": 7.633,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0623,
          "threshold": -0.03,
          "confidence": 0.51,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0459,
          "supporting_frames": 5,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 4,
        "issue": "shallow_depth",
        "severity": 0.55,
        "start_frame": 237,
        "end_frame": 241,
        "start_sec": 7.9,
        "end_sec": 8.033,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0741,
          "threshold": -0.03,
          "confidence": 0.51,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0493,
          "supporting_frames": 5,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 5,
        "issue": "shallow_depth",
        "severity": 0.58,
        "start_frame": 289,
        "end_frame": 294,
        "start_sec": 9.633,
        "end_sec": 9.8,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0711,
          "threshold": -0.03,
          "confidence": 0.58,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0494,
          "supporting_frames": 6,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 5,
        "issue": "shallow_depth",
        "severity": 0.58,
        "start_frame": 299,
        "end_frame": 304,
        "start_sec": 9.967,
        "end_sec": 10.133,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0616,
          "threshold": -0.03,
          "confidence": 0.58,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0496,
          "supporting_frames": 6,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 6,
        "issue": "shallow_depth",
        "severity": 0.39,
        "start_frame": 356,
        "end_frame": 371,
        "start_sec": 11.867,
        "end_sec": 12.367,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0656,
          "threshold": -0.03,
          "confidence": 0.52,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0421,
          "supporting_frames": 16,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 7,
        "issue": "shallow_depth",
        "severity": 0.31,
        "start_frame": 422,
        "end_frame": 427,
        "start_sec": 14.067,
        "end_sec": 14.233,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.055,
          "threshold": -0.03,
          "confidence": 0.5,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0394,
          "supporting_frames": 6,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 7,
        "issue": "shallow_depth",
        "severity": 0.4,
        "start_frame": 433,
        "end_frame": 439,
        "start_sec": 14.433,
        "end_sec": 14.633,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0641,
          "threshold": -0.03,
          "confidence": 0.52,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0425,
          "supporting_frames": 7,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 8,
        "issue": "shallow_depth",
        "severity": 0.68,
        "start_frame": 490,
        "end_frame": 508,
        "start_sec": 16.333,
        "end_sec": 16.933,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0735,
          "threshold": -0.03,
          "confidence": 0.58,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0549,
          "supporting_frames": 19,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 9,
        "issue": "shallow_depth",
        "severity": 0.46,
        "start_frame": 560,
        "end_frame": 577,
        "start_sec": 18.667,
        "end_sec": 19.233,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0618,
          "threshold": -0.03,
          "confidence": 0.58,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0445,
          "supporting_frames": 18
        }
      },
      {
        "rep_id": 10,
        "issue": "shallow_depth",
        "severity": 0.8,
        "start_frame": 633,
        "end_frame": 648,
        "start_sec": 21.1,
        "end_sec": 21.6,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.094,
          "threshold": -0.03,
          "confidence": 0.68,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0606,
          "supporting_frames": 16,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 11,
        "issue": "shallow_depth",
        "severity": 0.51,
        "start_frame": 695,
        "end_frame": 702,
        "start_sec": 23.167,
        "end_sec": 23.4,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0676,
          "threshold": -0.03,
          "confidence": 0.59,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0462,
          "supporting_frames": 8,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 11,
        "issue": "shallow_depth",
        "severity": 0.65,
        "start_frame": 711,
        "end_frame": 716,
        "start_sec": 23.7,
        "end_sec": 23.867,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0661,
          "threshold": -0.03,
          "confidence": 0.62,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0531,
          "supporting_frames": 6,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 12,
        "issue": "shallow_depth",
        "severity": 0.41,
        "start_frame": 768,
        "end_frame": 776,
        "start_sec": 25.6,
        "end_sec": 25.867,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.065,
          "threshold": -0.03,
          "confidence": 0.54,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0429,
          "supporting_frames": 9,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 12,
        "issue": "shallow_depth",
        "severity": 0.61,
        "start_frame": 780,
        "end_frame": 789,
        "start_sec": 26.0,
        "end_sec": 26.3,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0655,
          "threshold": -0.03,
          "confidence": 0.58,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0529,
          "supporting_frames": 10,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 13,
        "issue": "shallow_depth",
        "severity": 0.5,
        "start_frame": 834,
        "end_frame": 839,
        "start_sec": 27.8,
        "end_sec": 27.967,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0658,
          "threshold": -0.03,
          "confidence": 0.57,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0459,
          "supporting_frames": 6
        }
      },
      {
        "rep_id": 13,
        "issue": "shallow_depth",
        "severity": 0.61,
        "start_frame": 848,
        "end_frame": 852,
        "start_sec": 28.267,
        "end_sec": 28.4,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0605,
          "threshold": -0.03,
          "confidence": 0.59,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0508,
          "supporting_frames": 5
        }
      },
      {
        "rep_id": 14,
        "issue": "shallow_depth",
        "severity": 0.67,
        "start_frame": 900,
        "end_frame": 906,
        "start_sec": 30.0,
        "end_sec": 30.2,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0647,
          "threshold": -0.03,
          "confidence": 0.6,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0509,
          "supporting_frames": 7,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 14,
        "issue": "shallow_depth",
        "severity": 0.67,
        "start_frame": 910,
        "end_frame": 918,
        "start_sec": 30.333,
        "end_sec": 30.6,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0641,
          "threshold": -0.03,
          "confidence": 0.61,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0542,
          "supporting_frames": 9,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "rep_id": 15,
        "issue": "shallow_depth",
        "severity": 0.82,
        "start_frame": 967,
        "end_frame": 984,
        "start_sec": 32.233,
        "end_sec": 32.8,
        "affected_joints": [
          "left_hip",
          "right_hip",
          "left_knee",
          "right_knee"
        ],
        "evidence": {
          "hip_depth_delta": -0.0714,
          "threshold": -0.03,
          "confidence": 0.66,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0583,
          "supporting_frames": 18,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      }
    ],
    "top_issue_intervals": [
      {
        "issue": "shallow_depth",
        "rep_id": 15,
        "severity": 0.82,
        "start_sec": 32.233,
        "end_sec": 32.8,
        "evidence": {
          "hip_depth_delta": -0.0714,
          "threshold": -0.03,
          "confidence": 0.66,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0583,
          "supporting_frames": 18,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "issue": "shallow_depth",
        "rep_id": 10,
        "severity": 0.8,
        "start_sec": 21.1,
        "end_sec": 21.6,
        "evidence": {
          "hip_depth_delta": -0.094,
          "threshold": -0.03,
          "confidence": 0.68,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0606,
          "supporting_frames": 16,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      },
      {
        "issue": "shallow_depth",
        "rep_id": 8,
        "severity": 0.68,
        "start_sec": 16.333,
        "end_sec": 16.933,
        "evidence": {
          "hip_depth_delta": -0.0735,
          "threshold": -0.03,
          "confidence": 0.58,
          "variation_context": {
            "detected_variation": "wide_squat_stance",
            "variation_confidence": 0.95,
            "not_issues": [
              "low_rom_requires_user_intent_check",
              "wide_stance"
            ]
          },
          "mean_metric_value": -0.0549,
          "supporting_frames": 19,
          "rep_variation_hints": [
            "wide_squat_stance"
          ]
        }
      }
    ]
  },
  "priority_cues": [
    "Sit slightly deeper before standing up.",
    "Slow the bottom portion so depth stays consistent.",
    "Reference depth, torso control, and rep-to-rep consistency using the measured evidence.",
    "Keep top fixes practical, such as controlling the descent or sitting slightly deeper when `shallow_depth` is present.",
    "Keep language descriptive rather than diagnostic.",
    "Prefer control and repeatability cues that do not assume external load adjustments."
  ],
  "knowledge_cards": [
    {
      "card_id": "exercise:squat",
      "card_type": "exercise",
      "labels": [
        "squat"
      ],
      "title": "Squat",
      "summary": "A squat summary should stay grounded in rep evidence while using standardized execution cues for depth, balance, torso position, and stance context.",
      "evidence_rules": [
        "Use rep analysis and issue markers instead of inferring directly from the video.",
        "Describe squat depth, torso control, and balance only when supported by structured evidence.",
        "Treat stance-width context as a valid variation unless issue markers show a separate problem."
      ],
      "coaching_points": [
        "Reference depth, torso control, and rep-to-rep consistency using the measured evidence.",
        "Keep top fixes practical, such as controlling the descent or sitting slightly deeper when `shallow_depth` is present.",
        "Keep language descriptive rather than diagnostic."
      ],
      "allowed_interpretations": [
        "Target muscles commonly include quads and glutes, but coaching should remain focused on the observed movement evidence."
      ],
      "forbidden_claims": [],
      "related_cards": [
        "issue:shallow_depth",
        "issue:excessive_torso_lean"
      ],
      "source_kind": "external",
      "source_path": "/Users/t/Documents/tihado/formcoach-ai/data/knowledge_cards/grounded_exercise_expansion.json"
    },
    {
      "card_id": "issue:shallow_depth",
      "card_type": "issue",
      "labels": [
        "shallow_depth"
      ],
      "title": "Shallow Depth",
      "summary": "The squat bottom position stayed above the expected depth threshold in the issue markers.",
      "evidence_rules": [
        "Only mention this issue when `shallow_depth` exists in `issue_markers.json`."
      ],
      "coaching_points": [
        "Sit slightly deeper before standing up.",
        "Slow the bottom portion so depth stays consistent."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "equipment:bodyweight",
      "card_type": "equipment",
      "labels": [
        "bodyweight"
      ],
      "title": "Bodyweight Context",
      "summary": "Bodyweight sessions should keep cues simple and focused on repeatable control.",
      "evidence_rules": [
        "Treat equipment as context for cue wording, not as a new issue."
      ],
      "coaching_points": [
        "Prefer control and repeatability cues that do not assume external load adjustments."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "goal:beginner_practice",
      "card_type": "goal",
      "labels": [
        "beginner_practice"
      ],
      "title": "Beginner Practice Goal",
      "summary": "Beginner practice coaching should stay simple, encouraging, and concrete.",
      "evidence_rules": [
        "Limit the number of corrections in a single summary."
      ],
      "coaching_points": [
        "Pick the top one or two form priorities for next time."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "goal_overlay:squat:beginner_practice",
      "card_type": "goal_overlay",
      "labels": [
        "squat:beginner_practice"
      ],
      "title": "Squat Beginner Overlay",
      "summary": "For beginner-practice squats, keep the tone encouraging and corrections minimal.",
      "evidence_rules": [
        "Use this overlay only as a prioritization hint for the detected exercise and goal."
      ],
      "coaching_points": [
        "Explain what looked stable before introducing the top squat fix.",
        "Use simple depth or balance language rather than stacking many cues."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "safety:grounded_only",
      "card_type": "safety_rule",
      "labels": [
        "grounded_only"
      ],
      "title": "Grounded Only",
      "summary": "The summary must explain only the structured evidence and retrieved knowledge cards.",
      "evidence_rules": [
        "Do not infer new issues that are absent from JSON."
      ],
      "coaching_points": [
        "State confidence limits when the evidence is thin."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "safety:no_diagnosis",
      "card_type": "safety_rule",
      "labels": [
        "no_diagnosis"
      ],
      "title": "No Diagnosis",
      "summary": "The summary must not diagnose pain, injury, imbalance, mobility deficits, or pathology.",
      "evidence_rules": [
        "Do not use diagnostic language."
      ],
      "coaching_points": [
        "Use uncertainty language when evidence is limited."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [
        "diagnosis",
        "injury",
        "pathology",
        "medical assessment"
      ],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "safety:no_injury_prevention_claim",
      "card_type": "safety_rule",
      "labels": [
        "no_injury_prevention_claim"
      ],
      "title": "No Injury Prevention Claim",
      "summary": "The summary must not claim that a cue will prevent injury.",
      "evidence_rules": [
        "Do not promise injury prevention."
      ],
      "coaching_points": [
        "Keep coaching language descriptive and performance-focused."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [
        "injury prevention",
        "prevent injury"
      ],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    },
    {
      "card_id": "safety:variation_not_issue",
      "card_type": "safety_rule",
      "labels": [
        "variation_not_issue"
      ],
      "title": "Variation Is Not Automatically An Issue",
      "summary": "A detected variation or listed not-issue should not be overcorrected as a mistake.",
      "evidence_rules": [
        "Keep valid variation context separate from issue language."
      ],
      "coaching_points": [
        "Explain why the variation is treated as context when needed."
      ],
      "allowed_interpretations": [],
      "forbidden_claims": [],
      "related_cards": [],
      "source_kind": "builtin",
      "source_path": null
    }
  ]
}

[Assistant]
{
  "summary": "The pipeline segmented 15 squat reps from the current pose stream. Exercise routing, variation labeling, and coaching language may still use lightweight rules or placeholders. The detected variation is `wide_squat_stance`. The strongest frame-level marker is `shallow_depth`, with timestamps and metric evidence in the issue timeline.",
  "what_you_did": [],
  "what_looked_good": [],
  "what_changed_across_reps": [],
  "valid_variation_vs_issue": [],
  "top_fixes": [
    "Keep the same setup and record from a stable camera angle.",
    "Stop the set when the first repeated issue marker appears.",
    "Use slower reps until the highlighted metric improves."
  ],
  "next_session_plan": [
    "Warm up with 1 easy set of 5 controlled reps.",
    "Perform 2 working sets and keep the camera angle consistent.",
    "Compare the next run against this report's issue timeline."
  ],
  "confidence_notes": [
    "Current mock classifier confidence placeholder: 92%.",
    "Rep segmentation can run on real pose, but downstream interpretation is still partially mocked."
  ]
}