Research · TMN-009 ·

CRLF line endings fooled my evaluator, so I fixed the evaluator

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

CRLF line endings fooled my evaluator, so I fixed the evaluator
Illustration made with AI.

A paid executor rewrote the line endings of whole files from LF to CRLF. The old evaluator still accepted the result, although the raw diff was 788 lines for a real change of 126 lines. I turned that finding into a new check, and the same case is now rejected until the line endings are normalised.

Method

I ran the evaluator on a contract done by a paid Gemini model (a per-model ledger for the Majelix router). I compared the raw diff line count with the number of lines whose content really changed. Then I added a check for mass line-ending changes and ran it on the bad case (must be rejected) and on the good case from the earlier test (must still be accepted).

Numbers

What was measuredResult
Raw diff lines vs lines whose content changed788 vs 126
The old evaluator on that case; the evaluator with the line-ending checkaccepted; rejected
After the line endings were normalised and recommitteddiff 126 of 126 lines; 68 tests passed, 0 failed; accepted
Acceptance meter for the Gemini CLI executor (4 small tasks, recorded duration 980 seconds)2 of 4 accepted (50%)

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-009. https://migancore.com/en/blog/research/crlf-line-endings-fooled-the-executor-evaluator/ · JSON

NextSee the work log