This prompt is built for evaluation pipelines that need to screen reasoning traces for logical fallacies before the reasoning is used to make decisions or generate final answers. The ideal user is an AI engineer or evaluation lead deploying reasoning models where the path matters as much as the conclusion. You have a chain-of-thought trace—from a reasoning model, an agent, or a RAG system—and you need to know whether it contains circular reasoning, false dilemmas, hasty generalizations, post-hoc errors, or other logical flaws. This judge prompt audits reasoning that already exists; it does not generate new reasoning.
Prompt
Fallacy Detection in Chain-of-Thought Prompt

When to Use This Prompt
Determine if your evaluation pipeline needs automated, step-level fallacy classification before reasoning traces influence downstream decisions.
Use this prompt when you need automated fallacy detection with step-level citations and severity ratings. It fits into evaluation harnesses that run after reasoning generation but before the reasoning is shown to users, fed into downstream tools, or used to justify high-stakes decisions. The prompt expects a complete reasoning trace as input and returns structured JSON with fallacy classifications, the specific steps where each fallacy occurs, severity ratings, and brief explanations. This output can feed into regression test suites, CI/CD gates, or human review queues. Do not use this prompt for real-time user-facing chat, for grading final answers without reasoning traces, or as a substitute for domain-expert review in regulated workflows.
Before wiring this into production, define your severity thresholds and decide what happens when a fallacy is detected. In low-risk workflows, you might log the finding and continue. In high-risk domains—clinical, legal, financial—you should route flagged traces to human review and block automated action until the review is complete. Pair this prompt with a schema validator to catch malformed JSON output, and consider running it against a golden dataset of known fallacious and valid reasoning traces to calibrate your acceptance criteria before deployment.
Use Case Fit
Where fallacy detection in chain-of-thought prompts delivers value and where it introduces risk. Use these cards to decide if this evaluation pattern fits your pipeline before investing in implementation.
Good Fit: Pre-Deployment Reasoning QA
Use when: you are evaluating reasoning traces before they reach users, in CI/CD pipelines, or during model selection. Fallacy detection catches circular logic, false dilemmas, and hasty generalizations that would erode trust in production. Guardrail: pair with a human review step for high-severity fallacy flags before blocking deployment.
Bad Fit: Real-Time User-Facing Latency Budgets
Avoid when: the fallacy detection prompt must run synchronously in a user-facing request path with sub-second latency requirements. Detailed step-level fallacy classification adds meaningful inference time. Guardrail: run fallacy detection asynchronously in a background evaluation pipeline, not in the hot path.
Required Input: Complete Reasoning Trace with Step Delimiters
Risk: fallacy detection produces unreliable results when fed truncated traces, final answers only, or traces without clear step boundaries. The judge cannot attribute fallacies to specific reasoning steps without structured input. Guardrail: enforce step-delimited input format in your prompt harness and validate trace completeness before calling the fallacy detector.
Operational Risk: Judge Over-Sensitivity and False Positives
Risk: fallacy detection judges can over-flag reasonable heuristic reasoning as hasty generalization or mislabel rhetorical devices as logical fallacies. This creates alert fatigue and erodes trust in the evaluation pipeline. Guardrail: calibrate severity thresholds, require step-level citations for every fallacy flag, and track false-positive rates against human review samples.
Operational Risk: Domain-Specific Reasoning Norms
Risk: legal, medical, and engineering reasoning often uses domain-acceptable patterns that a general fallacy detector may flag incorrectly. A legal "balancing test" is not a false equivalence, and a clinical differential diagnosis is not an excluded middle. Guardrail: customize fallacy definitions and examples for your domain, and maintain a domain-specific golden dataset for calibration.
When to Escalate: High-Severity Fallacies in Regulated Workflows
Risk: circular reasoning or post-hoc fallacies in financial audit, clinical decision support, or safety-critical reasoning traces can indicate systemic model failures that automated grading alone should not resolve. Guardrail: route high-severity fallacy detections to human review queues, log the full trace with fallacy citations, and block automated remediation in regulated contexts.
Copy-Ready Prompt Template
A reusable prompt template for detecting logical fallacies in chain-of-thought reasoning traces, with step-level citations and severity ratings.
This prompt template is designed to be dropped directly into your evaluation harness. It instructs the model to act as a logical fallacy auditor, scanning a provided reasoning trace for common fallacies such as circular reasoning, false dilemmas, hasty generalizations, and post-hoc errors. The template uses square-bracket placeholders for all dynamic inputs, allowing you to swap in different reasoning traces, adjust the list of target fallacies, and modify the output schema without rewriting the core instruction set. Before pasting, ensure you have a clear reasoning trace to evaluate and have defined your desired output format.
textYou are a logical fallacy detection auditor. Your task is to analyze the provided chain-of-thought reasoning trace and identify any logical fallacies present. For each fallacy found, you must provide a step-level citation, a severity rating, and a brief explanation. ### INPUT [REASONING_TRACE] ### TARGET FALLACIES Focus your analysis on the following fallacy types, but flag any others you detect under "Other": [FALLACY_LIST] ### OUTPUT SCHEMA Return your findings as a single JSON object conforming to this schema: { "fallacies": [ { "fallacy_type": "string (e.g., 'Circular Reasoning', 'False Dilemma')", "step_index": "integer (the 1-based index of the reasoning step containing the fallacy)", "step_text": "string (the exact text of the offending step)", "severity": "string (one of: 'Low', 'Medium', 'High', 'Critical')", "explanation": "string (a concise explanation of why this step is fallacious and how it impacts the overall argument)" } ], "overall_assessment": "string (a summary of the reasoning trace's logical soundness, noting if any conclusions are unsupported due to fallacies)" } ### CONSTRAINTS - Only report a fallacy if you are highly confident it is present. Do not over-flag. - If no fallacies are found, return an empty 'fallacies' array and a positive overall_assessment. - The 'step_index' must correspond to the step numbering in the provided [REASONING_TRACE]. - The 'severity' rating should reflect the impact on the argument's conclusion: 'Critical' means the conclusion is directly invalidated, 'Low' means a minor rhetorical flaw.
To adapt this template, start by replacing [REASONING_TRACE] with the full text of the chain-of-thought output you want to audit. Next, curate the [FALLACY_LIST] to match your specific evaluation rubric; you might include only formal fallacies for a logic course or a broader set for general content moderation. The [OUTPUT_SCHEMA] is provided as a strict JSON contract, which is critical for automated pipelines. If your application requires a different structure, modify the schema description but keep the instructions precise to prevent the model from drifting into unstructured commentary. For high-stakes evaluations, always route outputs where severity is 'High' or 'Critical' for human review before taking any automated action based on the fallacy report.
Prompt Variables
Inputs required by the Fallacy Detection in Chain-of-Thought Prompt. Each variable must be populated before the prompt is sent to the model. Missing or malformed inputs will cause unreliable fallacy classifications.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[REASONING_TRACE] | The full step-by-step reasoning text to evaluate for logical fallacies | Step 1: All successful companies use cloud computing. Step 2: Our company wants to be successful. Step 3: Therefore we must migrate to cloud. | Must be non-empty string with at least 3 reasoning steps. Reject if fewer than 50 characters or no step indicators (numbers, bullets, or explicit step labels). |
[FALLACY_TAXONOMY] | The list of fallacy types to detect, with definitions and examples | circular_reasoning, false_dilemma, hasty_generalization, post_hoc_ergo_propter_hoc, appeal_to_authority, slippery_slope, straw_man, ad_hominem | Must be a valid JSON array of strings. Each entry must match a known fallacy type in the evaluation rubric. Empty array allowed only if testing for unlisted fallacy detection. |
[SEVERITY_THRESHOLD] | Minimum severity level required to flag a fallacy in the output | medium | Must be one of: low, medium, high, critical. Controls filtering of low-confidence detections. Use 'low' for exhaustive audit, 'high' for summary reports. |
[CONTEXT_DOCUMENT] | Optional source document providing factual grounding for claims in the reasoning trace | According to the 2024 industry report, 67% of enterprises use hybrid cloud strategies rather than full migration. | Can be null or empty string. When provided, enables cross-referencing of factual claims. Must be plain text under 10000 tokens to avoid context window overflow. |
[OUTPUT_FORMAT] | Specification for the structure of the fallacy detection output | json | Must be one of: json, markdown_table, inline_annotations. JSON required for automated pipelines. Inline annotations useful for human review dashboards. |
[MAX_FALLACIES] | Upper limit on number of fallacies to report in a single evaluation | 10 | Must be an integer between 1 and 50. Prevents output bloat on severely flawed traces. Set lower for summary views, higher for detailed audit. |
[INCLUDE_CITATION] | Whether to require step-level citations for each detected fallacy | Must be boolean true or false. When true, each fallacy must reference specific step numbers or text spans. Required for audit trails and downstream remediation. | |
[CONFIDENCE_FORMAT] | Whether to include confidence scores and how they should be expressed | numeric_0_1 | Must be one of: numeric_0_1, low_medium_high, none. Numeric scores enable threshold-based filtering. Categorical scores simplify human review. Use 'none' for binary detection only. |
Implementation Harness Notes
How to wire the fallacy detection prompt into an evaluation pipeline with validation, retries, and human review gates.
The fallacy detection prompt is designed to operate as a screening step inside an automated evaluation pipeline, not as a standalone chat interaction. It expects a complete reasoning trace as input and returns structured fallacy classifications with step-level citations. The primary integration point is after a reasoning model produces its chain-of-thought and before that trace is scored for correctness, coherence, or faithfulness. By inserting fallacy detection early in the pipeline, you can flag traces that contain circular reasoning, false dilemmas, hasty generalizations, or post-hoc errors before they corrupt downstream eval metrics or reach end users.
Validation and retry logic is critical because the prompt's output must conform to a strict schema for automated processing. Implement a JSON schema validator that checks for required fields (fallacy_type, step_index, severity, explanation), enum adherence for fallacy_type and severity, and array integrity for the detected_fallacies list. If validation fails, retry the prompt once with the original input and a brief error message appended to [CONSTRAINTS] indicating which field was malformed. If the second attempt also fails, log the raw output and escalate to a human review queue rather than silently dropping the trace. For high-stakes domains like healthcare, legal, or finance, configure the pipeline to require human sign-off on any trace with a severity rating of high or critical, regardless of validation success.
Model choice and cost optimization should match the risk profile of the evaluation task. For development and pre-release regression testing, a fast, cost-effective model like GPT-4o-mini or Claude Haiku is usually sufficient for fallacy detection. For production monitoring of safety-critical reasoning traces, use a more capable judge model such as GPT-4o, Claude Sonnet, or an equivalent to reduce false negatives. Log every evaluation with the prompt version, model identifier, input trace hash, fallacy output, validation status, and reviewer decision. This audit trail is essential for debugging judge drift, calibrating severity thresholds, and defending evaluation results during compliance reviews. Avoid wiring fallacy detection directly into user-facing blocking flows without a human-in-the-loop override for edge cases where the judge model may misclassify legitimate reasoning patterns as fallacies.
Expected Output Contract
Defines the structured JSON object your evaluation pipeline should parse after the model returns. Use this contract to build downstream validators, dashboards, and retry logic.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
fallacy_list | Array of objects | Must be present even if empty. Schema check: validate array length >= 0. | |
fallacy_list[].step_index | Integer | Must be a non-negative integer referencing a reasoning step. Parse check: ensure index exists in the input trace. | |
fallacy_list[].fallacy_type | Enum string | Must match one of: circular_reasoning, false_dilemma, hasty_generalization, post_hoc, ad_hominem, straw_man, slippery_slope, appeal_to_authority, false_equivalence, non_sequitur, or other. Schema check: strict enum validation. | |
fallacy_list[].fallacy_description | String | Must be a non-empty string explaining why the step is fallacious. Length check: minimum 10 characters. | |
fallacy_list[].severity | Enum string | Must be one of: low, medium, high, critical. Schema check: strict enum validation. | |
fallacy_list[].suggested_correction | String or null | Must be a non-empty string if severity is high or critical. Null allowed for low severity. Conditional check: enforce non-null for high/critical. | |
overall_assessment | Object | Must contain 'total_fallacies' (integer) and 'trace_validity' (enum: valid, questionable, invalid). Schema check: validate object shape. | |
overall_assessment.confidence_score | Float | Must be a float between 0.0 and 1.0 if present. Null allowed. Range check: 0.0 <= value <= 1.0. |
Common Failure Modes
Fallacy detection prompts can break in predictable ways. These cards cover the most common failure modes when screening reasoning traces for logical fallacies, along with concrete guardrails to catch them before they reach production.
False Positives on Rhetorical Emphasis
What to watch: The judge flags emphatic language ('clearly', 'obviously', 'must be') as circular reasoning or false dilemma, even when the underlying logic is sound. Rhetorical force gets confused with logical failure. Guardrail: Add a calibration rule in the prompt: 'Do not classify rhetorical emphasis as fallacy. Only flag a step as circular reasoning if the conclusion explicitly restates a premise without additional support.' Include few-shot examples distinguishing rhetorical style from logical error.
Step-Level Citation Drift
What to watch: The judge correctly identifies a fallacy but cites the wrong reasoning step index, or attributes a fallacy to step 4 when the error actually originates in step 2. This breaks downstream error propagation analysis. Guardrail: Require the judge to quote the exact text from the flagged step in its output. Post-process by verifying the quoted text matches the step index. If mismatch exceeds a threshold, trigger a retry with explicit instruction to re-verify step-to-citation alignment.
Severity Inflation on Edge Cases
What to watch: The judge assigns 'critical' severity to minor reasoning shortcuts that don't affect the conclusion, or inflates severity when the fallacy type is ambiguous. This causes alarm fatigue and erodes trust in the evaluation pipeline. Guardrail: Define severity anchors with concrete criteria: 'Critical = the fallacy invalidates the conclusion. Minor = the reasoning step is imprecise but the conclusion remains independently supported.' Run calibration checks against a human-labeled severity dataset and flag judges with severity drift.
Missing Post-Hoc Errors in Temporal Chains
What to watch: The judge fails to detect post-hoc fallacies when temporal sequence is implied rather than explicitly stated. Reasoning traces that say 'after the deployment, error rates dropped' without claiming causation still get a pass, even when the implication is misleading. Guardrail: Add a detection rule: 'Flag any step that juxtaposes temporal sequence with outcome language if no causal mechanism is provided, even if causation is not explicitly claimed.' Include examples where implied causation is the fallacy.
Context Window Truncation of Long Reasoning Traces
What to watch: For reasoning traces exceeding the judge's effective context window, later steps get ignored or hallucinated fallacy classifications. The judge produces confident-looking output for steps it never actually evaluated. Guardrail: Chunk long reasoning traces into overlapping segments and run fallacy detection per segment. Add a coverage check: verify that every step index in the input appears in the output. If step coverage falls below 100%, flag for human review or re-chunk with higher overlap.
Overfitting to Common Fallacy Patterns
What to watch: The judge reliably catches circular reasoning and false dilemmas but systematically misses hasty generalizations and composition/division fallacies because the training distribution overweights a few fallacy types. Guardrail: Maintain a balanced evaluation dataset with equal representation across all target fallacy categories. Run per-category recall metrics in your eval harness. If any category recall drops below threshold, add targeted few-shot examples for that category in the prompt.
Evaluation Rubric
Use this rubric to test whether the fallacy detection prompt produces reliable, actionable output before integrating it into an evaluation pipeline. Each criterion targets a specific failure mode observed in production fallacy classifiers.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Fallacy Identification Recall | Detects at least 90% of planted fallacies in a golden dataset of 50 reasoning traces with known logical errors | Misses obvious circular reasoning or false dilemmas; recall below 0.85 on curated test set | Run against golden dataset with 50 hand-labeled traces containing 3-5 fallacies each; compute recall per fallacy type and overall |
Fallacy Classification Precision | No more than 10% false positive rate on clean reasoning traces with zero planted fallacies | Flags valid deductive steps as fallacies; precision below 0.90 on clean-trace test set | Run against 30 clean, professionally reviewed reasoning traces; count false positive fallacy flags; compute precision |
Step-Level Citation Accuracy | Every flagged fallacy includes a correct step index or step range matching the source trace | Citations point to wrong steps, cite non-existent step numbers, or omit step reference entirely | Parse output for step citations; cross-reference against source trace step numbering; verify 100% of citations map to existing steps |
Fallacy Type Granularity | Output uses specific fallacy types from the defined taxonomy, not generic labels like 'bad reasoning' or 'error' | Produces vague labels, invents non-standard fallacy names, or collapses distinct types into one bucket | Validate output against allowed fallacy taxonomy enum; flag any label not in the approved list; check for overuse of catch-all categories |
Severity Rating Consistency | Severity ratings follow the defined scale anchors; same fallacy type in similar context receives consistent severity | Minor post-hoc errors rated Critical; circular reasoning rated Low; severity flips between runs on identical inputs | Run same trace through prompt 3 times; check severity variance per fallacy; flag any severity delta greater than 1 level on a 4-point scale |
Explanation Grounding | Every fallacy explanation references specific content from the flagged reasoning step, not generic definitions | Explanations recite textbook fallacy definitions without connecting to the actual text; copy-paste patterns across different traces | Sample 20 explanations; verify each contains a direct quote or paraphrase from the source step; reject explanations that could apply to any trace |
Output Schema Compliance | Output is valid JSON matching the expected schema with all required fields present and correctly typed | Missing required fields; step_index is string instead of integer; severity is not in allowed enum; extra unvalidated fields | Validate output with JSON Schema validator; check field types, required presence, enum membership; reject any output that fails schema validation |
Edge Case Handling: Empty Trace | Returns valid output with empty fallacy array and appropriate null handling when input reasoning trace is empty or missing | Throws hallucinated fallacies on empty input; returns malformed JSON; produces error instead of empty result | Submit empty [REASONING_TRACE] and [STEPS] inputs; verify output is valid schema-compliant JSON with zero fallacy entries and no error messages |
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
Start with the base prompt and a single model. Remove the [OUTPUT_SCHEMA] requirement initially—just ask for a structured list of fallacies with step citations. Use a small hand-labeled dataset of 10–20 reasoning traces to iterate on fallacy definitions.
codeYou are evaluating a reasoning trace for logical fallacies. [REASONING_TRACE] Identify any logical fallacies present. For each fallacy, provide: - The fallacy type - The step number where it occurs - A brief explanation
Watch for
- The model inventing fallacy names that aren't in your taxonomy
- Over-flagging rhetorical devices as fallacies
- Missing severity distinctions—everything looks equally bad

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