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 saving that deleted the evidence
A real moment
The terminal below is invented. I made up the place and the people so the measurement has somewhere to happen. It is not a report on a real deployment.
Kilmurra Quay runs four automated straddle carriers over a container yard where lashing crews still work on foot. The carriers decide for themselves how close they will work to an occupied bay. That decision comes off a trust state, a small running estimate of how well the carrier understands what is in front of it, updated twenty times a second from the yard sensors.
Every one of those updates carries a short proof. The proof says the update followed the rule it was supposed to follow. It costs about six hundred nanoseconds to write.
Marta Kowalczyk is the yard systems engineer. Her controllers are seven years old, they are close to their CPU ceiling, and a vendor update has just made things worse. Someone on the call points at the proofs. Twenty a second, per carrier, forever. Why not write one a second instead, covering all twenty steps at once?
It is a good question, and the maths says yes. Twenty small steps of this kind add up to one bigger step, exactly. You can write a proof for the bigger step and it is a real proof, not an approximation. We checked that in code. The composition is exact to sixteen decimal places. The vendor confirms it. It returns about half the cost of the proofs.
She makes the change. For three weeks the dashboard looks better than it did before. Fewer flagged events, not more. The old per-step view used to light up on brief sensor glitches, and the batched view smooths those away.
Then a carrier does something nobody can explain. Not a collision, nothing that made the news. It hesitated in the wrong place and a lashing crew had to stand and wait. The kind of thing that goes in a log and gets looked at on Friday.
On Friday there is nothing to look at. Every proof from that hour came back clean. Marta can see the second it happened. She cannot see what the carrier believed during that second, because the numbers that would have told her were never written down.
Why this matters
The interesting part is not that batching lost some detail. Everyone expects batching to lose detail. The interesting part is which detail it loses, and that it loses it for a reason you cannot design around.
These trust updates shrink toward the target a little at a time. That shrinking is the whole point. It is what stops the robot from swinging wildly when one sensor reading goes odd. It is the property that makes the thing safe to run.
The same shrinking applies to anything wrong that enters the state. A bad value from twenty steps ago has been pulled back toward the target twenty times by the moment you check. Most of it is gone. Only the most recent step arrives at full strength.
So a batched proof is dominated by whatever happened just before you looked. Anything earlier is discounted, and discounted harder the further back it sits. Push a robot off course, then sit still for a moment, and the proof reads clean.
Nobody chose this. You cannot keep the shrinking and remove the forgetting, because they are the same number doing both jobs.
There is a version of this argument already in the security literature, in a different setting. If you check a device's memory once a minute, software that loads, acts, and erases itself inside that minute is never seen. That gap has a name, the time-of-check to time-of-use problem, and the standard answer is to stop sampling and measure continuously.
The situation here is worse in one specific way, and it took a measurement to see it. A memory check between samples is simply blind. A batched trust proof is not blind. It sees every intermediate step. It sees them through a weighting it cannot undo.
What CCF does about it
CCF requires the proof on every update. Not most updates. Every one. The published crate refuses a batched or on-demand proof by name.
Until this week that was a rule with an argument behind it and no numbers. That is a weak place to be, because the objection is correct as far as it goes. The composition really is exact. An engineer with a CPU budget and a spreadsheet will win that conversation.
So we built the batched proof, as well as it can be built, and measured what it gives up.
Three things came out.
First, the discounting is geometric and it gets severe fast. Over twenty steps at a middling update rate, a deviation on the first step reaches the batched proof at about one part in eighty-eight of its actual size. At the fastest update rate the rule allows, one part in sixteen thousand.
Second, and this is the part that settles it, the batched proof can be driven to zero while the state is badly wrong. Not approximately zero. Below the noise floor of the arithmetic, so the system classifies the whole window as clean. Push the state for five steps, then place one correcting nudge on the last step, and the sum cancels. Every nudge stays inside the same per-step budget the per-step proof would have caught on the very first step.
Third, and this one cuts the other way, the batched proof is not weak. Against ordinary random corruption it fires almost every time, slightly more readily than a single-step check does. It fails against corruption that knows when you look. That distinction matters, and flattening it into "batching is unsafe" would be wrong.
The decision that came out of it is narrow. Keep the per-step proof. If the cost hurts, make each proof cheaper rather than writing fewer of them. Most of that six hundred nanoseconds goes into forty-five logarithm calls on a three by three matrix, and that is a solvable engineering problem.
The numbers
At the middle of the allowed update range, over a twenty-step window, a state that drifted by 0.033 was reported by the batched proof as 0.00096. Off by a factor of thirty-four. At the top of the range, off by a factor of two thousand one hundred and twenty-seven.
Add one cancelling step and the batched proof reads 9.7e-16, under the threshold the system uses, while the per-step proof fails closed immediately on the same recording.
Against random corruption instead of deliberate, the batched proof caught 98.7 percent of twenty thousand trials. Against the deliberate version, zero percent. The per-step proof caught both at a hundred percent.
The saving that bought all this was 56 percent of an operation costing 1065 nanoseconds per step.
What this doesn't solve
This is not a vulnerability report. A CCF deployment already refuses the batched proof, and every schedule we tried was caught immediately by the per-step check. What the run does is put numbers behind a refusal that previously rested on an assertion.
The measurement also flatters the batched proof. Exact composition needs the update rate and the target to hold still across the window. When they move, the batched proof has no exact form to check against and has to approximate, which adds error on top of everything above. So what we measured is the best case.
We measured how far the trust state moved. We did not simulate what a carrier would then do, and I am not going to claim a particular displacement produces a particular near-miss. That link needs its own work.
One defence we hoped for did not appear. CCF carries a second running bound that we thought might notice the understated proofs. It does not. On this workload it gives the same verdict either way, and that negative result is now locked into the test suite so nobody re-assumes it.
For the curious, the math
The trust state is a matrix of positive numbers. The update moves it toward a reference along a log geodesic, which in logarithms is an ordinary weighted average:
log A(t+1) = (1 - a) log A(t) + a log R
The per-step proof is the size of what is left over when you subtract that weighted average from the step the system actually took, measured after removing row and column effects so that harmless rescaling does not register.
Because the update is a weighted average in logs, so is the composition of k
of them, with weight 1 - (1-a)^k. That is why a window proof exists at all.
Substituting it in shows the loss directly:
kappa_window = | sum over i of (1-a)^(k-i) * delta_i |
A deviation at step i arrives weighted by (1-a)^(k-i). The last step arrives
at weight one.
Once it is a sum, the rest is linear algebra. The space of possible per-step
deviations has four dimensions per step, so 4k over a window of k. The sum
lands in four dimensions. Everything in the other 4(k-1) is invisible. At
twenty steps that is seventy-six of eighty directions you can move without the
proof changing. We measured that by computing the rank rather than deriving it,
and the measurement agreed.
The per-step proof has no sum to hide inside. Each step is its own number.
Full workings, the Rust source, and the raw output are in the gist linked below.
Where this fits
This is one night of the CCF research routine, which picks a question, builds
working Rust, measures it, and publishes the numbers whether or not they are
flattering. The certificate described here is filed as US provisional 64/092,485
and the core of it is published as the ccf-core crate.
The result is a small one and I would rather state it small. A rule that said "check every step" now has a measured price for not doing so, including a construction that passes a batched check while the state is wrong. That is worth more than the rule on its own.
Marta's carriers are invented. The saving is not. Anyone running a gate like this on constrained hardware will be offered that trade, and it will look free.
Links: the full research write-up and numbers, github.com/Hulupeep/ccf, crates.io/crates/ccf-core, floutlabs.com.
One correction while you are here. Some older pages on this site describe Sinkhorn-Knopp and Birkhoff geometry as the thing that makes CCF's trust transfer work. That framing is out of date. Those are presentation and normalisation. The update the certificate checks against is the quotient-affine contraction, and the runtime object is the per-step certificate above.
License and contact
BSL 1.1, converting to Apache 2.0 in 2032. Contact via floutlabs.com.