← Back to Pull requests

Running dynamics from OpenWatch on a run's detail #406

Open
datend3nker opened this pull request with 1623 lines diff across 39 files
View on GitHub
datend3nker datend3nker commented on Dec 03, 2026 07:14 UTC
Author

Shows the running dynamics that OpenWatch's watch computes on a run's activity detail.

  • openlink moves to version 4 and health-calculations to the running dynamics.

  • OpenWatchLink requests CAPABILITY_DYNAMICS and reads getRunDynamics on connect and on data written. The rows go into the new Room table run_dynamics_minutes. Room goes to version 19 (MIGRATION_18_19 and a migration test).

  • New ActivityRunDynamicsCard on running sessions whose start matches a run, within 5 s. It shows:

  • - cadence
    - step-time variability
    - contact and flight time (estimated)
    - impact
    - arm swing
    - forearm carriage
    - left/right difference
  • Beside each value is the mean of the last 90 days' runs, once there are at least 3.

  • The OpenWatch settings list the new capability. Strings are in all locales, and verify-translations passes.
  • Depends on


  • Hale-MTU/health-calculations#12

  • Hale-MTU/OpenLink#10

  • Hale-MTU/OpenWatch#124
  • The submodule pins point at commits that exist only in the forks until those PRs are merged.

    Tests


  • New tests pass: the 18→19 migration, ActivityRunDynamicsTest and OpenWatchLinkSummaryTest.

  • verifyCi has 3 failures that also happen on a clean main, so they are not from this change:

  • - DashboardTileDetailMapperTest (steps line)
    - 2× AppleHealthImportServiceTest (truncated zip)
  • Not yet tested on a device.
  • 🤖 Generated with Claude Code

    Diff: 1623 lines (+1613 / -10) across 39 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 4773m
    All Vouch review confidence checks passed
    Residual risk 0.33 = Change Risk (0.72) × (1 − Review Confidence (0.54)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 1623 lines diff across 39 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    54%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Shallow Review Depth shallow_review_depth
    0.344
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    1 comments
    "Review active on #406"
    general weight: 0.35
    Assignees
    datend3nker datend3nker
    Labels
    risk: low confidence: 54.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 71.5% (HIGH) · Higher = larger blast radius
    71.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 54.2% · Lower = rushed or shallow review
    54.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 32.8% · Safe to merge
    32.8%