Skip to content

Report Guard + Runway in analytics - #2610

Merged
ps2 merged 1 commit into
next-devfrom
feature/guard-and-runway-analytics
Oct 25, 2026
Merged

ps2 merged 1 commit into
next-devfrom
feature/guard-and-runway-analytics

Conversation

@ps2

@ps2 ps2 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

#2608 added the Guard + Runway experiment but not to analytics, which reported only Integral Retrospective Correction and Glucose Based Partial Application. This adds it everywhere those two appear:

  • the "Guard + Runway" user property (On/Off)
  • the "Algorithm experiment change" event when it is toggled
  • guardAndRunway in the daily summary

AnalyticsState is stored in UserDefaults with the daily summary, so it gets a decoder that reads a missing guardAndRunway as off; otherwise the summary saved before updating would fail to decode and that day's counts would be lost.

LoopTests pass (344).

Add it to AnalyticsState alongside the other two experiments: the user property, the algorithm experiment change event and the daily summary. Daily summaries stored before this lack the field and decode it as off.
@ps2
ps2 merged commit c057065 into next-dev Oct 25, 2026
ps2 added a commit to ps2/LoopWorkspace that referenced this pull request Oct 25, 2026
- LoopKit/Loop#2609: Algorithm Experiments rows ordered by lift
- LoopKit/Loop#2610: Report Guard + Runway in analytics
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