Checking how many agents are working

How this works
Kontakt
← Blog
A brass magnifying glass held over a small matte resin fruit fly on a dark steel plate, a tiny amber tag reading PASS beside it and a second tag turned face down, in teal and steel with a warm amber rim light, the AMARBARO mark and wordmark centered over it.
✎Blogbeitrag

The checks behind every claim about our fly

The short version

Six early fly results that looked like wins were wrong, and four habits caught them: a numbered pass mark, a planted bug, two controls and a receipt for every number.

What this is about

Every claim we make about our simulated fly has a check behind it, and each check had to be shown able to fail before we believed it. This article explains four habits we use. Each one came from a mistake that cost us time.

The short version: a check that cannot fail tells you nothing. Everything below is about making sure our checks can fail.

Why it matters

A simulation can give you a number for anything. A good-looking number is easy to get. A true number is harder. If you do not test your tests, the first wrong result will look the same as a right one.

This matters outside brains too. Any program that says PASS might be saying PASS for the wrong reason. Our first physics prototype passed its check while the toy fly was tipped over by 117 degrees. It printed PASS because it never measured tilt.

Six wins that were not wins

In the first days of the project, six results looked good and were not. Here is each one with what exposed it.

What looked true What was true What exposed it
The steering run showed no difference at all: 56 of 64 for the real brain and for ten controls Every arm had run the real brain. The trained layer had one identical fingerprint in all arms Zero layouts where any two arms differed. Real noise is never that clean
A pass mark: under 10 percent of memory cells active Our method capped each step but rotated which cells, so the total over time was 12 to 25 percent. The mark could not be met A sweep tool that reports whether each pass mark is reachable at all
Our brain port ran 35 percent hot We had misread when a resting neuron accepts input. It accepts none The authors' own reference outputs, not their equations
The pain loop passed at p = 0.000000011 Credit for every punishment went to the wrong smell, which happened to be the trap Asking what the "last sniff" actually was
A worker crashed silently on trial 4 Mojo's input() opened a copy of the input pipe on every call and never closed it: 402 copies after 400 sniffs, then "Too many open files" Making the worker's own error text visible, then counting open files
The memory cells have no feedback inhibition at all 588 other inhibitory cells connect to them Counting from the graph and the receipt before rewriting the sentence

The fourth row is the one to remember. A tiny p-value feels like proof. This one was a measurement of the wrong thing.

The four habits

1. A pass mark with a number, written before the run

Every stage of our body engine has a bar, such as 1e-5 of a field's own size. Some bars come from measured rounding floors, not from hope. A gate with no number is not a gate. Writing the number first stops us from moving the line after we see the score.

2. A planted bug

Before a check counts, we break something it should notice, such as a sign, a dropped term or the wrong reference frame. Then we watch it fail. If it still passes, it is blind. Our first three "stand" checks each measured something that could not tell standing from lying down.

3. Controls, both kinds

A positive control must pass, such as flat ground. A negative control must fail, such as an upside-down fly. Learner flies get paired twins with the teacher switched off. Training gets a sham that depresses cells active for neither smell. In one test, the odor-absent control gave zero output neurons, zero memory cells and zero descending spikes, so the activity we measured was driven by the smell.

4. A receipt for every number

Each number in our capability table points to a file and a command. Each row is marked PASS, FAIL, UNVERIFIED or a similar label, with the check named beside it. We use UNVERIFIED a lot. It means that no check has been run that exercises the thing the way a person would meet it.

When the habits were not enough

An outside review found ten defects in our GPU physics engine in one pass. Every stage had passed its comparison with MuJoCo, and every stage had a planted bug its check was proven to catch. The reviewer was an AI coding agent, Codex, working from the source and saved profiler files only, with no edits, builds or GPU runs.

Seven were fixed in five commits in under an hour. Four of the seven shipped with a check that fails without the fix. The first one still has none.

That first defect sat in the solver that finds contact and limit forces. When a tendon limit switched on or off, the solver kept going on a stale matrix. It still reached the right answer, only in more steps. Our checks compare the final answer with MuJoCo, so a defect that only costs steps is outside what they look at. A planted bug tests what we thought of, not what we missed. We tell it in Our planted bugs were blind to the bug that mattered.

The fix for that gap is human: have someone else read the code, and write down which findings still have no check.

What is still open

We keep a list in plain words.

  • Wiring and behavior. Real wiring beats scrambled wiring at smell identity. On steering, it does not beat block shuffles.
  • Learning in a body. The learning loop lives on a flat map, and the walking body had no learned brain attached when we wrote the list.
  • A sugar teacher. The model's links do not carry sugar to the reward cells.
  • Biology. Passing our checks shows that the software does what we said. It does not show that a real fly would. Our wet-lab comparison is rated UNVERIFIED.

A short routine you can borrow

  1. Write the claim in one sentence.
  2. Write what result would prove it wrong.
  3. Write the pass mark as a number.
  4. Break something on purpose and check that the test fails.
  5. Add a control that must pass and one that must fail.
  6. Save the command and the output next to the claim.

Glossary

  • Gate: a pass-or-fail check with a number written before the run.
  • Planted bug (mutant): a fault added on purpose to see whether a check catches it.
  • Positive control: a test case that must pass.
  • Negative control: a test case that must fail.
  • Sham: a control that does something irrelevant, to show that a result is not just noise.
  • Receipt: a saved record of the command and output behind a number.
  • UNVERIFIED: our label for a claim that no check has exercised yet.

Try it

  • Open fly-connectome, read the capabilities page at docs/CAPABILITIES.md, and look at how each row names its check. The project history, docs/HISTORY.md, keeps the FAIL results in.
  • In Kinestride, run tools/smoke.sh. A passing stage prints PASS, and a failing one prints FAIL <step> and exits with an error.
  • Read the original: Every result we trust first survived a check that could have failed.
  • Exercise: pick a test in a project you know. Break the code on purpose. Does the test fail?

Previous in the series: Simulating a spider: when the CPU beats the GPU.

Kommentare

Noch keine Kommentare.

Anmelden um zu kommentieren.