Live demo  ·  semantic model, not the proved build  ·  v0.6
Ant Farm

Agent traffic you can watch.
Rules you can break.

Ant Farm is a live, deterministic model of AegisGenera's agent-to-agent routing rules, drawn as street traffic. Every message is a car. Every lane cell holds one car. Every visitor gets a private colony to jam, deadlock, isolate and repair.

Ant Farm map: desk, data and compliance agent neighbourhoods around an orchestrator hub, with an alarm storm in red and outside agents behind a border agent in the lower right.
A trusted agent (S) has started an alarm storm (red). Three unsigned outside agents (X, lower right) can reach only the border agent (B), which asks inside on their behalf under its own name.
Launch the Ant FarmWatch a recording

What it is, and what it is not.

Ant Farm is a semantic model: it states AegisGenera's routing rules precisely enough to run them, watch them, and attack them. The gateway acts as a reference monitor. Every message is checked against Passport's edge and verb maps; delegation is checked against the originator's rights; replies must answer a real request; and hop limits, rate limits, a message deadline and revocation all apply.

It is not a throughput benchmark and not the formally proved production core. Real-workload performance numbers come from real agents on the real gateway. What the model offers instead is human-understandable agent activity that can be constrained, and a headless engine that runs the same rules under a fuzzer.

Two messages can't occupy the same cell. That one rule is enough to make deadlock, congestion and containment visible.

Every message authorized. The colony fails anyway.

The agents follow simple rules. A loop pair answers each other twice per message. An alarm storm relays every alert to two peers. Each individual message passes every check at the gateway, and the colony still jams, the way army ants following one another's trail can circle until they die.

Under plain shortest-path routing, overload goes further: cars end up waiting on each other in a circle, and nothing moves again. With the storm and loop running and no limits, shortest paths deadlocked in 50 of 50 seeded runs. With Autonet up*/down* routing, from DEC's Systems Research Center, it deadlocked in 0 of 50.

Ant Farm in gridlock: every road full of stopped cars and a GRIDLOCK banner.
Shortest-path routing under overload: a cycle of waiting. Hop and rate limits can't clear it once formed; a message deadline drains it.
Ant Farm map with an alarm storm in progress under Autonet routing.
Autonet routing: routes climb toward the hub, then descend, never climbing again. Circles of waiting are impossible on any map.
Prevention vs cure. Up*/down* routing prevents deadlock. A message deadline cures one that has already formed. Hop limits and rate limits prevent the overload, but do nothing for cars already stuck.

Andon: stop a road, contain a neighbourhood.

Any road can be stopped by pulling its Andon cord, the Toyota Production System's line-stop. Isolating a neighbourhood pulls every road across its boundary. A global policy decides what happens to messages already on a pulled road:

PolicyMessages on the pulled road
HoldStop in place and keep their position; resume on release. Nothing is lost.
DrainClear the road, then follow the new routes. Nothing new enters.
RejectRemoved and refused back to the sender, who decides whether to retry.

Under Autonet routing, random cord pulls during an unconstrained storm produced 0 deadlocks in 300 runs across all three policies; shortest paths deadlocked in about 4 of every 10. Timing matters more than policy: isolating a storm half a second after it starts contains it completely. Fourteen seconds later, it has escaped.

Isolation contains what's inside, not what has already escaped. That argues for an automatic trigger, not a person.

Trusted agents, outside agents, and the border.

Inside agents are trusted: each signs every message it sends. Outside agents are unsigned and stay outside the graph; Passport gives each exactly one edge, to a border agent. The border never forwards. It asks inside under its own name, picks a responder by capability, and maps the reply back. An outside identity never travels inward.

Outside flood

About 4% of interior work

All three outside agents flooding at once cost the interior about 4% of its useful work. The flood meets the border's own rate budget; everything else receives a definite "no feasible responder".

Compromised insider

Messages in flight: 16 → 88

One trusted agent turning storm did far more damage. Revoking it made things worse for several seconds: its alarms kept relaying through agents each authorized to relay. The hop limit drained them.

Do not ask whether the agent is trustworthy. Ask what the graph permits it to reach when it is not.


One test: the Feasible Execution Set.

Every check the gateway makes is one term of a single predicate. A request is admitted only if the plan it belongs to is in the feasible set at that moment:

F(t) = { p ∈ Plans(q) | A(p,t) ∧ B(p,t) ∧ R(p,t) ∧ E(p,t) ∧ ¬H(p,t) }
TermMeaningIn the model
E evidenceSigned, attested, not revokedSignature check, revocation by epoch
B boundaryCRC topologyPerimeter, isolation
A authorityPassportEdge and verb map, confused-deputy check, reply tracking
R resourcesBounded consumptionHop limit, rate limits, queue space, deadline
H haltAndonPulled roads and isolation

Pulling a cord can only shrink F(t), never grow it. Every request ends in a definite outcome: delivered, denied with a reason, refused, expired, or "no feasible responder". Capability discovery asks the same test about each candidate responder, so it never offers one the gateway would refuse.


Checked, not just shown.

The same engine runs headless under a fuzzer: 100 random schedules of toggled constraints, behaviours, revocations, cord pulls and isolations, with every invariant checked on every tick. To prove the checks aren't vacuous, each rule is then deliberately broken in turn, and the fuzzer must catch it.

ANT FARM SELF-TEST · v0.6.0

Random schedules:          100 × 600 ticks
Messages accepted:         132,777
Invariant violations:      0

Deliberate rule breaks:    14
Caught by the fuzzer:      14

Deadlock, unconstrained storm:
  shortest paths           50 / 50
  Autonet up*/down*         0 / 50

Same seed, same digest:    identical
The model is the specification the proved gateway must match.The production policy core is intended to be written and proved in SPARK, with this engine and its fuzzer as a differential-testing oracle.

Next: the colony in AletheiaGraph.

The colony's graph (agents, Passport edges, roads, CRC surfaces, Andon state) moves into AletheiaGraph. Every admission decision can then be explained edge by edge, the way a database explains a query plan, and an agent's exposed graph, everything it could reach, can be queried before and after CRC constraints.

Not "is this agent trustworthy?" but "what can it reach, and why?"

Open questions.

The live demo lists the research questions this work raises, each marked as shown in the model, partly shown, or open, with prior art. Among them: deadlock-free rule changes while traffic flows, automatic Andon triggers, per-message signcryption for agent traffic, attenuable delegation, discovery that leaks nothing, and colonies federated under a marshaller.

Launch the Ant FarmResearch questions

References

  1. M. D. Schroeder et al., "Autonet: a high-speed, self-configuring local area network using point-to-point links," IEEE JSAC 9(8), 1991.
  2. W. J. Dally and C. L. Seitz, "Deadlock-free message routing in multiprocessor interconnection networks," IEEE Trans. Computers C-36(5), 1987.
  3. K. Nagel and M. Schreckenberg, "A cellular automaton model for freeway traffic," J. Physique I 2(12), 1992.
  4. T. C. Schneirla, "A unique case of circular milling in ants…," American Museum Novitates 1253, 1944.
  5. N. Hardy, "The Confused Deputy," ACM SIGOPS OSR 22(4), 1988.
  6. J. P. Anderson, Computer Security Technology Planning Study, ESD-TR-73-51, 1972.
  7. T. Ohno, Toyota Production System: Beyond Large-Scale Production, Productivity Press, 1988.

General Reasoning, Inc. · 2026
Enterprise and OEM inquiries: inquiries@genreason.com