What you get
A plan that ignores how you slept is a plan for someone else. Matt reads what your phone already records and fits the session to the day you are actually having: lighter after a short night, firmer when you are fresh.
A session you finish is written back to Apple Health as a workout, so your other apps see it too.
| Read | Sleep, steps, distance, resting heart rate, heart-rate variability, fitness level, energy burned, exercise minutes, weight and workouts. |
| Written | A finished session, as a workout. |
Apple Health only, for now.
What they will not do
| Read a kind you did not allow | Apple asks you about each kind of data, and Matt reads only what you switch on. |
| Pass it around | Your health detail stays with Matt. One thing crosses: last night’s minutes asleep, which Tender reads when you speak with them and keeps nowhere. |
| Diagnose | Matt adjusts training. Matt does not tell you what is wrong with you. |
How it is built
Your phone already keeps a careful record of your body. The question is how little of it an agent needs. Matt reads a week of daily figures, on the phone, with Apple’s own permission sheet, and sends only those figures: a date, a number and a unit.
Health data is the most protected kind there is in law, so each kind is asked for separately, and the most sensitive kinds are off unless you turn them on.
From your phone to today’s session
When you open Matt, the app asks Apple Health for the last seven days.
Apple’s HealthKit, on the phone ·
HealthStore.syncYou are asked once, by Apple, which kinds Matt may read.
Sleep, steps, distance, resting heart rate, heart-rate variability, fitness level, energy, exercise minutes, weight and workouts
Each kind becomes one figure a day.
The latest reading, or the day’s total
Only those figures are sent.
A date, a value and a unit for each ·
/healthkitMatt reads the week before replying.
Last night’s sleep and the week’s average shape what is asked of you today
A session you finish is written back as a workout.
The one thing Matt writes to Apple Health
The parts
| HealthKit | Apple’s store of health data on the phone, with its own permission for each kind. |
| Matt’s own app | A native iPhone app. The reading happens here, not on a server. |
| Cloudflare D1 | The small database Matt’s figures are kept in. |
| UK GDPR, Article 9 | The law’s rule for health data: explicit consent, recorded before anything is held. |
The words, in plain English
| Heart-rate variability | How much the gap between heartbeats varies. A common sign of how recovered you are. |
| Special category data | The law’s name for the most protected kinds of personal data, health among them. |
| Explicit consent | A clear yes to a specific thing, which you can take back. |
What is not finished
| Apple Health only | No other source is read. |
| When it syncs | On opening the app, or when you press sync. Not yet in the background. |
| Duplicates | A figure read twice may be stored twice. It does not change what Matt says. |
| Matt stands apart | Matt runs on an older version of the shared libraries than the other agents. |