PatchPilot takes a GitHub issue link, reproduces the bug in Docker, and hands back a failing test and a fix diff. On its benchmark of 10 real open source issues, the earlier configuration reproduced 7 out of 10. Then I added an attempt feedback loop, and the score fell to 3 out of 10.

That number sat wrong with me for weeks. A loop that makes an agent worse is either a real finding or a measurement artifact, and I had no way to tell which. PatchPilot is one task type with its own history baked in, so any result from it could be dismissed as a quirk. I needed the loop itself to be the subject, measured on a benchmark the loop cannot touch. So I started building the Loop Harness. Python, public repo from day one: https://github.com/abdullah129026/loop-harness

A borrowed benchmark would not settle it

The obvious move was a standard benchmark, and I did not trust that either. SWE-bench Verified, the benchmark everyone cites, was retired in February 2026 after an audit found 59.4 percent of audited problems flawed. A big benchmark with broken problems gives you a precise-looking number that means nothing.

PatchPilot's 10-issue set is small, but every issue is real, every reproduction runs in Docker, and tests decide pass or fail. Small and honest beats big and broken. The harness takes that set as task set v1 and freezes it. A set, once used in a published run, never changes; new tasks mean a new set version. If a later experiment scores higher, I want to know the loop got better, not that the benchmark got easier.

Five parts, and the governor is the point

The pipeline has five parts. The actor gets one task and a memory view, and produces one attempt: code and commands. It cannot touch the benchmark, the evaluator, the governor's rules, or past memory entries. The evaluator scores the attempt against reality: test suites, build results, exit codes, logs. LLM judgment is allowed only where no mechanical check exists, and those scores are flagged as judged.

Memory is append-only. Every attempt is stored as an immutable entry: task id, attempt number, what was tried, evaluator evidence, failure signature, tokens, wall time, cost. Nothing already written can be edited or deleted, so if the loop's story about itself changes, the original entries disagree with it in writing.

The governor sits outside the loop and owns the rules the actor cannot bend: the frozen benchmark set, the retry budget, the stop rule. Same failure signature twice in a row, and the loop stops. No second fix attempt without a new fact from reality. That is the evidence-first rule I learned the hard way, written down so the actor cannot override it. The actor can propose changes to its own instructions. The governor disposes.

The benchmark runner owns the versioned task sets and runs one configuration across the whole set. An experiment is pure configuration. Experiment 1 is the baseline, one attempt, no loop. Experiment 2 turns the feedback loop on with memory and no governor. Experiment 3 adds the governor. Experiment 4 keeps the governor and turns memory off, so I can see what memory itself contributes.

Five days in, the build has already taught me something

Day 1 shipped December 2: package scaffold, task interface, runner skeleton, results logging, and a trivial two-task set that came back 1 of 2. Twelve tests green. Day 2 shipped December 3: the evaluator, with mechanical scoring and a failure signature on every run. Eighteen tests green.

Day 3 shipped December 4: the test console, built early on purpose. Without a screen, end-testing a run means reading raw logs and stitching the story together by hand. That is slow enough that testing gets skipped, and skipped testing is how bad numbers reach a paper. The console is plain HTML served by the harness itself: run form, live view, full run log, comparison table. Nothing more. It exists so experiments get end-tested by hand. Twenty-nine tests green.

Day 4 shipped December 5: the append-only memory store, hash-chained entries verified on read, plus the actor loop reading the governor's release view. Forty tests green. Day 5 shipped today: the governor itself, budgets, stop rule, promotion, experiment switches, plus budget fields and a preset in the console. Fifty-nine tests green.

Runs execute on GitHub Actions, dispatched through the API, polled to completion, artifacts and logs pulled back into the run record. The API call is the whole session. EC2 stays as fallback on my personal credits. The business AWS credits stay frozen, so they never touch this.

The honest state of it

None of the four experiments has run yet; they run on day 7, after the PatchPilot set is plugged in as task set v1. The 7 and the 3 are PatchPilot's recorded history, not harness results. A second task type comes after the first results, because a claim that only holds on one task type is a rumor with a chart. The paper, if there is one, comes after the measurements: ten to twelve pages, double column, evidence-led.

What I would do differently: build the measurement before the loop. I added the feedback loop to PatchPilot because it sounded right, then spent weeks arguing with a number I could not defend. The harness is the correction: measure first, then argue.

If the governed loop beats the baseline, I will have a number I can defend. If it loses, I will have a better question. Either way the answer comes from a frozen set and a mechanical score, not from how the run felt.