Multi-Agent Debate for Reviewing Large Technical Documents

    This article explains how to use adversarial multi-agent debate to review large development documents that are too long for effective human review. It covers the structural bottlenecks of manual review, the core mechanisms of stance differentiation, mandatory evidence citation, and convergence adjudication, a twelve-seat role design based on mutually exclusive and exhaustive dimensions, a three-round orchestration workflow with budget and termination controls, and layered output formats such as a one-page summary, a dimension heatmap, a dispute list, and a full appendix. It also lists practical deployment advice and common pitfalls, including avoiding whole-document review, watching for polite consensus, keeping human final approval, and prioritizing cost control.

    1. The Problem: Reviewing Large Development Documents

    When a development document reaches hundreds of thousands of words, traditional manual review quickly exposes three structural bottlenecks.

    The first is attention decay. After reading continuously for tens of thousands of words, human reviewers become noticeably less sensitive to details, and cross-section consistency checks can hardly be completed by reading through the document. The second is incomplete dimension coverage. A complete development document covers at least interface contracts, data models, exceptions and rollback, permission boundaries, observability, performance capacity, and compatibility. A single reviewer is usually strong in only two or three of these areas. The third is untraceable conclusions. Review comments typically exist as scattered annotations, lacking a chain that links “which comment corresponds to which passage and what the basis is,” which leads to repeated back-and-forth during the revision stage.

    Automated review can solve the scale problem, but sequential execution by a single agent introduces another kind of bias: the model tends to follow the document’s existing logic, lacks pressure to challenge itself, and easily produces low-information conclusions such as “overall good.” This is the direct motivation for introducing adversarial multi-agent debate.

    2. Core Idea: Turning Review from Scoring into Confrontation

    The value of multi-agent debate lies not in increasing concurrency, but in creating structured conflicts of opinion.

    Single-reviewer mode outputs a point estimate; debate mode outputs a range and a consensus after cross-examination. Three mechanisms are key:

    • Stance differentiation: Different agents are assigned mutually exclusive review goals. For example, one side proves the design is feasible, while the other proves the design fails under boundary conditions.
    • Mandatory evidence: Every comment must cite a specific location and original text fragment in the document. Unsupported assertions are prohibited, which suppresses “hallucinated fault-finding.”
    • Convergence adjudication: The orchestration layer runs a second vote on unresolved disputes or escalates them to humans, preventing the debate from looping indefinitely.

    3. Role Design: Splitting Dimensions Across Twelve Review Seats

    Dimension splitting should follow the principle of being mutually exclusive and exhaustive, avoiding wasted compute from multiple seats reviewing the same passage. A possible twelve-seat division is shown below:

    ID Seat Core Question
    1 Requirement consistency Does the document deviate from the established goals
    2 Interface contract Are inputs, outputs, and error codes closed and complete
    3 Data model Are field semantics and lifecycle clear
    4 Concurrency and state Are race conditions and idempotency covered
    5 Exceptions and rollback Are failure paths recoverable
    6 Permissions and security Risks of privilege escalation and sensitive data exposure
    7 Observability Are logging, metrics, and tracing actionable
    8 Performance and capacity Are there unverified capacity assumptions
    9 Compatibility Version evolution and canary strategy
    10 Testability Are acceptance criteria executable
    11 Terminology and readability Ambiguous wording and missing definitions
    12 Omissions Necessary aspects the document does not mention at all

    Seats 1 through 11 are forward review seats, while seat 12 is a reverse completeness seat dedicated to raising “content that is simply absent from the document.” This seat usually contributes the highest-value issues.

    4. Orchestration Layer: Scheduling, Budget, and Termination Conditions

    The orchestrator is the scheduling hub of the whole mechanism. Its job is not to join the debate but to control the flow. A three-round scheme is recommended:

    1. Round 1 Parallel initial review: 12 seats independently produce issue lists (structured JSON)
    2. Round 2 Cross-examination: pair seats by dimension, seat A challenges seat B's conclusions with counter-evidence or retraction
    3. Round 3 Convergence adjudication: score unresolved disputes and output three categories: consensus / disagreement / needs human

    Structured intermediate artifacts are the prerequisite for a controllable process, as illustrated below:

    1. {
    2. "issue_id": "IF-003",
    3. "seat": "contract",
    4. "location": "Section 3.2 / Paragraph 4",
    5. "claim": "Error code 409 has no defined semantics",
    6. "evidence": "The original text only lists 400/500",
    7. "severity": "high",
    8. "status": "open"
    9. }

    In engineering practice, budget and termination conditions must be set, otherwise the debate will keep consuming resources: maximum rounds per seat, a global maximum token budget, a consensus rate threshold (for example, stop once 80% of disputes have converged), and a deduplication rule that merges a repeatedly raised issue.

    5. Aggregating Conclusions: Solving “Hundreds of Thousands of Words Are Too Much to Read”

    The most real pain point in the original text is that the volume of conclusions is equally huge. The solution is layered output, letting different roles see content at different granularities:

    1. One-page summary: Keep only high-severity issues, limited to ten items, each in one sentence.
    2. Dimension heatmap: Show issue density of each section across dimensions in a matrix, quickly locating weak sections.
    3. Dispute list: List unresolved items for humans to make the final judgment. This is the only part that must be read item by item.
    4. Full appendix: Archive the complete debate records to object storage and retrieve them only when traceability is needed.

    Combined with logging services and monitoring alerts, the review process itself can be brought into an observability system, tracking the issue hit rate of each seat to optimize role prompts later.

    6. Deployment Advice and Common Pitfalls

    • Do not review the entire document at once. Chunking by section and keeping cross-chunk summaries can significantly reduce omissions and context bleed.
    • Watch out for “polite consensus”. If all seats reach highly consistent conclusions, it often means the prompts lack differentiation, not that the document is truly perfect.
    • Keep a human final review step. Automated output should be positioned as a “high-quality candidate issue set,” and the responsible party is still human.
    • Cost control comes before scale. Start with four seats to validate the benefit, then expand gradually, avoiding blindly piling up concurrency.

    7. Conclusion

    The essence of multi-agent adversarial debate is to replace linear single-person reading with a parallel adversarial structure, turning review from subjective impression into a traceable evidence chain. When three things are done well, namely mutually exclusive dimension splitting, mandatory evidence citation, and layered conclusion output, reviewing documents of hundreds of thousands of words becomes genuinely feasible from an engineering standpoint.