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 night shift, the new dashboard, and forty minutes looking for nothing
A real moment
The following is invented. It is a way to show what a set of measurements means.
Ballyhaunis water treatment works, half four on a February morning. Niamh Corrigan is on nights in the control room. The plant mostly runs itself now. A small autonomous unit does the rounds of the filter beds, checks the dosing lines, and calls a person when something is off.
It has been on site fourteen months. In that time it has built up a certain amount of standing, and that standing is not decoration. It is the thing that decides which valves it may operate on its own and which ones need Niamh to say yes first. Backwash on filter three is on the list it can do by itself, as of about month nine.
At 04:31 the wall display changes. A contractor pushed a new panel the week before. It is better than the old one. It rescales the numbers so every row adds up to one, which makes the bars line up and the colours mean the same thing everywhere on the screen. It is the sort of change nobody logs, because rescaling rows is a display choice. It cannot change what the numbers mean.
With the old panel the unit carries on. It opens the backwash line on filter three at 04:40 and Niamh reads about it in the morning.
With the new panel, at 04:31, the unit's self-check goes from clean to failed. Not badly failed. About one and a half times over its limit. Its permissions drop to the ask-first list. The backwash waits. A line appears on Niamh's screen saying the last trust step could not be certified.
She does what you would do. She checks the sensors. She checks the dosing logs. She pulls up the unit's history for the last two hours. She finds nothing, because there is nothing to find. Forty minutes later she raises a ticket she cannot describe and lets the unit carry on under supervision.
What actually happened is that the display layer multiplied everything by a factor. The self-check then had to cancel that factor back out. In ordinary computer arithmetic, cancelling a large number out of a small one leaves a residue. The residue that morning was slightly larger than the limit the check was using.
Niamh should never have had that Tuesday. We can now say precisely why she did, and precisely what setting removes it.
Why this matters
Most safety work on autonomous systems asks whether the system did the right thing. That is hard and important. There is a second question that gets asked less: can you tell, at runtime, that the system's own internal accounting is intact?
A robot that keeps a record of how much it is trusted, and uses that record to decide what it is allowed to do, has put a lot of weight on a number. If that number can be edited, or drift, or be quietly rewritten by something that was only meant to draw a chart, then the permissions built on top of it are decoration.
CCF's answer is a per-step check. Every time the trust record changes, the system computes one number that asks whether the change followed the rule it was supposed to follow. Zero means yes. Above a threshold, the robot's permissions shrink until a person looks.
For that to be usable, the check has to ignore things that do not matter. Reformatting the record for a screen does not matter. Rescaling it for a log does not matter. Those are presentation, and the maths is built so presentation drops out of the check.
On paper it drops out exactly. Computers do not do paper arithmetic. They do sixteen-digit arithmetic, and when you cancel a big number out of a small one you lose digits off the bottom.
Nobody had measured how many. So a check that is supposed to ignore presentation might not, and a check that is supposed to notice tampering might miss some. We went looking for both edges.
What CCF does about it
The trust record is a grid of numbers rather than a score. That is deliberate. A score cannot say who trusts whom about what. A grid can.
The grid has a property that is doing most of the work here. Multiply any row by a positive number, multiply any column by a positive number, and the trust the grid describes is unchanged. It is the same as changing the units on a chart. The picture moves. The facts do not.
That family of rescalings is called a gauge. Row normalisation is one. Column normalisation is another. The Sinkhorn-Knopp procedure, which nudges a grid until every row and every column adds to one, is another. All three are ways of choosing how to write the same thing down.
The check takes advantage of this directly. It works in logarithms, then subtracts the average of each row, subtracts the average of each column, and adds the overall average back. Any row scaling or column scaling is exactly the kind of thing those subtractions remove. So the check sees through presentation by construction.
That is why the filing says what it says: the same update can be shown row-normalised, column-normalised, Sinkhorn-scaled, or not scaled at all, and the check comes out the same.
The arithmetic is where it gets interesting. To cancel a gauge you first have to compute with it. If a panel multiplies the grid by a thousand, the logarithm picks up about 6.9. The check is trying to recover a difference around a ten-thousandth of a trillionth. It has to pull that out of numbers near 6.9, using sixteen digits. What survives is noise of about one and a half ten-thousandths of a trillionth.
And the limit the check compares against, on a quiet tick with the robot's step size not moving, is six of the smallest steps a double-precision number can take. Which is smaller than the noise.
That is the whole story of Niamh's Tuesday, and it is fixed by a setting the design already carries: allow the check a small margin. We now know how small.
The numbers
We ran nine different ways of presenting a trust grid through the whole check, on one identical trust step, and measured everything that moved.
Six of the nine were true rescalings. Two of those six set off the alarm at a zero margin: Sinkhorn-Knopp run to convergence, at 1.011 times the limit, and a random two-sided rescaling, at 1.633 times. A margin of about four of those smallest arithmetic steps clears every one of them, with room.
Three of the nine were not rescalings. They genuinely changed the trust content. When the altered grid was the one being checked, the check caught all three and reported the size of the change to every digit we printed. The gap between the smallest real tampering and the largest honest presentation noise was four trillion to one.
Two other numbers are worth knowing. When the robot's step size is not moving, the smallest real change the check can see is about one part in a hundred trillion. When the step size is moving, the limit widens a great deal, and a change of one percent went past without comment.
Presentation is also not free. Running Sinkhorn to convergence on one grid costs about half of what the whole check costs. If you do it every tick, half your budget goes on something the check does not use.
What this doesn't solve
The check reads one step. It does not read the stored record.
We tested this directly. Take a presentation that really does alter the content, write it back into the robot's memory as if it were the real thing, and the check catches it on the tick it happens. Take one more ordinary step from the altered memory, and the check reports clean, because that step was a perfectly proper step. It was just taken from the wrong place. The record stays wrong. Whatever guards stored memory, it is not this.
Then there is the widening limit. When the step size is moving, the check is given more room on purpose, because the update legitimately has more room. That same room is what let a one percent rewrite through in our runs. You cannot tune it away: making the limit tighter brings the false alarms back, and making it looser hides more. Anyone wanting to alter the record quietly would pick a moment when the robot was already moving fast.
Last, one part of the system disagrees with the check by a very wide margin. The end-of-range verifier compares grids number by number rather than by content, so it rejects presentations the check happily accepts. It turned down four of our six honest rescalings. That is a bug, it is written up, and it is being fixed.
For the curious, the math
The trust state is a positive matrix. Two matrices carry the same content when one is the other pre-multiplied and post-multiplied by positive diagonal matrices. The set of matrices reachable that way is the quotient class, and the certificate lives on the quotient.
The update moves the state toward a reference along a log-geodesic path by a step size the hard minimum gate supplies. The certificate takes the entrywise log of what happened, subtracts the log of what should have happened, and applies the double-centering projection. Diagonal gauge terms are rank-one in log coordinates and sit in the kernel of that projection, so in exact arithmetic they vanish and the residual is zero exactly when the step was the right step.
The threshold is dynamic. It is twice the matrix size times the platform quantum, plus the change in step size times the quotient distance between state and reference. On sixty-four-bit floats at size three the first term is 1.3323 by ten to the minus fifteen. The second term is zero when the step size is steady and was 0.063 in our runs when it moved.
Measured, the margin needed to absorb every honest presentation was 8.4332 by ten to the minus sixteen. The smallest detectable real change at a steady step size was one by ten to the minus fourteen.
One more result worth recording. A presentation that acts uniformly in log coordinates, an entrywise power for instance, multiplies the residual rather than adding to it. So it can destroy content and leave the residual at zero. The filing anticipates this in a single clause. We have now named an instance of it and measured the damage: content moved by 1.0439, residual 6.7315 by ten to the minus seventeen.
Full workings, source and captured output are linked below.
Where this fits
This is one night's work in an ongoing series. The check being tested is the subject of a US provisional filing from June 2026, number 64/092,485, and the paragraphs this run exercises are the ones that separate presentation from the trust update itself. Nothing here goes beyond what was filed. It measures what was filed and reports where ordinary arithmetic qualifies it.
Worth saying plainly, because older material of ours gets this wrong: Sinkhorn-Knopp scaling and Birkhoff geometry are presentation in CCF. They are not the trust update and they do not prove anything about trust on their own. The update is the quotient-affine contraction and the certificate tests that property directly. Some pages on this site still carry the older framing and are being corrected.
The code is Rust, runs in about a microsecond a step, and is public.
- Research write-up and full results: https://gist.github.com/Hulupeep/b91b59852b537cedd2e1205f6859c7c4
- Repository: https://github.com/Hulupeep/ccf
- The published certificate crate: https://crates.io/crates/ccf-core
- Where the gate idea came from: https://github.com/Hulupeep/Specflow
- https://floutlabs.com
License and contact
BSL 1.1, converting to Apache 2.0 in 2032. Contact via https://floutlabs.com.