// 2026-05-10

Hamilton philosophy applied to AI systems

The Apollo 11 flight software, the one that took three humans to the Moon and brought them back, was designed by Margaret Hamilton under a premise that remains the gold pattern of critical systems, assume something will fail and design the system so the failure does not destroy the operation.

That premise, applied to AI systems, changes the whole architecture. And almost no one is applying it.

The problem with contemporary AI

Language models fail in strange ways. Hallucinations, internal contradictions, prompt-form sensitivity, inherited biases, outdated data, errors the model itself does not detect as errors. And each model has its own failure pattern.

The reasonable thing, knowing that, would be to design systems that assume those failures and handle them. What is done instead is deploying a wrapper over a single model, sending the response straight to the user, and hoping it does not err. When it errs, the responsibility is the user's.

Five Hamilton layers

In any system we build on IRIS, there are five layers that activate in order when a failure occurs:

  1. Automatic detection. The system recognizes something is wrong before returning a response.
  2. Self-healing. The system tries to fix the error alone, retrying, changing model, adjusting the prompt.
  3. Technical escalation. If self-healing fails, escalates to Claude Code or the technical pipeline for automatic diagnosis.
  4. Critical alert. If technical escalation does not solve, alerts via WhatsApp or email to whoever needs to know.
  5. Human intervention. Only if the previous four layers failed, it reaches Carlos. Human intervention is the last resort, not the first.

Why it matters for the client

A system with five Hamilton layers has a rare property, it does not fail silently. When something breaks, you know. When something fixes itself, you also find out. And when you reach the keyboard to solve, you arrive with all the context of what the previous layers tried.

That means the system is not just "more stable". It is auditable. Every response from the system comes with its trace, which models it consulted, which verifications it passed, which self-corrections it applied. For a company paying consequences for the decisions it makes with system support, that is the only thing that justifies trusting.

We do not design so it does not fail. We design so the failure does not destroy the operation. That difference is Hamilton.

// AUTHOR

Carlos Perasso

OrvixLabs, Necochea, Buenos Aires, Argentina