Designing reliable systems is incredibly hard. It requires a ton of resources (money, lawyers, engineers) And experience and long time frames with relentless effort to document everything so that when somebody does die, you can root cause it and fix the problem without regressions.
I've been continuously impressed with what open source hackers have done with open biology projects, but that doesn't mean any of these products are reasonable replacements for the products that are used by tens to hundreds of millions of people.
It does, but just this once it is spot on, the best pumps on the market do just that.
- CGM sensors can be faulty, depending on the rate of change of glucose (they’re actually not measuring blood directly, but interstitial fluids, which are generally lagging by about 15mins and can be inaccurate with large swings)
- battery dying out isn’t so bad, since the pump will just default back to its previous basal delivery settings - there are safety maximums on insulin delivery, which prevent among other things, your typical overflow/precision errors
- maximums over time though is a more complex issue, something I haven’t yet dug into
I still remember when I had to be hooked up to an infusion pump for many hours at a time. In theory this was all pretty simple - I had a port (a permanent link to my blood system), the machine was hooked to the port, the machine was configured to deliver x ml per hour. Easy, right? Well ... moving my arm had a non-zero chance to trigger the alarm (alarm means "the machine has a problem to deliver the configured amount", please do something), moving in the bed had a higher chance, walking over the hospital corridor I could almost guarantee that at some point in a single walk (i.e. one length of the corridor) it would freak out and again start the alarm. And that's for a far easier system in very easy conditions. An insulin pump has to change what it delivers all the time and it has to work always. Sport, work, driving, running, ...
Forgetting to take medication is dangerous, overdosing medication is dangerous. It is just not that easy to design a system like this.