@sports-app/shared — the wire contract
    Preparing search index...

    Interface SessionResult

    interface SessionResult {
        completedAt: string;
        position: number;
        variant: Variant;
        exercises: readonly ExerciseRecord[];
    }
    Index
    completedAt: string

    Supplied by the caller — client/src/domain/ may not read the clock. That half is unchanged and still enforced by eslint: dates enter through client/src/persistence/ and are passed in, which is what keeps the schedule reproducible under test.

    What changed is who may read it. Until 2026-09-04 this said nothing in client/src/ui may read it, because there were no dates anywhere in the app. That decision was reversed (corpus/wiki/reversals.md) and the UI now reads completedAt for the calendar, the streak, and the "last time" comparison.

    Reading it is not scheduling on it. The rotation advances on training and never on the calendar, so a fortnight's gap and a night's sleep prescribe the same next session; the calendar reports, it does not decide.

    position: number

    Which rotation slot this session was. Index into ROTATION, via slotAt — both of which live in the client, because the rotation is programme content. A bare integer is all that crosses the wire.

    variant: Variant
    exercises: readonly ExerciseRecord[]

    Empty on a cardio slot's own work — the daily block still records.