Repository navigation
Show and record what Guard + Runway did - #2611
Merged
Merged
Conversation
With Guard + Runway on, the Predicted Glucose screen gets a Guard + Runway row. It shows how far the forecast was lowered and the recent volatility (or that active carbs kept the guard off), and how far the automatic dosing target was lowered. Checking or unchecking the row draws the comparison curve with or without the guard. The retrospective correction row notes when the post-low rise cut is active. Each dosing decision's guardAndRunway experiment entry now also records volatility, bandApplied, bandGain, bandDepth, runwayShift and postLowRiseCutActive alongside volatilityBaseline, so they are stored and uploaded to Nightscout and Tidepool with the decision.
Trpl7ca
pushed a commit
to Trpl7ca/LoopWorkspace
that referenced
this pull request
Oct 25, 2026
- LoopKit/LoopAlgorithm#12: AlgorithmOutput.guardAndRunway - LoopKit/LoopAlgorithm#13: Report the guard band's actual depth - LoopKit/Loop#2611: Show and record what Guard + Runway did
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.
Shows and records what Guard + Runway did on each run. It uses
AlgorithmOutput.guardAndRunwayfrom LoopKit/LoopAlgorithm#12 (merged); LoopKit/LoopAlgorithm#13 makes itsbandDepththe actual lowering.Predicted Glucose screen (only with Guard + Runway on)
Dosing decisions
The
guardAndRunwayentry in each decision'salgorithmExperimentsnow recordsvolatility,bandApplied,bandGain,bandDepth,runwayShiftandpostLowRiseCutActivealongsidevolatilityBaseline. That entry is already stored and uploaded to Nightscout and Tidepool, so the new values go there with no service changes. The decision recorded after a bolus is entered still has only the baseline.Tested