← Back to blog
October 26, 2026Colm Byrne
Evidence boundary. Older posts may discuss prototype designs, patent claims, or planned integrations. The demonstrated v1 release is ccf-core/ccf-agent v1.0.1: hard min-gate coupling, QAC trust updates, and runtime certificates. Gate C exercised the computed runtime on Seed-class ARM hardware with driver-fed input. Unless a post cites a specific run, do not read it as proof of live sensors, mBot2 behaviour, Cognitum store validation, or production deployment.

The robot that went careful and could not come back

A real moment

This scenario is invented, but every number in it comes from a simulation run you can repeat.

Niamh is shift lead at a materials recovery facility outside Lanesborough, Co Longford. Lorries tip mixed recycling onto the floor all day, and a conveyor carries it past the sorting stations. One of those stations is a picking arm. It stands over the paper stream and pulls out what should not be there: plastic film, nappies, the odd shoe.

The arm has learned its belt. It knows what the paper stream usually looks like, and it knows the mix shifts through the day. Household loads in the morning, more cardboard from shops in the afternoon. It keeps a record of how much it trusts each kind of moment on the belt, and it updates that record a little every second. When it trusts the moment, it moves quickly and reaches further. When it does not, it moves slowly and stays back.

Every so often a loader drops a bale on the tipping floor beside the line. Dust goes up. The noise jumps. For a minute or two the arm's sensors are unsettled, and it does what it was built to do. It slows its movements and it slows its learning, because a dusty, noisy minute is a bad time to decide what the belt is like.

The arm also runs a second check on itself. On top of its trust record it keeps an allowance for how far behind that record might be. The allowance errs on the high side. When the arm learns slowly during a bale drop, the allowance grows, because the belt keeps changing while the arm is barely updating. If the allowance passes a limit, the arm goes into careful mode.

Here is where the two versions of the arm part ways.

In the first version, careful mode also sets the arm's trust to zero. That sounds sensible. Something is off, so stop learning until things settle. Twenty-four minutes into the shift a bale drop lasts longer than about nine seconds, and the allowance passes the limit. The dust clears. The belt runs as normal. The arm stays in watch-only mode. It is still there at lunch and at the end of the shift. Across a hundred simulated shifts it was closed for 92 percent of the shift on average.

Niamh walks over after five minutes and restarts it. Within five seconds it trips again. On 87 percent of restarts that is what happened, and across a shift it came to about 47 call-outs.

In the second version, careful mode only limits what the arm may do. Its learning carries on at whatever pace the moment allows. It still holds back during each bale drop, about eleven times a shift. About four seconds after the dust settles, it is sorting again. Across a whole shift it spends about half a minute held back while the room is calm.

Both versions are allowed by the same design. Only one of them comes back.

Why this matters

Any machine that watches itself has to answer two questions: when to stop, and how to start again.

The first question gets most of the attention. People argue about thresholds, false alarms and what counts as a fault. The second one gets less. In the classic safety design for controllers, known as Simplex, a monitor hands control to a simple, trusted backup when the clever controller looks unsafe. In the original form, as a 2020 paper on the Neural Simplex Architecture put it, the backup "remains in control forever". A 2026 study of runtime assurance for self-driving cars found that most of its remaining failures came after the fallback had already kicked in. Getting out is where these systems tend to break.

Software engineers know a version of this. A circuit breaker in a web service opens after too many failed calls, waits, and then lets one trial call through to see whether things have recovered. That works because waiting does not change the thing being waited for. The arm is different. The way it waits decides whether the thing it is waiting for can ever happen.

For a real safety stop, staying stopped until a person resets it is correct. Machinery standards require exactly that: the reset only permits a restart, it does not restart the machine by itself. But not every check is a safety stop. The allowance in this story is a confidence check on how well the arm's trust is keeping up. If that check needs a person every time it trips, the robot will be switched off, or the check will be.

What CCF does about it

CCF (Contextual Coherence Fields) gives a robot two separate controls. One decides what the robot may do right now, which we call its action envelope. The other is the pace at which its trust record moves, which we call the step size. A hard minimum gate sets the step size. The gate takes the lower of two things: how stable the moment is, and how familiar the situation is. A dusty minute on a familiar belt still gets a small step.

The allowance in the story is the runtime envelope. Each second it shrinks by the share of the gap the update closes, and it grows by how far the target moved. While the robot learns at a normal pace, it settles at a low level. While the robot learns slowly, it settles higher.

The filing for this part of CCF lists several things a robot may do when that envelope goes over budget. It may narrow its action envelope. It may set its effective trust to zero. It may keep its logs but refuse to write its trust record. It may ask a person.

The catch is in the arithmetic. The envelope only shrinks through the step size. If the response to a trip is to set trust to zero, the step becomes zero. If the response is to refuse writes, the step is zero too. With a zero step the envelope cannot shrink at all. It can only add whatever the world does next. The check that tripped because the robot was learning slowly now holds the robot at no learning, and that keeps the check tripped.

We ran five versions of the response on exactly the same simulated shifts: the same dust, the same drift in the belt, the same faults. Every version closed the action envelope while tripped. None of them kept a latch of its own; each one re-read the envelope every second. Any stuck state came from the arithmetic, not from bookkeeping.

The version that only narrows the action envelope came back by itself every time. It is also the response the filing puts at the centre of its method, which ends by reducing or closing an action envelope. The others did not come back.

The numbers

On an honest shift, with the limit set at three times what the arm saw during calm commissioning, the version that only narrows the action envelope tripped about 11.5 times. Every trip started during a stress episode. It spent about 31 seconds a shift held back while the room was calm.

The versions that set the step to zero tripped once, a median 24 minutes into the shift, and stayed closed for 92 percent of it on average. Across a hundred shifts their envelope fell on none of the 2.66 million seconds they spent tripped. A version that keeps a small floor under the step did the same at this drift.

With the limit set high enough that dust never trips anything, a ten-minute camera fault was caught within one second by every version. Of the versions that run without a person, only the action-only one reopened, two seconds after the fault cleared.

Refusing to write the trust record during the fault did not keep it closer to where an honest robot would be. The world kept moving while the record was frozen.

What this doesn't solve

Letting the update run during a fault means the bad picture of the belt gets into the trust record for a while. It washes out once the fault is fixed, and the arm stays careful until it does. Anything that reads the record directly in that window would see the wrong value.

The limit still has to be chosen. Set it low and every dusty minute trips it. Set it high and slow faults slip past.

This was one familiar belt, with simulated dust and simulated faults. The exact formulas hold whenever the pace and the drift are steady. The shift numbers depend on how we built the world.

And none of this replaces a real emergency stop. That should latch, and it should be a separate circuit.

For the curious: the math

The envelope follows the filed recursion B(t+1) = (1 - alpha_t) B_t + (delta_t + kappa_hat_t + floor_t). Here alpha_t is the step size, delta_t how far the target moved, kappa_hat_t the per-step certificate residual and floor_t its rounding allowance. At a steady step and steady drift it rests at delta / alpha. During stress the step drops from 0.30 to 0.04, so the resting level rises 7.5 times.

The time a stress episode needs to trip a budget b has a closed form: ln((B*_s - b) / (B*_s - B_0)) / ln(1 - alpha_s), with B*_s = delta / alpha_s. At three times the calm level that came to 9.3 s predicted, and the simulation tripped on second 10. Recovery after stress was 3.2 s predicted, and it reopened on second 4.

With a zero step, B(t+1) = B_t + delta_t + kappa_hat_t + floor_t, so it never falls. If the step map keeps a small floor instead, say 0.02, the tripped envelope rests at delta / 0.02. It comes back only if the drift is below 0.02 x b. At 98 percent of that line it reopened in 372 s, exactly as predicted. At 102 percent it never did.

The full tables, the code and the tests are in the gist linked below.

Where this fits

This is one of a nightly series of runs that each take one filed piece of CCF and measure it. An earlier run measured where the envelope settles. This one closes the loop: what the robot does when the envelope trips feeds back into whether it can ever un-trip.

The technical write-up with every number is the gist at gist.github.com/Hulupeep/5b2261e5fedc399ae1c04de9ca52cb03. The code lives in the CCF repository on the branch research/nightly/2026-10-26-envelope-fail-closed-recovery. The certificate crate is published as ccf-core on crates.io. The method we use to turn specifications into tests is Specflow, at github.com/Hulupeep/Specflow.

License & contact

The research code is BSL 1.1, converting to Apache 2.0 in 2032. CCF is covered by US provisional applications including 64/092,485. For licensing or to talk about putting CCF in a machine, get in touch via floutlabs.com.