Skip to content

Fix Helio sleep stage minutes - #8

Merged
allenlinsh merged 1 commit into
mainfrom
fix/helio-stage-minutes
Oct 18, 2026
Merged

allenlinsh merged 1 commit into
mainfrom
fix/helio-stage-minutes

Conversation

@allenlinsh

Copy link
Copy Markdown
Member

Helio records the final minute of a sleep stage inclusively. Motion treated equal start/end minutes as zero duration and rejected the entire sleep record, leaving direct sync incomplete. Decode that minute correctly while preserving raw timestamps, clipping to the next stage/session boundary, and retaining real gaps and validation of malformed records.

Add synthetic wire regressions for the reported failure, complete stage totals, naps on the combined timeline, replay, and archive/cursor preservation. Prepare TestFlight build 13. Protocol evidence: perezjuanj/OpenCircuit#312; implementation is an independent local adaptation of the existing MIT-vendored package.

Validation: reproduced the reported error before the fix; all 98 iOS unit tests and 119 protocol tests pass afterward. Successful sync on the user's physical strap remains to be checked after installing the new build.

@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
motion Building Building Preview Oct 18, 2026 1:44am UTC

Request Review

@allenlinsh
allenlinsh merged commit ce75bec into main Oct 18, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 83ff4e5c Deployed Oct 18, 2026 by vercel[bot]
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.

1 participant