> ## Documentation Index
> Fetch the complete documentation index at: https://docs.technicallyfit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Observations

> The observation format: one measured fact about a teammate, with its value, unit, time, place on the body, source and confidence.

An observation is one measured fact about a teammate: what was measured, the value and its
unit, when, where on the body, which source sent it and how much to trust it. A strength
test result, a pain score a teammate reports, a night of sleep and an outside run are all
observations, and they all have the same shape.

One observation is one summary: a set, a test, a night or a workout. It is not a raw
stream of samples.

The format has its own version, `observation/1`, and every observation says which version
it is in.

```bash curl theme={null}
curl -X POST "$TF_API_BASE/v1/teammates/member-1042/events" \
  -H "X-API-Key: $TF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "events": [
      {
        "type": "observation",
        "data": {
          "schema": "observation/1",
          "quantity": "hamstring_eccentric_force",
          "measure": "peak",
          "value": 412.0,
          "unit": "N",
          "at": "2026-11-17T15:02:00Z",
          "body": { "joint": "knee", "side": "left" },
          "source": { "route": "org-lab", "device": "force-device-1", "record_id": "org-lab:test:8f2c" },
          "confidence": 0.9,
          "context": { "test": "nordic" }
        }
      }
    ]
  }'
```

```typescript TypeScript theme={null}
import { createClient } from '@technicallyfit/sdk';

const tf = createClient({ credential: process.env.TF_API_KEY ?? '', baseUrl: process.env.TF_API_BASE });

const answer = await tf.POST('/v1/teammates/{external_id}/events', {
  params: { path: { external_id: 'member-1042' } },
  body: {
    events: [
      {
        type: 'observation',
        data: {
          schema: 'observation/1',
          quantity: 'hamstring_eccentric_force',
          measure: 'peak',
          value: 412.0,
          unit: 'N',
          at: '2026-11-17T15:02:00Z',
          body: { joint: 'knee', side: 'left' },
          source: { route: 'org-lab', device: 'force-device-1', record_id: 'org-lab:test:8f2c' },
          confidence: 0.9,
          context: { test: 'nordic' },
        },
      },
    ],
  },
});
console.log(answer.results[0]?.observation?.status);
```

```python Python theme={null}
import os

from technicallyfit import Client

tf = Client(os.environ["TF_API_KEY"], base_url=os.environ.get("TF_API_BASE"))

answer = tf.send_teammate_events("member-1042", {
    "events": [
        {
            "type": "observation",
            "data": {
                "schema": "observation/1",
                "quantity": "hamstring_eccentric_force",
                "measure": "peak",
                "value": 412.0,
                "unit": "N",
                "at": "2026-11-17T15:02:00Z",
                "body": {"joint": "knee", "side": "left"},
                "source": {"route": "org-lab", "device": "force-device-1", "record_id": "org-lab:test:8f2c"},
                "confidence": 0.9,
                "context": {"test": "nordic"},
            },
        }
    ]
})
print(answer["results"][0]["observation"]["status"])
```

## Two examples

A force test from a lab. It names a joint and a side, the device label the lab uses, and
the lab's own id for the record.

```json theme={null}
{
  "schema": "observation/1",
  "teammate": "org-own-id-123",
  "quantity": "hamstring_eccentric_force",
  "measure": "peak",
  "value": 412.0,
  "unit": "N",
  "at": "2026-11-17T15:02:00Z",
  "until": null,
  "body": { "joint": "knee", "side": "left" },
  "source": { "route": "org-lab", "device": "force-device-1", "record_id": "org-lab:test:8f2c" },
  "confidence": 0.9,
  "context": { "test": "nordic" }
}
```

`hamstring_eccentric_force` is not in the quantity list yet: an unlisted quantity is still
valid, is stored as `not_interpreted` with kind `unknown`, and changes nothing until the
list gains it (at which point stored readings inside the replay window are offered to the
engine once).

A self-report from a teammate. No device is involved, so the optional fields are left out.

```json theme={null}
{
  "schema": "observation/1",
  "quantity": "pain",
  "value": 4,
  "unit": "score_0_10",
  "at": "2026-11-17T07:30:00Z",
  "body": { "joint": "knee", "side": "left" },
  "source": { "route": "teammate", "record_id": "teammate:self-report:5d1e" },
  "confidence": 0.8
}
```

## Send an observation

An observation travels as the `data` of an `observation` event, sent with a key that holds
`events:write` (see [Sending events](https://docs.technicallyfit.com/guides/sending-events.md)). This sends the force test
above for the teammate `member-1042`. With an SDK, the builder checks the observation first,
so a mistake fails in your code before any request is sent (see
[Observation builders](https://docs.technicallyfit.com/sdks/observation-builders.md)).

```bash curl theme={null}
curl -X POST "$TF_API_BASE/v1/teammates/member-1042/events" \
  -H "X-API-Key: $TF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "events": [
      {
        "type": "observation",
        "data": {
          "schema": "observation/1",
          "quantity": "hamstring_eccentric_force",
          "measure": "peak",
          "value": 412.0,
          "unit": "N",
          "at": "2026-11-17T15:02:00Z",
          "body": { "joint": "knee", "side": "left" },
          "source": { "route": "org-lab", "device": "force-device-1", "record_id": "org-lab:test:8f2c" },
          "confidence": 0.9,
          "context": { "test": "nordic" }
        }
      }
    ]
  }'
```

```typescript TypeScript theme={null}
import { createClient, event, observation } from '@technicallyfit/sdk';

const tf = createClient({ credential: process.env.TF_API_KEY ?? '', baseUrl: process.env.TF_API_BASE });

// Checked against observation/1 and the quantity list before anything is sent.
const forceTest = observation.measurement({
  quantity: 'hamstring_eccentric_force',
  measure: 'peak',
  value: 412.0,
  unit: 'N',
  at: '2026-11-17T15:02:00Z',
  body: { joint: 'knee', side: 'left' },
  route: 'org-lab',
  device: 'force-device-1',
  recordId: 'org-lab:test:8f2c',
  confidence: 0.9,
  context: { test: 'nordic' },
});

const answer = await tf.events.send('member-1042', [event.observation(forceTest)]);
console.log(answer.results[0]?.observation?.status);
```

```python Python theme={null}
import os

from technicallyfit import Client, event, measurement

tf = Client(os.environ["TF_API_KEY"], base_url=os.environ.get("TF_API_BASE"))

# Checked against observation/1 and the quantity list before anything is sent.
force_test = measurement(
    quantity="hamstring_eccentric_force",
    measure="peak",
    value=412.0,
    unit="N",
    at="2026-11-17T15:02:00Z",
    body={"joint": "knee", "side": "left"},
    route="org-lab",
    device="force-device-1",
    record_id="org-lab:test:8f2c",
    confidence=0.9,
    context={"test": "nordic"},
)

answer = tf.events.send("member-1042", [event.observation(force_test)])
print(answer["results"][0]["observation"]["status"])
```

The answer has one result for the event. An accepted observation answers `"status":
"accepted"` with `observation.status` `not_interpreted`; the
[results](https://docs.technicallyfit.com/guides/sending-events.md#results) section shows the whole answer.

## Fields

Every key is snake\_case. A key that is not in this table is refused, so a misspelled field
is an error and never a silent loss.

| Field | Type | Required | Meaning |
| - | - | - | - |
| `schema` | string | Yes | Always `observation/1`. |
| `teammate` | string or null | No | Your own id for the person, 1 to 200 characters. It says whose observation this is. |
| `quantity` | string | Yes | What was measured: a lower-case name of up to 64 characters that starts with a letter and holds only letters, digits and underscores. A name that is not known yet is still valid. |
| `measure` | string or null | No | Keeps unlike readings of one quantity apart, such as a peak and an average. Same naming rule as `quantity`. |
| `value` | number | Yes | The reading. A real number, never `true`, `false` or a number inside a string. |
| `unit` | string | Yes | The unit of `value`, 1 to 32 characters. |
| `at` | string | Yes | When it was measured, or when the window started. See [Times](#times). |
| `until` | string or null | No | The end of the window, for a reading that covers a span of time. Never before `at`. |
| `body` | object or null | No | Where on the body the reading belongs. Leave it out, or send null, for the whole body. See [Body location and sides](#body-location-and-sides). |
| `body.joint` | string | Yes, when `body` is sent | One of the joint ids listed below. |
| `body.side` | string or null | No | `left`, `right`, `bilateral` or `midline`. |
| `source` | object | Yes | Where the reading came from. |
| `source.route` | string | Yes | The route the reading arrived by: a lower-case id of up to 64 characters that may hold digits, dots, dashes and underscores. |
| `source.device` | string or null | No | Your own label for what measured it, up to 100 characters. |
| `source.record_id` | string | Yes | The source's own id for this record, 1 to 200 characters. |
| `confidence` | number | Yes | How much to trust the reading, from 0 to 1. |
| `protocol` | string or null | No | How the measurement was performed: a registered protocol key or an owner test reference (`owner:<id>:v<n>`), 1 to 128 characters. |
| `instrument` | string or null | No | Registered instrument kind used to capture the reading (device kind only, never a maker or model). |
| `vouching` | integer or null | No | Who vouches for the reading: `1` self-reported (default when omitted or null), `2` device-measured, `3` coach-witnessed, or `4` certified by an approved event or lab. Set by the host. |
| `session` | string or null | No | Session identifier grouping readings from one live or logged training session, 1 to 128 characters. |
| `scope` | string or null | No | Scope the reading covers: `rep`, `set`, `session` or `day`. |
| `context` | object | No | Extra facts about the reading. At most 20 keys. Each value is a string of up to 200 characters, a number, `true`, `false` or null. A value cannot be a list or another object. |

`value` and `confidence` take whole numbers and decimals alike: `4` and `4.0` are the same
reading. A value that is too large to be a number, such as `1e999`, is refused.

## Times

`at` and `until` are RFC 3339 strings that state their offset from UTC. Write the date,
an upper-case `T`, the time with seconds, and then either `Z` or an offset such as
`-05:00`.

| Sent | Result |
| - | - |
| `"2026-11-17T15:02:00Z"` | Accepted. |
| `"2026-11-16T06:10:00-05:00"` | Accepted. |
| `"2026-11-17T07:32:00.250Z"` | Accepted. Fractions of a second are allowed. |
| `"2026-11-17T07:30:00"` | Refused: no offset. |
| `"2026-11-17"` | Refused: a date with no time. |
| `1794900600` | Refused: a number of seconds is not a time. |

Stating the offset removes any doubt about which moment a reading belongs to, whatever
time zone the teammate or your server is in.

For a reading that covers a span, such as a night of sleep or an outside workout, `at` is
the start and `until` is the end. `until` may equal `at` and is never before it. The two
are compared as moments, so they may be written with different offsets.

## Body location and sides

`body` says which joint a reading belongs to and on which side. Use these joint ids, and
only these: another name for the same joint is refused.

| Joints | Ids | Sides |
| - | - | - |
| On the midline of the body | `cervical_spine`, `thoracic_spine`, `lumbar_spine`, `ribcage`, `pelvis` | Always `midline`. |
| With a left and a right | `scapula`, `shoulder`, `elbow`, `wrist`, `hip`, `knee`, `ankle`, `foot`, `hand` | `left`, `right` or `bilateral`. |

When you leave `side` out, a midline joint is read as `midline` and a joint with a left
and a right is read as `bilateral`, which means both sides together. Sending `left` for a
midline joint, or `midline` for a knee, is an error.

Send left and right as two observations, one for each side, and not as one number that
compares them. Two readings keep what was measured on each side.

## Quantities

`quantity` takes any name that fits the naming rule, so a reading with a name that is not
listed here is still a valid observation and is kept as sent. The names below are the ones
with a fixed meaning. For each one the table gives the unit it is stored in, the other
units that are converted to it, its measures, and whether it needs a body location.

**Work done**

| Quantity | Meaning | Unit | Also accepts | Measures | Body location |
| - | - | - | - | - | - |
| `rpe` | How hard one set was, on the 0 to 10 effort scale. | `rpe` | None | None | Not used |
| `session_effort` | How hard a whole session was, on the 0 to 10 effort scale. | `rpe` | None | None | Not used |
| `set_load` | The load lifted in one set. | `kg` | `lb` | None | Not used |
| `set_reps` | The repetitions completed in one set. | `count` | None | None | Not used |
| `set_effort_reported` | How hard one set felt, self-reported on the 0 to 10 effort scale. | `rpe` | None | None | Not used |
| `set_duration` | How long one set lasted. | `s` | `min`, `h` | None | Not used |
| `set_distance` | The distance covered in one set. | `m` | `km`, `yd`, `ft`, `mi` | None | Not used |
| `bar_velocity` | How fast the bar moved during a repetition. | `m/s` | `mph`, `km/h` | `mean`, `peak` | Not used |
| `velocity_loss` | How much bar speed dropped from the fastest repetition of a set to the last. | `percent` | None | None | Not used |
| `outside_workout_duration` | The moving time of a workout done outside a program, one observation per workout. | `s` | `min`, `h` | None | Not used |
| `power` | Mechanical power output during work. | `W` | None | `mean`, `peak` | Not used |
| `speed` | Movement speed over a rep, set or interval. | `m/s` | `mph`, `km/h` | `mean`, `peak` | Not used |
| `acceleration` | Linear acceleration during movement. | `m/s2` | None | None | Not used |
| `cadence` | Step or stride cadence during locomotion. | `steps/min` | None | None | Not used |
| `ground_contact_time` | Time the foot spends in contact with the ground per stride. | `ms` | None | None | Not used |
| `energy_expended` | Estimated energy expended during work. | `kcal` | `kJ` | None | Not used |

**Joint-level measures**

| Quantity | Meaning | Unit | Also accepts | Measures | Body location |
| - | - | - | - | - | - |
| `pain` | Pain at a joint, from 0 to 10. | `score_0_10` | None | None | Required |
| `soreness` | Soreness at a joint, from 0 to 10. | `score_0_10` | None | None | Required |
| `force` | Force produced at a joint, one reading per side. | `N` | `lbf`, `kgf` | `peak`, `mean` | Required |
| `range_of_motion` | How far a joint moves. | `deg` | `rad` | `active`, `passive` | Required |
| `squat_e1rm` | Estimated one-repetition max for the squat pattern, on its reference lift (barbell back squat). | `kg` | `lb` | None | Not used |
| `hinge_e1rm` | Estimated one-repetition max for the hinge pattern, on its reference lift (barbell deadlift). | `kg` | `lb` | None | Not used |
| `push_horizontal_e1rm` | Estimated one-repetition max for the push horizontal pattern, on its reference lift (barbell bench press). | `kg` | `lb` | None | Not used |
| `push_vertical_e1rm` | Estimated one-repetition max for the push vertical pattern, on its reference lift (barbell overhead press). | `kg` | `lb` | None | Not used |
| `pull_horizontal_e1rm` | Estimated one-repetition max for the pull horizontal pattern, on its reference lift (barbell row). | `kg` | `lb` | None | Not used |
| `pull_vertical_e1rm` | Estimated one-repetition max for the pull vertical pattern, on its reference lift (lat pulldown, cable stack weight, both arms). | `kg` | `lb` | None | Not used |
| `single_leg_e1rm` | Estimated one-repetition max for the single leg pattern, on its reference lift (barbell split squat). | `kg` | `lb` | None | Not used |
| `carry_load_kg` | The load per hand held in a carry test. | `kg` | `lb` | None | Not used |
| `carry_seconds` | How long the carry test load was held. | `s` | `min` | None | Not used |
| `sprint_time` (a family of names) | A timed sprint, named by its start and distance: sprint\_40yd\_seconds from a standing start, flying\_10m\_seconds from a flying start. | `s` | None | None | Not used |
| `jump_height` | Vertical jump height. | `cm` | `in` | `countermovement`, `approach` | Not used |
| `rate_of_force_development` | Rate at which force rises at a joint. | `N/s` | None | None | Required |
| `muscle_oxygen` | Local muscle oxygen saturation, optionally tied to the joint it moves. | `percent` | None | None | Optional |
| `muscle_activation` | Normalized muscle activation level, optionally tied to the joint it moves. | `percent` | None | None | Optional |

**Whole-body signals**

| Quantity | Meaning | Unit | Also accepts | Measures | Body location |
| - | - | - | - | - | - |
| `heart_rate_variability` | Beat-to-beat variation in heart rate. | `ms` | None | `rmssd`, `sdnn` | Not used |
| `resting_heart_rate` | Heart rate at rest. | `bpm` | None | None | Not used |
| `sleep_duration` | Time asleep. | `s` | `min`, `h` | None | Not used |
| `sleep_score` | A sleep score on its source's own scale. | `score` | None | None | Not used |
| `readiness_score` | A readiness score on its source's own scale. | `score` | None | None | Not used |
| `recovery_score` | A recovery score on its source's own scale. | `score` | None | None | Not used |
| `stress_score` | A stress score on its source's own scale. | `score` | None | None | Not used |
| `heart_rate` | Heart rate measured during activity or over a window. | `bpm` | None | `mean`, `peak`, `min` | Not used |
| `heart_rate_recovery` | Drop in heart rate over a recovery interval after exercise. | `bpm` | None | None | Not used |
| `blood_pressure` | Arterial blood pressure. | `mmHg` | None | `systolic`, `diastolic` | Not used |
| `breathing_rate` | Breathing frequency in breaths per minute. | `breaths/min` | None | None | Not used |
| `blood_oxygen` | Peripheral blood oxygen saturation. | `percent` | None | None | Not used |
| `oxygen_uptake` | Relative rate of oxygen uptake. | `mL/kg/min` | None | None | Not used |
| `blood_lactate` | Blood lactate concentration. | `mmol/L` | None | None | Not used |
| `blood_glucose` | Blood glucose concentration. | `mg/dL` | `mmol/L` | None | Not used |
| `core_temperature` | Core body temperature. | `degC` | `degF` | None | Not used |
| `skin_temperature` | Skin surface temperature. | `degC` | `degF` | None | Not used |
| `sleep_stage_duration` | Time spent in a sleep stage. | `s` | `min`, `h` | `light`, `deep`, `rem`, `awake` | Not used |
| `body_mass` | Total body mass. | `kg` | `lb` | None | Not used |
| `body_fat` | Body fat percentage. | `percent` | None | None | Not used |
| `lean_mass` | Lean body mass. | `kg` | `lb` | None | Not used |
| `height` | Standing height. | `cm` | `in` | None | Not used |
| `girth` | Body circumference at a named site. | `cm` | `in` | `waist`, `hip`, `chest`, `thigh`, `calf`, `upper_arm` | Not used |

`sprint_time` names a family of quantities and is never sent itself. Send the name of the member, and it keeps that name.

`sleep_score`, `readiness_score`, `recovery_score`, `stress_score`: each is a score on the scale of whoever computed it. A score is kept as sent and is never compared with a score from another source.

`blood_pressure`, `blood_oxygen`, `blood_glucose`, `body_mass`, `body_fat`, `lean_mass`, `height`, `girth`: these sensitive measures are stored when sent, kept in the teammate's own export, removed on account erasure, and not returned in organization reads, webhooks, shares, or engine inputs.

**Older names**

| Older name | Read as | Measure | Unit |
| - | - | - | - |
| `hrv_rmssd_ms` | `heart_rate_variability` | `rmssd` | Only `ms` |
| `resting_hr_bpm` | `resting_heart_rate` | None | Only `bpm` |
| `sleep_hours` | `sleep_duration` | None | Only `h` |

Four rules apply to a listed quantity:

* **Units match exactly as written.** `kg` and `lb` are units of `set_load`; `KG`, `Lb`
  and `lbs` are not. A unit that is not listed for the quantity cannot be converted.
* **A quantity that lists measures needs one.** `bar_velocity` is sent with `measure`
  set to `mean` or `peak`. Two measures of one quantity are never converted into each
  other.
* **A quantity that lists no measures takes none.** Leave `measure` out for `set_load`.
* **A quantity that needs a body location needs `body`.** `pain` with no joint cannot be
  placed.

An older name is still read. When the older name states a unit, as `sleep_hours` does,
only that unit is accepted under that name.

The list only grows. A quantity, an accepted unit, a measure or an older name is never
removed, and the unit a quantity is stored in never changes.

## What feeds body state

Body state is the per-joint read of how careful to be at each joint. Of the quantities
above, two feed it:

| Quantity | Effect |
| - | - |
| `pain` | Raises caution at the joint and side it names, and at the joints near it. |
| `soreness` | Raises caution in the same places. |

Both need a `body` with a joint, the unit `score_0_10` and a `confidence` above 0. A
reading with no side on a joint that has a left and a right is shared between the two
sides, so one report is not counted twice. A report counts for less as it gets older. Only
live readings fold into body state: test-mode readings are stored and never change it.

Every other quantity is skipped for body state with the reason `does not feed body
state`. That includes `rpe`, `session_effort`, `force` and `range_of_motion`: they are
valid observations, and they do not change body state.

## Outside workouts

A workout done outside a program, such as a run, a ride or a swim, is one observation
with the quantity `outside_workout_duration`. The value is the time spent moving, in `s`,
`min` or `h`. `at` is when it started and `until` is when it ended.

```json theme={null}
{
  "schema": "observation/1",
  "teammate": "org-own-id-123",
  "quantity": "outside_workout_duration",
  "value": 45,
  "unit": "min",
  "at": "2026-11-16T06:10:00-05:00",
  "until": "2026-11-16T06:58:00-05:00",
  "source": { "route": "teammate", "record_id": "teammate:workout:71ac" },
  "confidence": 0.8,
  "context": { "activity": "run", "distance_m": 8000, "effort": 6 }
}
```

`context` may say more about the workout. Every key is optional, so a workout entered by
hand with only a duration counts the same way as one that a device recorded.

| Context key | Meaning |
| - | - |
| `activity` | One of `run`, `ride`, `swim`, `row`, `hike`, `walk` or `other`. Anything else, or no activity, is read as `other`. |
| `distance_m` | Distance covered, in meters. |
| `avg_heart_rate_bpm` | Average heart rate, in beats per minute. It is kept with the workout and is not used to judge how hard it was. |
| `avg_power_w` | Average power, in watts. |
| `effort` | How hard it was, from 0 to 10, as the teammate rates it. |

How hard the workout was comes from `effort` when it is sent. Without it, a workout is
taken as moderate (5 out of 10), and a walk as easy (3 out of 10), so a workout that says
nothing about its effort is neither ignored nor overcounted.

An outside workout counts as work the body did: the muscles that carry the activity are
treated as having worked, for longer workouts and harder ones more so. It is not a logged
set of the program, and it does not count toward completing the program's sessions.

A duration that is zero or negative, or in a unit that is not a time, is not used. Two
observations with the same `source.record_id` are one workout.

## Source

`source.route` names how the reading reached you, such as your own lab, your gym floor
or a teammate's self-report. Choose a route id for each way readings arrive and keep it
the same over time.

`source.device` is free text for your own use. `source.record_id` is the id the source
itself gave the record, so each reading can be traced back to where it came from.

Optional `protocol` and `instrument` fields say how a test was run and what kind of
equipment measured it. A sender never sets a result's vouching level: TechnicallyFit
assigns the level from how the reading arrived and who attests to it. See
[Verified records](https://docs.technicallyfit.com/guides/verified-records.md).

## Confidence

`confidence` is your estimate of how far the reading can be trusted, from 0 (not at all)
to 1 (fully). A supervised test on calibrated equipment earns a higher number than an
estimate. It is required, so that no reading is trusted by default.

Each route also has a default confidence, and a reading is never trusted more than its
route. The first time you send a route, it is registered for your organization with a
default of 0.8; a reading sent with a higher confidence is stored at that default, and
one sent lower keeps its own number. You cannot change a route's default. When a reading
names a registered `protocol` and an `instrument`, a less precise instrument kind can
lower the stored confidence below the route default (see
[Verified records](https://docs.technicallyfit.com/guides/verified-records.md)).

Two routes are the platform's own, for self-reports: `teammate` (the person reported it,
default 1.0) and `coach` (a coach reported it for them, default 0.9). Any organization may
send them. They take pain, soreness, session effort and outside workouts only;
[Without a device](https://docs.technicallyfit.com/guides/without-a-device.md) explains them.

## Status

Every observation is stored once, against the teammate, with one of three statuses:

| Status | When |
| - | - |
| `not_interpreted` | When it is accepted. It is stored and kept, and nothing in the planner has used it yet. |
| `interpreted` | When the engine uses it, for example to adjust a program. The engine version and the part of the engine that used it are recorded with it. |
| `rejected` | When it was refused, with the reason (the same code the event result and the `event.rejected` webhook carry). |

A rejected observation becomes `not_interpreted` when you send a corrected copy under the
same `source.route` and `source.record_id`. A `not_interpreted` observation is not lost:
when the engine learns to read its quantity, stored readings can be used then (see
[Used later](#used-later)).

Each stored observation keeps the value and unit you sent and, for a quantity listed
above, the value in the quantity's own unit. The teammate's data export lists every
observation sent about them, with its status and the organization that sent it.

## Used later

The path from one live observation to a program change and its webhook. A test observation
is stored and kept, and never changes a program.

```mermaid theme={null}
flowchart TD
  O["You send an observation event"] --> V{"Valid?"}
  V -- No --> R["rejected, with a reason<br/>In the response and in event.rejected"]
  V -- Yes --> S["Stored as not_interpreted"]
  S --> W["The teammate's next week end<br/>Offered to the engine once"]
  W --> U{"Can the engine use it?"}
  U -- "Not yet" --> K["Stays not_interpreted and is kept<br/>Offered again once a later engine version reads it"]
  U -- "Yes, and the program changes" --> Q{"Active coach, and the<br/>change alters a session?"}
  Q -- No --> AP["A new revision applies at once<br/>The observation becomes interpreted<br/>program.revised"]
  Q -- Yes --> PR["The change waits as a proposal<br/>proposal.created"]
  PR -- "A coach accepts" --> AP
```

The engine reads a teammate's observations when a program week ends. Each observation is
offered to the engine once, at the first week end after it arrives. One the engine cannot
use yet stays `not_interpreted` and is kept. If a coach declines a change that a week end
proposed, the observations it used still count as offered.

When a later engine version learns to read a quantity, the stored `not_interpreted`
observations of that quantity are offered again, once, at the teammate's next week end,
in the order they were measured. You do not send them again. The window is the 90 days
before the new engine version arrived: observations measured in that window and received
before the new version are offered. An observation the engine then uses becomes
`interpreted`. If it changes the program, the change is a revision like any other: it
applies at once, or waits for the teammate's coach, and the usual webhooks fire. Its
`cause.kind` is `observation_replay` (see [causes](https://docs.technicallyfit.com/guides/programs-and-revisions.md#causes)).
Using older readings never sends a separate burst of webhooks.

Only live observations are used this way: test observations never change a program.
Scores a source computes with its own formula, such as readiness, recovery, strain and
sleep scores, are never used, whatever engine version arrives. A `rejected` observation is
not used later either: send a corrected copy.

## Versions

`observation/1` only ever grows by adding optional fields (such as `protocol` and
`instrument`, described in [Verified records](https://docs.technicallyfit.com/guides/verified-records.md)), so a payload
that is valid today stays valid. A change that would break existing payloads gets a new
version string, and `observation/1` keeps its meaning.

## Mapping a whole source

To turn every record of a source (a device, a partner system, a file) into observations the
same way each time, write a source adapter and check it with the conformance kit. See
[Adapting a source](https://docs.technicallyfit.com/guides/adapting-a-source.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.