Skip to content

Include algorithm experiments in dosing decision payloads - #44

Merged
ps2 merged 2 commits into
next-devfrom
dosing-decision-algorithm-experiments
Oct 14, 2026
Merged

ps2 merged 2 commits into
next-devfrom
dosing-decision-algorithm-experiments

Conversation

@ps2

@ps2 ps2 commented Oct 13, 2026 •

Copy link
Copy Markdown

Dosing decision data carry the decision's algorithm experiments in payload.algorithmExperiments. Controller status and pump status data, which share the same payload helper, are unchanged.

Each experiment is an object: {"identifier": "integralRetrospectiveCorrection", "parameters": {…}}. parameters is optional, free-form JSON. New experiments, or new settings for an existing one, need no schema changes anywhere.

Depends on LoopKit/LoopKit#647.

Dosing decision data carry the decision's algorithm experiments in payload.algorithmExperiments: integralRetrospectiveCorrection, glucoseBasedApplicationFactor and applicationFactor when that is in effect. Controller and pump status data keep the plain payload.
payload.algorithmExperiments is a list of {identifier, parameters?} objects.
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