This prompt is designed for legal, compliance, and security operations teams who need to programmatically check whether a proposed AI-generated output, agent action, or data disclosure would violate an existing confidentiality agreement (NDA). The core job-to-be-done is to reduce the manual review burden by having an AI system perform a first-pass compliance analysis, flagging potential breaches before a human reviewer signs off. The ideal user is an AI platform architect or compliance engineer embedding this check into a product workflow, such as a copilot that drafts external communications or an agent that shares data with third-party tools.
Prompt
Confidentiality Agreement Compliance Check Prompt

When to Use This Prompt
Define the specific job, ideal user, and critical constraints for the Confidentiality Agreement Compliance Check Prompt.
To use this prompt effectively, you must provide the full text of the governing NDA as [CONTRACT_TERMS] and the exact proposed disclosure or action as [PROPOSED_DISCLOSURE]. The prompt is most reliable when the NDA terms are well-structured, with clearly defined 'Confidential Information,' exclusions, and duration clauses. It is not a replacement for legal advice. Do not use this prompt for real-time, high-volume triage without a human-in-the-loop review stage. It is also unsuitable for contracts with highly ambiguous or contradictory terms where a model's interpretation could be dangerously wrong.
Before integrating this prompt into a production harness, you must define clear evaluation criteria. Common failure modes include the model missing duration-based restrictions (e.g., a 3-year term that has expired), misinterpreting the scope of excluded information, or failing to flag a disclosure that is technically compliant but violates the spirit of the agreement. Your next step should be to build a golden test set of NDA clauses and proposed disclosures with known violation labels, then run this prompt against that set to calibrate its precision and recall before shipping.
Use Case Fit
Where the Confidentiality Agreement Compliance Check prompt delivers reliable value and where it introduces unacceptable risk. Use these cards to decide if this prompt belongs in your workflow or if you need a different approach.
Good Fit: Pre-Disclosure Review
Use when: A draft output or agent action is ready for review before external release. The prompt excels at comparing proposed text against a specific, provided NDA clause. Guardrail: Always provide the exact NDA text as [CONTRACT_TERMS]; never rely on the model's general understanding of a contract.
Bad Fit: Sole Legal Decision-Maker
Avoid when: The output will be used to make a final legal determination without human review. The model can miss implied confidentiality or misjudge materiality. Guardrail: The prompt's output must be treated as a triage flag for a qualified human reviewer, not as a definitive compliance ruling.
Required Inputs
What to watch: The prompt is ineffective without two high-quality inputs. Guardrail: You must provide the full, unabridged text of the relevant NDA clauses as [CONTRACT_TERMS] and the exact proposed disclosure as [PROPOSED_DISCLOSURE]. A summary of either will produce unreliable results.
Operational Risk: Duration Blindness
Risk: The model may flag a disclosure as a violation even if the NDA's confidentiality period has expired, or miss a violation for a contract still in force. Guardrail: Explicitly inject the current date and the contract's effective and expiration dates into the prompt's [CONTEXT] to enable temporal reasoning.
Operational Risk: Scope Creep
Risk: The model might incorrectly apply a narrow NDA clause to a broad range of information, causing over-censoring and blocking safe, routine disclosures. Guardrail: Instruct the model to strictly limit its analysis to the definition of "Confidential Information" provided in [CONTRACT_TERMS] and to flag any ambiguity for human review.
Bad Fit: Multi-Jurisdictional Analysis
Avoid when: You need a definitive analysis of how an NDA interacts with multiple legal or regulatory frameworks. Guardrail: This prompt checks for clause violations, not for conflicts of law. A separate, human-driven legal review is required to assess regulatory override scenarios.
Copy-Ready Prompt Template
A reusable prompt template with square-bracket placeholders for checking proposed disclosures against confidentiality agreement terms.
This section provides the core prompt template for the Confidentiality Agreement Compliance Check. It is designed to be copied directly into your prompt management system, IDE, or orchestration layer. The template uses square-bracket placeholders for all dynamic inputs, ensuring a clean separation between the static instruction logic and the variable data that changes per request. Before integrating, map each placeholder to a reliable data source in your application—never hardcode sensitive agreement text or disclosure content into the prompt itself.
textYou are a legal compliance reviewer. Your task is to check a proposed disclosure against the terms of a confidentiality agreement and determine whether the disclosure would violate any clause. # INPUTS ## CONFIDENTIALITY AGREEMENT [AGREEMENT_TEXT] ## PROPOSED DISCLOSURE [DISCLOSURE_TEXT] ## DISCLOSURE CONTEXT - Recipient: [RECIPIENT_NAME] - Disclosure Date: [DISCLOSURE_DATE] - Disclosure Purpose: [DISCLOSURE_PURPOSE] # CONSTRAINTS - Only flag violations that are clearly supported by the agreement text. - If a clause is ambiguous, note the ambiguity and recommend human review. - Do not invent obligations not present in the agreement. - Respect temporal limits: if the agreement has expired or a specific clause has a duration that has lapsed, treat that clause as inactive. - Treat any information explicitly defined as "Confidential Information" in the agreement as protected. # OUTPUT SCHEMA Return a valid JSON object with the following structure: { "overall_assessment": "COMPLIANT" | "VIOLATION" | "AMBIGUOUS", "findings": [ { "clause_reference": "string (section number or identifier)", "clause_summary": "string (brief summary of the relevant clause)", "assessment": "COMPLIANT" | "VIOLATION" | "AMBIGUOUS", "rationale": "string (explanation of why the disclosure does or does not comply)", "suggested_remediation": "string | null (if VIOLATION, suggest a compliant alternative)" } ], "requires_human_review": true | false, "human_review_reason": "string | null (if review is required, explain why)" } # INSTRUCTIONS 1. Parse the confidentiality agreement to identify all active obligations, definitions, exclusions, and duration clauses. 2. Compare the proposed disclosure against each relevant obligation. 3. For each finding, cite the specific clause and explain your reasoning. 4. If the disclosure would violate a clause, suggest a compliant alternative when possible. 5. If any clause is ambiguous or requires legal interpretation, set requires_human_review to true and explain why. 6. If the overall assessment is VIOLATION, include at least one finding with a remediation suggestion.
To adapt this template, replace each square-bracket placeholder with data from your application context. For [AGREEMENT_TEXT], use the full text of the signed confidentiality agreement, not a summary. For [DISCLOSURE_TEXT], include the exact wording the user or agent intends to share. The [RECIPIENT_NAME], [DISCLOSURE_DATE], and [DISCLOSURE_PURPOSE] fields provide essential context for evaluating scope and permitted-purpose clauses. If your use case involves checking disclosures against multiple agreements simultaneously, extend the template with an array of agreement objects rather than concatenating them into a single text block. Always validate the output JSON against the schema before surfacing results to users or triggering downstream actions—malformed JSON or missing fields can cause silent failures in automated compliance pipelines.
Prompt Variables
Required inputs for the Confidentiality Agreement Compliance Check Prompt. Each variable must be populated before the prompt is assembled and sent to the model. Missing or malformed inputs are the most common cause of false negatives in violation detection.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[PROPOSED_DISCLOSURE] | The text or action the AI or agent intends to output or perform | The project timeline has been extended to Q4 due to supplier delays on the [PARTNER_NAME] component. | Must be a non-empty string. Truncation over 32k tokens should be flagged for review as it may hide context needed for accurate assessment. |
[NDA_TERMS] | The full text of the governing confidentiality agreement or the specific clauses under review | Section 4.1: Recipient shall not disclose the existence or terms of this Agreement to any third party without prior written consent. | Must contain at least one restrictive clause. If no NDA terms are provided, the prompt should be aborted and escalated to a human reviewer. |
[NDA_PARTIES] | A structured list of the disclosing and receiving parties as defined in the agreement | Disclosing Party: Acme Corp. Receiving Party: Beta Labs, a wholly-owned subsidiary of Gamma Inc. | Must include both a disclosing and receiving party. Affiliate and subsidiary relationships should be explicitly noted to prevent scope misinterpretation. |
[DISCLOSURE_RECIPIENT] | The intended audience for the proposed disclosure | Gamma Inc. Board of Directors | Must be compared against [NDA_PARTIES] to determine if the recipient is a permitted third party. Null is allowed only if the disclosure is public, which should trigger a high-severity review flag. |
[DISCLOSURE_PURPOSE] | The stated business or operational reason for the disclosure | Quarterly supplier performance review | Must be cross-referenced with the permitted purpose clause in [NDA_TERMS]. A null or vague purpose should trigger a request for clarification before the compliance check proceeds. |
[DURATION_CLAUSE] | The temporal boundary of the confidentiality obligation extracted from the NDA | The obligations of this Section shall survive for a period of five (5) years from the Effective Date of January 15, 2022. | Must be parsed into a machine-readable date range. If the current date exceeds the expiration, the check should still flag the disclosure for a manual review to confirm no residual obligations exist. |
[JURISDICTION] | The governing law specified in the NDA, used to interpret reasonableness and public policy exceptions | State of Delaware, USA | Must be a recognized jurisdiction string. If missing, the prompt should default to a conservative interpretation and flag the output for legal review. Do not assume a jurisdiction. |
Implementation Harness Notes
How to wire the Confidentiality Agreement Compliance Check Prompt into an application or review workflow.
This prompt is designed to be integrated into a legal or compliance review pipeline, not used as a standalone chat interface. The primary integration pattern is an API-based review step that intercepts proposed AI-generated content or agent actions before they are sent to an external party. The application should call the model with the prompt template, parse the structured output, and use the violation_flag field to gate the next action: block, quarantine for human review, or release with suggested modifications.
The implementation harness must enforce strict output validation before any downstream decision is made. After receiving the model response, validate that the JSON conforms to the expected schema, including required fields like violation_flag (boolean), violating_clauses (array of strings), and compliant_alternatives (array of strings). If parsing fails, implement a retry loop with a maximum of two additional attempts, feeding the raw output and the schema error back into the model. If validation still fails after retries, the system must escalate to a human review queue and log the full prompt and raw response for diagnosis. Never default to 'no violation' on a parsing failure.
For high-stakes deployments, the harness should include a confidence threshold check. Instruct the model to include a confidence_score (0.0 to 1.0) in the output. If the score falls below a configurable threshold (e.g., 0.85), the item is automatically routed for human review even if no violation is flagged. This prevents borderline cases from being auto-approved. Additionally, log every decision—including the NDA reference version, the proposed text, the model's reasoning, and the final human or automated decision—to an immutable audit log. This log serves as evidence of the compliance check process for internal governance and external audits. Choose a model with strong legal reasoning capabilities and a large context window to accommodate lengthy NDA documents, and ensure the model is deployed in a tenant-isolated environment to prevent cross-client data leakage.
Common Failure Modes
What breaks first when using a prompt to check disclosures against confidentiality agreements, and how to guard against each failure before it reaches production.
Scope Creep and Over-Classification
What to watch: The prompt flags routine business communications as potential violations because it interprets NDA scope too broadly. This creates alert fatigue and erodes trust in the compliance check. Guardrail: Include explicit scope boundaries in the prompt with examples of what the NDA does NOT cover, and require the model to cite the specific clause it believes is triggered before flagging.
Duration-Based Restriction Blindness
What to watch: The prompt misses that a confidentiality obligation has expired, applying restrictions to information that is no longer protected. This causes false positives on time-limited NDAs. Guardrail: Require the prompt to extract and evaluate effective dates, termination clauses, and survival periods before applying restrictions. Add a temporal validity check step that compares the current date against NDA duration terms.
Third-Party and Sub-Processor Gaps
What to watch: The prompt correctly identifies that a disclosure is permitted to the counterparty but fails to catch that the proposed recipient is a sub-processor, affiliate, or contractor not covered by the agreement. Guardrail: Include a recipient-classification step that maps the proposed recipient against the NDA's definition of authorized parties. Flag any recipient that falls outside the defined permitted-disclosure categories.
Aggregation and Mosaic Leakage
What to watch: Individual disclosures pass the check, but when combined across multiple outputs or conversations, they reconstruct confidential information. The prompt evaluates each disclosure in isolation. Guardrail: Maintain a session-level disclosure log and include prior disclosed facts as context in each check. Add a rule that the model must evaluate whether the current disclosure, combined with previously approved disclosures, crosses the confidentiality threshold.
Implied Disclosure Through Suggestion
What to watch: The prompt catches direct statements of confidential facts but misses implied disclosures, hedging language, or directional statements that effectively reveal protected information. Guardrail: Add an explicit check for indirect disclosure patterns: statements that allow a reasonable recipient to infer confidential information, even if not stated directly. Include few-shot examples of implied disclosures that should be flagged.
Jurisdictional and Governing Law Mismatch
What to watch: The prompt applies a generic confidentiality standard that does not match the governing law or jurisdiction specified in the NDA, missing jurisdiction-specific definitions of confidential information or permitted disclosures. Guardrail: Extract the governing law clause from the NDA and include jurisdiction-specific confidentiality definitions in the prompt context. When the governing law is ambiguous, escalate to human review rather than applying a default standard.
Evaluation Rubric
Use this rubric to test the Confidentiality Agreement Compliance Check Prompt before shipping. Each criterion targets a known failure mode in NDA-aware AI systems. Run these checks against a golden dataset of 20-30 contract-disclosure pairs covering clear violations, edge cases, and compliant scenarios.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Scope Misinterpretation | Prompt correctly identifies whether proposed disclosure falls within the NDA-defined confidential information scope, including explicit definitions and marked documents | Prompt flags public information as confidential or misses confidential information explicitly listed in the NDA scope clause | Test with 5 pairs where scope is intentionally ambiguous: pre-existing public data, independently developed information, and information marked 'Confidential' in the agreement |
Duration-Based Restriction Handling | Prompt correctly applies time-bound confidentiality periods, flagging disclosures proposed after expiration and blocking disclosures within active periods | Prompt blocks disclosure after the confidentiality period has expired or permits disclosure during an active restriction window | Test with 3 scenarios: disclosure 1 day before expiration, 1 day after expiration, and during a perpetual confidentiality clause |
Third-Party Disclosure Detection | Prompt identifies when proposed disclosure involves sharing with parties not authorized under the NDA, including affiliates, contractors, and subsidiaries | Prompt permits disclosure to an unauthorized third party or incorrectly blocks disclosure to an explicitly authorized recipient | Test with 4 recipient types: named authorized party, unnamed subsidiary, external contractor without NDA, and regulator with statutory authority |
Permitted Use vs. Prohibited Use Classification | Prompt correctly distinguishes between uses explicitly permitted by the NDA and uses that exceed the stated purpose | Prompt classifies a prohibited use as permitted or flags a permitted use as a violation | Test with 4 use cases: internal evaluation, external marketing, regulatory filing, and competitive benchmarking |
Compliant Alternative Suggestion Quality | Prompt suggests actionable, specific alternatives that preserve the user's goal while remaining within NDA boundaries | Prompt suggests alternatives that still violate the NDA, provides only generic advice like 'consult legal', or fails to suggest any alternative | Human evaluation of 10 alternative suggestions on specificity, actionability, and compliance correctness |
False Positive Rate on Compliant Disclosures | Prompt correctly clears at least 95% of genuinely compliant proposed disclosures without flagging them as violations | Prompt flags more than 5% of compliant disclosures as potential violations, causing unnecessary escalation and workflow friction | Run against 20 known-compliant disclosure scenarios and measure flag rate |
False Negative Rate on Clear Violations | Prompt catches at least 98% of clear NDA violations, including direct text copying, paraphrased confidential content, and implied disclosures | Prompt misses clear violations, especially paraphrased content or disclosures that reveal confidential information through aggregation or implication | Run against 20 known-violation scenarios including direct quotes, paraphrases, aggregated data reveals, and implied disclosures |
Output Structure and Evidence Grounding | Prompt output includes the specific NDA clause or provision cited, the rationale for the determination, and a confidence indicator for each finding | Prompt provides a bare 'violation' or 'compliant' label without citing the relevant NDA provision or explaining the reasoning chain | Schema validation check: output must contain clause_reference, rationale, and confidence_score fields for each determination |
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 prompt and a single NDA clause. Use a frontier model with no additional tooling. Feed the proposed disclosure and the NDA text directly into [PROPOSED_DISCLOSURE] and [NDA_TERMS] placeholders. Accept raw text output and manually review each result.
Watch for
- The model missing duration-based restrictions (e.g., 'for 2 years after termination')
- Over-flagging common industry terms as confidential
- No structured output, making batch review difficult

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