TheGuardianAgent
The mathematics

A number for where AI agents disagree.

When several AI agents work on one job, each is sure of its own piece and none can see the whole. The question is whether their pieces fit together. There is a branch of mathematics for exactly that question. It is called sheaf theory.

The idea

Pieces that each look right

Sheaf theory is the mathematics of how small pieces join into one whole picture, and of finding exactly where they do not. Each agent's answer is one piece. The calculation asks whether the pieces can be joined into a single consistent account of the facts.

H⁰What the agents all agree on.H¹Where their answers cannot be made to fit together.

The result is a number, worked out the same way every time. When it is zero, the answers fit. When it is above zero, there is a contradiction somewhere in how they join, and the calculation says where.

A picture of it

Every step is sound. The staircase goes nowhere.

Penrose stairs: a staircase that appears to rise continuously and return to where it started.
Check any two neighbouring steps and one is higher than the other, exactly as it should be. Every local check passes. There is still no consistent height you can give the whole flight, and no single step tells you that. The contradiction exists only in how the steps fit together. That failure has a name and a number: a non-zero H¹. A group of AI agents can fail the same way, with every agent's own answer looking sound. Figure: Impossible staircase, Sakurambo, public domain.
Where it is used

The check before an action

TheGuardianAgent rests on a plain rule: no agent should act without an ID and a check. The scan, the watch and the door deal with the first half. They find the agents, name who answers for each, and ask an agent who it is. They do not use this mathematics.

The mathematics is the second half. Before an agent's action goes through, a panel of AI models looks at it separately, and the calculation measures whether their reasoning fits together. An action that does not hold together waits for a person.

That check runs today in Sheaf, the engine we built first, as a gate in front of an agent's tools. A door can stand in front of a Sheaf gate, so an agent is asked who it is, and then whether what it wants to do adds up.

The record

Published, and open to checking

The mathematics is published: the paper (DOI) and the technical whitepaper. A patent is pending on the method.

We say what the measure does and what it does not. It measures whether a set of answers is consistent. It does not prove that a consistent set of answers is true.