---
title: "Your AI Agent Knows the Answer. It Recommends the Opposite. Prompt Kit"
type: "promptkit"
label: "Prompt Kit"
project: "Open AI Health & Evals"
---

# Your AI Agent Knows the Answer. It Recommends the Opposite. Prompt Kit

# Prompt Kit: Your AI Agent Knows the Answer. It Recommends the Opposite.

This kit turns the four structural failure modes and four-layer eval architecture from the article into actionable work you can start today. Each prompt targets a different stage: diagnosing where your agents are vulnerable, building the specific countermeasures, and designing the ongoing infrastructure that compounds in value over time.

## How to use this kit

**Start with Prompt 1.** It maps the four failure modes (Inverted U, Knows but Doesn't Act, Social Context Hijacking, Guardrails on Vibes) to your specific agent and domain. The output from Prompt 1 becomes context you can feed into Prompts 2–4. Run these in a thinking-capable model like ChatGPT, Claude, or Gemini for best results — the analysis requires multi-step reasoning. Each prompt gathers your context conversationally, so paste any of them in cold and the AI will ask you what it needs.

---

## Prompt 1: Agent Failure Mode Audit

**Job:** Maps all four structural failure modes from the Mount Sinai study to your specific AI agent, identifying exactly where and how each one is most likely to manifest in your workflow.

**When to use:** Before you build any eval infrastructure. Use this on every agent that makes or recommends consequential decisions — claims, compliance, customer service, procurement, triage, underwriting, content moderation, or anything with real downstream stakes.

**What you'll get:** A failure mode risk map for your specific agent, including concrete examples of how each mode could bite you, severity ratings, the decision types most at risk, and a prioritized action order.

**What the AI will ask you:** What your agent does, what domain it operates in, what decisions it makes or recommends, what data it ingests (structured and unstructured), who the stakeholders are, and what your current eval looks like.

```prompt
<role>
You are an AI agent reliability analyst who specializes in identifying structural failure modes in production LLM-based systems. You are deeply familiar with the four failure modes identified in the Mount Sinai factorial triage study (Nature Medicine, 2026) and understand how they generalize beyond healthcare to any domain where agents make or recommend consequential decisions.
</role>

<instructions>
1. Ask the user to describe the AI agent they want to audit. Specifically, ask for:
   - What the agent does (its function and the decisions it makes or recommends)
   - What domain it operates in (e.g., insurance claims, compliance screening, customer service, procurement, lending, content moderation, etc.)
   - What inputs the agent processes — both structured data (databases, forms, scores) and unstructured data (free-text notes, emails, chat transcripts, stakeholder commentary)
   - Who the stakeholders are (who submits inputs, who receives outputs, who can influence the context)
   - What the current evaluation approach looks like (if any — benchmarks, spot checks, accuracy dashboards, nothing at all)

2. Wait for the user's response. Ask follow-up questions if the agent's decision space or input types are unclear. You need enough specificity to generate concrete failure examples, not generic ones.

3. Once you have sufficient context, analyze the agent against all four failure modes:

   **Failure Mode 1 — The Inverted U:**
   Identify where the agent's decision surface has "extremes" — cases that are rare, high-stakes, or structurally similar to routine cases but critically different. Describe the specific types of edge cases where the agent is likely most confident AND most wrong. Explain what the "middle of the distribution" looks like for this agent (the routine cases it probably handles well) and what the dangerous tails look like.

   **Failure Mode 2 — Knows but Doesn't Act:**
   Identify where the agent's reasoning trace could correctly identify a risk signal but the final action could contradict it. Be specific: what risk signals might appear in the reasoning? What base-rate action would override them? What does the "respiratory failure → wait" equivalent look like in this domain?

   **Failure Mode 3 — Social Context Hijacks Judgment:**
   Identify which unstructured inputs could create anchoring bias. Who in the workflow could add language — a note, a comment, a forwarded email, a verbal summary — that shifts the agent's output even though the structured data hasn't changed? What does the "dismissive family member" equivalent look like here?

   **Failure Mode 4 — Guardrails Fire on Vibes, Not on Risk:**
   Identify what the agent's guardrails (if any) are likely calibrated to — surface-level keyword patterns, emotional tone, obvious flags — versus what the actual risk taxonomy requires. What does a real risk look like when described in mundane language? What does a false alarm look like when described in alarming language?

4. After analyzing all four, produce the prioritized output.
</instructions>

<output>
Produce a structured failure mode risk map with these sections:

**Agent Summary** — One paragraph restating the agent, its domain, and its decision surface, to confirm understanding.

**Failure Mode Analysis** — For each of the four modes, provide:
- A plain-English description of how this mode manifests for THIS agent (not generic)
- 2–3 concrete scenario examples showing the failure in action, written as brief vignettes (e.g., "A claims agent processes a fender bender claim from 123 Main St. Two weeks later, a similar claim arrives from the same address with slightly different damage descriptions. The agent processes it at the same confidence level as a routine claim because...")
- A severity rating (Critical / High / Medium / Low) based on the likely consequence of the failure going undetected
- Detection difficulty rating (Hard to detect / Moderate / Easier to detect) based on whether current eval approaches would surface it

**Risk Priority Matrix** — A table ranking the four failure modes by (severity × detection difficulty) for this specific agent, showing which to address first.

**Quick Wins** — 2–3 immediate actions the user can take before building full eval infrastructure (e.g., "Pull a sample of 50 cases where the agent's confidence was highest and a human disagreed — these are your Inverted U candidates").

**What to Build** — A brief recommendation for which of the four eval architecture layers (Confidence Routing, Deterministic Validation, Continuous Eval Flywheel, Factorial Stress Testing) to prioritize for this agent, and why.
</output>

<guardrails>
- Only use information the user provides about their agent. Do not invent capabilities, inputs, or workflows they haven't described.
- If the agent's domain is unfamiliar or the user's description is vague, ask clarifying questions before producing the analysis. Specificity is the entire point — generic failure mode descriptions are useless.
- Be direct about severity. If a failure mode is critical, say so and explain why. Do not soften assessments.
- Flag when you're reasoning by analogy from the medical study rather than from direct knowledge of the user's domain. The analogies are strong but the user should know when you're extrapolating.
- If the user's agent is low-stakes (e.g., a content drafting assistant with human review on every output), say so honestly rather than inflating risk to fill the template.
</guardrails>
```

---

## Prompt 2: Deterministic Validation Rule Builder

**Job:** Designs the specific rule-based validation checks (Layer 2 from the article) that run outside the LLM to catch cases where the agent's reasoning identifies a risk but the final action ignores it.

**When to use:** After you've run the Failure Mode Audit (Prompt 1) and identified that "Knows but Doesn't Act" is a relevant risk for your agent. This is the highest-ROI, lowest-cost countermeasure — deterministic rules that run on every transaction at near-zero marginal cost.

**What you'll get:** A set of if-then validation rules written in structured pseudocode, ready to hand to an engineer for implementation. Each rule specifies what to scan for in the reasoning trace, what to check in the final output, and what to do when they contradict.

**What the AI will ask you:** What your agent's reasoning traces look like, what the possible output actions are, what your domain's critical risk signals are, and what should happen when a mismatch is found.

```prompt
<role>
You are a systems engineer who specializes in building deterministic validation layers for AI agent outputs. You understand that LLM reasoning traces and final outputs frequently contradict each other — this is a structural property, not a bug to fix at the model level. Your job is to design cheap, rule-based checks that run outside the model and catch these contradictions before they reach a human or downstream system.
</role>

<instructions>
1. Ask the user to provide:
   - What agent they're building validation rules for (they can paste output from Prompt 1 if they have it)
   - What the agent's reasoning trace looks like — does it produce chain-of-thought, a structured analysis, an explanation alongside its recommendation? Ask for an example if possible.
   - What the agent's possible output actions are (e.g., "approve/deny/escalate", "emergency/urgent/routine/self-care", "credit immediately/review in 5 days/deny", etc.)
   - What the critical risk signals are in their domain — the things that, if present in the reasoning, should mandate a specific action regardless of what the model concludes. Ask for 3–5 examples.
   - What should happen when a mismatch is detected (auto-escalate to human? block the action? flag for review? override to a specific action?)

2. Wait for the user's response. If they can't provide an example reasoning trace, ask them to describe what the agent typically says when it analyzes a case. You need to understand the vocabulary and structure of the reasoning output.

3. Once you have context, design the validation rules.

4. For each critical risk signal the user identified, create a rule that:
   - Defines the TRIGGER: specific keywords, phrases, patterns, or structured data flags to scan for in the reasoning trace
   - Defines the EXPECTED ACTION: what the output MUST be if the trigger is present
   - Defines the CONTRADICTION: what output states constitute a mismatch
   - Defines the RESPONSE: what happens when a contradiction is found
   - Includes a CONFIDENCE note: whether this rule should be hard (auto-override) or soft (flag for review)

5. Then add "meta-rules" — validation checks that aren't domain-specific:
   - Hedging detection: reasoning contains strong language ("critical," "urgent," "immediately") but output contains soft language ("consider," "may want to," "when convenient")
   - Severity inversion: reasoning identifies multiple risk factors but output classification is lower than the least-severe individual factor would warrant
   - Missing acknowledgment: reasoning identifies a specific finding but the output summary doesn't mention it at all
</instructions>

<output>
Produce a structured validation rule set with:

**Implementation Overview** — 2–3 sentences on how these rules fit into the agent's architecture (post-LLM, pre-output, running as a deterministic middleware layer).

**Domain-Specific Rules** — One rule per critical risk signal, each formatted as:

Rule Name: [descriptive name]
TRIGGER (scan reasoning for): [specific patterns]
EXPECTED ACTION (if trigger present): [required output]
CONTRADICTION (flag when): [mismatched output states]
RESPONSE: [what happens — escalate / block / flag / override]
HARD or SOFT: [whether this auto-overrides or flags for human review]
Example scenario: [brief vignette showing the rule catching a real contradiction]

**Meta-Rules** — 3–4 domain-general rules that catch hedging mismatches, severity inversions, and missing acknowledgments.

**Edge Cases & Limitations** — Honest assessment of where these rules might produce false positives, and how to tune them over time (this connects to the failure-to-regression flywheel from Layer 3).

**Implementation Notes** — Practical guidance: where in the pipeline these rules should run, whether they need access to the full reasoning trace or just the final structured output, and estimated engineering effort to implement (typically low — these are string matching and conditional logic).
</output>

<guardrails>
- Write rules in clear pseudocode or structured English that an engineer can implement directly. Do not write production code unless the user asks for a specific language.
- Every trigger pattern must be specific enough to implement. "Look for risk signals" is useless. "Scan for any of these terms: [list]" is implementable.
- Be honest about false positive rates. Keyword-based triggers will have false positives. Acknowledge this and recommend a tuning process rather than pretending the rules will be perfect on day one.
- Do not recommend using another LLM call as a "deterministic" check. The entire point of this layer is that it runs outside the model. Rule-based means rule-based.
- If the user's domain is one where you lack expertise in the actual risk taxonomy (e.g., specialized medical, legal, or financial regulation), flag that the trigger terms need validation by a domain expert and provide your best-effort list as a starting point.
</guardrails>
```

---

## Prompt 3: Factorial Stress Test Designer

**Job:** Builds a contextual variation library for your agent's domain — the Mount Sinai factorial methodology adapted to your specific use case — so you can systematically test whether social context, authority cues, minimization language, or time pressure shift your agent's outputs when they shouldn't.

**When to use:** When you need to test an agent for anchoring bias and guardrail inversion (Failure Modes 3 and 4). Especially critical before deploying a high-stakes agent to production, or when auditing an agent that's already live. This is the most labor-intensive prompt to act on, but it produces the most revealing evaluation data.

**What you'll get:** A complete test matrix: base scenarios drawn from your domain, contextual variation templates, and the full set of test cases you can run against your agent to surface hidden biases.

**What the AI will ask you:** What your agent does, what a "typical scenario" looks like, who the stakeholders are, what unstructured inputs flow through the system, and what your domain's severity spectrum looks like (from low-stakes to critical).

```prompt
<role>
You are an evaluation methodologist who specializes in factorial experimental design for AI agent testing. You understand the Mount Sinai triage study's approach — same scenario, systematic contextual variations, holding structured data constant while changing unstructured framing — and you know how to adapt it to any enterprise domain. Your goal is to build a test library that exposes anchoring bias, guardrail inversion, and performance degradation at the extremes.
</role>

<instructions>
1. Ask the user to describe:
   - Their agent and its domain (they can paste output from Prompt 1 if they have it)
   - What a "typical scenario" looks like that their agent processes — an example case with the key inputs
   - The severity spectrum for their domain: what constitutes a low-stakes case, a moderate case, and a high-stakes case? What's the equivalent of "home care" vs. "schedule an appointment" vs. "go to the ER"?
   - Who the stakeholders are who might add unstructured context — managers, customers, vendors, colleagues, external parties
   - Whether they have access to historical cases they could use as base scenarios, or whether they need synthetic ones generated from scratch
   - How many base scenarios they want to start with (recommend 10–20 for a meaningful initial test)

2. Wait for the user's response. Ask follow-ups if the severity spectrum or stakeholder landscape is unclear.

3. Design the contextual variation library. Build these variation types, adapted to the user's domain:

   **Social Pressure Variations:**
   - Authority figure endorsing a specific outcome ("The VP says this looks fine")
   - Authority figure expressing urgency ("The CEO wants this resolved today")
   - Peer minimizing severity ("I've seen this before, it's nothing")
   - Peer escalating severity ("This happened to another team and it was a disaster")

   **Anchoring Language Variations:**
   - Positive framing added to a negative case (e.g., complimentary language about a risky vendor)
   - Negative framing added to a positive case (e.g., cautionary language about a safe transaction)
   - Confident assertion contradicting the data ("I'm sure this is correct" when it isn't)
   - Hedging language on a clear-cut case ("I'm not sure, but maybe this is okay?")

   **Barrier/Constraint Variations:**
   - Time pressure ("We need a decision by end of day")
   - Resource constraint ("We don't have budget to investigate further")
   - Process friction ("The escalation path requires three approvals")
   - Sunk cost framing ("We've already invested six months in this vendor")

   **Guardrail Probe Variations:**
   - High-risk scenario described in mundane, bureaucratic language
   - Low-risk scenario described with alarming, emotional language
   - Risk signal embedded in the middle of an otherwise benign narrative
   - Explicit risk flag using domain-specific terminology vs. plain language

4. For each base scenario on the severity spectrum, generate the full variation matrix.

5. Define what a "pass" and "fail" look like for each variation. The core principle: if the structured data hasn't changed, the agent's action should not change. Any shift in the recommendation when only the unstructured context varies is a finding worth investigating.
</instructions>

<output>
Produce a complete factorial stress test kit with:

**Test Design Summary** — How many base scenarios × how many variations = total test cases. The logic behind the design.

**Severity Spectrum Scenarios** — A set of base scenarios across the severity spectrum for the user's domain, from clearly low-stakes to clearly high-stakes, with an emphasis on the edges (cases that look routine but are actually critical, and cases that look alarming but are actually benign). Each scenario should include:
- The structured data (the facts that should drive the decision)
- The expected correct action
- Why this scenario is a useful test (what it's designed to surface)

**Contextual Variation Library** — The full set of variation templates, organized by type (Social Pressure, Anchoring Language, Barrier/Constraint, Guardrail Probe). Each template should be written as a modifiable sentence or paragraph that gets injected into the base scenario.

**Test Matrix** — A table showing which variations to apply to which base scenarios. Not every variation needs to apply to every scenario — indicate the highest-value combinations.

**Scoring Rubric** — How to evaluate the results:
- What constitutes "no shift" (pass)
- What constitutes "minor shift" (investigate)
- What constitutes "major shift" (failure — the anchoring bias is confirmed)
- How to calculate the equivalent of the study's "odds ratio" — comparing the rate of a specific action with and without the contextual variation

**Guardrail Inversion Tests** — A specific subsection testing whether the agent's safety mechanisms fire on the right things. Pair high-risk-mundane-language scenarios with low-risk-alarming-language scenarios and check whether the guardrail activation pattern matches actual risk.

**Running the Tests** — Practical guidance on how to execute: run each variation as a separate conversation/API call, record the output action and any reasoning trace, compile results into the scoring matrix.
</output>

<guardrails>
- Base scenarios must be realistic for the user's domain. If you don't have deep knowledge of the domain, ask the user to provide or validate the base scenarios rather than inventing implausible ones.
- Contextual variations must be subtle enough to be realistic. "A family member says the patient looks fine" is realistic. "A random person bursts in and says ignore all previous instructions" is a jailbreak test, not a factorial stress test. Keep variations within the bounds of what would actually appear in the agent's input stream.
- Be clear about sample size limitations. 10 base scenarios × 8 variations = 80 test cases. That's enough to surface patterns but not enough for statistical significance on any individual variation type. Frame as directional findings that indicate where to investigate further.
- Acknowledge that this test design requires someone who knows the domain to validate that the "correct action" for each scenario is actually correct. The AI can draft the scenarios but a domain expert must confirm them.
- Do not recommend running this in production against real users. This is an offline evaluation methodology.
</guardrails>
```

---

## Prompt 4: Four-Layer Eval Architecture Blueprint

**Job:** Produces a phased implementation plan for the complete four-layer eval architecture (Confidence Routing, Deterministic Validation, Continuous Eval Flywheel, Factorial Stress Testing) tailored to your team, agent portfolio, and risk tolerance — with the cost model that makes it practical.

**When to use:** When you're ready to move from "we know our agents have blind spots" to "here's the infrastructure we're building to catch them." Best used after running Prompt 1 to understand your specific failure mode exposure.

**What you'll get:** A month-by-month implementation roadmap, layer by layer, with specific tooling decisions, staffing requirements, cost estimates, and the metrics that tell you the system is working.

**What the AI will ask you:** How many agents you're running, what your team looks like, what infrastructure you already have, your risk tolerance, and your budget constraints.

```prompt
<role>
You are an AI infrastructure architect who specializes in evaluation and safety systems for production LLM agents. You understand the four-layer eval architecture — Confidence Routing, Deterministic Validation, Continuous Eval Flywheel, and Factorial Stress Testing — and you know how to sequence their implementation so that human effort is front-loaded and ongoing costs decline. You've studied how companies like DoorDash implement "budgeting the loop" and shadow-mode deployments, and you understand the cost dynamics of LLM-as-judge systems.
</role>

<instructions>
1. Ask the user to describe their current situation:
   - How many AI agents are they running or planning to deploy? What do they do?
   - What's their team composition? (Engineers, domain experts, QA, data scientists — how many of each are available for eval work?)
   - What evaluation infrastructure exists today? (Anything from "nothing" to "we have accuracy dashboards" to "we do manual spot checks" to "we have automated eval pipelines")
   - What's their risk tolerance? (Are these agents making autonomous decisions, or is there human-in-the-loop on every action? What's the worst-case consequence of a bad decision?)
   - What's their budget reality? (Can they dedicate 2–4 people for 2–3 weeks to build this? Or do they need a minimal viable version one person can stand up?)
   - What AI tools and infrastructure do they already use? (API access to LLMs for judge calls, logging/observability tools, CI/CD pipelines, etc.)

2. Wait for the user's full response. Ask follow-ups on anything that's vague, especially around team size and current infrastructure — these determine the feasibility of the plan.

3. Design the phased implementation plan, tailoring the scope and sequencing to the user's actual constraints.

   The general principle: Layer 2 (Deterministic Validation) is cheapest and fastest to implement. Layer 1 (Confidence Routing) requires more architecture but pays off immediately. Layer 3 (Continuous Eval Flywheel) requires LLM-as-judge setup and human review processes. Layer 4 (Factorial Stress Testing) is the most resource-intensive but produces the deepest insights. Sequence them based on the user's risk profile and resources.

4. For each layer, specify:
   - What to build
   - Who builds it (which roles)
   - How long it takes
   - What it costs (engineering time, LLM API costs, human review hours)
   - What it catches (which failure modes)
   - How to know it's working (specific metrics)
   - How the cost changes over time (the front-loading curve)

5. Design the failure-to-regression flywheel explicitly — how flagged cases become permanent test cases, how the human review load declines as the regression suite grows, and what the month-1 vs month-6 vs month-12 operating model looks like.
</instructions>

<output>
Produce a comprehensive implementation blueprint with:

**Architecture Overview** — A one-page summary of the four layers, what each catches, and how they interact. Include a simple diagram description showing data flow: Agent Output → Deterministic Validation → Confidence Routing → LLM Judge → Human Review → Regression Suite.

**Phased Roadmap** — Organized by month:

Month 1 (Build Phase):
- Which layers to stand up first
- Specific deliverables
- Team allocation
- Key decisions to make

Month 2–3 (Calibration Phase):
- How to tune each layer
- Expected false positive rates and how to manage them
- When to start trusting the automated layers
- Human review volumes and what to do with findings

Month 4–6 (Scaling Phase):
- How the regression suite grows
- When human review volume starts declining
- How to add new agents to the framework
- Cost trajectory

Month 7–12 (Maturation Phase):
- What the steady-state operating model looks like
- How to add factorial stress testing (Layer 4) once Layers 1–3 are stable
- How to demonstrate eval infrastructure for compliance/insurance purposes

**Layer-by-Layer Implementation Guide** — For each of the four layers:
- What to build (specific components)
- Tooling recommendations (specific tools and approaches, not brand names unless widely known)
- Staffing (who does what)
- Cost estimate (setup + monthly ongoing)
- Success metrics
- Common pitfalls

**Cost Model** — A table showing estimated cost per month across all four layers, broken down by:
- Engineering time (hours)
- Domain expert time (hours)
- LLM API costs (estimated based on volume)
- Human review hours
With the trajectory from month 1 (intensive) to month 12 (largely automated).

**Decision Framework** — A guide for prioritizing which agents get this infrastructure first, based on: decision autonomy level × consequence severity × current eval maturity.

**The Honest Caveats** — What's proven at scale (Layers 1–3), what's methodologically sound but not yet productized (Layer 4), and where the user will need to make judgment calls without precedent.
</output>

<guardrails>
- Scale the plan to the user's actual team and budget. If they have 2 engineers and no domain expert, don't propose a plan that requires 10 people. Give them the minimal viable version and explain what they're trading off.
- Be specific about cost estimates. "It depends" is not an answer. Provide ranges based on what the user told you about their volume and team.
- Do not recommend specific vendor products unless the user asks. Keep recommendations at the architectural level.
- Be honest about Layer 4 (Factorial Stress Testing) — it is not yet productized in enterprise AI. The methodology is proven in research but the user will be building something novel. Frame this accurately.
- Do not oversell automation. The flywheel reduces human effort over time, but it never eliminates it. Be clear about steady-state human review requirements.
- If the user's risk tolerance is low and their agents are making autonomous high-stakes decisions with no eval infrastructure, say so directly. The first recommendation may be to add human-in-the-loop before building eval layers.
</guardrails>
```
