Verification · 3 min read
When Is an AI Worker Actually Done?
A completed request, a passing fixture, and a merge decision answer three different questions.
A worker finishes a request and hands back a Python function. The scheduler can release its inference slot. The caller still needs to decide whether the function works, and the reviewer still needs to decide whether the assignment can close. Those decisions belong to different people or pieces of software. Collapsing them into one green indicator makes a queue look remarkably healthy.
In my exploratory Group 1 run, Qwen completed all 60 primary requests. For the four Python functions under test, only one passed every fixture for that function. The first number describes delivery across the primary requests. The second describes behavior on a subset of tasks. Dividing one number by the other would produce a statistic with no useful interpretation.
Make the handoff observable
Suppose the assignment is to normalize a tag. The request says to trim surrounding whitespace, lower-case the text, and preserve the empty string. A worker returns a function and a short explanation. Save the returned artifact and the revision it was written against. The fixture runner can now exercise exactly what the reviewer will see. An explanation that promises support for whitespace cannot settle what happens on an input consisting entirely of spaces.
result = worker.execute(task)
if not result.completed:
return RuntimeFailure()
if not contract.validate(result):
return ValidationFailure()
return Accepted(result)
In this sketch the contract is explicit before generation. For the tag task it includes representative inputs, the expected result for each, and the command that runs them. A broader assignment could include compatibility with existing callers or a human decision about a visible copy change. A missing criterion should stay visible. An empty checklist that evaluates to true would erase exactly the uncertainty the reviewer needs to see.
Keep the unit beside the number
Imagine a generated function passes nine ordinary inputs and fails on the tenth, an empty string. A per-input score of nine out of ten helps a debugger locate a narrow problem. A per-function score records one function still awaiting repair. Both scores describe the same artifact. If the failing case is part of the assignment, the component that decides whether to merge needs the second view and a link to the first.
This also changes how I would design the receipt. Include an artifact identifier, the fixture revision, the command, and the observed failure. When the worker submits a repair, give it a new artifact identifier and rerun the relevant checks. A green receipt attached to yesterday’s diff says little about today’s edit. Keep earlier receipts so a reviewer can see if fixing one input broke another.
Put the decision where someone can inspect it
For a Fredrin-style queue I would record execution finished, validation failed, and review pending as independent facts. The inference slot can go to the next assignment while the failed fixture routes back to the responsible worker. An assignment that genuinely requires human judgment can wait with its evidence attached.
The local study gives a reason to expose those facts and a compact fixture for a dashboard design. It does not predict the merge rate of an autonomous coding team. The practical test for the interface is simpler. Pick any accepted assignment, follow its receipt, and identify which version of the deliverable satisfied which checks. If that takes a conversation with the original worker, the acceptance record is missing something.
Supporting diagrams (4)
