This prompt is designed for platform and compliance engineers embedding an automated regulatory gate directly into an agent's tool-execution pipeline. The job-to-be-done is to prevent an agent from invoking a high-risk tool until a structured, jurisdiction-aware pre-flight checklist is generated and reviewed. The ideal user is an AI platform architect or a compliance officer who needs to map abstract regulatory rules (like HIPAA, GDPR, or PCI-DSS) onto concrete, machine-readable checks for a specific action, such as exporting patient data or executing a financial transaction. The required context includes the full tool invocation payload, the user's jurisdiction, the data categories involved, and the applicable control framework identifiers.
Prompt
Regulated Action Pre-Flight Check Prompt

When to Use This Prompt
Defines the specific job, user, and operational constraints for the Regulated Action Pre-Flight Check Prompt.
Do not use this prompt for low-risk, read-only operations or for actions in unregulated environments where a full compliance checklist would add unacceptable latency. It is also not a replacement for a legal review of your compliance posture; it is a pre-execution gate that codifies rules your legal and compliance teams have already defined. The prompt's value is in enforcing consistency and preventing an agent from skipping a mandatory check, not in interpreting novel regulations. For actions that are irreversible but not strictly regulated, use the 'High-Risk Action Approval Prompt Template' instead. This prompt assumes that the agent's tool definitions already include structured fields for data sensitivity, resource identifiers, and action types.
To implement this, you must provide the prompt with a mapping of jurisdiction-to-rule sets, either as a static [REGULATORY_RULES] block or by retrieving it from a trusted internal policy engine via RAG. The output is a structured checklist, not a simple yes/no, which forces a human reviewer to acknowledge each constraint before the agent proceeds. The next step after generating this checklist is to feed it into a human-in-the-loop approval queue, such as the one defined in the 'Compliance Gate Review Prompt for Tool Actions' playbook. Avoid the failure mode of using this prompt without a corresponding enforcement mechanism; a generated checklist that is not reviewed and enforced is just a log line, not a control.
Use Case Fit
Where the Regulated Action Pre-Flight Check Prompt works and where it introduces risk or overhead.
Good Fit: Jurisdiction-Specific Compliance
Use when: your agent operates in healthcare, finance, or energy where rules vary by region. Guardrail: map each tool action to a specific regulatory control before execution.
Good Fit: Multi-Stage Approval Pipelines
Use when: actions require sequential human sign-offs. Guardrail: the prompt must output a state machine with role-based routing and timeout escalation paths.
Bad Fit: Real-Time, Low-Latency Systems
Avoid when: the agent must act in milliseconds. Guardrail: pre-flight checks add latency; use asynchronous approval queues or pre-cached rule evaluations instead.
Bad Fit: Unsupervised Autonomous Agents
Avoid when: no human is available to review the checklist output. Guardrail: the prompt is a gate, not a policy enforcer; if no reviewer exists, the action must be blocked by application logic.
Required Input: Tool Action Context
What to watch: the prompt needs the full tool payload, affected resources, and actor identity. Guardrail: validate that all required fields are present before invoking the check; incomplete context produces false negatives.
Operational Risk: Rule Drift
What to watch: regulatory rules change and the prompt's embedded controls become stale. Guardrail: version the rule set separately from the prompt template and run periodic compliance audits against current regulations.
Copy-Ready Prompt Template
A reusable prompt that performs a regulatory pre-flight check before an agent invokes a high-risk tool, producing a structured compliance assessment and go/no-go recommendation.
The following prompt template is designed to be inserted into an agent's tool-execution pipeline immediately before a regulated action is performed. It forces the model to act as a compliance gate, evaluating the proposed action against a set of jurisdiction-specific rules, data handling requirements, and mandatory waiting periods. The prompt does not execute the action; it produces a structured assessment that your application harness can parse to decide whether to proceed, escalate for human review, or block the action entirely.
textYou are a regulatory compliance pre-flight checker for an AI agent operating in a [INDUSTRY] environment under [JURISDICTION] regulations. Your only job is to evaluate a proposed tool action and produce a structured compliance assessment. You do not execute the action. You do not approve actions that violate rules. ## INPUT Proposed Action: [ACTION_DESCRIPTION] Tool to Invoke: [TOOL_NAME] Tool Arguments: [TOOL_ARGUMENTS] Affected Resources: [AFFECTED_RESOURCES] Data Categories Involved: [DATA_CATEGORIES] Requesting Actor: [ACTOR_IDENTITY] Current Time: [TIMESTAMP] ## REGULATORY CONTEXT Applicable Frameworks: [REGULATORY_FRAMEWORKS] Jurisdiction-Specific Rules: [JURISDICTION_RULES] Organizational Policies: [ORGANIZATIONAL_POLICIES] Mandatory Waiting Periods: [WAITING_PERIODS] Required Approvals by Action Type: [APPROVAL_MATRIX] Data Handling Requirements: [DATA_HANDLING_RULES] ## CONSTRAINTS - If the action involves [RESTRICTED_DATA_TYPES], flag it immediately and recommend human review. - If the action exceeds [COST_THRESHOLD], require cost approval. - If the action affects [BLAST_RADIUS_SCOPE], require peer review. - If any mandatory waiting period has not elapsed, recommend DELAY. - If any required approval is missing, recommend ESCALATE. - If the action violates any regulatory rule, recommend BLOCK. - If all checks pass, recommend PROCEED. ## OUTPUT SCHEMA Return a single JSON object with this exact structure: { "assessment_id": "string, unique identifier for this assessment", "timestamp": "string, ISO 8601 timestamp of assessment", "recommendation": "PROCEED | DELAY | ESCALATE | BLOCK", "risk_level": "LOW | MEDIUM | HIGH | CRITICAL", "checks_performed": [ { "check_name": "string, name of the regulatory or policy check", "status": "PASS | FAIL | WARNING | NOT_APPLICABLE", "detail": "string, specific finding or reason for status", "evidence": "string, reference to the rule, policy, or condition evaluated" } ], "required_approvals": [ { "approval_type": "string, e.g., 'manager_signoff', 'compliance_review', 'peer_review'", "status": "OBTAINED | PENDING | EXPIRED | NOT_REQUIRED", "approver_role": "string, who must approve", "deadline": "string or null, ISO 8601 timestamp if time-sensitive" } ], "waiting_periods": [ { "period_name": "string, e.g., 'cooling_off', 'notice_period'", "required_duration_hours": "number", "elapsed_hours": "number", "satisfied": "boolean" } ], "data_handling_concerns": [ "string, specific data handling issue identified" ], "blocking_violations": [ "string, specific rule or policy that would be violated" ], "human_review_required": "boolean", "human_review_reason": "string or null, explanation if review is required", "next_steps": [ "string, actionable step for the calling system or operator" ] } ## EXAMPLES Example 1 - Routine Action: Input: Read-only query of anonymized patient counts for a quarterly report. Output: {"recommendation": "PROCEED", "risk_level": "LOW", "checks_performed": [{"check_name": "data_minimization", "status": "PASS", "detail": "No PHI accessed", "evidence": "HIPAA minimum necessary standard"}], ...} Example 2 - Regulated Action Missing Approval: Input: Export of full patient records to a third-party research partner without a signed DUA. Output: {"recommendation": "BLOCK", "risk_level": "CRITICAL", "blocking_violations": ["Missing Data Use Agreement per HIPAA 45 CFR 164.508"], "human_review_required": true, ...} ## INSTRUCTIONS 1. Parse the proposed action and identify all applicable regulatory frameworks and organizational policies. 2. For each rule in the regulatory context, determine if it applies to this action. 3. Check all mandatory waiting periods against the current timestamp. 4. Verify all required approvals are present and valid. 5. Assess data handling against data categories and handling rules. 6. If any blocking violation is found, set recommendation to BLOCK and populate blocking_violations. 7. If all checks pass but risk is elevated, set recommendation to ESCALATE and require human review. 8. If waiting periods are unsatisfied, set recommendation to DELAY. 9. Populate the output schema completely. Never omit fields. 10. Do not execute the tool. Only produce the assessment.
To adapt this template for your environment, replace each square-bracket placeholder with concrete values from your application context. The [REGULATORY_FRAMEWORKS] and [JURISDICTION_RULES] placeholders should be populated from a maintained rules database, not hardcoded into the prompt. The [APPROVAL_MATRIX] should map action types to required approver roles. For production use, store the regulatory context in a retrieval system and inject only the rules relevant to the current action to keep the prompt within context limits. The output schema is designed to be machine-parseable; your harness should validate the JSON against the schema before acting on the recommendation.
After copying this template, wire it into your agent's pre-execution hook so that no regulated tool is invoked without a parsed assessment. If the recommendation is ESCALATE or BLOCK, route the full assessment to a human review queue and log the decision for audit. Never allow the agent to interpret or override the assessment recommendation in the same turn.
Prompt Variables
Required inputs for the Regulated Action Pre-Flight Check Prompt. Each placeholder must be populated before the prompt is assembled and sent to the model. Missing or malformed inputs will cause the check to fail closed.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[ACTION_DESCRIPTION] | The proposed tool call or sequence of tool calls the agent intends to execute | DELETE FROM user_accounts WHERE last_login < '2023-01-01' | Must be a non-empty string. Reject if null or whitespace only. Parse check: contains a verb and a target resource. |
[AFFECTED_RESOURCES] | List of systems, databases, tables, endpoints, or data categories the action will touch | ["production-db:user_accounts", "audit-log:user_deletion"] | Must be a valid JSON array of strings. Each string must match the format 'system:resource'. Schema check: array length >= 1. |
[JURISDICTION] | ISO 3166-1 alpha-2 country code or region code determining which regulatory rules apply | DE | Must be a valid 2-letter code from a controlled list. Null allowed only if no jurisdiction-specific rules are configured. Parse check: matches /^[A-Z]{2}$/. |
[DATA_CLASSIFICATION] | Highest sensitivity level of data involved in the action | PII | Must be one of the enumerated values: PUBLIC, INTERNAL, CONFIDENTIAL, PII, PHI, PCI, REGULATED. Schema check: exact match required. No free text. |
[REQUESTING_AGENT_ID] | Unique identifier of the agent or service account requesting the action | agent-prod-reconciler-v3 | Must be a non-empty string matching the pattern /^[a-z0-9-]+$/. Validation: check against a live agent registry or allowlist. Reject unknown agents. |
[PROPOSED_TIMESTAMP] | ISO 8601 timestamp when the agent intends to execute the action | 2025-03-15T10:30:00Z | Must be a valid ISO 8601 string in UTC. Parse check: Date.parse() does not return NaN. Null allowed if the action is immediate. If provided, must be in the future. |
[CONTEXT_EVIDENCE] | Supporting evidence, justification, or triggering event that led to this action request | Scheduled quarterly data retention purge per policy DRP-2024-03 | Must be a non-empty string. Validation: check for minimum length of 20 characters. If the action is high-risk, a human-readable justification is required. Approval required if missing. |
Implementation Harness Notes
How to wire the Regulated Action Pre-Flight Check Prompt into an agent's tool-calling pipeline with validation, logging, and human review gates.
This prompt is not a standalone chatbot interaction. It is a pre-execution gate that must sit between the agent's tool selection layer and the actual tool invocation. The agent calls a pre_flight_check function (or MCP tool) that wraps this prompt, passing the proposed action, tool name, arguments, and relevant context. The prompt returns a structured compliance assessment, and your harness must enforce a hard block: if assessment.overall_result is BLOCKED or REQUIRES_HUMAN_REVIEW, the tool call must not proceed. Implement this as a middleware or interceptor in your agent framework—not as a suggestion the agent can ignore.
Integration pattern: Wrap the prompt in a check_regulatory_compliance function with this signature: (action: str, tool_name: str, arguments: dict, jurisdiction: str, data_categories: list[str]) -> ComplianceAssessment. The function constructs the prompt, calls the model with temperature=0 and response_format set to the ComplianceAssessment JSON schema, validates the output against that schema, and returns the parsed result. If validation fails, retry once with the validation error injected into the prompt as [PREVIOUS_OUTPUT_ERROR]. If the retry also fails, escalate to a human operator with the raw output and error details. Never default to approval on parse failure.
Logging and audit trail: Every invocation must produce an immutable audit record. Log the full prompt (with arguments), the model's raw response, the parsed ComplianceAssessment, the harness decision (proceed/block/escalate), and the human reviewer's identity and timestamp if review was required. Use structured logging with a correlation ID that ties the pre-flight check to the eventual tool execution or rejection. This record is your evidence for auditors that the regulatory gate operated correctly. Store logs in a write-once, append-only system. Model choice: Use a model with strong instruction-following and structured output reliability (GPT-4o, Claude 3.5 Sonnet, or equivalent). Do not use a small or quantized model for this gate—schema compliance and rule interpretation are too critical. If latency is a concern, run the check asynchronously before the tool call reaches the head of the execution queue.
Human review integration: When overall_result is REQUIRES_HUMAN_REVIEW, your harness must route the ComplianceAssessment to the appropriate review queue based on escalation.escalation_path. The reviewer sees a structured form pre-filled with the action details, flagged rules, and the model's reasoning. They can approve, reject, or modify the action. Capture their decision, rationale, and identity, and feed it back into the audit log. If the review SLA expires (configure a timeout per jurisdiction), treat the timeout as a rejection—never auto-approve on timeout. For BLOCKED results, log the block reason and notify the requesting system; do not offer a human override unless your compliance framework explicitly permits break-glass procedures with separate audit controls.
Expected Output Contract
Defines the required fields, types, and validation rules for the structured output produced by the Regulated Action Pre-Flight Check Prompt. Use this contract to build a parser and validator in your application harness before the agent proceeds.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
action_id | string (UUID v4) | Must parse as a valid UUID v4. Reject if null or malformed. | |
action_description | string | Must be non-empty and contain a verb and a target resource. Minimum 20 characters. | |
jurisdiction | string (ISO 3166-1 alpha-2) | Must match a valid 2-letter country code from an approved allowlist. Reject if code is not in [ALLOWED_JURISDICTIONS]. | |
applicable_regulations | array of strings | Each string must match a regulation ID from [REGULATORY_FRAMEWORK_MAP]. Array must not be empty. | |
required_approvals | array of objects | Each object must contain 'role' (string) and 'rationale' (string). Array must not be empty. Reject if any rationale is fewer than 10 characters. | |
data_handling_requirements | object | Must contain 'data_categories' (array of strings from [DATA_CLASSIFICATION_TAXONOMY]), 'retention_policy' (string), and 'cross_border_transfer' (boolean). Reject if 'data_categories' is empty. | |
mandatory_waiting_period_hours | integer | If present, must be a non-negative integer. If null, the system should default to 0. Reject if negative. | |
risk_classification | string (enum) | Must be one of: 'LOW', 'MEDIUM', 'HIGH', 'CRITICAL'. Reject on case-insensitive mismatch or missing value. |
Common Failure Modes
Regulated action pre-flight checks fail in predictable ways. These are the most common failure modes when agents assess regulatory constraints before tool invocation, along with concrete mitigations.
Jurisdiction Mismatch
What to watch: The agent applies the wrong jurisdiction's rules (e.g., GDPR instead of CCPA) because the user's location, data residency, or entity registration is ambiguous or missing from context. Guardrail: Require explicit jurisdiction fields in the pre-flight input schema. Validate against a known jurisdiction-to-regulation mapping before the agent evaluates constraints. If jurisdiction is uncertain, escalate to human review rather than guessing.
Incomplete Rule Enumeration
What to watch: The agent identifies some applicable regulations but misses others that also apply to the same action, data type, or entity. This is common when regulations overlap (e.g., HIPAA plus state privacy laws). Guardrail: Maintain a structured registry of applicable regulations keyed by data category, action type, and jurisdiction. Require the pre-flight prompt to cross-reference all matching entries, not just the first hit. Add an eval that checks for known regulation gaps.
False-Positive Approval When Evidence Is Missing
What to watch: The agent approves an action because it didn't find a prohibition, but it also didn't confirm that required preconditions (consent, waiting period, data handling agreement) are satisfied. Absence of evidence is treated as evidence of absence. Guardrail: Separate the checklist into 'prohibitions to check' and 'affirmative requirements to confirm.' Require explicit evidence for each affirmative requirement. If evidence is missing, default to escalation, not approval.
Over-Refusal on Ambiguous Inputs
What to watch: The agent blocks legitimate actions because it cannot resolve ambiguity in the request, creating operational friction and encouraging users to bypass the check. Guardrail: Define a structured clarification path. When ambiguity is detected, the agent should produce a specific question list rather than a blanket refusal. Set a maximum clarification round limit before escalating to a human operator.
Stale Regulatory Knowledge
What to watch: The agent applies outdated rules because its knowledge cutoff predates a regulatory change, or because jurisdiction-specific updates aren't reflected in the prompt's rule mappings. Guardrail: Externalize regulatory rules to a retrievable, versioned knowledge store rather than embedding them statically in the prompt. Include a 'rules last updated' timestamp in the pre-flight output. Add an eval that flags when the agent cites a rule version known to be superseded.
Checklist Fatigue and Skipped Steps
What to watch: For multi-step pre-flight checks, the agent skips or summarizes later steps when the prompt is long or when earlier steps appear decisive. This is especially dangerous when later steps contain independent safety gates. Guardrail: Structure the prompt to require explicit pass/fail/not-applicable output for every checklist item. Use a structured output schema that enforces a response for each step. Validate completeness programmatically before accepting the pre-flight result.
Evaluation Rubric
Use this rubric to test the Regulated Action Pre-Flight Check Prompt before deploying it in production. Each criterion targets a specific failure mode common in compliance-gated tool execution.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Jurisdiction Mapping | Output maps [ACTION] to at least one specific regulatory framework (e.g., HIPAA, GDPR, SOX) with correct citation | Output lists generic 'compliance' without naming a framework or cites an irrelevant regulation | Run 10 actions across 3 jurisdictions; verify framework match against a golden mapping table |
Required Approval Identification | Output identifies all required approval roles from [APPROVAL_POLICY] without hallucinating extra roles | Output omits a mandatory approver defined in the policy or invents a role not present in the input | Parse output.approvers; diff against expected set from policy fixture; flag missing and extra entries |
Data Handling Rule Extraction | Output surfaces all applicable data categories from [DATA_CLASSIFICATION] and maps each to a handling constraint | Output misses a data category present in the input or applies a constraint that contradicts the classification schema | Schema-validate output.data_rules against classification taxonomy; check for missing categories with grep on input labels |
Waiting Period Detection | Output correctly identifies mandatory waiting periods from [JURISDICTION_RULES] and calculates deadline timestamps | Output returns null or zero waiting period when jurisdiction rules require a delay, or miscalculates the deadline | Assert output.waiting_period_hours > 0 for known-delay fixtures; compare output.deadline_utc against expected timestamp |
Risk Classification Accuracy | Output assigns a risk tier (LOW/MEDIUM/HIGH/CRITICAL) consistent with [RISK_MATRIX] definitions | Output assigns LOW to an action with CRITICAL triggers in the matrix or vice versa | Run 20 pre-labeled action-risk pairs; measure exact match accuracy; require >=95% |
Checklist Completeness | Output.checklist contains all mandatory items from [REGULATED_CHECKLIST_TEMPLATE] with no missing required fields | Output.checklist is missing a required item or includes an item with a null required field | Validate output.checklist against JSON Schema; assert all required fields are non-null; count items against template minimum |
Evidence Grounding | Every regulatory claim in output.evidence_required includes a source reference to [POLICY_DOCUMENT] or [REGULATION_TEXT] | Output contains a regulatory claim with no source reference or a fabricated citation | For each claim in output.evidence_required, assert citation field is non-empty and matches a known document ID from the input context |
Escalation Path Clarity | Output specifies a concrete escalation target (role, team, or system) when any gate returns BLOCKED or NEEDS_REVIEW | Output returns BLOCKED without specifying who to escalate to, or provides a generic 'contact compliance' without routing information | Assert output.escalation_target is non-null when any gate status is BLOCKED; validate target against [ESCALATION_MAP] |
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 pre-flight checklist but relax jurisdiction-specific rule mapping. Use a single generic regulatory category instead of multi-jurisdiction branching. Replace formal audit trail generation with a simple pass/fail summary. Focus on getting the checklist structure and tool-call blocking logic right before adding compliance rigor.
code[ACTION_DESCRIPTION] [TOOL_NAME] [REGULATORY_DOMAIN: general] Generate a pre-flight checklist with: - Required approvals (generic) - Data handling rules (basic) - Mandatory waiting periods (if any) - Go/no-go determination
Watch for
- Overly broad regulatory categories that miss domain-specific rules
- Missing schema validation on the output
- No distinction between advisory warnings and hard blocks
- Checklist items that are too vague to action

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