Overview · Written article
The flagellar motor laboratory
A real bacterium's rotary motor, a deterministic reconstruction of it, and an agent that has to live with the difference. The one place in this estate with licensed microscopy on one side of the boundary and a model on the other.
How to read this page
Three ways to read this page. Precise is the document itself, exactly as it is written in the repository. Plain and Clear were written for this website to help you meet that document — they are about it. They are not it, and they are not evidence.
These 13 pages are the only ones on this site written for this site. Everything else you can read here is a real file from a working repository, republished as it stands. These were written by hand for someone arriving with no context: an entry point, one article for each major part of the estate, and a set of practical guides for installing, running and maintaining things.
They carry one unusual discipline. Every citation in them points at a real file at a named commit, and the build resolves it there. If the file has moved, or a quoted range has run off the end of it, the build fails. It will not publish a reference that no longer lands. The wording of an article can drift out of date; what it points at cannot silently do so.
Start with "Start here". It is short, and it explains the one idea the rest of the estate is arranged around. After that, read whichever part you care about, or go to the quick start if you would rather run something than read about it.
What they are not: authoritative. An article is prose about documents, and the documents are the record. Where the two disagree, the document is right and the article is the thing to fix.
Your browser cannot switch reading levels, so the document itself is shown.
Precise — the source document
This is the article as written. Every citation and quoted block in it is resolved against the real file at the real commit when the site is built.
Everything else in this estate is a system the estate built. This part is not. There is a real bacterium with a real rotary motor, other people measured it, and the laboratory's job is to hold a model up against those measurements and be told, repeatedly, where it is wrong.
That changes the discipline completely. In a simulated colony you can always define your way out of a disagreement. Here you cannot, and most of the machinery below exists to stop anyone trying.
What the motor is
Escherichia coli swims using a rotary motor about 45 nm across, embedded in the cell envelope, driven by the proton-motive force rather than by ATP. Stator units engage and disengage dynamically — the motor remodels its own hardware under load. Switching the direction of rotation is what converts smooth swimming into a tumble, and biasing that switch is how the cell performs chemotaxis.
So the motor is not a component in a behaviour, it is the behaviour, and it is one of the few places in biology where a mechanical model, a stochastic model and an inferential model all have to describe the same object without contradicting each other.
The boundary this laboratory is organised around
The single most important thing here is a distinction that is easy to state and easy to lose:
| OBSERVED | source-pinned recorded measurement, from a study that exists, with a DOI |
| RECONSTRUCTION | a deterministic re-derivation from those measurements |
| SIMULATION | the model running forward on its own |
| INFERENCE | what an agent believes, which is none of the above |
A reconstruction may never be relabelled observed. The estate's contract says so as a rule rather than as a preference, and the site you are reading inherits it — that is why a truth class appears beside things here rather than being left to context.
There is a second separation of the same kind, and it is the one most likely to be quietly broken: E. coli behavioural evidence and Salmonella / Bacillus structural evidence are different organisms. Combining them into one narrative implies a measured specimen that never existed.
Why the gates are unusually paranoid
A model that fits its own training data proves nothing, so the laboratory's checks are aimed less at "does it work" and more at the ways a scientific result gets accidentally faked. The named ones include train/holdout leakage, censoring and exclusion, orientation and score-sign errors, prospectivity provenance, density scale and dispersion, survival-posterior conditioning, the world/agent observation boundary, first-passage invariants, periodic lattice topology, and the preservation of adverse records.
Each of those is an executable test rather than a review checklist. They exist because each one names a specific way a plausible result can be wrong, and several of them exist because a specific result was wrong in exactly that way.
The one to understand first is prospectivity. A prediction counts as prospective only if it was committed before the observation it predicts. Not "wasn't looked at" — committed. Everything else is a fit, and a fit dressed as a prediction is the most common way an honest person publishes a wrong result.
Cross-study parity, and the thing it refuses to do
The laboratory compares its reconstruction against more than one study. That is the strongest available evidence and also the easiest thing to fake, because a parameter that is quietly retuned per study will produce parity across all of them and mean nothing.
The defence is that calibration, training, holdout and prospective evidence stay separate, and that
the raw path is verifiable independently of the ingested path — there is a verify-raw route which
re-derives from the original archives rather than from the convenient cache.
The math workbench
The workbench is a browser instrument that executes the committed model libraries — the same code the gates run, not a reimplementation of it for display. That is the whole point of it: a visualisation that reimplements the maths is a second model that can silently disagree with the first, and then you have two systems and one label.
It is CPU-only and contains no inference of any kind. The product contract that governs the released artifact is explicit: no LLM inference, no GPU computation, no WebGL or WebGPU, no analytics, no accounts, and no hidden network calls. Development tools may be used to build it; they may not become runtime dependencies of it.
What is NOT established
This is the section that matters most and it is deliberately long.
- The full observed-experiment reproduction cannot be run from the published material alone. It
needs a
.matdataset from a published study that is not redistributed here, and the widest cross-study check needs a multi-gigabyte raw cache. Where those are absent the correct result is a gate markedBLOCKEDorEXTERNAL VALIDATION REQUIRED— never a pass. - Passing gates are not biological parity. They are evidence that specific named failure modes were tested for and not found. The validity domain — species, strain, load, proton-motive force, stator state, temperature, viscosity, CheY-P condition, apparatus, timescale — is mapped deliberately, and large regions of it are marked unobserved or extrapolation-only rather than supported.
- Frames are not replicates. Counting time points or repeated events as independent biological replicates, when the experimental unit is a motor or a cell or a culture, inflates confidence without adding evidence. The tests check for this because it is easy to do by accident.
- Thermodynamic work and variational free energy are different quantities with different units and are never summed, however similar the notation looks.
- No verdict has yet been authored about a real scientific claim. The control plane that would hold such a verdict is built and working; what it has recorded so far is the estate's own engineering. That is a real gap and stating it is not modesty.
Read next
- The active-inference brain — the inference machinery, and where to be most careful about what it is claimed to do.
- Install it and Run it — the laboratory is the most runnable part of this estate on an ordinary machine.
- The Flagellar Motor corpus — the laboratory's own documents, unedited.
Plain — written for this website, not the source document
This page is about the one part of the project that studies something nobody here built. A real bacterium swims using a tiny rotary motor, other people measured it, and this laboratory holds a model up against those measurements to be told where it is wrong.
Its central idea is a boundary that is easy to state and easy to lose. A recorded measurement from a published study, a step-by-step re-derivation from those measurements, the model running forward on its own, and what an agent believes are four different things — and a re-derivation may never be relabelled as a measurement. A second separation matters as much: behaviour measured in one organism and structure measured in others must not be told as one story, because that implies a specimen that never existed.
The page ends with a long list of what is not established, including that the full reproduction cannot be run from published material alone, and that no verdict has yet been authored about a real scientific claim.
Plain · written 2026-08-01 by claude-opus-5 · not yet checked by a person · about the document whose sha256 is dd12ec3492059569
Clear — written for this website, not the source document
This article covers the laboratory built around a real bacterium's rotary motor, and it opens by saying why this part is different. Everything else in the estate is a system the estate built; this is not. The motor exists, other people measured it, and the laboratory's job is to hold a model up against those measurements and be told, repeatedly, where it is wrong. In a simulated colony you can define your way out of a disagreement; here you cannot, and most of the machinery described exists to stop anyone trying.
It sketches the motor briefly. It is a rotary machine embedded in the cell envelope, driven by a proton gradient rather than by the usual cellular fuel. Its stator units engage and disengage under load, and its change of rotation direction turns smooth swimming into a tumble. So the motor is not a component in a behaviour; it is the behaviour.
The organising idea is a four-way separation — a source-pinned recorded measurement, a deterministic re-derivation from those measurements, the model running forward alone, and what an agent believes. A re-derivation may never be relabelled as a measurement, and that is a rule rather than a preference. A second separation of the same kind is flagged as the one most likely to be quietly broken. Behavioural evidence from one organism and structural evidence from others are different organisms, and combining them into one narrative implies a measured specimen that never existed.
The checks are aimed less at whether the model works and more at the ways a scientific result gets accidentally faked. Leakage between training and holdout, censoring and exclusion, sign errors, provenance, conditioning, the boundary between world and agent, and the preservation of adverse records. Several exist because a specific result was wrong in exactly that way. The one to understand first is prospectivity. A prediction counts as prospective only if it was committed before the observation it predicts, and anything else is a fit. A fit dressed as a prediction is the commonest way an honest person publishes a wrong result.
Comparison across studies is described as the strongest available evidence and the easiest thing to fake, since a parameter quietly retuned per study produces agreement everywhere and means nothing. The defence is keeping calibration, training, holdout and prospective evidence separate, and having a route that re-derives from the original archives rather than from the convenient cache.
The browser instrument executes the committed model libraries themselves rather than a reimplementation for display, because a visualisation that reimplements the maths is a second model that can silently disagree with the first. The released product is bound by a contract: no inference, no graphics acceleration, no analytics, no accounts, no hidden network calls.
The closing section is deliberately long. The full reproduction cannot be run from published material alone. Passing gates are not biological parity, and much of the validity domain is marked unobserved or extrapolation-only rather than supported. Repeated time points are not independent biological replicates. Two quantities that look alike in notation are never summed. And no verdict has yet been authored about a real scientific claim, which the article says is a real gap rather than modesty.
Clear · written 2026-08-01 by claude-opus-5 · not yet checked by a person · about the document whose sha256 is dd12ec3492059569