Multi-Agent Proof Pipelines: Separating Writing from Review
This article breaks down a practical multi-agent collaboration pipeline for producing and verifying proofs. It explains why self-review is structurally unreliable, how to assign roles and write permissions across a project lead, editor, generators, and heterogeneous reviewers, and how to manage prompts as versioned assets. It also covers formal verification as a gate, convergence criteria for review, common anti-patterns, and a concrete adoption checklist. The same structure can be applied to code generation, data pipelines, and documentation workflows.
1. A Detail Worth Copying: Split Writing from Review
In a public talk, a researcher described a problem that had been stuck after multiple attempts. A newly connected agent produced a complete derivation in 103 minutes, yielding a manuscript of about 43 pages. The researcher then dispatched four review agents from two different model families to cross-check the conclusion. The current step is translating the proof into a formal language that a machine can check line by line.
Most people focus on the “103 minutes” and “43 pages,” but the part worth reusing in engineering is the sentence that follows: after the proof is produced, other agents come in to review it.
This is the opposite of our usual development habit. We let a model write some code, casually ask “any issues?” in the same session, and merge the change into the main branch once we hear “no issues.” The problem is that generation and self-checking share the same context, the same assumptions, and the same blind spots: the model cannot see the premise it missed, so it cannot discover that it missed a premise. Merging the “author” and the “reviewer” into one role effectively removes independent verification.
2. Why Self-Review Is Inherently Unreliable
Self-review does not fail because the prompt is poorly written; it fails structurally.
- Context contamination: wrong assumptions from the generation stage stay in the session, so the reviewer reads not the original problem but a problem already interpreted by the author.
- Misaligned goals: the author’s goal is “produce an answer,” while the reviewer’s goal should be “find a counterexample.” If the goal does not switch, the output will not switch.
- Lack of external constraints: a natural-language proof has no enforced check, and a single “clearly follows” can hide a real gap.
- Shared bias: agents from the same model family share a training distribution and tend to make the same mistakes in the same places.
Therefore, reliable verification must satisfy three conditions: independent context, independent goals, and as heterogeneous executors as possible, with the final step landing on a checker that does not accept “clearly.”
3. Role Assignment: Write the Pipeline as a Document
A reusable practice is to fix the collaboration rules in a process document in the repository, specifying roles, permissions, and deliverables. A minimal four-role configuration is shown below.
| Role | Owner | Permissions | Deliverables |
|---|---|---|---|
| Project lead | Human | Set goals, approve key propositions, final review | Task brief, acceptance conclusion |
| Editor | Single agent | The only one allowed to write the final manuscript | Finalized document |
| Proof generator | One or more agents | Read-only input, write to draft area | Drafts and derivations |
| Reviewer | Multiple heterogeneous agents | Read-only final manuscript and drafts, write review comments | Issue list |
Three hard rules are worth copying:
- Single write permission. Only one writer for the final manuscript, which avoids agents overwriting each other and makes every change traceable.
- Reviewers do not see the author’s self-account. Give them only the original problem statement, the draft, and existing failure records, not conclusions like “I think it is correct.”
- Key propositions require human approval. The human sets the problem, draws boundaries, and makes the call, but does not do line-by-line derivation.
A schematic flow description (pseudocode, expressing control flow only):
task = problem statement and acceptance criteria given by a humandraft = generator(task, historical failure records)reviews = [reviewer_i(draft, task) for i in heterogeneous review set]if any blocking issue exists:draft = editor(draft, merged and deduplicated review comments)re-enter review, with a maximum number of roundselse:formal = formalize(draft) # machine checks line by linepaper = editor(formal, draft) # produce human-readable final versionfinal = human_final_review(paper, formal)
4. Prompts Are Engineering Assets Too
In that task, the initial prompt was not handwritten. It was first generated by an agent from the background description and “where it got stuck,” then handed to the executor. The engineering implication is that prompts should be managed as versioned assets.
- Store background, known constraints, failure history, and acceptance criteria in separate blocks rather than piling them into one long text.
- Failure records matter especially. Intermediate documents left by multiple attempts are not garbage; they are key priors that shrink the search space.
- Keep prompts in the same repository as code, route changes through review, and make effects regression-testable.
A structured prompt skeleton could be:
goal: precise statement of the proposition to be provedknown: confirmed usable lemmas and boundary conditionsstuck: attempted and failed paths, with failure reasonsconstraints: disallowed assumptions, steps that must be shown explicitlyacceptance: criteria for passing (including formalization requirements)output: delivery format and directory structure
5. Formal Verification: Turning “Clearly” into Something You Cannot Skip
The ceiling of natural-language proofs is that “clearly” cannot be checked. Formal methods require every step to be written as an item a checker can verify, and missing a single step means failure. The value is not making the proof prettier, but moving trust from “trust the author” to “trust a very small checker.”
Three engineering points to note:
- Budget for formalization cost up front in the schedule; it is usually far higher than draft generation, so do key propositions first and the full text later.
- The formalization process itself exposes implicit assumptions in the draft, which is an extra benefit.
- Formalization artifacts should enter continuous integration, with any change re-verified to avoid regressions after finalization.
By analogy with regular development, this step is equivalent to upgrading “passed human review” to “type checks plus all tests green”: the former is an opinion, the latter is a gate.
6. Heterogeneous Review and Convergence Criteria
Review must converge, otherwise it falls into endless rework. Suggested criteria:
- Issue grading: blocking (conclusion does not hold or depends on unproven assumptions), major (jumps in exposition, missing boundaries), suggestion (readability).
- Convergence condition: blocking issues cleared to zero and at least two independent reviewers pass, before entering formalization.
- Conflict handling: when review comments disagree, do not average by voting; go back to the problem statement to reconfirm definitions and quantifier order, with the human deciding.
- Record keeping: annotate each comment with its proposer, whether it was adopted, and why, forming an auditable chain.
7. Common Anti-Patterns
- Same-session self-check: the author doubles as reviewer, which means no review at all.
- Single point of dependency: all roles come from the same source, so bias goes undetected.
- Infinite generation: no round limit and no convergence criteria, so cost spirals out of control.
- Skipping formalization: treating “looks correct” as “correct,” which is extremely risky on key conclusions.
- Permission chaos: multiple writers editing the final manuscript at once, making regression points impossible to locate.
8. Adoption Checklist
- Add a process document to the repository specifying roles, permissions, deliverables, and the round limit.
- Split the problem statement, known lemmas, failure history, and acceptance criteria into separate versioned files.
- Consolidate write access to the final manuscript into a single role; all other roles are read-only and produce comments.
- Include at least two heterogeneous executors in the review set, using a unified issue-grading template.
- Put key conclusions behind a formalization gate and connect it to continuous integration for automatic re-runs.
- Keep the human final review and arbitration step; the human handles only goals, boundaries, and conflicts.
9. Conclusion
What is truly transferable from this talk is not a model’s time or page count, but a process that converges untrusted output into auditable conclusions: separating generation from review, single write permission, heterogeneous cross-checking, a formalization gate, and human final review. In real development, the same skeleton can be applied directly to code generation, data pipelines, and document production—let models handle throughput, and let structure handle trustworthiness. To run and record this pipeline, general-purpose cloud capabilities such as container platforms, object storage, message queues, and logging, monitoring, and alerting are sufficient, with no dependency on any specific proprietary interface.
