Session 1RM
Status: in dev since 2026-11-18, behind COMMON_SESSION_RM1 in
packages/core/src/coaching/flags.ts
(on). The Swift twin, EnodePrediction.SessionRm1, is on main of
enode-coaching-core; in Enode One it sits behind FEATURE_COMMON_SESSION_RM1
on the branch feature/rm1-warmup-candidates.
What it replaces
Both apps called the same estimator (estimateRm1, estimateMomentaryRm1) but
fed it differently, so the same session produced different values:
| iOS | Web | |
|---|---|---|
| Sets passed | all completed sets, warm-ups included | completed work sets only |
| A set near the velocity profile's norm (from about 50 % load) | replaces the 1RM with the profile's own 1RM, jumps of 10 % and more | the same, for work sets |
| An easy set rated 6+ | no effect at all, not even as a lower bound | its lower bound became the 1RM (100 kg → 66.5 kg after 50 kg × 5) |
| The app's own RIR estimate | fed back into the 1RM | fed back into the 1RM |
After the warm-ups the stored session 1RM of the two apps differed by more than 5 % in a third of the replayed sessions.
The rule
Implemented by estimateCommonSessionRm1 in
packages/core/src/coaching/rm1.ts,
mirror of EnodePrediction.SessionRm1.estimate in the Swift package.
- Base. The exercise 1RM before the session. Web only (24.11.26): without
one, the 1RM of a usable mean-velocity profile (where its line meets the
minimal velocity; confidence = the fit's r²) —
readSessionRm1Baseinsession-rm1.ts. Without either there is no start value: the result comes from the sets alone. TODO: mirror the profile fallback in the Python reference and Swift; until then web and iOS differ for an exercise with a profile but no 1RM. - Velocity, only with a stored mean-velocity profile of negative slope.
Per completed set:
shift = (fastest valid rep − (cA1·load + cA0)) / −cA1in kg. A shift within ±10 % of the base is kept and limited to ±5 %: a set 5–10 % off counts with 5 %, a set further off is ignored. The mean of the kept shifts moves the start value, by ±5 % of the base at most. Only the profile's slope is used, never its minimum velocity. - Entered RIR 0–5 is point evidence:
load · (1 + 0.03 · min(reps + RIR, 20))with the RIR confidence curve, kept when at or above the heaviest load of the session, fused (odds-weighted) with the start value at confidence 0.9. - Hard floor. The result is never below the formula value of any completed
set: with its entered RIR, a 6+ as RIR 6, a set without an entered RIR as
RIR 0. 80 kg × 5 at RIR 3 never yields less than 99.2 kg. Web only
(24.11.26): when there is no base, the app's own "6+" estimate counts as
6+ too (
toCommonSessionSets(…, countEstimatedOverflow)), never as RIR 0. - A 6+ set is never point evidence. It acts through velocity and as a floor only: 90 kg × 5 at 6+ lifts a 100 kg 1RM to 119.7 kg, 50 kg × 5 at 6+ leaves it alone.
The same function produces the stored session 1RM (recomputeSessionRm1) and
the in-session 1RM used for the completed-set RIR and the RIR set-end criterion
(commonInSessionRm1 in set-exertion.ts). Warm-ups are included in both.
Stored confidence
| What decided the value | Confidence |
|---|---|
| A floor | that set's own RIR confidence when rated 0–5, else 0.25 |
| Rated sets | the fusion's |
| Velocity evidence only | 0.9 |
| Nothing but the base | the base's |
The session's seeded confidence of 1 is overwritten by the first recompute.
User input and app estimates
A value the athlete picks goes to valueUser; a value an algorithm computes
goes to value. valueUser always leads.
displayValue(training/measurements.ts),pickValue(training/exercise-overview.ts) and the portal's live reader treat only theUNDEFINEDsentinel as "not set". AvalueUserof 0 is an entry.buildRangedFieldswrites a "6+" pick tovalueUseras well.withExertion(training/reps.ts) writes the app's RIR estimate tovalueonly.
The session 1RM reads the exertion measurement's valueUser and nothing else
(toCommonSessionSets in coaching/mappers.ts).
- The complete-set / edit-set sheet (
pushExertionincomplete-set-helpers.ts) writesvalueUseronly when the athlete changed the RIR field. An untouched suggestion or plan is stored invalueonly; an untouched field of a completed set carries the stored measurement over unchanged.
iOS follows the same rule. Its one exception, the re-estimate after a corrected
load or rep count in the set sheet, now writes value as well.
The set list shows the athlete's entry first as well (displayValue); it used
to read value and showed the app's estimate for a RIR picked on iOS.
Sets stored before this change carry the web's own estimate in valueUser
too. They cannot be told apart afterwards.
Evidence
Replay of the per-set session flow on the production snapshot (data to 2026-07-01), against the hardest rated work set of the session; exercises with a velocity profile:
| Before the hard set (2,853 sessions) | Error | Moves above 10 % | Below a rated set's formula | Below the load lifted next |
|---|---|---|---|---|
| iOS before | 7.48 % | 30 % | 28.8 % | 11.1 % |
| Web before | 7.98 % | 31 % | 23.8 % | 12.0 % |
| This rule | 7.72 % | 12 % | 0 % | 4.7 % |
After the warm-ups (861 sessions): iOS before 8.44 %, web before 6.84 % (it did not move), this rule 7.46 %, moving in 69 % of sessions by 3.2 % on average. A strict ±5 % gate scored 7.22 % but moved in only 49 % of sessions; the wider gate was chosen for the visible tendency.
Known weaknesses:
- Values run about 2 % higher than before: floors only raise, and the app's estimate no longer pulls down.
- Without a velocity profile the rule has no downward path except an entered RIR; before the hard set it was 0.4–0.6 points worse than before (850 sessions). Left for the robust 1RM (RF3).
- In the warm-up phase "do not move" is the most accurate prediction; the velocity part costs about 0.5 points there. It is in for the visible tendency.
- An exercise without a stored 1RM shows the lower bound of its first set as the session 1RM until an entered RIR arrives.
Keeping web and iOS identical
One Python reference (harness/port/ref_session_rm1.py in the enode-algorithms
session) writes one fixture file with 80 cases. The Swift package reads it in
CPSessionRm1Tests; this repository holds a copy at
packages/core/src/coaching/fixtures/session-rm1.json
and reads it in common-session-rm1.test.ts.
To change the rule: change the reference, regenerate the fixture, copy it here, then change the Swift function and this port until both test suites pass.
TODO: the copy is manual. A check that the two fixture files are identical does not exist, because the package lives in another repository.
Legacy path
Without a completed set the session 1RM goes back to the base (exercise 1RM, else the profile's 1RM) or the placeholder, so deleting the last completed set does not leave its value standing.
With the switch off, estimateRm1 / estimateMomentaryRm1 run as before.
session-rm1-seed-confidence.test.ts pins that path by mocking ./flags.