This prompt is for evaluation engineers and system designers who operate multi-agent pipelines and need to detect when agent outputs conflict before those conflicts reach a downstream consumer, arbitration step, or end user. The core job-to-be-done is inserting a reliable, structured detection layer between agent execution and any resolution logic. You should use this prompt when you have two or more agent outputs that address the same task, a shared context or evidence set they were supposed to use, and a defined conflict taxonomy. The ideal user is someone building a production system where unhandled disagreements between agents produce untrustworthy outputs, corrupted downstream state, or user-facing errors that are expensive to fix after the fact.
Prompt
Multi-Agent Output Conflict Detection Prompt Template

When to Use This Prompt
A practical guide for evaluation engineers and system designers on when to deploy a conflict detection layer in multi-agent pipelines.
Do not use this prompt when you need a final merged answer or an arbitration decision. This prompt only detects and classifies conflicts; it does not resolve them. It is also the wrong tool when you have a single agent output, when the agents were assigned completely different tasks with no overlap, or when you are looking for a general quality score rather than a specific inter-agent disagreement. If your goal is to produce a single coherent output from disagreeing agents, pair this prompt with an arbitration or synthesis prompt that consumes the structured conflict report this prompt generates. Using this prompt in isolation without a downstream resolution step will leave conflicts identified but unaddressed, which can stall pipelines or confuse operators.
Before wiring this prompt into your application, ensure you have defined your conflict taxonomy clearly. The prompt expects categories such as factual, structural, policy, tool-choice, and schema conflicts, along with severity definitions that match your product's risk tolerance. You should also prepare a representative set of agent output pairs with known conflicts and non-conflicts to use as an evaluation set. This will let you measure false positives—where the prompt flags agreement as conflict—and missed semantic conflicts—where agents disagree in meaning but use different wording that the prompt fails to catch. Start by running this prompt offline against logged agent outputs before putting it in the critical path of a live pipeline.
Use Case Fit
Where the Multi-Agent Output Conflict Detection Prompt Template delivers value and where it introduces risk. Use these cards to decide if this prompt fits your pipeline before integrating it.
Good Fit: Pre-Arbitration Triage
Use when: you have multiple specialized agents producing outputs on the same input and need a structured conflict report before arbitration. Guardrail: Run detection before any downstream merge or selection step to prevent silent propagation of contradictory facts.
Bad Fit: Single-Agent Pipelines
Avoid when: only one agent is generating output or when outputs are already normalized into a single schema. Guardrail: Skip conflict detection and use a direct validation prompt instead to avoid unnecessary compute and false positives from self-consistency checks.
Required Inputs
What you need: at least two agent outputs with shared context, plus the original input or evidence source. Guardrail: If agent outputs lack a common reference frame, add a normalization step first. Conflict detection on unaligned outputs produces noise, not signal.
Operational Risk: False Positives
What to watch: the detector flags stylistic or phrasing differences as factual conflicts, inflating severity scores. Guardrail: Calibrate severity thresholds with a golden dataset of known agreements and disagreements. Log false positive rates per conflict type for continuous tuning.
Operational Risk: Missed Semantic Conflicts
What to watch: agents express the same contradiction using different terminology, and the detector misses it. Guardrail: Pair conflict detection with an embedding-based semantic similarity check on claim pairs. Escalate low-confidence matches for human review.
Pipeline Position
Use when: positioned after agent execution and output collection, but before arbitration, synthesis, or human handoff. Guardrail: Never place conflict detection after a merge step—once outputs are combined, individual disagreements become invisible and unverifiable.
Copy-Ready Prompt Template
Paste this prompt into your evaluation harness to detect and classify disagreements between agent outputs.
This prompt template is designed to be the core detection engine in your agent arbitration pipeline. It takes the raw outputs from two or more specialized agents, along with the shared evidence they were supposed to use, and produces a structured conflict report. The report classifies the type of disagreement, scores its severity, and aligns each agent's claims against the source material. Use this as a pre-processing step before routing to an arbitration judge, a human reviewer, or a reconciliation workflow.
textYou are an output conflict detection system for a multi-agent pipeline. Your job is to compare the outputs of multiple agents, identify disagreements, and produce a structured conflict report. # INPUTS ## Agent Outputs [AGENT_OUTPUT_A] [AGENT_OUTPUT_B] ## Shared Evidence [SHARED_EVIDENCE] ## Conflict Taxonomy [CONFLICT_TAXONOMY] ## Severity Definitions [SEVERITY_DEFINITIONS] # INSTRUCTIONS 1. Parse each agent output and extract all factual claims, structural elements, and conclusions. 2. Compare the outputs claim-by-claim and element-by-element. Identify every point of disagreement. 3. For each disagreement, classify it using the provided [CONFLICT_TAXONOMY]. If a disagreement does not fit the taxonomy, classify it as "OTHER" and propose a new category. 4. For each disagreement, assign a severity score using the provided [SEVERITY_DEFINITIONS]. 5. For each factual disagreement, check the claim against the [SHARED_EVIDENCE]. Note which agent's claim is supported, which is contradicted, and which claims cannot be verified. 6. Do not resolve the conflict. Only detect, classify, and score it. # OUTPUT SCHEMA Return a single JSON object with the following structure: { "conflict_report": { "summary": "A one-sentence summary of the overall conflict state.", "total_disagreements": <integer>, "disagreements": [ { "id": "<string>", "type": "<from taxonomy>", "severity": "<from severity definitions>", "agent_a_claim": "<exact text or description>", "agent_b_claim": "<exact text or description>", "evidence_alignment": { "agent_a_supported": <boolean>, "agent_b_supported": <boolean>, "evidence_citation": "<relevant excerpt or null>", "unverifiable": <boolean> }, "root_cause_hypothesis": "<brief hypothesis for why the disagreement occurred>" } ] } } # CONSTRAINTS - Do not invent disagreements. Only report genuine conflicts. - If the agent outputs are identical or semantically equivalent, return an empty disagreements array and set total_disagreements to 0. - If the shared evidence is insufficient to verify a claim, set unverifiable to true and evidence_citation to null. - Do not include any text outside the JSON object.
To adapt this template for your pipeline, replace the square-bracket placeholders with your actual data. [AGENT_OUTPUT_A] and [AGENT_OUTPUT_B] should contain the raw, unmodified text or structured objects from your agents. [SHARED_EVIDENCE] is the ground-truth source material both agents were supposed to use—this is critical for evidence alignment and prevents the detector from hallucinating support. [CONFLICT_TAXONOMY] should be a list of your defined conflict types, such as "FACTUAL", "STRUCTURAL", "POLICY", "TOOL_CHOICE", or "SCHEMA". [SEVERITY_DEFINITIONS] should map severity levels like "LOW", "MEDIUM", "HIGH", and "CRITICAL" to clear, operational criteria based on user-facing risk and reversibility. Before deploying, run this prompt against a golden dataset of known agent disagreements and measure both false positive rate (flagging agreement as conflict) and missed semantic conflict rate (failing to detect paraphrased disagreement).
Prompt Variables
Required inputs for the Multi-Agent Output Conflict Detection prompt. Each placeholder must be populated before the prompt is sent. Validation notes describe checks to apply before execution to prevent common runtime failures.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[AGENT_OUTPUT_A] | First agent's complete output payload to compare | {"claim": "Q3 revenue grew 12%", "source": "earnings_call_transcript_v2.txt", "confidence": 0.92} | Must be non-empty string. Parse check: valid JSON if schema is structured. Null allowed: false. Schema check: must match expected output contract for Agent A. |
[AGENT_OUTPUT_B] | Second agent's complete output payload to compare | {"claim": "Q3 revenue grew 8%", "source": "earnings_call_transcript_v2.txt", "confidence": 0.88} | Must be non-empty string. Parse check: valid JSON if schema is structured. Null allowed: false. Schema check: must match expected output contract for Agent B. Compare field presence against [AGENT_OUTPUT_A]. |
[AGENT_ROLE_A] | Role descriptor for the first agent to contextualize its output | "financial-analyst-agent" | Must be non-empty string. Validation: must match a known agent role in the system registry. Null allowed: false. Used for conflict attribution in the report. |
[AGENT_ROLE_B] | Role descriptor for the second agent to contextualize its output | "market-research-agent" | Must be non-empty string. Validation: must match a known agent role in the system registry. Null allowed: false. Must differ from [AGENT_ROLE_A] unless comparing same-role outputs. |
[SHARED_EVIDENCE] | Common source text or data both agents were expected to use | "Q3 FY2024 Earnings Call Transcript, pages 4-7" | Must be non-empty string. Validation: citation check against evidence store if available. Null allowed: true when agents operate on independent evidence sets. If null, evidence alignment scoring is skipped. |
[CONFLICT_TYPES] | Comma-separated list of conflict categories to detect | "factual, structural, schema, conclusion" | Must be non-empty string. Validation: each token must match a known conflict type in the taxonomy. Null allowed: false. Default set: factual, structural, conclusion. Invalid types cause classification failures. |
[SEVERITY_THRESHOLD] | Minimum severity score (0.0-1.0) to include in the report | 0.3 | Must be a float between 0.0 and 1.0. Validation: parse check for numeric type. Null allowed: false. Values below 0.1 produce noisy reports; values above 0.8 risk missing real conflicts. |
[OUTPUT_SCHEMA] | Target JSON schema for the conflict report structure | {"type": "object", "properties": {"conflicts": {"type": "array"}, "severity_summary": {"type": "object"}}, "required": ["conflicts", "severity_summary"]} | Must be valid JSON Schema. Validation: parse check, schema compliance check. Null allowed: false. Schema must include conflicts array and severity_summary object at minimum. Schema mismatch causes downstream parsing failures. |
Implementation Harness Notes
How to wire the conflict detection prompt into an evaluation pipeline or production agent harness with validation, retries, and logging.
The Multi-Agent Output Conflict Detection prompt is designed to sit between agent execution and downstream arbitration or human review. It should be called after two or more agents have produced outputs for the same task, but before those outputs are merged, presented to a user, or passed to another agent. The prompt expects structured agent outputs, the original task context, and any shared evidence as inputs. Its output is a conflict report that downstream systems can use to decide whether to escalate, arbitrate, or reconcile.
In a production harness, wrap this prompt in a validation layer that checks the output schema before proceeding. The conflict report should include a conflict_type enum (factual, structural, policy, tool-choice, schema), a severity_score between 0.0 and 1.0, and a list of conflicting_spans with agent attribution and evidence alignment. If the model returns malformed JSON or missing required fields, retry once with a repair prompt that includes the original output and the schema error. Log every conflict detection call with the input agent outputs, the raw model response, the validated report, and the retry count. For high-risk domains, route any conflict with severity_score > 0.7 to a human review queue with the full conflict report attached.
Model choice matters here. Use a model with strong instruction-following and structured output support, such as GPT-4o or Claude 3.5 Sonnet, because the task requires precise schema adherence and nuanced semantic comparison. Avoid smaller or older models that may conflate stylistic differences with factual conflicts. If you are running this prompt at high volume, consider caching the normalized agent outputs and evidence embeddings to reduce redundant comparisons. The next step after detection is to route the conflict report to an arbitration prompt, an escalation trigger, or a reconciliation workflow, depending on severity and type.
Expected Output Contract
Fields, types, and validation rules for the conflict detection report produced by the Multi-Agent Output Conflict Detection Prompt Template. Use this contract to validate the model's output before passing it to downstream arbitration or logging systems.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
conflict_id | string (UUID v4) | Must parse as valid UUID v4; reject if missing or malformed | |
agent_outputs | array of objects | Must contain at least 2 entries; each entry must have agent_id (string) and output_text (string) fields | |
conflict_type | enum: factual, structural, policy, tool_choice, schema, conclusion | Must match exactly one of the allowed enum values; reject unknown types | |
conflict_summary | string (1-3 sentences) | Must be non-empty; length between 50 and 500 characters; must reference both agents by ID | |
severity_score | number (0.0 to 1.0) | Must be a float between 0.0 and 1.0 inclusive; reject values outside range or non-numeric | |
evidence_alignment | array of objects | Each object must have claim (string), agent_a_support (boolean), agent_b_support (boolean), and shared_evidence (string or null); null allowed for shared_evidence only | |
escalation_recommended | boolean | Must be true or false; reject string values like 'yes' or 'no' | |
detection_confidence | number (0.0 to 1.0) | If present, must be float between 0.0 and 1.0; null allowed; reject non-numeric values |
Common Failure Modes
Conflict detection prompts fail in predictable ways that can corrupt downstream arbitration. These are the most common failure modes and the guardrails that prevent them.
False Positives on Stylistic Differences
What to watch: The prompt flags outputs as conflicting when agents use different wording, formatting, or terminology to express the same underlying facts. This floods the arbitration pipeline with noise and wastes compute on non-conflicts. Guardrail: Add explicit instructions to distinguish semantic disagreement from stylistic variation. Include few-shot examples of same-meaning-different-wording pairs labeled as non-conflicts. Test with a golden set of paraphrased outputs that should produce zero conflict flags.
Missed Semantic Conflicts in Confident Language
What to watch: Two agents make contradictory factual claims using similarly authoritative language, but the conflict detector misses the disagreement because surface-level phrasing differs enough to evade pattern matching. This produces silent reconciliation failures downstream. Guardrail: Require claim extraction and normalization before comparison. Run a secondary fact-checking pass that aligns each extracted claim to shared evidence. Add eval cases where agents contradict each other using different sentence structures and terminology.
Severity Inflation for Low-Impact Disagreements
What to watch: The prompt assigns high severity to conflicts over formatting, optional fields, or cosmetic details while missing high-severity factual disagreements. This causes unnecessary escalations and reviewer fatigue. Guardrail: Define severity tiers with concrete criteria tied to user-facing impact, reversibility, and downstream action risk. Include calibration examples showing low-severity formatting conflicts versus high-severity factual contradictions. Log severity distributions and review outliers weekly.
Evidence Misattribution Across Agent Outputs
What to watch: The conflict report attributes a claim to the wrong agent or cites evidence that one agent used as if both agents had access to it. This corrupts the audit trail and makes arbitration decisions unreliable. Guardrail: Require per-agent evidence scoping in the prompt. Each conflict entry must trace claims to specific agent outputs with agent identifiers. Add validation that every cited claim appears in the referenced agent's output. Test with agent outputs that share overlapping but non-identical evidence sets.
Conflict Report Drift Under High Agent Count
What to watch: When comparing three or more agents, the prompt produces inconsistent conflict classifications, drops pairwise comparisons, or collapses distinct disagreements into a single vague entry. Conflict detection quality degrades as agent count increases. Guardrail: Structure the prompt to require pairwise comparison for every agent pair, not a single holistic judgment. Include a completeness check that verifies every agent pair appears in the conflict report. Test with 3-agent, 4-agent, and 5-agent scenarios to measure classification consistency across scales.
Root Cause Confusion Between Instruction Ambiguity and Capability Gaps
What to watch: The prompt attributes agent disagreements to model capability differences when the real cause is ambiguous or conflicting instructions in the agent role definitions. This sends teams chasing model upgrades instead of fixing prompts. Guardrail: Add a root cause classification step that distinguishes instruction-driven conflicts from capability-driven conflicts. Require the prompt to check whether each agent's instructions could reasonably produce its output before attributing disagreement to model quality. Include eval cases where the same model produces conflicting outputs due to different role instructions.
Evaluation Rubric
Use this rubric to test the conflict detection prompt before production deployment. Each criterion targets a known failure mode in multi-agent output comparison.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Conflict Recall | All factual contradictions, structural mismatches, and conclusion disagreements are detected | Missed conflicts where agents disagree on a numeric value, entity name, or boolean claim | Run against a golden dataset of 20 agent output pairs with known conflicts; require >=95% recall |
False Positive Rate | No conflict flagged when agent outputs are semantically equivalent but syntactically different | Paraphrased agreement flagged as a conflict; synonym differences treated as factual disagreements | Feed pairs with identical meaning but different wording; require zero conflict flags |
Conflict Type Classification | Each detected conflict is assigned the correct type from the taxonomy: factual, structural, policy, tool-choice, or schema | Factual disagreement misclassified as structural; tool-choice conflict labeled as policy | Validate against 30 pre-labeled conflicts; require >=90% classification accuracy |
Severity Score Calibration | High-severity conflicts involve user-facing risk, irreversibility, or safety policy violations; low-severity conflicts are stylistic or formatting | Formatting difference scored as high severity; safety policy violation scored as low severity | Submit 10 conflict pairs with severity labels from human reviewers; require Spearman correlation >=0.85 |
Evidence Alignment Accuracy | Each conflicting claim is mapped to the specific agent output field and source evidence that produced it | Evidence pointer references a field that does not exist in either agent output; hallucinated evidence citation | Parse the conflict report JSON; verify every evidence pointer resolves to a real field in the input agent outputs |
Null Handling | When one agent provides a value and the other provides null or N/A, conflict is correctly flagged as a factual disagreement | Null-vs-value treated as agreement; missing field ignored when it contradicts a present field | Test with agent pairs where one output omits a required field; require conflict flag on the missing field |
Schema Conflict Detection | When agent outputs use incompatible schemas, field-level mismatches are enumerated with specific field paths | Schema conflict reported as generic 'format mismatch' without listing the incompatible fields | Submit outputs with different JSON structures; require conflict report to list each mismatched field by path |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a single frontier model. Remove the severity scoring and evidence alignment sections. Focus on binary conflict detection (conflict/no conflict) with a one-sentence explanation. Accept raw text output instead of strict JSON.
Prompt modification
Replace the [OUTPUT_SCHEMA] placeholder with: Return a simple JSON object with fields: has_conflict (boolean), conflict_summary (string). Remove [SEVERITY_RUBRIC] and [EVIDENCE_ALIGNMENT] sections entirely.
Watch for
- Over-flagging stylistic differences as factual conflicts
- Missing semantic conflicts where agents agree on words but disagree on meaning
- No calibration against human-labeled conflict pairs

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us