Repository navigation
Accuracy check grades past days too - #92
Merged
Merged
Conversation
A check can reach back 7, 14 or 30 days (14 by default) over what the app, the second ring and Health Connect already hold, from the start dialog or on a running check. Grading moves (historyFrom, DB v39); the check's start, day count and export pause do not. Never before the ring was paired. Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The owner asked for historical data to count. Until now a check graded only from the moment it started.
What changes
comparison_readingsfor the second ring, and Health Connect for the watch.How it works
AccuracyCheckEntity.historyFrom(DB v39,MIGRATION_38_39). The scorer usesgradeFrom.startedAt, the day count and everypausedFromstay at the real start, so the export pause doesn't change.DataOrigin, so PulseLoop's own past exports can't come back as the reference.createdAt, because ring rows carry no device id.gradeFromchanges.historyFromrides in the archive.Checks
AccuracyHistoryStartTest. The accuracy, archive and comparison tests pass locally.audits/2026-11-18-accuracy-past-days.md. It covers the four skills, with impeccable run on renders at 1.0× and 1.3×.docs/ring-comparison.md, and an AGENTS.md rule.Design canvas: the boards still need updating. That is owed, as on the earlier PRs.
Generated by Claude Code