Virtual Trial
Repo
Judge modeEach section shows the criterion it speaks to and a link to the evidence.Full evidence map

Safety

What Virtual Trial will never do

The agents test and explain. Each promise below is enforced by code or by GitLab, not by asking the AI nicely, and links to what enforces it.

Never: write or edit dosing code

No agent has a tool that edits files. Independently, the agent boundary job fails any merge request where an agent account committed to lib/, gate/, or trial/. One exception, checked mechanically: the incident agent may undo a dosing commit that is already on the branch with git revert, because that restores code a trial and a person already approved. The job accepts it only if it is the exact inverse of that commit, and the undo still goes through the full trial and a person's merge.

Enforced by: Agent boundary check, Boundary tests, Incident flow toolset

Never: loosen a limit or skip the trial

The gate limits live in gate/thresholds.yaml, owned by people through CODEOWNERS. The planning agent can only add the trial::full label, which makes the trial bigger, never smaller.

Enforced by: Gate limits, Code owners

Never: merge or ship a change on its own

No agent has a merge, approve, or deploy tool. Changes merge only when a person merges the merge request; deploys run from the pipeline on protected branches.

Enforced by: Explain flow toolset, Deploy rules

Never: serve a broken engine

A new engine version gets no traffic until it passes 151 decisions inside oref0's safety limits; after promotion it is checked again and rolled back on failure. This stopped a real crash on Oct 13.

Enforced by: Release gate

Never: touch a real patient or real data

Every patient is simulated. No real glucose, pump, or health data is used or stored anywhere in the project.

Never: post to the upstream project

We do not open issues or pull requests on OpenAPS or other dosing projects. Maintainers hear from people, not bots.

Limits, stated plainly

  • The virtual patients come from simglucose, an open-source implementation of a well-studied model. It is not the FDA-accepted commercial simulator and has no exercise model.
  • Results compare the old and new code on the same patients and days. They are not predictions for any real person.
  • A passing trial means the change did not look riskier in our scenarios. It does not mean the change is safe.
  • Ten scenarios and a bounded search cannot cover every real day. Faults are modeled on reported failures, and new ones can be added to trial/scenarios.py.
  • This is a research and education project. It is not a medical device and makes no regulatory claims.

Research and education only. Not a medical device and not for therapy decisions.