github-actions[bot] commited on
Commit
d20de35
·
1 Parent(s): f9655f6

Automated Deploy: 9ad721b942f2bd63a78de04814c4d8cfa7b03b11

Browse files
AI-coach-agent/src/ai_coach/pitch_report/v1_1/coaching.py CHANGED
@@ -77,6 +77,9 @@ Those cues are not established by these estimates. For an uncertain movement, as
77
  specific visible action without implying which outcome is correct.
78
  Do not describe physical acceleration, deceleration, or arm speed from visual observations. The visual facts
79
  describe body movement; they do not measure its physical rate. Never turn an unclear visual topic into confirmation.
 
 
 
80
  Unknown capture timing does NOT hide the visible chronological order of phases. It hides physical durations
81
  and speed-based peak ordering. Variable frame rates are supported using actual capture timestamps; constant FPS
82
  is NOT required. Advise preserving the original recording and documenting capture/export speed, not relying on
@@ -163,6 +166,8 @@ def check_draft(draft, facts):
163
  actions = " ".join(c.next_step + " " + c.check for c in draft.cards)
164
  if re.search(r"\b(?:smooth(?:ly)?|naturally|rush(?:ing|ed)?)\b|intentional stretch", actions, re.I):
165
  problems.append("unsupported_movement_quality_cue")
 
 
166
  return problems
167
 
168
 
 
77
  specific visible action without implying which outcome is correct.
78
  Do not describe physical acceleration, deceleration, or arm speed from visual observations. The visual facts
79
  describe body movement; they do not measure its physical rate. Never turn an unclear visual topic into confirmation.
80
+ Describe the body moving, not weight shift, weight transfer, momentum or energy transfer. These clips do not
81
+ measure load distribution. Do not attribute an unclear visual movement to missing capture timing: unknown timing
82
+ limits physical durations and speeds; unclear visual evidence means that movement was not confirmed in the frames.
83
  Unknown capture timing does NOT hide the visible chronological order of phases. It hides physical durations
84
  and speed-based peak ordering. Variable frame rates are supported using actual capture timestamps; constant FPS
85
  is NOT required. Advise preserving the original recording and documenting capture/export speed, not relying on
 
166
  actions = " ".join(c.next_step + " " + c.check for c in draft.cards)
167
  if re.search(r"\b(?:smooth(?:ly)?|naturally|rush(?:ing|ed)?)\b|intentional stretch", actions, re.I):
168
  problems.append("unsupported_movement_quality_cue")
169
+ if re.search(r"\bweight (?:shift\w*|transfer\w*|distribution)\b|\bmomentum\b", prose, re.I):
170
+ problems.append("unmeasured_load_or_momentum_claim")
171
  return problems
172
 
173
 
AI-coach-agent/tests/test_pitching_coaching.py CHANGED
@@ -130,6 +130,9 @@ def test_live_review_regressions_target_direction_and_rotation_advice():
130
  d = draft()
131
  d["cards"][0]["check"] = "Keep moving naturally without rushing into landing."
132
  assert "unsupported_movement_quality_cue" in check_draft(Draft.model_validate(d), facts)
 
 
 
133
 
134
 
135
  def test_older_payload_instability_is_not_reintroduced_by_coaching_retry(tmp_path):
 
130
  d = draft()
131
  d["cards"][0]["check"] = "Keep moving naturally without rushing into landing."
132
  assert "unsupported_movement_quality_cue" in check_draft(Draft.model_validate(d), facts)
133
+ d = draft()
134
+ d["cards"][0]["next_step"] = "Keep using this initial weight shift setup."
135
+ assert "unmeasured_load_or_momentum_claim" in check_draft(Draft.model_validate(d), facts)
136
 
137
 
138
  def test_older_payload_instability_is_not_reintroduced_by_coaching_retry(tmp_path):