Enaho Murphy

Co-founder & CTO · Pradini · Lagos

Drawn 2013–2026

Logbook · Entry 005

Generate loosely, accept strictly

Entry

An automated check rejected all 23 designs we gave it.

It was the best result of the week.

An agent built the check. It is a short script that tests each design against hard limits taken from published rules. We ran it on every design we had, all made by hand over the previous weeks.

It failed every one and explained why.

Some failures were real breaches of a limit. Where a design didn’t state enough to prove it passed, it failed that too. The check does not guess. If a measurement is missing, the answer is no.

The check itself did not merge that day either. A second model reviewed the branch, found four blockers, and the branch waited. The same rules apply to the tools that check the work.

That’s the point. You can’t make a language model deterministic. You can make the checks around it deterministic.

Why we stopped fighting the randomness

Run the same agent on the same task twice and you get two different answers. Lower the temperature, write a longer prompt, add examples: you get fewer surprises, never zero.

For our work that is not fine. An output that is right on Tuesday and wrong on Wednesday is a bug. A build that writes different bytes on two operating systems breaks every merge that touches it.

So we stopped asking the model to be reliable and started asking the pipeline to be. The model can vary as much as it likes. Only output that passes the checks gets out.

The pipeline has three edges: Constrain, Guard, Prove. One line holds it together: “Every step loops until it can show its exit.”

1. Constrain: the generator reads only a fixed file

The generator reads only a fixed file of reference values and rules. No guessing, no extra context.

Each output is built from its spec file, with every measurement written down before any build step runs. The build script refuses to run from an incomplete spec, and names every missing line. It also refuses to run if its calibration check is red.

That is why one of my standing rules is that everything is data: “if everything is data, then we could always like just make small updates and get faster results”. Limits and tables live in data files, never in code. A changed number in a data file is small, easy to review and easy to undo.

What comes out is fixed as well. The output has a shape the next step can count on: a fixed set of files with a fixed set of parts, and a report. Every line of that report has the same columns: check, item, want, got, ok, note. So a low grade points at a line.

The build works the same way. Each step declares what it reads and what it writes, and stamps its output with a hash of its inputs. No step may rewrite its own input. A test keeps the list of old steps that still do, and that list may only shrink.

2. Guard: pure code, zero AI

Pure code, zero AI. Fails closed. Missing proof is an automatic failure.

No model reads the output and gives an opinion. A script measures it, and fails the build on any breach of a limit. If the output doesn’t state enough to show it passes, it fails.

Known breaches are listed in a file that may only shrink. A listed item passes while it stays at or under its recorded number. An item that gets worse fails. A new breach fails. A breach that has been fixed fails as stale until someone removes its row. In one day, the rows for one kind of item went from 60 to 40, because a new stage now brings each item inside its budget before the next step uses it.

Budgets are data, and they are never raised to get a pass.

Failing closed matters more than it sounds. The design check fails when it can’t classify part of a design. A merge fails when a stamp is stale, so a change to a generator cannot merge without its output being regenerated. A review that times out is not a pass. Missing evidence is a no, every time.

3. Prove: tests that can fail

Tests read their thresholds from data, run on a fake clock, and fail if a broken input passes.

A guard is only as good as the tests that hold it. Our test rules are short:

  • A test exists only to catch a break in something the product does. Tests that restate the code get deleted.
  • Tests read their numbers from the same data files the code reads. A literal number appears in a test only when that number is the rule.
  • Time runs on a fake clock, never real time. A test proves “A did not wait on B” by order, never by timing it.
  • No count, slack or timeout is raised to turn a test green.
  • The whole suite fits a fixed time budget, and so does each test.

The proof extends to the pipeline itself. We ran the full build twice, 40 steps, and checked that it wrote the same bytes in every tracked file. When one operating system wrote different files from another, because of last-digit differences in floating-point maths, the fix was to round values when writing until both produced the same bytes. Not to skip the second system.

Every step loops until it can show its exit

Each stage is a loop with a hard exit condition. The builder loops until its branch prints READY. An output loops until its guard is green, then gets an independent review, with at most two passes before the pipeline moves on. A bug loops through build and review at most twice inside its time limit, then gets split.

What a step can’t do is declare itself finished. It has to show the exit: a green guard, a READY line, a PASS, a commit on the main branch. Nothing else counts as done.

The last exit is the merge. Before any branch merges, a model that did not write it reviews the diff, so its reading isn’t anchored on the builder’s. The reviewer returns PASS, BLOCKED or INCOMPLETE, and only PASS merges. A reviewer that runs out of time returns what it has and lists what it did not check, which makes it INCOMPLETE.

Then the merge script does its own deterministic work: it pulls in the latest main branch, reruns only the tests whose files overlap, and refuses on anything stale or red. The review is the last gate, not the only one.

Why review is not the guard: money

Agents write fast, plausible code. Plausible but wrong passes review, because review reads for sense.

Money shows it best. In double-entry bookkeeping every entry must balance. It does not catch the right amount posted to the wrong account. The books still balance.

Software ledgers inherit the problem. A writer that splits money the wrong way, or posts nothing at all, can look the same as a correct one to the typechecker, the linter, a unit test with a mocked database and a human reader.

The bugs of this kind I have seen took one of three shapes:

  1. A second place doing what one authorised place already does.
  2. A money column changed without the ledger hearing about it.
  3. A check whose pass looks the same as nothing happening.

So the fix is deterministic edges around the authors, whether the author is an agent or a person. One door per money movement, which decides, records and queues the follow-up in one transaction. A database trigger that refuses any other writer of the money columns. A lint rule that freezes which files may write ledger entries. And tests you can tell apart from nothing happening: each one names the guard line it protects, that line is reverted, and the test must go red. A revert that doesn’t turn it red is reported as inconclusive, never as a pass.

The guard has to sit where plausible but wrong can’t get through, and review is not that place.

Invert Postel’s law

Postel’s law says to be conservative in what you send and liberal in what you accept. Agents heard “liberal” and stopped listening. Your checks have to enforce the “conservative” half.

The law helped the early internet grow, and a generation of protocol engineers learned its cost. The IETF’s RFC 9413 sets out why: every broken input you forgive becomes one you have to support forever. With a language model as the sender, you can’t make the sender conservative. The sender will be loose. The receiver has to be strict.

What this bought us

Agents of different strengths can work in the same pipeline. A cheaper model can do a mechanical ticket because the guards catch what it misses.

Quality became predictable. Our target is a steady, repeatable result from the pipeline, not one high score that the next output can’t repeat.

And when a reviewer finds something the checks missed, that gap becomes a new spec line with a failing check.

Let the model vary. Don’t let it decide what counts as finished.

Generate loosely. Accept strictly.

What does your pipeline accept that it can’t prove?

Drafted with agents from my notes; edited and signed by me.

Rev A · 2026-11-14Signed · EM

Follow the Logbook: RSS