Segregation as Architecture: How One Software Lifecycle Clause Decides What a PDT Does When a Part Fails
In the medical device software lifecycle standard, one clause lets a software item carry a lower safety class than the system around it, as long as the segregation between them is documented and justified. In a prescription digital therapeutic, that clause shapes the architecture more than anything else in the standards set. It turns a classification argument into an engineering obligation: if you want the behavioural adaptation engine treated separately from the logic that limits therapeutic dose, you have to show that a fault in one cannot reach the other. A reviewer reads that justification as evidence of how the system fails, not as paperwork.
Three standards, three jobs
The quality system standard, ISO 13485, governs how evidence is produced, reviewed and controlled. The risk management standard, ISO 14971, decides which hazards matter and what counts as an acceptable control. The software lifecycle standard, IEC 62304, decides how much rigour each piece of code receives. The three meet at one point: a risk control implemented in software inherits the safety class of the hazard it mitigates, and you can avoid applying the strictest class to the whole product only when the architecture shows a real boundary. A boundary that exists only in a block diagram will not survive the first reviewer who asks what happens when the process on the other side hangs.
The failure nobody sees crash
The failure mode that matters most in a closed-loop PDT is a stale biometric stream, not a dead one. The wearable bridge stops delivering samples, the adaptation engine keeps reading the last cached heart rate variability value, concludes the patient is regulated, and raises exposure intensity or session load on a patient whose real state is unknown. Every process stays up and every health check passes, which is why this failure reaches patients. Our implementation of the clause moves dose authority into a separate limiter item with its own process, its own memory, and a one-way message interface from the adaptation engine, which can propose a change but never apply one. The limiter enforces a freshness threshold of 15 s on every physiological sample: anything older counts as absent, and the session reverts to the last clinician-approved fixed protocol until fresh data arrives.
The decision rule we use when drafting the architecture section is blunt: if a component's failure can change the dose, intensity or timing of what the patient receives, it sits behind the limiter and fails to the fixed protocol, and if it can only change presentation, analytics or engagement messaging, it may degrade quietly and keep its lower class.
What the evidence file has to prove
To justify the segregation, you need fault injection results, not assertions: kill the sensor bridge mid-session, freeze the adaptation process, feed it timestamps from a skewed phone clock, and show that the limiter's output stays inside the approved envelope in every case. Each of those tests should trace back through the risk file to the hazard it covers, so the reviewer can follow a straight line from harm to control to verification. Fallback episodes also have to be logged with entry and exit timestamps, because the trial analysis must separate adapted sessions from fixed-protocol sessions, or the efficacy signal and the safety signal get mixed together. On consumer-grade wearables, we estimate that fallback can occur in a few percent of sessions, and that is enough to dilute the treatment effect you are trying to measure. That leaves the next decision with the clinical team, not the firmware team: whether the freshness threshold should be set by how long the patient can tolerate unadapted therapy or by how reliable the sensor really is, since tightening it improves safety at the cost of how much adaptive therapy the patient actually receives.
Technical FAQ: Can the adaptation engine stay in a lower safety class if the limiter is in the highest one?
Yes, as long as the segregation justification shows the engine has no write path to dose parameters, shares no memory or scheduler resources with the limiter that could starve it, and was tested under the fault injection cases above. If any of those fail, the engine inherits the limiter's class, and so does its full verification burden.