Research · TMN-008 ·

A free model can work reliably when there is a contract and a machine verdict

By Fahmi Ghani · about the author and how this is written

A free model can work reliably when there is a contract and a machine verdict
Illustration made with AI.

I handed small coding tasks to a free model through a written contract and judged the result with a machine evaluator, not with the worker’s own report. On two small tasks the correct result was accepted and every cheat I planted was rejected. Two tasks are not enough to say how much it saves.

Method

The contract has six parts: goal, inputs, file scope, bans, a done-definition written as a command, and the report format. I write the failing tests first (tests that fail on purpose until the work is done), with one old test as a trap. The worker runs in its own repository. The evaluator checks that there is a new commit, that changes stay inside the scope, that old tests are untouched, that nothing is left uncommitted, that tests have 0 failures, and that the numbers in the report match the real output. I then test the evaluator itself with cheats I plant on purpose.

Numbers

What was measuredResult
The 23 November task: a small function in a public repository, free model through its CLI50 seconds; 8 of 8 checks passed; accepted
Evaluator stress test on the 23 November task: edit an old test, a report with a false number, edit a file outside the scope3 of 3 planted test cheats rejected
The 19 November task: a slug-maker function, 6 failing tests and one old test as a trap92 seconds; 7 of 7 checks passed; accepted
Evaluator stress test on the 19 November task: an old test edited; a report claiming "9 passed" when it was not true2 of 2 rejected

Limits

Sources

How it was checked: Quoted from the experiment record; derived figures re-checked, raw files not re-run. This is a synthesis of my own experiments. It is not peer reviewed.

Drafted with AI help from my work notes and experiments; I review it before it is published.

Licence: text and data CC BY 4.0. You may reuse and quote with credit to the author and a link to this page.

Cite as: Ghani, F. (2026). MiganCore Findings, record TMN-008. https://migancore.com/en/blog/research/free-model-with-a-contract-and-a-machine-verdict/ · JSON

NextSee the work log