This prompt is for autonomous or semi-autonomous agents that reach a decision point and must choose between proceeding, escalating to a human, or gathering more evidence. It applies configurable evidence sufficiency thresholds to each decision, producing a structured decision with rationale and specific evidence gaps when the threshold is not met. Use this prompt inside an agent's planning or execution loop whenever an action has a pre-defined evidence bar that must be cleared before the agent is allowed to commit. This is not a general-purpose decision prompt; it is specifically designed for workflows where the cost of a wrong decision is high, the evidence is incomplete, and the decision logic must be auditable.
Prompt
Evidence Threshold Decision Prompt Template

When to Use This Prompt
Learn when to deploy the evidence threshold decision prompt inside an agent loop and when simpler alternatives are safer.
The ideal user is an engineering lead or AI builder wiring decision logic into a production agent. Required context includes the decision to be made, the available evidence items with source metadata, the configured sufficiency threshold for this decision class, and the available actions (proceed, escalate, gather evidence). Without this structured context, the prompt degrades into an unbounded reasoning task that produces inconsistent, un-auditable outputs. The prompt expects evidence items to carry fields like source, recency, relevance_score, and content. If your evidence pipeline cannot produce these fields, implement the Evidence Sufficiency Evaluation Prompt Template first to normalize raw observations into structured evidence before reaching this decision point.
Do not use this prompt for low-stakes decisions where a wrong choice is cheap to reverse. Do not use it when the agent has only one available action, when the evidence is always complete, or when the decision can be reduced to a simple threshold on a single numeric score. In those cases, a deterministic rule in application code is cheaper, faster, and easier to test. This prompt earns its cost only when the decision involves multiple evidence dimensions, trade-offs between speed and certainty, and an audit trail requirement. If you find yourself calling this prompt for every micro-decision in a loop, reconsider whether the loop itself should be restructured to batch decisions or defer to a higher-level planner.
Use Case Fit
Where the Evidence Threshold Decision Prompt works, where it fails, and what you must provide before wiring it into an agent runtime.
Good Fit: Gated Autonomous Decisions
Use when: An agent must decide whether to proceed, escalate, or collect more evidence before taking an action that has a cost, side effect, or irreversibility. Why it works: The prompt enforces explicit evidence sufficiency thresholds per decision point, preventing confident-but-wrong execution on incomplete information.
Bad Fit: Real-Time Streaming Decisions
Avoid when: The agent must make sub-second decisions in a streaming pipeline with no time for structured deliberation. Why it fails: The threshold evaluation and gap analysis steps add latency. For real-time flows, use a pre-computed policy or a lightweight classifier instead.
Required Inputs: Threshold Configuration
What you must provide: A decision point definition, the available evidence set, and a configured evidence sufficiency threshold per decision type. Guardrail: Without explicit thresholds, the model defaults to inconsistent internal standards. Store thresholds in application config, not in the prompt body, so they can be tuned without prompt rewrites.
Required Inputs: Override Logging Surface
What you must provide: A structured logging destination for every decision where the agent overrides or bypasses the threshold. Guardrail: Override events are the highest-signal data for tuning thresholds and detecting drift. If you cannot log them, you cannot improve the system.
Operational Risk: Threshold Drift
What to watch: Evidence sufficiency thresholds that were calibrated during development may become too permissive or too strict as the operating environment changes. Guardrail: Run periodic threshold calibration evals against recent production decisions. Flag decision types where the override rate or escalation rate has shifted by more than 20%.
Operational Risk: Evidence Staleness
What to watch: Evidence collected earlier in a workflow may be stale by the time the decision point is reached. Guardrail: Attach a freshness timestamp to each evidence item and include a staleness check in the prompt harness. Evidence older than the configured TTL should be downgraded or re-verified before threshold evaluation.
Copy-Ready Prompt Template
Paste this template into your agent's system prompt or decision-step context to enforce configurable evidence sufficiency thresholds before committing to a decision.
This prompt template is the core decision engine for an agent that must decide whether to proceed, escalate, or gather more evidence. It forces the model to apply explicit evidence thresholds to each decision point, producing a structured decision with a clear rationale and a specific list of evidence gaps when the threshold is not met. Use this template when your agent operates in a domain where acting on insufficient evidence carries material cost, such as approving a financial transaction, executing an irreversible infrastructure change, or making a clinical recommendation.
textYou are an evidence-driven decision agent. Your task is to evaluate a proposed action against a configurable evidence sufficiency threshold and produce a structured decision. ## INPUT [ACTION_DESCRIPTION] [AVAILABLE_EVIDENCE] [CONTEXT] ## THRESHOLD CONFIGURATION - Required Evidence Categories: [REQUIRED_EVIDENCE_CATEGORIES] - Minimum Source Count per Category: [MIN_SOURCE_COUNT] - Minimum Source Reliability Score (0.0-1.0): [MIN_RELIABILITY_SCORE] - Contradiction Policy: [CONTRADICTION_POLICY] (options: "block", "flag_for_review", "ignore") - Missing Evidence Policy: [MISSING_EVIDENCE_POLICY] (options: "block", "escalate", "proceed_with_warning") ## OUTPUT SCHEMA Return a single JSON object with the following structure: { "decision": "proceed" | "escalate" | "gather_evidence", "confidence_score": 0.0-1.0, "rationale": "string explaining how the evidence was weighed against the threshold", "evidence_gaps": [ { "category": "string", "description": "string describing what specific evidence is missing", "criticality": "blocking" | "warning", "suggested_collection_method": "string" } ], "contradictions_found": [ { "sources": ["source_a", "source_b"], "description": "string describing the contradiction", "resolution_suggestion": "string" } ], "override_log": null | { "reason": "string", "authorized_by": "string", "timestamp": "ISO8601" } } ## CONSTRAINTS - Do not invent evidence. If a required category has no evidence, list it as a gap. - If the contradiction policy is "block" and contradictions exist, the decision must be "escalate" or "gather_evidence". - If the missing evidence policy is "block" and critical gaps exist, the decision must not be "proceed". - Confidence score must reflect evidence completeness, source reliability, and contradiction severity. - If an override is present, log it explicitly and still report the evidence-based assessment. ## EXAMPLES [FEW_SHOT_EXAMPLES] ## RISK LEVEL [RISK_LEVEL] (options: "low", "medium", "high", "critical")
To adapt this template, replace each square-bracket placeholder with your specific inputs. The threshold configuration block is the most critical section to customize: define your required evidence categories based on your domain's risk taxonomy, set minimum source counts and reliability scores that match your operational tolerance, and choose contradiction and missing-evidence policies that align with your escalation paths. The few-shot examples should include at least one case where the threshold is met, one where it is not met due to missing evidence, and one where a contradiction triggers escalation. Wire the output JSON into a downstream validator that checks for schema compliance and policy adherence before the decision is acted upon. For high-risk or critical risk levels, always route the decision through a human review queue before execution, regardless of the model's confidence score.
Prompt Variables
Placeholders required by the Evidence Threshold Decision prompt. Replace each placeholder with concrete values before sending the prompt. Validation notes describe how to check that the replacement is well-formed and safe.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[DECISION_QUESTION] | The binary or categorical decision the agent must make | Should we deploy build v2.4.1 to production? | Must be a single, unambiguous question. Parse check: contains exactly one interrogative sentence. |
[AVAILABLE_EVIDENCE] | Structured list of evidence items with source, timestamp, and content | [{source: 'CI pipeline', timestamp: '2025-01-15T14:00:00Z', content: 'All 847 tests passed'}] | Must be valid JSON array. Each item requires source, timestamp, and content fields. Null allowed if no evidence exists. |
[EVIDENCE_THRESHOLDS] | Configurable sufficiency criteria per evidence category or decision type | {deployment: {required_sources: ['CI', 'staging_e2e', 'security_scan'], min_confidence: 0.9}} | Must be valid JSON object. Each threshold must define required_sources or min_confidence. Schema check: no undefined threshold categories. |
[DECISION_OPTIONS] | Enumeration of allowed decisions the agent can output | ['PROCEED', 'ESCALATE', 'GATHER_EVIDENCE'] | Must be a non-empty array of unique strings. Parse check: no duplicate values. At minimum must include ESCALATE and GATHER_EVIDENCE. |
[IRREVERSIBLE_ACTION] | Boolean flag indicating whether the decision triggers a non-rollbackable operation | Must be true or false. If true, the prompt must require higher confidence and explicit consequence disclosure. Approval required if true. | |
[OVERRIDE_LOG_SCHEMA] | Schema for recording when a human overrides the evidence threshold decision | {overrider_id: string, reason: string, timestamp: string, original_decision: string} | Must be valid JSON schema definition. All fields required. Timestamp must be ISO 8601. Override log must be persisted before action execution. |
[CONFIDENCE_CALIBRATION] | Optional calibration data mapping predicted confidence to actual outcome rates | [{predicted: 0.9, actual_success_rate: 0.87, sample_size: 120}] | Must be valid JSON array or null. If provided, each entry requires predicted, actual_success_rate, and sample_size. Used to adjust threshold strictness. |
Implementation Harness Notes
How to wire the Evidence Threshold Decision prompt into an agent's decision loop with validation, logging, and safe overrides.
The Evidence Threshold Decision prompt is designed to be called at specific decision gates within an agent's execution loop, not as a standalone chat interaction. It should be invoked whenever the agent reaches a point where the next action is irreversible, costly, or depends on uncertain information. The prompt expects a structured input containing the proposed action, available evidence items with their confidence scores, and a configured threshold policy. The output is a machine-readable decision object that your application code can parse and act on without additional model interpretation.
To integrate this prompt into an application harness, wrap it in a function that accepts three required inputs: action_description, evidence_items (an array of objects with source, content, confidence, and freshness_timestamp fields), and threshold_policy (a configuration object specifying minimum_confidence, required_evidence_count, and irreversibility_level). The function should construct the prompt by injecting these values into the template's [ACTION], [EVIDENCE_LIST], and [THRESHOLD_CONFIG] placeholders. After receiving the model response, parse the JSON output and validate it against a strict schema that requires decision (enum: PROCEED, ESCALATE, GATHER_MORE), rationale (string), confidence_score (float 0-1), and evidence_gaps (array of strings). If parsing fails, retry once with the validation error injected into the [PREVIOUS_ERROR] placeholder. If the retry also fails, default to ESCALATE and log the raw response for debugging.
For production deployments, implement a decision override registry that logs every instance where the application code overrides the model's decision. Common override scenarios include: operator-in-the-loop approvals for high-irreversibility actions, time-bound auto-escalation when the agent has been gathering evidence beyond a configured timeout, and safety-policy blocks for actions on an explicit deny list. Each override should be logged with the original model decision, the override reason, the operator identity (if human), and a timestamp. This audit trail is essential for tuning threshold policies and defending the system's behavior during reviews. Additionally, wire the evidence_gaps output into your agent's evidence collection module so that GATHER_MORE decisions automatically trigger targeted retrieval or clarification requests rather than generic re-prompting.
Model choice matters for this prompt. Use a model with strong instruction-following and structured output capabilities, such as GPT-4o, Claude 3.5 Sonnet, or Gemini 1.5 Pro. Avoid smaller or older models that may conflate confidence language or hallucinate evidence items not present in the input. Set temperature to 0 or a very low value (0.1 maximum) to reduce variance in threshold judgments. If your application requires explainability for compliance, store the full prompt and response pair alongside the parsed decision. For high-throughput systems, consider caching decisions for identical (action, evidence, threshold) tuples with a short TTL, but invalidate the cache immediately if any evidence item's freshness timestamp exceeds the policy's maximum age. The most common production failure mode is the model returning PROCEED when evidence is superficially relevant but factually insufficient—mitigate this by including a counter-example in the prompt's [EXAMPLES] section showing a correct GATHER_MORE decision when evidence quantity is high but relevance is low.
Expected Output Contract
Fields, types, and validation rules for the evidence threshold decision response. Use this contract to parse, validate, and route the model output before acting on the decision.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
decision | enum: PROCEED | ESCALATE | GATHER_EVIDENCE | Must be exactly one of the three enum values. Reject any other string. | |
decision_rationale | string | Must be non-empty and reference at least one specific evidence item or gap from the input context. Length between 20 and 500 characters. | |
confidence_score | number (0.0 - 1.0) | Must be a float between 0.0 and 1.0 inclusive. If decision is ESCALATE, confidence must be below the configured [ESCALATION_THRESHOLD]. | |
evidence_sufficiency | object | Must contain at least one key matching an evidence category from [EVIDENCE_CATEGORIES]. Each value must be a boolean. | |
evidence_gaps | array of strings | Required when decision is GATHER_EVIDENCE or ESCALATE. Each string must describe a specific, actionable information need. Array must not be empty when present. | |
overridden_thresholds | array of objects | Each object must have fields: threshold_name (string), original_value (number), override_value (number), override_reason (string). Present only when a configured threshold was manually adjusted. | |
next_actions | array of objects | Each object must have fields: action (string), owner (enum: AGENT | HUMAN | SYSTEM), and deadline (ISO 8601 string or null). Array length between 1 and 5. | |
escalation_context | object | Required when decision is ESCALATE. Must contain: severity (enum: LOW | MEDIUM | HIGH | CRITICAL), summary (string max 300 chars), and blocked_by (array of strings). |
Common Failure Modes
What breaks first when agents use evidence thresholds to decide whether to proceed, escalate, or gather more evidence—and how to guard against each failure.
Threshold Too Low: Proceeding Without Enough Evidence
What to watch: The agent treats weak or incomplete evidence as sufficient and proceeds with irreversible actions. This happens when thresholds are set too permissively or when evidence quantity is mistaken for evidence quality. Guardrail: Require explicit evidence-source mapping per claim. Set minimum source count and reliability floor per decision type. Log every threshold-override event with the specific evidence that triggered it.
Threshold Too High: Never Reaching a Decision
What to watch: The agent loops indefinitely gathering more evidence because the threshold is unreachable in practice. This causes timeout, cost overrun, or user abandonment. Common when evidence requirements are absolute rather than satisficing. Guardrail: Set a maximum evidence-gathering step count. Define a time-bound or step-bound fallback that escalates to a human with the best evidence collected so far. Log every loop iteration for tuning.
Evidence Staleness: Acting on Outdated Information
What to watch: Previously validated evidence ages out but the agent does not recheck it before making a downstream decision. This is especially dangerous in fast-changing environments where data freshness decays in minutes or hours. Guardrail: Attach a freshness TTL to every evidence item at collection time. Before any threshold check, revalidate evidence older than its TTL. Flag stale evidence in the decision rationale.
Circular Evidence: Using Outputs to Validate Inputs
What to watch: The agent treats its own prior conclusions or generated content as independent evidence for a new threshold decision. This creates self-reinforcing confidence that masks real uncertainty. Guardrail: Tag evidence with its provenance—human-provided, tool-retrieved, or agent-generated. Exclude agent-generated claims from counting toward evidence sufficiency thresholds unless independently corroborated.
Silent Override: Threshold Bypassed Without Audit Trail
What to watch: The agent proceeds despite not meeting the evidence threshold but does not log the override, making post-hoc review impossible. This hides systematic threshold failures from operators. Guardrail: Require structured override logging with the decision ID, threshold that was not met, reason for override, and human or rule that authorized it. Make override events surfaced in monitoring dashboards, not buried in debug logs.
Threshold Configuration Drift: Rules Don't Match Reality
What to watch: Evidence thresholds are configured once and never revisited, while the operating environment, tool reliability, and risk tolerance change. The agent becomes either too cautious or too reckless without anyone noticing. Guardrail: Version thresholds alongside prompt templates. Schedule periodic threshold review against actual decision outcomes. Track false-positive and false-negative rates per threshold and trigger review when rates shift beyond tolerance.
Evaluation Rubric
Use this rubric to evaluate whether the Evidence Threshold Decision Prompt produces safe, actionable outputs before deploying it to production. Each criterion targets a specific failure mode common to threshold-based decision prompts.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Decision Classification Accuracy | Output correctly classifies the decision as PROCEED, ESCALATE, or GATHER_EVIDENCE based on the configured [EVIDENCE_THRESHOLD] and provided [EVIDENCE_INVENTORY] | Decision class does not match threshold rules; PROCEED when critical evidence is missing; ESCALATE when evidence is sufficient | Run 20 labeled test cases with known evidence sufficiency states and verify classification matches ground truth at 95%+ accuracy |
Evidence Gap Specificity | When decision is GATHER_EVIDENCE, output includes at least one specific, actionable evidence gap with a concrete information request | Gap descriptions are vague (e.g., 'need more info'); no specific source or question identified; gap count is zero when evidence is clearly insufficient | Parse output for evidence_gaps array; verify each gap has a non-empty description, target_source, and specific_question field |
Threshold Boundary Behavior | Output correctly handles evidence scores at exact threshold boundaries (e.g., score equals [EVIDENCE_THRESHOLD]) according to configured boundary rule | Inconsistent treatment of boundary cases; threshold equals score produces different decisions across identical inputs | Test 10 cases where aggregate evidence score equals the configured threshold exactly; verify consistent decision per boundary rule specification |
Override Logging Completeness | When [OVERRIDE_MODE] is enabled and a human override occurs, output includes override rationale, authority, and timestamp in the override_log field | Override applied but override_log is null or missing required fields; override rationale is empty or generic | Submit 5 cases with override instructions; validate override_log exists, contains non-null rationale, authority, and timestamp fields |
Confidence Score Calibration | Output confidence score correlates with actual evidence completeness; high confidence only when all required evidence categories are satisfied | Confidence score is 0.9+ when critical evidence is missing; confidence score is below 0.5 when all evidence is present and verified | Run 30 test cases with known evidence completeness; measure correlation between confidence scores and actual sufficiency; acceptable range is Spearman rho > 0.7 |
Irreversible Action Detection | Output correctly flags when the pending action is irreversible and requires elevated evidence threshold per [IRREVERSIBLE_ACTION_POLICY] | Irreversible action classified as routine; no elevated threshold applied; rollback_impossible field is false when action is destructive | Test 10 irreversible action scenarios; verify irreversible flag is true, threshold is elevated per policy, and rollback_impossible is true |
Rationale Traceability | Decision rationale references specific evidence items by ID from [EVIDENCE_INVENTORY] and explains how they support or fail to support the decision | Rationale is generic with no evidence ID references; rationale contradicts the evidence scores provided; rationale is empty or repeats the decision class verbatim | Parse rationale field; verify at least one evidence ID reference per decision; check that referenced evidence items exist in the input inventory |
Schema Compliance Under Edge Cases | Output is valid JSON matching [OUTPUT_SCHEMA] even when inputs are malformed, contradictory, or partially missing | Output is not parseable JSON; required fields are missing; field types are wrong (e.g., string instead of array); schema violation on null inputs | Fuzz test with 15 edge-case inputs including null evidence, contradictory scores, missing fields; validate output against schema programmatically; 100% parse rate required |
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 hardcoded threshold and no external evidence store. Replace [EVIDENCE_SOURCES] with a static list of 2-3 document references. Set [THRESHOLD_CONFIG] to a simple numeric value like 0.7 and skip the per-decision-type override map. Run the prompt in a notebook or chat interface without schema validation.
Watch for
- Thresholds that feel right but aren't calibrated against actual outcomes
- No logging of override decisions, making it impossible to tune later
- The model treating confidence as binary when evidence is mixed
- Missing evidence gaps because the prompt doesn't enforce gap enumeration

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