Proving That a Diagnostic Worker Cannot Disable Its Own Safeguards
A stalled diagnostic worker must not consume the resources needed to detect its stall and contain its output. In a distributed SaMD pipeline, that requirement changes where orchestration state lives, who can publish a clinical result, and which dependencies belong inside the fault boundary. The compliance argument begins with those boundaries, rather than with the presence of redundant services.
The clause that changes the architecture
For software lifecycle assurance, IEC 62304 supplies the relevant architectural obligation: clause 5.3.5 requires identification of segregation needed for risk control and an explanation of how its effectiveness is ensured, with applicability to Class C software. The clause does not prescribe microservices, separate hosts or a particular scheduler, so the implementation must justify its chosen separation against the interference it needs to prevent. The requirement is stated in the IEC amendment text. Consider a diagnostic worker that stalls while retaining every connection allocated to it from a shared database pool. If the orchestration watchdog needs that same exhausted pool to record expiration or prevent publication, the apparent separation between services provides no effective containment for this failure. A defensible design gives the control path independently bounded access to its state store and makes the publication gate depend on authoritative orchestration state, with deployment isolation extending as far as the claimed fault boundary requires.
The decision rule
Credit segregation as a risk control only when the resources and authority needed to detect, contain and communicate the selected failure remain available under the interference that failure produces.
Keep transport completion separate from diagnostic validity
For this design example, assign the worker a 2 s completion deadline measured by the orchestrator’s monotonic clock, explicitly treating that value as an illustrative engineering parameter requiring clinical justification, rather than a limit supplied by the standard. Expiration changes the persisted workflow state and removes that attempt’s publication authority, while the control path continues to expose diagnostic unavailability and preserve the inputs for the defined recovery workflow. This is continuity of control, not continued diagnostic capability. At the integration boundary, receipt of DICOM image objects and an HL7 CDA document establishes input availability, but the application must still bind those inputs to the intended patient, encounter, study and document revision before accepting a result. Bind each execution attempt to an immutable input manifest and an authoritative workflow revision, then require the publication gate to accept its result through an atomic conditional transition that checks both revision and deadline. A worker that resumes after expiration may produce a technically complete calculation, but it cannot revive its expired authority or silently substitute that calculation for a result already associated with another attempt.
Make the containment claim reproducible
The review evidence should connect the stalled worker to the hazardous situation it could create, such as clinical reliance on a delayed result presented as current, and connect that situation to the segregation requirement, resource allocation and publication rule. Exercise the deployed configuration by holding the worker’s database connections while it remains alive, because terminating the process would release resources and avoid the interference being claimed. Capture the deadline decision, persisted state transition, publication rejection and user-visible unavailability from the control path, with enough event correlation to reconstruct their ordering without assuming that clocks on separate hosts agree. Repeat the recovery transition by allowing the original worker to resume, and verify that its output cannot cross the publication gate even when a replacement attempt has already been accepted. Include the actual pool ownership, admission limits and state store dependencies in the evidence, since independent client pools still share server capacity and cannot by themselves substantiate independence from database failure. The remaining decision is whether the clinical workflow can tolerate diagnostic suspension while control remains available, or whether the intended use demands a separately justified diagnostic fallback with its own dependencies and acceptance evidence.