Office Hours — We're using LLMs to file insurance claims at scale in production. The model confidently makes mistakes and we have no visibility into failures until customers complain weeks later. How do I catch this before it becomes a liability nightmare? A daily developer question about AI/LLMs, answered with a direct, opinionated take. 2026-12-01T12:00:00.000Z Office Hours Office Hours office-hoursq-and-apractical-ai

Office Hours — We're using LLMs to file insurance claims at scale in production. The model confidently makes mistakes and we have no visibility into failures until customers complain weeks later. How do I catch this before it becomes a liability nightmare?

A daily developer question about AI/LLMs, answered with a direct, opinionated take.

Daily One question from the trenches, one opinionated answer.

We’re using LLMs to file insurance claims at scale in production. The model confidently makes mistakes and we have no visibility into failures until customers complain weeks later. How do I catch this before it becomes a liability nightmare?

This is the kind of problem that kills companies. When an LLM confidently does the wrong thing in a regulated domain with real money attached, you don’t have a model problem—you have an architecture problem. Here’s how to fix it.

The Core Issue

LLMs are “eloquent, convincing, and confidently wrong” on judgment calls. In insurance claims, that means your model will sometimes:

  • Misinterpret policy language and approve claims it shouldn’t.
  • Apply outdated rules or regulatory interpretations that changed last quarter.
  • Miss documented exceptions buried three pages into a policy.
  • Hallucinate policy details entirely and build a decision on them.

The model’s confidence score is decoupled from actual correctness. A well-tuned frontier model (Claude Opus 5.5, GPT-6.1 Sol) might hit 95% accuracy on your eval set, then tank to 70% on edge cases or seasonal claim types you didn’t test. And you won’t know until your fraud rate spikes or regulators audit you.

Build Layered Verification, Not a Single LLM

The goal isn’t to trust the LLM—it’s to make trust irrelevant by routing decisions through systems that can’t lie.

Layer 1: Deterministic Policy Engine

Before the LLM touches anything, extract the claim into structured facts:

  • Claim amount.
  • Coverage type.
  • Deductible amount.
  • Policy effective dates.
  • Any exclusions listed.

Use a rules engine (not an LLM) to flag cases where the policy clearly allows or forbids the claim. If the rules engine makes a decision, skip the LLM entirely. Only send ambiguous cases downstream. This cuts your LLM workload by 60–70% and eliminates low-hanging hallucination risk.

def apply_deterministic_rules(claim: Dict) -> Optional[Decision]:
    """
    Returns a decision if rules are conclusive.
    Returns None if the claim needs LLM judgment.
    """
    # Claim exceeds policy limit? Deny.
    if claim["amount"] > claim["policy_limit"]:
        return Decision(action="deny", reason="exceeds_limit", confidence=1.0)
    
    # Deductible not met? Deny.
    if claim["deductible_remaining"] > 0:
        return Decision(action="deny", reason="deductible_not_met", confidence=1.0)
    
    # Coverage type explicitly excluded? Deny.
    if claim["coverage_type"] in claim["exclusions"]:
        return Decision(action="deny", reason="excluded_coverage", confidence=1.0)
    
    # All checks pass or are ambiguous? Return None for LLM.
    return None

Layer 2: LLM + Structured Extraction

Only after the rules engine passes a claim should your LLM see it. At this point, constrain the LLM’s output aggressively:

  • Ask it to extract specific facts (policy interpretation, applicable exclusion clauses, precedent from similar claims).
  • Do NOT ask it to make the final decision.
  • Force structured JSON output with required fields: interpretation, supporting_evidence, confidence_score, reasoning.
  • Use tool calls to retrieve relevant policy sections and prior claim decisions from your vector database, not by putting the whole policy in the prompt.
def extract_claim_judgment(claim: Dict, policy: str) -> Dict:
    """
    LLM extracts facts and reasoning. Does not make a decision.
    """
    response = client.messages.create(
        model="claude-opus-5-5",
        max_tokens=1024,
        messages=[
            {
                "role": "user",
                "content": f"""
Analyze this claim against the policy. Extract ONLY:
1. How the policy applies to this claim type.
2. Any relevant exclusions or conditions.
3. Similar prior claims and their outcomes (use search_prior_claims tool).
4. Your confidence (0-100) that the policy covers this.

Do NOT make an approval/denial decision. Only extract facts.

Claim: {json.dumps(claim)}
Policy excerpt: {policy}
"""
            }
        ],
        tools=[
            {
                "name": "search_prior_claims",
                "description": "Find similar approved/denied claims",
                "input_schema": {
                    "type": "object",
                    "properties": {
                        "claim_type": {"type": "string"},
                        "coverage_area": {"type": "string"},
                        "limit": {"type": "integer", "default": 5}
                    }
                }
            }
        ]
    )
    
    return json.loads(response.content[0].text)

Layer 3: Proposer-Critic-Judge

After the LLM extracts facts, don’t let those facts be the basis of a decision. Use a second (smaller, cheaper) model to critique the extraction, then route ambiguous cases to a human or to an external validation system.

def validate_extraction(extracted_facts: Dict, original_claim: Dict) -> Tuple[bool, str]:
    """
    Does the extraction actually make sense?
    """
    critic_response = client.messages.create(
        model="claude-haiku-5-5",  # Cheaper, faster
        max_tokens=256,
        messages=[
            {
                "role": "user",
                "content": f"""
Check if this interpretation is logically sound:

Extracted interpretation: {extracted_facts['interpretation']}
Original claim: {original_claim}

If there's a logical flaw, contradiction, or missing information, say "REJECT" and explain.
If it's sound, say "ACCEPT".
"""
            }
        ]
    )
    
    result = critic_response.content[0].text
    is_valid = "ACCEPT" in result
    return is_valid, result

Add Observability That Actually Catches Failures

The reason you don’t see failures until weeks later is that you’re not monitoring the right signals. Add these:

Signal 1: Confidence Mismatch

Log cases where the LLM’s confidence doesn’t match downstream outcomes. If the model says 92% confident on a claim, but it gets reversed in appeals, flag it.

def log_outcome_mismatch(claim_id: str, llm_confidence: float, actual_outcome: str):
    """
    Track when LLM confidence diverges from real outcomes.
    """
    if llm_confidence > 85 and actual_outcome == "reversed":
        logger.warning(
            f"High-confidence error: claim {claim_id} "
            f"(confidence={llm_confidence}) was reversed"
        )
        # Send to your monitoring/alert system
        metrics.increment("llm.confidence_mismatch", tags=[f"outcome:{actual_outcome}"])

Signal 2: Appeal Rate by Decision Reason

For each reason category the LLM uses to approve or deny, track the appeal rate. If “policy interpretation” appeals are 3x higher than “clear exclusion” appeals, you have a signal that the LLM’s interpretations are weak.

# SQL query you should run weekly
SELECT 
    decision_reason,
    COUNT(*) as total_claims,
    SUM(CASE WHEN appealed THEN 1 ELSE 0 END) as appeals,
    ROUND(100.0 * SUM(CASE WHEN appealed THEN 1 ELSE 0 END) / COUNT(*), 2) as appeal_rate
FROM claims
WHERE decision_date > NOW() - INTERVAL 30 DAY
GROUP BY decision_reason
ORDER BY appeal_rate DESC;

If appeal rates diverge by >2x between reason categories, you’ve found a gap in the model’s reasoning.

Signal 3: Variance in LLM Outputs Across Reruns

Periodically re-run the LLM on the same claim (using different temperatures or model versions) and check consistency. If the same claim gets different decisions 15% of the time, that’s your hallucination rate.

**Signal 4: Semantic