Erik Meijer separates an agent's uncertain language-model reasoning from the trusted system that performs external actions. Instead of executing a tool call immediately, the agent builds a deferred program that can be inspected, transformed and checked first.
He connects this design to free monads, proof-carrying code and policy enforcement. Safety claims travel with the proposed action, while a smaller trusted base verifies those claims before granting effects such as network access, file changes or financial transactions.
The approach does not make model output reliable by itself. It moves critical guarantees into explicit interfaces and verification steps, where software can reject unsafe behavior even when the model is confused, manipulated or maliciously prompted.
Watch on YouTube



