Press ESC to close

When the Loop Rewrites Its Own Prompt, What Are You Approving?

“The end of manual prompt engineering” is the headline on GEPA. That is true for the job it is being sold to do, but GEPA is doing something else as well and there is a problem with it.

GEPA is a loop that reads back through the runs where a system got things wrong, works out in plain English what went wrong and rewrites the instruction so it does better next time. It beats the reinforcement learning approach by about 10 percent on average and by as much as 20 percent, using up to 35 times fewer runs. If you have ever hand-tuned a prompt and known you were guessing, the appeal is obvious. The machine does the guessing now, and it guesses better.

GEPA is not a new idea arriving from nowhere. It ships as dspy.GEPA, the newest optimiser in a framework that has been writing prompts automatically since 2023, first choosing the worked examples and then the instructions themselves. If your team picked up DSPy at any point since, some of your prompts have been machine-written for a while, and the headline is only catching up now.

I build agent systems for a living and I am not going to tell you GEPA does not work. It works. What the headline leaves out is that the prompt was doing two jobs, and only one of them was a chore.

The prompt became your audit surface

Somewhere in the last two years the prompt stopped being a technical detail and became the place your company wrote down what it had agreed to.

A compliance officer cannot read model weights or a training curve. They could always read the prompt. It is written in English, and it says in words a non-engineer can follow what the system has been told to do and what it has been told not to do. When someone asked what you had authorised this thing to do, you could hand them a document that a person wrote and a person had signed.

Nobody drew that on an architecture diagram, but it was doing real work: it was the last thing standing between your intent and the system’s behaviour that a human could actually read.

Where the take runs out

“The end of manual prompt engineering.” That take is everywhere. Prompt engineering was a vibes-based mess, the story goes, so letting the model reflect on its own failures and rewrite the instruction is a straight upgrade, systematic where we were superstitious and far cheaper besides. Who defends hand-tuning a prompt against that?

That is worth conceding, because it is real. As optimisation, GEPA is better than a person poking at wording, and if the prompt were only a performance lever that would settle it.

The prompt was never only a performance lever. It was also the one place a human could read what the system had been told to do and say yes to it. Automating the first job says nothing about the second, and you retired a chore with the artifact your compliance officer was reading still attached to it.

The instruction nobody wrote

A prompt a person wrote is a statement of intent. Someone decided what to say and someone can be asked why. A prompt the system evolved out of its own failures is a different thing wearing the same clothes: the compressed history of everything that went wrong, tuned to a score, different on every run and legible to nobody who signed it off. It reads like an instruction, but nobody stands behind the words, and an instruction nobody stands behind is just text that happens to be phrased as a command.

The obvious defence is that you still review the outputs, so you do not need to read the instruction if you can see what the system produced. That holds right up until something goes wrong and you have to explain why. Reviewing the output of an instruction you cannot see, cannot reproduce and did not approve is not oversight. It is watching. When the regulator asks what the system was told to do on the run that caused the harm, “we kept the outputs” is not an answer.

Logging is not approving

The EU AI Act’s high-risk obligations land on 2 August 2026, and they ask for two different things. Article 12 wants logs: automatic recording of events across the system’s lifetime, enough to trace what happened and to catch a substantial modification. A machine can satisfy that. Article 17 wants a quality management system documented as written policies, procedures and instructions, with a defined process for managing modifications and an accountability framework naming who is responsible for what. A machine cannot satisfy that, because there is nobody to name.

So you store the stream of instructions, each one different, each one tuned to a score, and you end up with a flawless archive of decisions nobody made. A log of machine-authored prompts is archaeology: a complete record of what happened, assembled after the fact, with nothing in it you ever agreed to.

Control is a decision you make before you switch this on

If your control model assumes a human can read the prompt, that control disappears the moment you turn on self-optimisation, and the demo will look better on the day it goes.

Nothing breaks. The numbers improve, the loop tightens and the dashboard is greener than it was last week, while the thing your governance depended on is gone. No alert fires when the last human-readable statement of intent leaves the building. For anyone already running DSPy, that decision was made by a library upgrade.

So treat it as an architecture decision, not a setting. Decide which prompts are allowed to rewrite themselves and which stay human-authored because the stakes are too high to hand over. Where you do let the system write its own instruction, keep a copy of the exact words used on each run. Put a human approval step in front of the ones that matter. You have to build the audit surface back in deliberately, because the optimiser will not leave you one.

The real trade

Automating the prompt looks like the end of a chore. Read the ledger properly and it is the end of the paper trail.

Which leaves you approving something you cannot read. You sign it off on the day you switch it on, and by the time it matters the system has rewritten it and nobody has looked at the new one.

So you choose where it is safe to hand over, and you build your own audit surface everywhere else.

Sources

Related reading (Synaptic Pixels):

Leave a Reply

Your email address will not be published. Required fields are marked *