Inferensys

Prompt

Reasoning Chain Audit Prompt for Faithfulness Checks

A practical prompt playbook for using Reasoning Chain Audit Prompt for Faithfulness Checks in production AI workflows.
Operations team reviewing AI workflow automation on laptop, workflow builder visible, casual office setup.
PROMPT PLAYBOOK

When to Use This Prompt

Define the job, the ideal user, and the operational constraints for the Reasoning Chain Audit Prompt.

This prompt is designed for quality assurance engineers and AI safety operators who need to verify that a generated reasoning chain is strictly faithful to the provided source evidence. The core job-to-be-done is a post-hoc audit: you have a final answer and the step-by-step reasoning the model claims to have used, and you must confirm that every inferential leap, factual claim, and citation is directly supported by the source documents. This is not a prompt for generating answers; it is a guardrail for catching hallucinations, misattributed citations, and unsupported extrapolations before an answer reaches a user or a downstream system.

Use this prompt when the cost of an incorrect or fabricated answer is high—such as in clinical, legal, financial, or compliance workflows. It is most effective when you can provide a complete reasoning chain (e.g., from a Chain-of-Thought or multi-hop RAG pipeline) alongside the full set of retrieved source chunks. The prompt requires the auditor to have access to the original evidence, not just the model's summary of it. Do not use this prompt for real-time, low-latency chat where a full audit would block the user experience, or when the reasoning chain is implicit and cannot be extracted as discrete, auditable steps. It is also unsuitable for purely creative or subjective tasks where 'faithfulness' has no objective ground truth.

Before integrating this prompt into your harness, ensure your pipeline can capture and pass the raw reasoning trace and the exact source documents used. The output is an audit report, not a corrected answer. If the audit flags failures, your system should be designed to either regenerate the answer, escalate for human review, or abstain. Start by running this prompt against a golden dataset of known faithful and hallucinated reasoning chains to calibrate your pass/fail thresholds before deploying it as a production guardrail.

PRACTICAL GUARDRAILS

Use Case Fit

Where the Reasoning Chain Audit Prompt delivers value and where it introduces risk. Use these cards to decide if this prompt belongs in your QA pipeline.

01

Good Fit: Post-Hoc QA Gate

Use when: You have a generated reasoning chain and its source documents, and you need an automated check before the answer reaches a user or downstream system. Guardrail: Run the audit as a non-blocking async check in low-risk domains, but make it a hard gate in regulated workflows.

02

Bad Fit: Real-Time Generation

Avoid when: Latency is the primary constraint and you cannot afford a second LLM call for verification. Guardrail: Reserve this prompt for offline evaluation, regression suites, or high-stakes synchronous checks where correctness beats speed. Do not insert it into the hot path of a sub-200ms chatbot.

03

Required Inputs

What you must provide: The original user question, the complete generated reasoning chain, and the full set of retrieved source documents. Guardrail: If any input is missing or truncated, the audit will produce false positives. Validate input completeness before invoking the prompt.

04

Operational Risk: Auditor Hallucination

What to watch: The auditing LLM can hallucinate violations or miss real ones, especially on long reasoning chains. Guardrail: Never treat the audit output as ground truth. Sample audit reports for human review, and calibrate the auditor against a golden dataset of known faithful and unfaithful chains.

05

Operational Risk: Ambiguous Grounding

What to watch: Inferential steps that are plausible but not explicitly stated in the source evidence may be flagged as unsupported, or worse, accepted as valid. Guardrail: Define a clear policy for the auditor: should it accept reasonable inferences or demand explicit textual support? Encode this policy in the prompt's constraints.

06

Scale Fit: Regression Testing

Use when: You are changing your RAG pipeline, retrieval strategy, or generation prompt and need to detect faithfulness regressions across hundreds of examples. Guardrail: Integrate the audit prompt into your eval harness. Track the rate of flagged steps per version. A sudden increase is a release blocker.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt for auditing reasoning chains to verify that every inferential step is supported by source evidence.

This prompt template is designed for post-hoc auditing of a generated reasoning chain. It takes the original question, the source evidence, and the reasoning chain as input, then produces a structured audit report. The report flags unsupported inferential leaps, hallucinations, misattributed citations, and logical gaps. Use this template as a safety gate in high-stakes domains like legal, clinical, or financial Q&A where a wrong answer is worse than no answer. The template is model-agnostic and expects square-bracket placeholders to be filled by your application harness before inference.

text
You are a reasoning chain auditor. Your job is to verify that every step in a reasoning chain is fully supported by the provided source evidence. You do not judge whether the final answer is correct. You judge whether the reasoning itself is faithful to the sources.

## INPUT

**Original Question:**
[QUESTION]

**Source Evidence (numbered):**
[EVIDENCE_LIST]

**Reasoning Chain to Audit:**
[REASONING_CHAIN]

## AUDIT INSTRUCTIONS

For each step in the reasoning chain:
1. Identify the specific factual claim or inferential leap made in that step.
2. Check whether that claim is directly supported by one or more pieces of source evidence. Cite the evidence number(s).
3. If the claim is not supported, classify it as one of:
   - **UNSUPPORTED_LEAP**: The step draws a conclusion not present in the evidence.
   - **HALLUCINATION**: The step introduces a fact not found in any source.
   - **MISATTRIBUTION**: The step cites a source that does not contain the claimed information.
   - **MISSING_EVIDENCE**: The step requires evidence that is not provided.
4. If the step is supported, mark it as **GROUNDED** and provide the supporting citation.

## OUTPUT FORMAT

Return a JSON object with this exact schema:
{
  "audit_result": "PASS" | "FAIL" | "PARTIAL",
  "overall_assessment": "A one-sentence summary of the audit findings.",
  "steps": [
    {
      "step_number": 1,
      "step_text": "The text of the reasoning step.",
      "verdict": "GROUNDED" | "UNSUPPORTED_LEAP" | "HALLUCINATION" | "MISATTRIBUTION" | "MISSING_EVIDENCE",
      "evidence_citation": [1, 3] or [],
      "explanation": "Why this verdict was reached."
    }
  ],
  "critical_flags": [
    "Description of any finding that makes the entire chain unreliable."
  ]
}

## CONSTRAINTS

- Do not evaluate whether the final answer is correct. Only evaluate whether the reasoning chain is faithful to the provided evidence.
- If a step combines multiple pieces of evidence, verify each sub-claim independently.
- If the reasoning chain contains a step that is a question or a plan rather than a claim, mark it as **GROUNDED** only if the question or plan logically follows from prior grounded steps.
- If the evidence is insufficient to support or refute a step, mark it as **MISSING_EVIDENCE**.
- Be strict. When in doubt, flag rather than assume support.

To adapt this template, replace the placeholders with your application data. [QUESTION] should contain the original user query. [EVIDENCE_LIST] should be a numbered list of retrieved passages, each with a unique identifier. [REASONING_CHAIN] should be the full text of the reasoning chain you want to audit, including any internal citations it contains. The output schema is strict JSON, so your harness should validate the response against the schema before accepting it. For high-risk domains, route any audit with a FAIL or PARTIAL result to human review. Consider running this audit prompt with a different model than the one that generated the reasoning chain to reduce correlated failures.

IMPLEMENTATION TABLE

Prompt Variables

Required and optional inputs for the Reasoning Chain Audit Prompt. Each placeholder must be populated before the prompt is sent to the model. Validation notes describe how to programmatically verify the input before execution.

PlaceholderPurposeExampleValidation Notes

[REASONING_CHAIN]

The full reasoning chain output generated by a prior model step that needs to be audited for faithfulness.

Step 1: The patient's blood pressure was 140/90 (Source A). Step 2: This indicates Stage 1 hypertension (Source B). Conclusion: The patient has hypertension.

Must be a non-empty string. Check that the chain contains distinct steps or segments. If the chain is empty or null, abort the audit and return an error.

[SOURCE_EVIDENCE_LIST]

An array of source documents or passages that the reasoning chain claims to be based on. Each source must have a unique identifier.

[{"source_id": "A", "content": "Patient vitals: BP 140/90..."}, {"source_id": "B", "content": "Stage 1 HTN is defined as systolic 130-139 or diastolic 80-89..."}]

Must be a valid JSON array. Each object must have a non-empty 'source_id' and 'content' field. If the array is empty, the audit can only flag all claims as unsupported. Validate JSON schema before prompt assembly.

[AUDIT_CRITERIA]

A list of specific faithfulness checks to perform, such as 'unsupported_inference', 'misattributed_citation', or 'contradiction'.

["unsupported_inference", "misattributed_citation", "factual_contradiction"]

Must be a valid JSON array of strings. Use a predefined enum of allowed criteria to prevent injection. If null or empty, default to a standard set of checks: ['unsupported_inference', 'misattributed_citation'].

[OUTPUT_SCHEMA]

The exact JSON schema the audit report must conform to, including fields for step_id, claim, verdict, and evidence_id.

{"type": "object", "properties": {"audit_entries": {"type": "array", "items": {"type": "object", "properties": {"step_id": {"type": "string"}, "claim": {"type": "string"}, "verdict": {"type": "string", "enum": ["supported", "unsupported", "contradicted"]}, "evidence_id": {"type": "string"}}}}}}

Must be a valid, parseable JSON Schema object. Validate the schema itself before injecting it into the prompt. If the schema is invalid, abort to prevent a malformed output contract.

[DOMAIN_CONTEXT]

Optional domain-specific context to calibrate the audit's strictness, such as 'clinical', 'legal', or 'financial'.

clinical

If provided, must be a string from a predefined allowlist of domains. If null or omitted, the prompt defaults to a general-purpose strictness level. An invalid domain should trigger a warning but not abort the audit.

[FAILURE_MODE_EXAMPLES]

Optional few-shot examples of reasoning failures to guide the auditor model's judgment, especially for subtle cases.

[{"reasoning_step": "The market is down, so we should sell.", "verdict": "unsupported", "reason": "No evidence links market condition to the sell action."}]

If provided, must be a valid JSON array of objects with 'reasoning_step', 'verdict', and 'reason' fields. Validate structure. If null, the prompt uses its internal definitions. A malformed example set should trigger a retry without examples.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the Reasoning Chain Audit Prompt into a production QA pipeline with validation, retries, and human review gates.

The Reasoning Chain Audit Prompt is not a user-facing prompt. It operates as a post-generation guardrail inside a QA harness. After your primary RAG system produces a reasoning chain and final answer, the audit prompt receives the original question, the retrieved source evidence, and the generated reasoning chain as input. Its job is to produce a structured audit report that flags unsupported inferential leaps, hallucinated facts, and misattributed citations before the answer reaches a user or downstream system. This means the audit prompt must be wired into a pipeline that can act on its output—blocking, flagging for review, or triggering regeneration—rather than simply displaying the report.

Wire the audit prompt as a synchronous validation step after reasoning chain generation and before answer delivery. The harness should: (1) extract the reasoning chain from the primary model's output, (2) call the audit prompt with the original question, the full set of retrieved source chunks (with document IDs and chunk indices), and the reasoning chain, (3) parse the audit report JSON to extract the overall_verdict (pass/fail) and any flagged steps, (4) if the verdict is fail, either block the response and escalate for human review or trigger a regeneration loop with explicit feedback about which steps were unsupported. For high-stakes domains like clinical or legal RAG, always route fail verdicts to a human review queue. For lower-stakes applications, you may allow up to two regeneration attempts with the audit feedback injected as a correction signal before escalating.

Model choice matters here. The audit prompt requires strong instruction-following and careful attention to detail. Use a capable model like Claude 3.5 Sonnet, GPT-4o, or Gemini 1.5 Pro. Avoid smaller or faster models that may miss subtle unsupported inferences. Implement a strict JSON schema validator on the audit output—if the model fails to produce valid JSON matching the expected schema, retry once with a schema error message. Log every audit result, including passed audits, to build a dataset for evaluating your primary reasoning prompt over time. This log becomes your regression test suite: when you change the reasoning prompt, re-run the audit on historical cases to detect new hallucination patterns. Finally, set a latency budget. The audit adds a second model call, so if your primary generation takes 2 seconds, expect total latency of 3-5 seconds. For real-time applications, consider running the audit asynchronously and delivering the answer with a provisional flag, then updating or retracting if the audit later fails.

IMPLEMENTATION TABLE

Evaluation Rubric

Use this rubric to test the quality of a reasoning chain audit before deploying it in production. Each criterion targets a specific failure mode common in faithfulness checks.

CriterionPass StandardFailure SignalTest Method

Step-Level Source Grounding

Every inferential step in the reasoning chain is explicitly mapped to a specific source passage or document ID.

A step contains a factual claim with no citation or a citation that does not support the claim.

Parse the audit report for a list of unsupported steps. Manually verify a random sample of 10 flagged steps against the original sources.

Hallucinated Evidence Detection

The audit correctly identifies any fact in the reasoning chain that is not present in the provided source evidence.

The audit report marks a step as 'supported' when the fact is fabricated or marks a true fact as 'unsupported'.

Create a golden dataset of 20 reasoning chains with known hallucinations. Measure precision and recall of the audit prompt's hallucination flags.

Misattribution Flagging

The audit correctly identifies when a citation points to the wrong source document or passage for a given claim.

A step cites Source A, but the claim's information is only found in Source B. The audit fails to flag this.

Construct 10 reasoning chains with intentionally swapped citations. The audit must flag at least 90% of them.

Logical Leap Identification

The audit flags any inferential jump where the conclusion does not logically follow from the cited premises.

A step states 'therefore X' based on evidence that only implies Y. The audit does not flag the non-sequitur.

Use a set of 15 reasoning chains containing logical fallacies. The audit must identify the specific step containing the invalid inference.

Omitted Evidence Reporting

The audit reports source passages that directly contradict a step in the reasoning chain but were ignored.

A source document explicitly contradicts a claim, but the audit report does not mention the contradiction.

Provide a context set with a known contradiction. Verify the audit output contains a 'Contradictory Evidence Omitted' section referencing the specific passage.

Audit Report Schema Compliance

The output is valid JSON matching the [OUTPUT_SCHEMA] with all required fields present and correctly typed.

The output is missing the 'unsupported_steps' array or contains malformed fields that break a downstream parser.

Validate the raw output against the expected JSON Schema. Retry up to 2 times with a repair prompt if validation fails.

Confidence Calibration

The audit assigns a 'confidence' score to each finding that correlates with the ambiguity of the evidence.

The audit assigns a 'high' confidence to a hallucination flag on an ambiguous, poorly-written source passage.

Review 20 audit findings with their confidence scores. A human reviewer must agree with the score direction (high/low) in at least 85% of cases.

PRACTICAL GUARDRAILS

Common Failure Modes

What breaks first when auditing reasoning chains for faithfulness and how to guard against it.

01

Unsupported Inferential Leaps

What to watch: The model asserts a conclusion that is plausible but not directly supported by the cited evidence. It fills gaps with world knowledge instead of staying grounded. Guardrail: Require the audit prompt to flag any step where the evidence does not explicitly state the inferred fact. Use a strict 'must be directly stated or logically entailed' standard in the audit rubric.

02

Misattributed Citations

What to watch: A reasoning step cites a source that does not actually contain the claimed information. The citation is a hallucination or a copy-paste error from a previous step. Guardrail: Instruct the audit prompt to independently verify each citation against the provided source text. Output a mismatch report that lists the claim, the cited source, and the actual content found.

03

Circular Reasoning Loops

What to watch: The chain uses its own intermediate conclusion as evidence for a later step without retrieving new supporting facts. This creates a self-referential loop that looks coherent but is unfounded. Guardrail: The audit prompt should trace the evidence lineage of each step. Flag any step where the only supporting source is a prior step's output rather than a retrieved document.

04

Ignored Contradictory Evidence

What to watch: The reasoning chain selectively uses evidence that supports a conclusion while silently ignoring contradictory sources provided in the same context. Guardrail: The audit prompt must cross-reference all provided sources, not just the cited ones. Include a specific check: 'Does any uncited source contradict a step in the chain?'

05

Over-Confidence in Ambiguous Evidence

What to watch: The chain treats vague or probabilistic language from the source as a definitive fact. 'May cause' becomes 'causes.' Guardrail: The audit prompt should compare the certainty level of the claim against the certainty level of the source text. Flag any step where the claim is stronger than the evidence supports. Require the audit to quote the original hedging language.

06

Premature Conclusion Before Evidence Exhaustion

What to watch: The chain stops reasoning and declares a final answer before all provided evidence has been considered, potentially missing a key fact in the last document. Guardrail: The audit prompt should verify that every provided source document is referenced or explicitly marked as irrelevant in the reasoning trace. Flag any final answer that precedes the analysis of all supplied context.

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Use the base prompt with lighter validation. Focus on getting the audit structure right before adding strict schema enforcement. Run the prompt against a small set of known-good and known-bad reasoning chains to calibrate sensitivity.

Watch for

  • The auditor being too lenient (accepting weak inferences)
  • Missing structured output fields in the audit report
  • Overly broad instructions that don't distinguish between 'implied' and 'explicitly stated' evidence
Prasad Kumkar

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.