feat(edge): EdgeIngest phone-side receiver (Dart)#59
Open
isrugeek wants to merge 4 commits into
Open
Conversation
Canonical phone-side consumer of the edge wire contract for Flutter apps: parse, sha256 verify, hsi_version validate, dedupe by artifact_id, ACK. Idempotent duplicate re-ACK, poison-pill dead-letter (K=3), bounded LRU dedupe. Sealed EdgeEvent + broadcast Stream + listener (dispose-aware). Additive; exported from the barrel. README + CHANGELOG.
Mirror RecoveryScoreResult/ReadinessScoreResult: add a SleepFactor enum (in lockstep with the engine's synheart_sleep_score::SleepFactor wire strings) and an explanation: List<SleepFactor> field, parsed from the 'explanation' wire array (unknown wires dropped — the engine enum is non_exhaustive). Fixes the undefined-getter break in synheart-life's ExplanationFacts.fromSleep, which already referenced SleepScoreResult.explanation. Adds parse + wire-contract tests.
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.
Pure-Dart canonical phone-side consumer of the edge wire contract — parity with the Kotlin/Swift EdgeIngest (same dedupe/hash/version/ACK, idempotent duplicate re-ACK, poison-pill dead-letter K=3, bounded LRU, sealed EdgeEvent + broadcast Stream). Additive, branched off main (the score-explanation feature is intentionally NOT bundled). 27 edge tests pass.