← Back to blog
October 23, 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.

One flipped bit and a robot that learns from the wrong moments

A real moment

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

Aoife manages a small hotel on the quay in Dungarvan, Co Waterford. Twelve rooms, a breakfast room that looks out at the harbour, and a first-floor corridor that is too long for the housekeeping staff to walk forty times a day. So the hotel has a delivery robot. It carries towels and room-service trays up and down that corridor, and it has learned the place: which doors open, which guests like to chat, where the carpet is loose.

Children grab it. Most afternoons, somebody small decides the robot is a friend and holds on. The robot is built to handle this calmly. While someone has hold of it, it trusts the moment very little, and it barely changes its picture of the world. A grab is odd and short. One odd moment should not rewrite what the robot has learned over months. Across a typical grab, the robot moves its trust record about a sixth of the way toward "this is what being handled is like", and then life goes on.

In March the hotel loses power in the middle of a firmware update. The robot comes back up. It looks fine. It delivers towels. Nobody notices that one number in a small table inside it has changed. A single bit has flipped. That table sets how fast the robot is allowed to update its trust record at each level of trust, and the number that changed is the one for a trust level of about 0.12. That is roughly where the robot sits when a child is hanging off it.

Before the power cut, that entry said: at this level, update by about half a percent per step. After it, the entry says about 25 percent per step. Twenty steps a second.

The robot has a self-check. On every step it confirms that it updated its trust record correctly. That check passes. It passes every step for the whole day. The robot is doing exactly what its table tells it to. The table is wrong.

On the worst grab of the simulated afternoons, the robot moves 88 percent of the way to "being grabbed is normal" in a couple of seconds. With the intact table, the same grab would have moved it 13 percent. Over ten hours, 53 of 234 grabs move its trust record more than twice as far as they should.

Nothing looks wrong from the corridor. The robot still delivers towels. It has simply started learning fastest from the moments it should learn slowest from.

Why this matters

Most of the conversation about trustworthy robots and AI agents is about the big decisions. Should it act? Should it refuse? Those decisions sit on small, boring parts: a table of numbers, a curve someone drew, a math function in a library. If one of those parts is quietly wrong, the big decision is made on bad footing, and the checks built around the big decision cannot tell.

A check that asks "did I do what I was told?" cannot catch a fault in what it was told. That holds however well the check is built. The robot's per-step self-check confirms the arithmetic of each update. It has no way to know whether the number it was handed was the right one for the situation.

The usual ways of building that table make this worse than it sounds. Engineers like smooth curves, and the most common smoothing formula, the natural cubic spline, does not respect the one rule this table must follow. When we drew 10,000 random sensible curves and fitted them that way, 9,971 of them broke the rule somewhere. Small tables of numbers get corrupted by power cuts and bad flash writes, and now and then by stray radiation. Fast math functions on small chips cut corners that are invisible until you check every input.

None of this is exotic. It is the ordinary plumbing of an ordinary machine.

What CCF does about it

In Contextual Coherence Fields (CCF), a robot keeps a trust record for each situation it knows. On every step it works out a single number, the gate, from the lower of two things: how stable the present moment is, and how familiar this situation is. A calm, familiar moment gives a high gate. A grab gives a low one.

The gate then goes through a pace curve that turns it into a step size: how far the trust record may move toward what the robot is seeing right now. Low gate, small step. That is how the robot holds still during odd moments.

Our US provisional application 64/092,485 (we call it Prov6) sets out what that pace curve has to obey. It must start at zero. It must stay between zero and one. And it must never go backwards: a lower gate must never get a bigger step than a higher gate. The same filing allows the curve to be stored as a lookup table, a spline or a sigmoid, which is how real devices do it. And it lists checks that must run before any update, including "failed monotonicity of rho", meaning the curve went backwards, and "failed source-integrity", meaning the thing loaded is not the thing that was shipped.

This run built those two checks and measured them. When the robot starts, it does two things with its pace table.

First, a checksum. It confirms the table's bytes are the bytes that were shipped. In the hotel, the flipped bit fails this.

Second, a scan. It walks the whole table and confirms it never goes backwards. In the hotel, the flipped entry pokes up far above its neighbours, so the scan fails too.

If either fails, the robot refuses to update its trust from that table, stays in its slowest mode, and logs why. Aoife sees a fault light at seven in the morning, before the first child of the day gets near the robot.

Both are needed, because they catch different things. The numbers show it.

The numbers

We tested every possible single-bit flip in a 257-entry pace table, all 4,112 of them. The checksum caught all 4,112. The never-go-backwards scan caught 2,691, about two in three. The ones it missed are flips that leave the table still climbing, just at the wrong heights. One of them raises the robot's top speed of learning from 0.40 to 0.90 at full trust. The scan says "still climbing, fine". The checksum says "not the table we shipped".

Then the other way round. We built a pace table from the natural spline, which goes backwards near the top, and shipped it with its own correct checksum. The checksum passed. The scan caught it.

Through all of this, over 720,000 simulated steps per table, the robot's per-step self-check flagged nothing. Zero. For every table, good or bad.

The checks are cheap. The scan takes about 96 billionths of a second and the checksum about 1.3 millionths, once, at start-up. One per-step self-check takes about 0.56 millionths, twenty times a second, forever.

What this doesn't solve

These checks look at the table. If the code that reads the table is faulty, or the part that works out the gate is faulty, that is a different problem, and earlier work in this series measured some of those.

A checksum tells you the bytes match what was checksummed. It does not tell you who made them or whether they were a good idea. A badly designed table with a correct checksum passes.

The scan needs a tolerance. Computers round. A perfectly good curve evaluated in ordinary double precision shows backward steps of about two parts in ten million billion on its flat stretches, and a perfectly reasonable fast approximation on a small chip shows backward steps of about three parts in a hundred thousand. A scan that allows no slack will flag both.

And the hotel is a model. The rates of grabs, the levels of trust and the trace of the afternoon are chosen, not measured from a real corridor. The point of the run is the comparison between tables on the same afternoon, not the exact afternoon.

For the curious: the math

Each step, the trust record A_t (a small positive matrix) moves toward the current target R_t along a log-straight line:

A_{t+1} = L_t (A_t^(1 - alpha_t) * R_t^(alpha_t)) C_t
alpha_t = rho(g_t),   g_t = min(C_inst,t, C_ctx,t)

Prov6 [0046] asks rho(0) = 0, 0 <= rho(g) <= 1, and rho(g1) <= rho(g2) when g1 <= g2. The per-step certificate kappa_hat_t is the size of the double-centred residual between the realized update and the filed update at the logged alpha_t. It is zero for a correct step at any alpha, so it cannot see whether alpha was right for the gate.

For a fixed target, the share of the distance covered over a stretch of steps is exactly 1 - prod(1 - alpha_t). That is the "share of the way" in the hotel numbers.

Checking monotonicity exactly is easy once you look at the right object. A linearly interpolated table is monotone if and only if each entry is at least the one before. A cubic spline segment's slope is a quadratic, so its minimum over the segment is at an end or at the vertex. For a sigmoid computed in 32-bit floats, there are only 1,065,353,217 inputs between 0 and 1, so you can check them all. With the standard library exp, none of them go backwards. With a fast embedded exp, 18 do.

The shape-preserving spline of Fritsch and Carlson (1980) never goes backwards through rising data. The natural spline does in 99.71 percent of the random curves we tried. That part is old mathematics. What is new here is only the measurement of what it costs inside a certified trust update.

Where this fits

This is one of a nightly series of runs that each take one filed piece of CCF and measure it. Earlier runs found that the per-step certificate cannot see a faulty gate, and that smoothing placed after the gate can leak authority. This one completes that picture for the pace curve: the certificate cannot see a bad curve, and the two filed start-up checks, taken together, can.

The full write-up, code and every number are in the CCF repository on the branch research/nightly/2026-10-23-rho-monotonicity-guard. 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.