Skip to content

Honest scores: withheld numbers with reasons, "What changed" log, formula versions - #28

Merged
gabrielbr merged 2 commits into
mainfrom
ccr-67ccb970-dqwwqd
Oct 21, 2026
Merged

gabrielbr merged 2 commits into
mainfrom
ccr-67ccb970-dqwwqd

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner

Withholding numbers

  • Night HRV: withheld when there are too few readings, when every reading is identical, or when the readings are too scattered. The night keeps the reason.
  • Resting HR: withheld when there are too few readings.
  • Readiness: withheld ("Not measured", with the reasons) when it has neither resting HR nor HRV, has fewer than two contributors, or its contributors carry under half of the weight that applies. This replaces the misleading "Learning" state.

Readiness → "Data behind this score"

  • Shows coverage, reading counts, what was withheld and why, baseline nights, and the formula version.

"What changed" log (opened from My Health, DB v33 findings)

  • Compares the last nights against the previous four weeks, once two weeks of data exist.
  • Detects: resting HR up or trending down, HRV down or trending up, skin temperature up, sleeping less or more, and Symptom Radar signs.
  • Refreshed hourly and when the screen opens; "Nothing stood out" is shown as an answer.

Other changes

  • Algorithms.VERSION stamps findings.
  • "Cardiovascular age" is removed.

Tests: FindingsTest, and ReadinessTest (the withheld cases and the HRV quality gate).


Generated by Claude Code

…ormula versions

- A night's HRV is withheld when there are too few readings, when every
  reading is the same value, or when they're scattered too widely (median
  absolute deviation over half the median); resting HR when there are too few.
  The night keeps the reason.
- Readiness is withheld (shown as "Not measured", with the reasons) when last
  night has neither resting HR nor HRV, fewer than two contributors survive, or
  they carry under half of the weight that applies. Previously this read as
  "Learning", which was false once a baseline existed.
- Readiness → "Data behind this score": coverage, reading counts, what was
  withheld and why, nights in the baseline, and the formula version.
- "What changed" (from My Health): each night against the previous four weeks
  once two exist — resting HR up or trending down, HRV down or trending up,
  skin temperature up, sleeping less or more, and Symptom Radar signs. Stored
  per day in a findings table (DB v33) so past findings can be browsed, with
  "Nothing stood out" as a real answer. Refreshed hourly and on opening.
- Algorithms.VERSION stamps findings and shows in the data view.
- "Cardiovascular age" removed: from a ring it only restated resting HR and age.

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
@gabrielbr
gabrielbr merged commit 544ef48 into main Oct 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants