CEChibuzor Ezeamaku
FR

The gate.

Letting software act is easy. Knowing where it must stop is the job. I design the gate between an autonomous system and an irreversible action, and I have built it again and again, in systems that share no code.

The idea

Every useful autonomous system eventually wants to do something that cannot be undone. Push code. Send an email. Write to a patient record. Charge a card. Delete a file. The model proposing the action can be brilliant and still be wrong, and the cost of wrong is paid once, in the real world.

A prompt that says “be careful” does not change that. A gate does. A gate is a point in the system where an action is held, shown exactly as it will happen, and released only by a person or by a policy the agent cannot edit.

If a rule really matters, enforce it where the agent’s reasoning cannot reach.

One shape, many systems

  • An agent harness. The agents do real engineering work. Reads flow. Deletes and anything that leaves the system wait for a person, shown as the exact call.
  • A tool server for a team. Read-only by construction. The tools that write are built and switched off.
  • An AI scribe. Every drafted field cites its source, and nothing reaches the record until a person signs.
  • An app agents can use. Moving money, deleting and sending anything outside the app wait for me at every autonomy level.
  • A desktop file search. Read-only by default. A delete needs a token from the interface, never from the model.

What the gates have in common

  • The gate is law. The prompt is a suggestion. Rules the agent must follow live in code, hooks and permissions, outside its reasoning.
  • Show the exact action. Approve the literal tool call, the literal diff, the literal record. Never a paraphrase.
  • Choose the failure mode by attendance. An agent with a person watching can stop and ask. An agent running overnight must fail closed, because a question with nobody to answer it is a hang.
  • Allow-lists beat deny-lists. When the world changes, a stale allow-list breaks your workflow loudly. A stale deny-list breaks your security silently.
  • Precision matters more than recall. A gate that fires on everything gets switched off, and then it protects nothing.
  • The gate protects itself. An agent can propose a change to its own policy. It cannot apply one.
  • The builder does not grade its own work. A fresh, read-only reviewer decides whether the work passes, against criteria agreed before the first edit.
  • Judge the chain, not the step. Every step can be allowed and the path can still end somewhere it should not. So guard the exits: whatever leaves the system is checked last.
Swap the model and the runtime tomorrow. Whatever you would keep is the harness.

Why it matters now

Models change every quarter. The layer around them does not have to. The tools an agent may call, the actions it must never take alone, the evidence it has to produce before anyone believes it: that layer is where reliability comes from, and it compounds. It is not sacred, though. At every model change I ask whether each piece is still needed, and remove the ones that are not.

This thread goes back further than AI. On a factory floor I learned that the hardest part of automation is knowing what is safe to remove. Gates are the same lesson, applied to software that can act on its own.