Multi-Agent Collaboration: Making AI Output Verifiable

    This article explains why trusting AI-generated work requires more than a single model reviewing itself, and how multi-agent collaboration addresses that gap. Using a case where a team proved three related conjectures in probability theory and statistical physics in 103 minutes, it breaks down a reusable workflow: narrow-scope generation, independent review agents, formal verification, and final human approval. You will find a role breakdown, context-management practices for avoiding contamination from failed attempts, a prompt template, and four rules that transfer to everyday software engineering.

    1. The Problem Is Not Whether AI Can Generate, but Why You Should Trust It

    A common team workflow looks like this: let an AI coding tool write an implementation, add “check if there are any issues” in the same session, then merge to the main branch. The fatal flaw is that the generator and the reviewer share the same context and the same blind spots, so self-review often just restates the error.

    Mathematical proofs amplify this problem to the extreme. A proof either holds at every step or collapses at one of them; there is no “roughly correct.” So the part worth copying is not which model solved which problem, but the half-sentence added after the win: bring in several other independent agents to review.

    2. Case Background: Tackling Problems at the Intersection of Probability and Statistical Physics

    A research team received a request from a physicist to attempt three interrelated conjectures (labeled A, B, and C) at the boundary between probability theory and statistical physics. Multiple earlier attempts had failed, and the working directory was full of process log files.

    The way the prompt was written is worth noting: the lead did not hand-write it. Instead, a strong reasoning agent generated a first draft that laid out the problem background, known results, and where things were stuck, and a human then revised it. The task asked only for A, yet 103 minutes later the team had complete proofs for A, B, and C, compiled into a 43-page document. Four independent review agents then cross-checked the results, and the work moved into the formalization stage.

    Three engineering signals here are reusable: the prompt itself is an asset; scope can be narrow while output overflows; and verification must be decoupled from generation.

    3. Role Breakdown: Turning “Doing Math” into “Staffing a Team”

    A practical setup usually involves four roles:

    • Project lead (human): sets the goal, approves key propositions, reads the final version end to end, and is the only one with decision authority.
    • Solving agent: constructs proofs only and is not allowed to self-evaluate.
    • Review agents (multiple, mutually independent): hunt for errors line by line and output a list of locatable counterexamples or gaps.
    • Formalization engineer (human or agent): translates the natural-language proof into a formal proof that a machine can check line by line.

    The key constraint is that the generator must not double as the reviewer. The reviewing side should receive the proof text and background but not inherit the solver’s reasoning path, which avoids shared bias.

    1. Solve (narrow scope) -> produce proof draft
    2. |
    3. v
    4. Review A / Review B (independent contexts, output issue list only)
    5. |
    6. v
    7. Formalize (machine checks line by line, reject on failure)
    8. |
    9. v
    10. Human approval -> final version

    4. Context Management: Don’t Let the Prompt Be Polluted by Failure History

    Do not delete the records left by failed rounds, but layer them: a conclusion layer (which paths are dead), an evidence layer (where each attempt failed), and a raw layer (complete logs). A new session injects only the conclusion layer and the current blocker, while the raw layer is retrieved on demand. This reuses experience without letting the model be misled by wrong conclusions buried in a long context.

    A prompt template you can adapt:

    1. Background: <problem definition and known results>
    2. Ruled-out paths: <one line each, with the failing step>
    3. Current blocker: <the specific lemma that needs a breakthrough>
    4. Delivery requirements: step-by-step derivation; cite the basis for each step; mark uncertainty explicitly
    5. Prohibited: skipping steps, reusing unproven results, self-assessing correctness

    5. Formalization: The Only Stage That Ends the Debate

    Natural-language review always leaves room for disagreement; formalization turns disagreement into a compile result. The approach is to rewrite the key lemmas in a proof language with type checking, where the machine accepts no skipped steps. Practical recommendations: formalize the core lemmas first rather than the whole document; treat compilation failures as input for the next round; keep a traceable reference number for every step. If the team uses cloud compute, a container platform can host compilation jobs, object storage can archive the artifacts, and logging and monitoring with alerting can track long-running tasks so that a 100-minute job does not fail silently.

    6. Four Rules That Transfer to Everyday Development

    1. Separate generation from review, and give the reviewer an independent context.
    2. Review output must be a list of locatable issues, not “looks fine.”
    3. Replace subjective judgment with executable checks (tests, types, formalization).
    4. Keep approval authority with the human, and sign off on key propositions one by one.

    7. Conclusion

    The point of this workflow is not to make the model smarter, but to turn “correct” into a verifiable artifact: meet the bar within a narrow scope, have an independent party review, let a machine check line by line, and let a human make the final call. The same pattern holds for code review, data pipelines, and protocol implementations.