Repository navigation
Conversation
Added toggle for mg/dl and mmol/L
tim2000s
added a commit
that referenced
this pull request
Jun 26, 2026
…>= confirmed-cap (review LOWs) #4 (defense-in-depth): V5's IOB backstop used ApsBoostMaxIob alone; clamp the V5 headroom to min(boost_maxIOB, opb.max_iob) so a higher ApsBoostMaxIob can never let V5 exceed the oref/system maxIOB V1 enforces. #5 (correctness): cumulativeSmbCap60Min clamped to 5.0 while confirmedCap clamps to 7.5, so a big-meal user's hourly budget could sit BELOW a single confirmed shot. Raise the clamp ceiling to max(5.0, confirmedCapU). Mirrored in the Swift calculator for parity; big-meal invariant test added on both platforms. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
tim2000s
added a commit
that referenced
this pull request
Oct 8, 2026
Patch number on the released line for fixes that only withhold or bound insulin, except where noted in the individual commits: tranche release bounded by the caps and gates (#1), pre-meal target off at night, while asleep, under a temp target and after a low (#8), V6 error falls back to base oref (#9), primer respects running low temps and V6's hard gates (#10), missing heart rate blocks the INACTIVE raise (#12), the sleep boundary exit no longer reopens INACTIVE or the gate for a cycle (#18), percent-scale divisor no longer shrinks above 180 (#4), SMB clamped to max_iob (#5), G3 hold kept after a recent low (#19), spike override limited to Tier 8 outside post-rescue and ML downgrade (#20), one confirm per meal session (#7), stale meal state reset (#17), and exercise classification restored inside the night window (#11, a regression from the overnight gate fix). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014RS6G2gfvdzoJAx9wPCeA4
tim2000s
added a commit
that referenced
this pull request
Oct 8, 2026
Patch number on the released line for fixes that only withhold or bound insulin, except where noted in the individual commits: tranche release bounded by the caps and gates (#1), pre-meal target off at night, while asleep, under a temp target and after a low (#8), V6 error falls back to base oref (#9), primer respects running low temps and V6's hard gates (#10), missing heart rate blocks the INACTIVE raise (#12), the sleep boundary exit no longer reopens INACTIVE or the gate for a cycle (#18), percent-scale divisor no longer shrinks above 180 (#4), SMB clamped to max_iob (#5), G3 hold kept after a recent low (#19), spike override limited to Tier 8 outside post-rescue and ML downgrade (#20), one confirm per meal session (#7), stale meal state reset (#17), and exercise classification restored inside the night window (#11, a regression from the overnight gate fix). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014RS6G2gfvdzoJAx9wPCeA4 (cherry picked from commit a3cc1af)
tim2000s
added a commit
that referenced
this pull request
Oct 8, 2026
Patch number on the released line for fixes that only withhold or bound insulin, except where noted in the individual commits: tranche release bounded by the caps and gates (#1), pre-meal target off at night, while asleep, under a temp target and after a low (#8), V6 error falls back to base oref (#9), primer respects running low temps and V6's hard gates (#10), missing heart rate blocks the INACTIVE raise (#12), the sleep boundary exit no longer reopens INACTIVE or the gate for a cycle (#18), percent-scale divisor no longer shrinks above 180 (#4), SMB clamped to max_iob (#5), G3 hold kept after a recent low (#19), spike override limited to Tier 8 outside post-rescue and ML downgrade (#20), one confirm per meal session (#7), stale meal state reset (#17), and exercise classification restored inside the night window (#11, a regression from the overnight gate fix). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014RS6G2gfvdzoJAx9wPCeA4 (cherry picked from commit a3cc1af)
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.
Added toggle for mg/dl and mmol/L