{"slug": "our-model-bake-off-commits-2436-bytes-and-gitignores-640036-because-the-inputs-s", "title": "Our model bake-off commits 2,436 bytes and gitignores 640,036, because the inputs are other people's comments", "summary": "A developer at Nakodo built a model bake-off harness that commits only 2,436 bytes of results.md while gitignoring 640,036 bytes of benchmark inputs containing real YouTube comment text, using a .gitignore allowlist so any new file in the directory is excluded by default. The harness uses three separate models — a reference model for ground truth, a judge for open-ended tasks, and the candidates — with seeded per-item shuffling and blind lettered outputs to prevent position bias, plus a 50-row human-check sample to validate the reference labels.", "body_md": "Choosing a model for a job is an experiment, and an experiment needs inputs. For [Nakodo](https://nakodo.app) the inputs are websites and YouTube channels and the comments under their videos: real text, written by real people who have never heard of us. That turns \"let us compare four models\" into a data retention question before it is a benchmark question.\n\nThis post is about the harness rather than the result. The result, which model won each of our four AI jobs and why the most accurate one lost on one of them, is [an earlier post](https://dev.to/daniel_pertu/four-ai-jobs-four-model-choices-and-the-one-we-picked-for-comments-was-not-the-most-accurate-4l15). Here I want to go through the parts that I would copy into the next project.\n\n``` bash\n$ ls -la benchmark/\n 408,826  data.json           the test set, with comment text\n 216,528  raw-outputs.json    every candidate's output, kept verbatim\n  11,355  reference-sample.md 50 random rows for a human to check\n   3,327  run.log\n   2,436  results.md\n\n$ git ls-files benchmark\nbenchmark/results.md\n```\n\nOne file of the five is in the repository. The rule is in `.gitignore`, written as an allowlist rather than a denylist:\n\n```\n# benchmark inputs hold YouTube comment text; only results.md is kept\n/benchmark/*\n!/benchmark/results.md\n```\n\nThe difference matters more than it looks. A denylist (`benchmark/data.json`) is correct until the day the script writes a sixth file, and then it is silently wrong. An allowlist is correct forever: anything new in that directory is ignored until somebody decides, in a commit, that it should not be.\n\nWhat ends up committed is 2,436 bytes of markdown: four tables, the recommendation, and the sentence that explains how the recommendation was reached. That is the artifact that still matters in six months. The 640,036 bytes that produced it are evidence, and evidence made of other people's words is a liability, not an asset.\n\nThree different models do three different things, and they are deliberately not the same model.\n\nThe reference model is the ground truth for the only task that has a right answer. The judge handles the tasks that do not. Letting a candidate judge itself, or letting the reference model judge the outputs it also labelled, would be the cheap version of this and it would be worthless.\n\nBecause the ground truth is itself a model, the prepare step writes out 50 random labelled rows for a person to read:\n\n```\n# Reference labels to check (gpt-6-astra)\n\nLabels: question, discussion, praise, spam, self_promo. Language is ISO 639-1 (und = no words).\n\n| # | Label | Lang | Comment | Video |\n```\n\nFifty rows is small enough to actually read and big enough to notice a systematic mistake. The full set is 205 comments, 40,943 characters, labelled 134 discussion, 34 question, 25 praise, 12 self_promo.\n\nThe judge is given the input the writer was given, then the outputs under letters:\n\n``` js\nconst order = shuffle(outputs, seed);\nconst ids = order.map((_, i) => String.fromCharCode(65 + i));\nconst input = [\n  \"=== Input the writer was given ===\",\n  context,\n  ...order.map((o, i) => `\\n=== Output ${ids[i]} ===\\n${o.text}`),\n].join(\"\\n\");\n```\n\nwith this instruction:\n\n```\nYou grade outputs from different AI models for the same task, without knowing\nwhich model wrote which. Judge each output on its own merits against the rubric;\noutputs can tie. Return one score per output id.\n```\n\nTwo details carry the weight. The shuffle is seeded per item, not per run, so a model is not always output A, and the ordering is still reproducible. And \"outputs can tie\" is there because a judge asked to rank will rank, inventing a difference between two outputs that are both an eight.\n\n``` js\nfunction shuffle<T>(xs: T[], seed: number): T[] {\n  const out = [...xs];\n  let x = seed;\n  for (let i = out.length - 1; i > 0; i--) {\n    x = (x * 1103515245 + 12345) % 2147483648;\n    const j = x % (i + 1);\n    [out[i], out[j]] = [out[j], out[i]];\n  }\n  return out;\n}\n```\n\nA linear congruential generator in six lines, because `Math.random()` would have made the run unrepeatable and a dependency would have been silly.\n\nWhen the judge call fails, the item is skipped rather than scored zero. A judge outage is not evidence about a candidate.\n\nEvery task counts two things separately: whether the call came back usable at all, and how good it was. Usable is checked in code, not by a model:\n\n```\nif (keywords >= 8 && r.brief.targetMarkets.length > 0 && r.brief.productSummary.trim()) m.valid++;\nif (r.subject.trim() && words >= 50 && words <= 200 && !r.body.includes(DASH) && r.optOutLine.trim()) m.valid++;\n```\n\n`DASH` is the em dash character, written as a literal in the file. The second check is my favourite, because the house style ban on em dashes, which is [a unit test in the product](https://dev.to/daniel_pertu/our-brand-voice-rules-are-unit-tests-including-the-one-that-bans-the-em-dash-4bd2), turns up here as a validity gate. A model that writes beautifully and cannot stop typing em dashes is not a candidate, it is a rewrite.\n\nThose two numbers moving apart is the whole reason the benchmark exists. The results table has a model at 96.4 per cent accuracy and 80 per cent valid output sitting next to one at 97.1 per cent and 100 per cent, and the decision rule in the committed file resolves it in one sentence:\n\nRule: among models with at least 90% valid output, the cheapest one within 3 points of the best accuracy (comments) or 0.5 rubric points of the best score (other tasks).\n\nTransient provider failures do not count against anyone. They are retried with a long backoff and only a persistent failure becomes a score:\n\n``` js\nconst transient = status === undefined\n  ? /connection|timeout|ECONNRESET/i.test(String(e))\n  : status === 429 || status >= 500;\n```\n\nNothing in the cost column is estimated from character counts. Each call returns its usage and the price table is in the file, with the date it was checked:\n\n```\n// USD per 1M tokens: input, cached input, output (checked October 2026).\nconst PRICES: Record<string, [number, number, number]> = { ... };\n\nfunction cost(model: string, u: Usage): number {\n  const [inp, cached, out] = PRICES[model];\n  return ((u.inputTokens - u.cachedInputTokens) * inp + u.cachedInputTokens * cached + u.outputTokens * out) / 1e6;\n}\n```\n\nCached input is priced separately because it is an order of magnitude cheaper and because a benchmark that runs the same context through four models will have cache hits that a production workload would not. Reasoning tokens are counted as output, since that is what the bill does. The results are reported per 1,000 items rather than per call, which is the only unit that lets you compare a cheap slow model with an expensive fast one without doing arithmetic in your head.\n\nThe harness has three commands: `prepare`, `run`, `cleanup`. The third one deletes the stored comment text.\n\n``` js\nif (command === \"cleanup\") {\n  for (const f of [DATA_FILE, SAMPLE_FILE, RAW_FILE, CHECKPOINT_FILE]) rmSync(f, { force: true });\n}\n```\n\n`data.json` says `\"createdAt\": \"2026-10-01T14:33:13.814Z\"`. Today is 29 November. I have not run it in 59 days, and 420 KB of other people's comments have been sitting in a working directory ever since, outside git and inside every backup my laptop has taken.\n\nThe gitignore did its job. The retention policy did not, because it is a command a human has to remember, and the interesting parts of this harness are all the places where I did not trust a human to remember: the seeded shuffle, the checkpoint that resumes an interrupted run, the price table with a date on it.\n\nThe fix is the obvious one and it is three lines: have `run` call the cleanup itself once `results.md` is written, and have `prepare` refuse to start when it finds a data file older than a day without a flag. Then the only way to keep the comment text is to ask for it.\n\n`.gitignore`.\nNakodo uses the models this picked for the work you can watch from the outside: it reads a brand's own website and writes the campaign brief from it, which is [what the product does first](https://nakodo.app/how-it-works), and the free plan runs the same pipeline as the paid one, so [the pricing page](https://nakodo.app/pricing) is the honest version of what the cost column above eventually buys.", "url": "https://wpnews.pro/news/our-model-bake-off-commits-2436-bytes-and-gitignores-640036-because-the-inputs-s", "canonical_source": "https://dev.to/daniel_pertu/our-model-bake-off-commits-2436-bytes-and-gitignores-640036-because-the-inputs-are-other-1mcc", "published_at": "2026-11-29 11:33:30+00:00", "updated_at": "2026-11-29 11:43:45.267424+00:00", "lang": "en", "topics": ["large-language-models", "ai-tools", "mlops", "developer-tools"], "entities": ["Nakodo", "YouTube", "gpt-6-astra"], "also_reported_by": [], "takeaway": "Use a .gitignore allowlist (ignore /benchmark/*, un-ignore results.md) rather than a denylist so new files holding third-party text are excluded by default, and seed the judge's output shuffle per item so ordering is reproducible without a model always appearing as output A.", "recommendation": {"advice": "When building a model bake-off, commit only the results markdown, gitignore inputs via an allowlist, and blind the judge with per-item seeded shuffles that permit ties.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/our-model-bake-off-commits-2436-bytes-and-gitignores-640036-because-the-inputs-s", "markdown": "https://wpnews.pro/news/our-model-bake-off-commits-2436-bytes-and-gitignores-640036-because-the-inputs-s.md", "text": "https://wpnews.pro/news/our-model-bake-off-commits-2436-bytes-and-gitignores-640036-because-the-inputs-s.txt", "jsonld": "https://wpnews.pro/news/our-model-bake-off-commits-2436-bytes-and-gitignores-640036-because-the-inputs-s.jsonld"}}