Sleep
| component | weight | kind | parameters |
|---|---|---|---|
| duration vs target | 25% | sensor | target hours 7.5 |
| efficiency | 20% | sensor | — |
| deep sleep pct | 20% | sensor | target pct 0.15 |
| rem pct | 15% | sensor | target pct 0.2 |
| onset consistency | 20% | sensor | window days 14 |
the method · under the hood
The character sheet is a game — and a game you can't audit is just a badge. This page is the rulebook: every number below is generated from the exact config and constants the engine runs (engine v1.10.0 · config v1.7.0), never hand-typed, and a drift check fails the build if the rules change without this page regenerating.
Every night the engine scores the instrumented pillars, each 0–100, from weighted components. Each component is a habit, another behavior (training, logging food, reading) or a sensor (something a device measures). Only the daily habits are two-state: an unlogged habit is a habit that didn't happen, so it scores 0 at full weight. Any other component with no data is unknown — the engine has no evidence either way, so it drops out of the weight sum and lowers the day's coverage instead (ADR-104, narrowed in 2026-11). Missing information is never read as decline. The instrumented pillars' weights below sum to 93%; the headline renormalizes over them.
A handful of component targets — sleep duration, deep and REM share — are not fixed opinions: once at least 30 observations of Matthew's own history exist, the target is re-derived monthly as the 75th percentile of his own distribution, clamped inside documented safety bounds (ADR-105 rule 4: thresholds come from personal variance, not authored taste). Until a metric clears that floor, the numbers below stand — explicitly labeled a population prior. Every derived target carries its provenance: method, window, and sample size.
Daily steps is the exception, because it is a commitment rather than a habit to measure: its target is the training plan's every-day floor and it scores full marks at the plan's step target, the same two numbers the morning coaching line states. Deriving it from his own history would let a run of low days lower the bar.
| component | weight | kind | parameters |
|---|---|---|---|
| duration vs target | 25% | sensor | target hours 7.5 |
| efficiency | 20% | sensor | — |
| deep sleep pct | 20% | sensor | target pct 0.15 |
| rem pct | 15% | sensor | target pct 0.2 |
| onset consistency | 20% | sensor | window days 14 |
| component | weight | kind | parameters |
|---|---|---|---|
| training frequency | 15% | behavior | target sessions week 5 |
| zone2 adequacy | 20% | behavior | target minutes 150 |
| training load balance | 15% | sensor | — |
| progressive overload | 10% | sensor | — |
| movement diversity | 10% | behavior | target types 4 |
| daily steps | 10% | sensor | target 12000 · perfect at 15000 |
| strength sessions | 20% | behavior | target days week 3 |
| component | weight | kind | parameters |
|---|---|---|---|
| calorie adherence | 20% | behavior | tolerance pct 0.1 |
| protein total | 20% | behavior | target grams 170 |
| protein distribution | 10% | behavior | target meals 4 |
| consistency | 10% | behavior | — |
| body composition progress | 40% | sensor | — |
| component | weight | kind | parameters |
|---|---|---|---|
| cgm glucose control | 30% | sensor | — |
| lab biomarkers | 40% | sensor | full value days 30 · decay period days 60 · expiry days 180 · floor pct 0 |
| blood pressure | 15% | sensor | — |
| resting heart rate | 15% | sensor | — |
| component | weight | kind | parameters |
|---|---|---|---|
| t0 habit compliance | 37.5% | habit — unlogged scores 0 | — |
| t1 habit compliance | 12.5% | habit — unlogged scores 0 | — |
| state of mind valence | 12.5% | sensor | — |
| stress management | 12.5% | held out — owner-only input | description Reported stress from the evening check-in, scored 0-100 (calmer is higher; #5129). The answers are private, so this score is kept out of the published Mind score and is never named as a driver. |
| vice control | 12.5% | sensor | — |
| reading practice | 12.5% | behavior | target days week 4 |
Not instrumented: no defensible, owner-approved relationship assessment exists yet (#6293). Model-coded readings of the journal are kept as interpretation and feed no score.
| component | weight | kind | parameters |
|---|---|---|---|
| cross pillar variance | 35% | sensor | — |
| data completeness | 15% | sensor | — |
| streak maintenance | 20% | sensor | — |
| weekend weekday stability | 15% | sensor | — |
| task follow through | 15% | sensor | — |
On a day the engine could actually judge, each pillar's raw score lands in a fixed band. A good day earns XP; a decent-but-unremarkable day earns nothing (ADR-134's zero point); a low day also earns nothing. XP never goes down: there is no daily decay, no negative balance and no debt — missing data, inactivity and rest cost no XP at all, and a day with too little evidence carries no XP judgment in either direction.
| day's raw score | XP earned | shield |
|---|---|---|
| 80–100 | +2 | +2 |
| 60–79 | +1 | +1 |
| 40–59 | +0 | +0 |
| 20–39 | +0 | -1 |
| 0–19 | +0 | -2 |
A level is 100 XP deep. The band's signed value — the shield column — moves a small shield (capped at 40) that acts as demotion insurance: good days fill it, measured low days drain it, and a day without evidence leaves it alone. A level-down can only land once the shield is under 20. It is flip-flop insurance against noisy data; silence never drains it.
Raw scores are smoothed by an exponential moving average (default λ 0.85 over a 21-day window; each pillar can override λ, see the pillar cards). The smoothed score, rounded, is the target level — but no level ever jumps to its target. Four gates stand in the way:
When a gate finally opens, the step size scales with the honest gap, so a pillar far from its target converges instead of marching one level at a time:
| gap between target and current level | step per move |
|---|---|
| more than 25 levels | 3 levels |
| more than 10 levels | 2 levels |
| anything smaller | 1 level |
The 100 levels group into five tiers, and the streak gates get progressively harder as the tiers rise — holding Elite demands more proof than leaving Foundation. Falling always takes a longer streak than climbing (a slump has to prove itself harder than a surge), and crossing a tier boundary in either direction demands the longest streaks of all.
| tier | levels | level up | level down | tier up | tier down |
|---|---|---|---|---|---|
| Foundation | 1–20 | 3 days | 5 days | 5 days | 7 days |
| Momentum | 21–40 | 5 days | 7 days | 7 days | 10 days |
| Discipline | 41–60 | 7 days | 10 days | 10 days | 14 days |
| Mastery | 61–80 | 10 days | 14 days | 14 days | 21 days |
| Elite | 81–100 | 14 days | 21 days | 21 days | 30 days |
Pillars aren't independent — the engine models a small set of spillovers as multiplicative modifiers on the day's scores. Every active effect applies (they stack), and each is announced on the character sheet when live. Boosts raise the level a pillar converges to, but never the lived-day bar — a standing boost can't demand a day nobody can perform (see the gates above).
These effects started life as authored priors — plausible physiology, written by hand, not measured. Every quarter the engine re-fits each one against the lived data as a lagged driver→next-day-target relationship (moving-block bootstrap 95% CI, false-discovery-rate corrected, autocorrelation-honest n). An effect earns the badge fitted only when its interval excludes no-effect in the claimed direction — and can lose it again at the next fit. The live badge (with its n and interval) is on the character sheet; a prior that fails to confirm is published on the wrong page as a finding (#1411, ADR-105).
| effect | condition | modifier | evidence status |
|---|---|---|---|
| Sleep Drag | sleep < 35 | movement −8% · mind −5% | authored prior |
| Training Boost | movement > 70 | metabolic +5% | authored prior |
| Focus Buff | mind > 70 | consistency +3% | authored prior |
| Synergy Bonus | nutrition > 70 AND movement > 70 | metabolic +8% | authored prior |
| Alignment Bonus | all_pillars >= 41 | all pillars +3% | authored prior |
| Vice Shield | any_vice_streak > 30 | mind +3% | authored prior |
The game's hardest honesty rules are about absence (ADR-104, amended 2026-11). The sheet can never coast on silence — and it can never read silence, inactivity or rest as decline.
The headline Character Level is the weight-averaged mean of the pillar levels, renormalized over the pillars that are instrumented and have earned a level, then floored — never rounded up. It understates by construction.
The character's mood — unavailable · fading · steady · thriving — is equally deterministic (ADR-105): pure code over the presence signal and the 7-day composite raw-score trend of the measured days. Fading needs the measured days themselves to fall (a trend of −5 or worse); when logging has simply gone quiet the mood is unavailable — not observed, never read as decline; thriving demands active logging, a trend of +3 or better, and a composite of at least 55; everything else is steady. No model ever decides how the character feels.
Deterministic: everything on this page. Scores, XP, levels, tiers, effects and mood are pure code over logged data — the same inputs always produce the same character, and no language model sits anywhere in the loop (ADR-104/105).
Judged: only the words around the numbers. The coaches' commentary, the weekly chronicle, and the narrative surfaces are AI-written about these pre-computed numbers, grounded by the platform's generation gates — the narration can characterize a level, but it can never move one.
And a boundary worth stating: the game is a motivational lens on real data, not a medical score. Every input is correlative and N=1.
Generated by scripts/v4_build_game_explained.py from config/character_sheet.json and lambdas/character_engine.py — the same config the nightly engine loads. Two tests guard it: the committed page must match the generator's output exactly, and a fingerprint of the engine's mechanics functions must match the one recorded when this prose was last verified (tests/test_game_explained.py). The plain-language story of the level lives on the character explainer; the live sheet is at /data/character/; every other published statistic is documented in the Methods Registry. generated, not authored