From b8a34fa3388313eb29e1f05be4ccc860662be7b5 Mon Sep 17 00:00:00 2001 From: Mohammad Abdul Sahil <127765312+abdulsaheel@users.noreply.github.com> Date: Thu, 20 Aug 2026 22:31:37 +0530 Subject: [PATCH] repin analytics for the stager pass MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit algo stays 76 — the stager does the same arithmetic in fewer passes and the real night stages identically. --- lib/compute/derivation_engine.dart | 9 ++++++++- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/compute/derivation_engine.dart b/lib/compute/derivation_engine.dart index bf5ed297..e193ff37 100644 --- a/lib/compute/derivation_engine.dart +++ b/lib/compute/derivation_engine.dart @@ -1310,7 +1310,14 @@ const int kAlgoVersion = 76; // produced and no baseline ever held. For a user whose data is valid, every // number out of both packages is byte-identical, so a bump would invalidate // every stored day to recompute the same answers. -const String kAnalyticsPin = '3174a493472a5e6280b11a0ab11fec82483507e1'; +// +// This repin picks up the analytics perf pass, and kAlgoVersion holds at 76 for +// the same reason: the stager does the same arithmetic in fewer passes. The one +// place that could have gone wrong was sorting the HR window before `stddev`, +// which re-orders a float summation — that is computed before the sort now, and +// the real overnight capture staged identically down to the last digit of +// confidence. +const String kAnalyticsPin = 'd9362a66fbeac326d5d7d7b1fe27b28e41169a79'; const String kProtocolPin = 'c761f29bcbed73886b1b059dcd9e92e4333574f5'; // Fold idempotency, the minimum-nights warm-up, and legacy-payload handling diff --git a/pubspec.lock b/pubspec.lock index 9262bb70..33204675 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -924,8 +924,8 @@ packages: dependency: "direct main" description: path: "." - ref: "3174a493472a5e6280b11a0ab11fec82483507e1" - resolved-ref: "3174a493472a5e6280b11a0ab11fec82483507e1" + ref: d9362a66fbeac326d5d7d7b1fe27b28e41169a79 + resolved-ref: d9362a66fbeac326d5d7d7b1fe27b28e41169a79 url: "https://github.com/OpenStrap/analytics.git" source: git version: "1.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 7d76c67b..60cf34aa 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -198,7 +198,7 @@ dependencies: # abstains rather than billing every waking minute as active when the # anchors are unusable — which is source-breaking here, not # number-changing (see `onehz_pipeline` and `_dailyEnergy`). - ref: 3174a493472a5e6280b11a0ab11fec82483507e1 + ref: d9362a66fbeac326d5d7d7b1fe27b28e41169a79 # BLE — flutter_blue_plus is the maintained cross-platform GATT client. flutter_blue_plus: ^1.36.8