The Algorithm: defining "done" before you start

The core loop articulates what "done" means for a piece of work, works toward it, and only closes the task on tool evidence, not assumptions.


Daniel Miessler has named the failure mode that makes most people distrust AI assistants, and built a working loop around fixing it. In his system, the core mechanism — which he calls The Algorithm — refuses to mark a task complete on the assistant's say-so. A task closes only when a tool confirms it.

He describes it this way:

The Algorithm—the loop that articulates what "done" means, hill-climbs toward it, and closes claims only on tool evidence

Unpacking that: before work starts, the loop writes down what "done" means for this specific task — not a vibe, a checkable condition. Done means the file exists and contains these three sections. Done means the email was actually sent. Then it "hill-climbs": it takes a step, checks how close it is to the definition, takes another step, repeats. The important part is the last clause. When the assistant thinks it finished, it doesn't get to declare victory — some tool has to produce evidence. The file is read back. The command's output is checked. The claim and the proof are separate things.

If you've been burned by an AI confidently delivering the wrong thing — a summary of a document it didn't fully read, a "sent" message that never went out, an answer assembled from what it assumed rather than what it verified — this is why it happened. The assistant reached a plausible-sounding stopping point and stopped. Nothing in the arrangement required it to check its own work against reality.

What changes if you adopt the idea, even informally: you front-load the conversation about what finished looks like. Instead of research this and give me the key points, you say what shape the answer takes and how either of you would know it's right — done means a one-page brief with dates checked against the actual sources, not the model's memory. That upfront agreement doesn't just improve the output; it reduces how much re-checking you have to do afterward, because the standard was negotiated before the work rather than retrofitted after the disappointment.

The honest caveat: this is most powerful inside a system that can actually enforce it — one where tools exist to produce the evidence and the loop runs automatically. Miessler's version ships as part of his personal AI infrastructure, which is a working thing, not a whitepaper; people run it. But setting that up is developer-adjacent work. If you are a non-developer using a chat assistant, you don't get the enforced loop — you get the discipline. You can still define "done" explicitly before the task starts and you can still demand evidence rather than accepting a confident claim (show me the file / the search result / the actual text). That manual version helps, but it depends on you remembering to audit, which is precisely the labor the automated version exists to remove.

So: the concept is usable by anyone today as a habit of specifying completion criteria. The full mechanism — an assistant structurally unable to close a task without proof — is real and shipping, but it currently lives in tooling that assumes you're comfortable wiring up your own system. The gap between the two is the thing to watch.

productsaccuracyautomation
Source: github.com