Flight Software

A runtime assurance case for an ML component you cannot fully verify

A machine-learned component can be the best available answer to a hard problem and still be impossible to certify on its own. The way to fly it is to stop trying to certify the component and start certifying what contains it.

Why the learned part cannot carry the assurance

A learned function, whether it is a perception network, a state estimator, or a controller trained rather than derived, tends to be useful precisely where hand-written code is hard to produce. It generalizes across cases that would take an intractable amount of explicit logic to cover. That same property is what makes it resist verification.

Deterministic flight code is verified by reasoning about what it does across its input space: you can read it, bound it, and test it against requirements traced line by line. A network with millions of weights has no comparable structure to reason over. You can measure its behavior on a test set, but the input space is effectively unbounded, the failure modes are not enumerable in advance, and small input changes can produce disproportionate output changes. You cannot show, to the standard a high assurance level demands, that it will behave for every input it will ever see. So the learned component cannot by itself hold that assurance level, no matter how good its measured accuracy is.

Wrap it instead of trusting it

Runtime assurance takes the pressure off the learned component. Rather than asking the network to be trustworthy, you place a simpler, fully verifiable deterministic monitor between its output and the actuation. The monitor does one job: it checks each ML output against a set of safety bounds. If the output is within bounds, it passes through. If it is outside them, the monitor discards it and switches to a verified fallback that is known to be safe.

The consequence is that the thing you certify is no longer the network. It is the monitor, the bounds it enforces, the fallback, and the switch logic that chooses between them. Those are small, deterministic, and inspectable. The pattern is sometimes called a safety monitor or a simplex architecture, and the point of it is the same in every form: the assurance argument is made about the wrapper, not about the component the wrapper contains.

Runtime assurance architecture Sensors feed an unverified ML component and a verified fallback. A certified safety monitor checks the ML output against bounds and a switch selects the ML output when in bounds or the fallback when out of bounds, then drives actuation. Runtime assurance data flow Sensors ML component unverified Verified fallback certified Safety monitor check bounds + switch Actuation
The certified monitor and fallback (teal) contain the unverified ML component. You certify the wrapper, not the network.

The trust boundary is the whole argument

What this buys you is a clean trust boundary. The ML component lives inside a bounded envelope. It is free to be as clever or as opaque as it needs to be, because nothing it produces reaches the actuators without passing the monitor's check. The safety case then rests on two claims, both of which are about deterministic things you can actually establish: that the monitor is simple enough to verify to the level the function requires, and that the safety bounds it enforces genuinely cover the ways the output could be unsafe.

Both claims deserve scrutiny, and the second is the harder one. A monitor that is easy to verify but enforces bounds that miss a real failure mode gives you confidence without safety. The coverage of the bounds is where the engineering judgment concentrates, and it should be documented as carefully as any other part of the case.

What the bounds are made of

The bounds have to be things a deterministic component can compute and enforce without any of the ambiguity that made the ML hard to verify. In practice they come from physics and from the operational definition of safe behavior. Rate limits keep a commanded change within what the vehicle can accept. Envelope limits keep states inside the region where the vehicle is known to be controllable. Plausibility checks reject outputs that are physically impossible given the last known state. Consistency checks compare the ML output against an independent source, an analytic estimate or a second sensor, and reject it when the two disagree by more than a defined margin.

The trust boundary A bounded inner region where the ML output is monitored and allowed, surrounded by an out of bounds region where the verified fallback engages. The safety monitor is the boundary between them. The bounded envelope Out of bounds · verified fallback engages Inside the envelope monitored · bounded · ML output allowed boundary = safety monitor Cross the boundary and control reverts to the verified fallback
The monitor is the boundary itself: inside it the ML acts, outside it the fallback takes over.

None of these requires understanding why the network produced a given output. They only require knowing what a safe output looks like from the outside, which is a far smaller and more tractable thing to specify. A rate limit does not care whether the command came from a trained policy or a lookup table. That indifference is the property you are relying on: the monitor reasons about the output alone, in units the rest of the system already understands, and never has to open the box that produced it.

The bounds should also be derived and recorded with their provenance, the same way any other safety-critical limit is. A limit that came from a flight test campaign, a structural analysis, or a controllability study carries a justification a reviewer can follow. A limit that was chosen because it seemed conservative enough needs to say so, so that the coverage argument can be examined rather than assumed.

What the pattern demands of the design

Wrapping an ML component is not free, and the obligations it creates are real. The fallback has to be genuinely safe on its own, which usually means it is a simpler, lower-performance function that you were willing to fly anyway. If the fallback is not truly safe, the switch has nowhere good to go and the architecture is a comfort rather than a control.

The monitor has to be independent from the ML. If they share a sensor preprocessing path, a clock, or a failure mode, a fault can corrupt both and the check becomes theater. The switch logic itself is safety-critical and belongs in the safety case with its own evidence, including how it behaves during the transition and whether it can chatter between sources. And because the argument has to be reconstructable after the fact, the ML version and the operational domain it was cleared for have to be captured and tied to the build, so that a later change to the model is visibly a change to the certified system.

What it does not do

It is worth being plain about the limits. This does not make the ML component certified. The network remains an unverified element and it is treated as one for the life of the system. What the architecture does is make the overall system safe despite containing that element, by ensuring the element can never do anything the monitor has not allowed.

The pattern also works only where a safe deterministic fallback actually exists. If the learned function is doing something for which there is no acceptable simpler behavior to fall back to, there is nothing for the switch to select, and runtime assurance has nothing to offer. In that situation the honest position is that the function is not ready to fly in a safety-critical role, whatever its measured performance.

Architecture is the thing that lets it fly

The reason a learned component can enter a safety-critical system today is not that the models have become verifiable. They have not. It is that the system around the model can be built so the model's limitations are contained. The work that earns the flight is the work on the boundary: the monitor, the bounds, the fallback, and the evidence that ties them together. Get that right and the model is free to be as good as it can be, because it is no longer the thing you are asking anyone to trust.

Working on something like this?

We would rather have the technical conversation than the sales one.

Talk to us