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

Closer to the target is the wrong test for a trust update

A real moment

This scenario is invented. The station, the people and the events are made up to show how the check works. No real deployment is described.

Carrickmacross Community Radio broadcasts from two rooms above a hardware shop on Main Street. Most nights nobody is in the building after ten. A scheduling assistant runs the overnight shift. It drafts the playout list from the music library, slots in the sponsor reads the station has sold, and pays the small fees owed to the freelance presenters who send in pre-recorded shows.

Deirdre manages the station. When she set the assistant up she was careful about one thing above all. New authority should arrive slowly. If the board decides the assistant should handle more of something, it should grow into that job over days, not overnight. She chose a setting where the assistant's trust record moves about a fifth of the way toward any new target each time it updates, and less when things look unsettled.

On a Tuesday in October the board signs a sponsorship deal with a garden centre in Castleblayney. Deirdre changes the target. Over the next couple of weeks the assistant should become trusted to book more sponsor reads on its own. She does not touch anything to do with payments.

That night a routine library update lands. It has two bugs. The first makes the trust update skip the gradual part and jump the record straight to the new target in one go. That is nearly five times the step Deirdre allowed. The second, a few lines away, nudges the part of the record that covers paying presenters upward, though nobody asked for that.

The station has a monitor that checks every update. It asks one question: did the trust record end up closer to where it was heading?

The answer is yes. The jump took the record all the way there. The payments nudge was small enough that the total distance still came down. The monitor passes both updates. The assistant carries on with more standing than the board gave it, and nobody notices until someone reads the logs, if anyone does.

Now run the same night with a different check. This one asks whether the record moved by exactly the allowed amount, in exactly the allowed direction. Both updates fail on the tick they happen. The check reports how far past the allowed point the jump went, and that a part of the record the target never mentioned moved. The assistant drops back to drafting only and marks the tick. In the morning Deirdre sees one flagged line in her report. The trust record is still where the board's decision put it.

That second check is the one Contextual Coherence Fields uses. This post is about why the first one, which sounds sensible, fails in the direction that matters.

Why this matters

Any system that earns trust over time needs some record of that trust, and some rule for how fast the record may change. A home robot that has been calm around a family for months gets more freedom than one switched on yesterday. An AI agent that has handled a company's invoices without trouble for a quarter gets more room than a new one. The rule for how fast that record grows is the safety rule. If the record can jump, the slow earning means nothing.

So you want to check every update. The question is what to check.

The obvious test is progress. The record has a target. After an update, is it closer? This is the same shape as a lot of good engineering. Control engineers check that an energy-like quantity goes down every step, and that guarantees the system settles. Optimisation code checks that the error drops each iteration. It is easy to explain in a code review. It feels like the right kind of thing.

It answers a different question from the one you care about. Progress tells you the record will get to the target eventually. It says nothing about how fast it got there, or what else moved along the way. For a trust record, how fast and what else are the whole point.

What CCF does about it

In CCF the trust record is a small grid of positive numbers. Each number says how much trust flows from one context or category to another. Each tick the record moves a fraction of the way toward a target. That fraction comes from a strict gate: take the lower of two readings, how settled things are right now and how much trust this context has earned so far. When either reading is low, the fraction is small and the record can only creep.

One detail matters for what follows. Scaling a whole row or a whole column of the grid up or down does not change what it says about trust. Only the relative sizes count. So both checks below measure distances after removing that row and column scaling.

The progress check says: the record must end up no further than its old distance from the target, shrunk by the allowed fraction.

Think of it as a ball centred on the target. Its radius is how far the record would be after an allowed step. The progress check accepts any update that lands inside that ball.

The allowed step lands on the edge of the ball, at the point facing where the record came from. And that one fact causes three problems.

First, everything between the allowed point and the target is inside the ball. So a bigger step passes. A much bigger step passes. A jump straight to the target passes. A smaller step, the careful one, stops short of the edge and fails. The check rewards haste and punishes caution.

Second, the ball reaches out sideways. An update can push a part of the record that the target never asked to change and still land inside the ball, as long as it does not go too far. In the radio station story, that is the payments nudge.

Third, the allowed step sits exactly on the edge, so tiny rounding errors put it outside about a quarter to a third of the time. A strict progress check raises false alarms on perfectly good updates. Give it a tolerance and those go away, but the first two problems stay.

The check CCF uses is called a residual certificate. It works out the single point the allowed step should have reached and measures how far the actual record is from that point. If the update was right, the answer is zero, apart from rounding. If anything else happened, the answer is positive and the system restricts what the agent may do. It is described in US provisional application 64/092,485, which also says outright that a check "based only on scalar distance-to-target contraction is insufficient". This run measured how insufficient, and in which direction.

The numbers

We wrote a small Rust program around the published ccf-core crate and ran ten kinds of update against both checks. These were the allowed update, the allowed update with harmless row and column scaling, steps too big, steps too small, a reflection the patent application uses as its example, plain averaging instead of the proper log-based step, and a few others.

The headline: when the gate allows a step of 0.02 of the way, the progress check accepted a jump straight to the target on every instance we tried. That jump is fifty times the allowed step. The residual certificate refused it every time. A step half the allowed size went the other way. The progress check refused it every time, and so did the residual, which flags any step that is not the allowed one.

When the target changed one part of the record, the allowed update left the unrelated parts exactly where they were, to within rounding. The progress check accepted an update that raised one unrelated part by a factor of about 2.9 when the allowed fraction was 0.21. The residual refused it.

And the progress check is not cheaper. On a three by three record it took about 500 nanoseconds, against about 614 for the full residual check. On an eight by eight record it was slower than the residual.

What this doesn't solve

The residual certificate checks the update against the step size it is told was allowed. If the part of the system that works out the allowed step is itself wrong, and reports the wrong number, the residual will happily confirm a wrong step. A separate audit of the gate covers that case. We wrote that up in the previous note.

When the record is already sitting at its target, a step-size bug does nothing you can measure, because there is nowhere to move. The bug shows up once the target changes again.

The tests use random grids of numbers, not records from a real deployment. The exact formulas do not depend on that. Some of the rates for the messier faults, like plain averaging, do.

Finally, the program measures how far the stored record moved. It does not model what an assistant would then do with more standing. Whether a moved record opens up an action depends on how a deployment reads it.

For the curious: the math

Write the record as a positive matrix A. Taking logs and subtracting row and column means gives Y = H (log A) H, which removes the row and column scaling. The allowed step moves Y in a straight line a fraction alpha of the way toward the target Y_R. The residual certificate is the distance, in this space, between where the record landed and that one allowed point.

Suppose an update uses alpha' instead of alpha. It lands at distance |1 - alpha'| d from the target, where d is the starting distance. The progress check asks for at most (1 - alpha) d. So it passes exactly when alpha' is between alpha and 1. The residual for the same update is exactly |alpha' - alpha| d. Our runs matched both formulas to better than one part in ten trillion.

For the sideways problem, a cross-ratio is a comparison of four entries in the grid that does not change under row and column scaling. If the target changes one log entry by delta, the starting distance is d = delta (n - 1) / n. Every cross-ratio that does not involve that entry is left alone by the allowed step. The progress check admits an update that raises one of them by 2 (1 - alpha) d. That update has residual sqrt(2) (1 - alpha) d. For a three by three record at alpha = 0.21 that is a raise of 1.0533 in log terms, a factor of about 2.87.

This geometry is not ours. People who study positive two-way tables in statistics use the same coordinates. What the provisional application describes is the per-step residual of the allowed move in those coordinates, used as a gate on an agent's trust update.

The full write-up, with every table, is in the research note on the CCF repository. The shorter technical summary is in the public gist.

Where this fits

CCF builds the action space of a robot or an AI agent out of trust it has earned, and holds that trust behind a strict gate. The residual certificate is one of the checks that keeps that gate honest once it is running. Without a check that the update itself was the allowed one, a slow-trust rule is only a promise. This run looked at the most natural shortcut, checking progress, and found it fails in the dangerous direction.

The certificate is part of the published Rust crate ccf-core on crates.io. This run's code is on the research branch research/nightly/2026-10-17-distance-contraction-certificate at github.com/Hulupeep/ccf. The project's spec and contract tooling is Specflow.

License & contact

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, contact Flout Labs at floutlabs.com.