Three Models, Two Postures, One Vote: How Flatline Reviews a Plan
Most of the documents that steer work in our repos are written by a model. A requirements document, a design note, an implementation plan: an agent drafts it, and the next agent in the chain treats it as given. The weakness is obvious once stated. A model reviewing its own plan tends to find it reasonable. Flatline is the part of Loa, the framework our repos run on, that addresses this by putting the document in front of other models before anything downstream depends on it. This post describes how the protocol works as of v1.22.0, what it decides on its own, and where we think its limits are.

Four phases
Flatline runs in four phases. Phase 0 is knowledge retrieval. Tier 1 pulls from local context in the repo. Tier 2 is optional, disabled in the reference configuration, and queries a NotebookLM notebook holding curated domain material. Everything after Phase 0 is model calls.
Phase 1 is six calls in parallel: three models, each run in two modes. The models are Claude Opus 4.7, GPT-5.3-codex, and Gemini 2.5 Pro. The two modes are review and skeptic. As the names suggest, the review mode reads the document the way a reviewer would, and the skeptic mode is the adversarial half, there to argue against it. Running both modes on each model matters because a single prompt tends to pull a model toward one disposition. Criticism requested separately is sharper than criticism folded into a general review.
Phase 2 is six more calls, this time cross-scoring. Each model scores the findings produced by the other two, not its own. This is the step that turns a pile of opinions into something that can be ranked.
Phase 3 is consensus extraction. Scores sit on a 0 to 1000 scale, and a finding's category is decided by a 2-of-3 majority. The categories are HIGH_CONSENSUS, DISPUTED, LOW_VALUE, and BLOCKER.
What the thresholds mean
The thresholds are the part worth reading closely, because they are where judgment has been frozen into numbers.
- HIGH_CONSENSUS: both scoring models rate the finding above 700. The finding is auto-integrated into the document.
- DISPUTED: the two scores differ by more than 300. In interactive mode the finding goes to a human. In autonomous mode it is logged.
- LOW_VALUE: both scores are below 400. The finding is discarded.
- BLOCKER: a concern raised in skeptic mode scores above 700. It must be addressed, and in autonomous mode it halts the workflow.
Two things stand out. First, a blocker comes specifically from the skeptic pass, not the review pass. The protocol gives the adversarial voice a veto that the friendly voice does not have. Second, the disputed band is defined by disagreement, not by level. A finding one model rates at 900 and another at 500 is disputed even though both scores are respectable. A wide gap between models is treated as a signal that a human should look, or at minimum that the record should show the gap.
Interactive and autonomous
Flatline has two operating modes. In interactive mode, findings are presented and the run waits for decisions. In autonomous mode, HIGH_CONSENSUS findings are applied, DISPUTED findings are logged for later, LOW_VALUE findings are skipped, and a BLOCKER halts the run and escalates.
For a fleet like ours, the interesting question is how the protocol decides which mode it is in. There is rarely a human at the terminal when one of our repos drafts a plan. A review that waits for input from someone who is not there stalls the pipeline silently. A review that assumes nobody is there when someone is has the opposite failure: it edits a document the human expected to approve.
The detection ladder, in priority order:
- CLI flags,
--interactiveor--autonomous. - The
LOA_FLATLINE_MODEenvironment variable. - The
autonomous_mode.enabledkey in config. - Auto-detection from strong AI signals only.
- The default, which is interactive.
The split between strong and weak signals is the careful part. CLAWDBOT_GATEWAY_TOKEN and LOA_OPERATOR=ai are strong signals: their presence is enough to auto-enable autonomous mode. Non-TTY execution, CLAUDECODE, and CLAWDBOT_AGENT are weak signals. They suggest an agent is running the show, but they require explicit opt-in before Flatline acts on them. A non-TTY session is weak evidence because humans run things through pipes and CI too. The protocol defaults to waiting rather than guessing.
Rollback is what makes auto-integrate acceptable
Autonomous mode edits a planning document without a human reading the change first. We would not accept that without a way back. In the reference configuration, Flatline snapshots the document before integrating, capped at 100 snapshots and 104857600 bytes (100 MiB). Rollback works at two grains: an entire run by run id, with a dry-run flag to preview what would be reverted, or a single integration by integration id within a run.
This shapes how we read the auto-integrate threshold. A score above 700 from two of three models is not proof that a change is right. It is a judgment that the change is more likely to help than hurt, combined with the knowledge that undoing it is cheap. If rollback were expensive, the threshold would need to be higher, or auto-integrate would need to be off.
Configuration surface
The config is small. flatline_protocol.enabled turns the protocol on. models.primary and models.secondary name the first two models, and the third comes from a separate hounfour.flatline_tertiary_model key, labeled in the reference as the tertiary model for the three-model form. max_iterations is 5. The autonomous_mode.actions block maps each category to its default action, so a repo that wants disputed findings to halt instead of log can say so. The NotebookLM tier needs a one-time browser authentication using patchright with a Chromium install, which is the main reason it stays optional.
What the protocol does not claim
Three models agreeing is evidence, not correctness. The models are trained on overlapping material and can be wrong in the same direction, and a 2-of-3 majority does nothing to catch that. A high-consensus integration can still be a bad edit. The protocol's own structure acknowledges this: it keeps snapshots, it gives the skeptic a veto, and it logs rather than resolves disputes when no one is present to resolve them.
The logging point deserves emphasis. In autonomous mode, DISPUTED findings go to a log. That log is only useful if something reads it. A disputed finding that is logged and not reviewed has been discarded with extra steps. We treat the disputed log as a queue with an owner, not as an archive.
That is the whole protocol, reduced. One model drafts. Three models read, twice each. Each scores the others. The parts they agree on go in, the parts they fight over wait for a human, and the thing the skeptic cannot let go stops the line. It is not a replacement for a human reading the plan. On a fleet where most plans are read by agents before anyone else sees them, it is the review that happens first.
Ask the room again, in a different voice.
Get the next post
Free membership: new posts on how the fleet is built, delivered by email. Subscribe free
№ 8137