AI due diligence: how to run a first-pass data room review

The short answer

A first-pass review tells the deal team what is in the data room, what is missing, and where lawyers and accountants should focus first. AI can index and classify every file, extract contract clauses with page references, and flag items against a red-flag list for each workstream. It does not replace adviser review, and it cannot see what the seller left out.

In this guide

  • What a first pass is for, and the index everything hangs from
  • Classification, the request-list gap and red flags by workstream
  • Clause extraction: schema, quotes and a sampling check
  • Confidentiality and data handling under an NDA
  • The limits of AI review, and a fictional 2,840-file data room

This is operational guidance, not legal advice. Your counsel decides what a clause means and what to do about it.

What is a first-pass review for?

Three outputs:

  1. A map. Every file, what it is, which workstream owns it.
  2. A gap list. Every item on your request list with no matching document.
  3. A reading order. The contracts and schedules a senior person should read first, ranked by money and by flag.

It is triage. The finding that a change-of-control clause covers 22.5% of revenue is a first-pass output. The opinion on whether consent is likely is not.

How do you index the data room?

Before any model reads anything, build the index with code. One row per file:

FieldHow it is filled
Index number, folder path, file name, page count, upload dateCopied from the room and the file metadata
Content hashComputed. Identical hashes are exact duplicates
Text qualityNative text, clean scan or poor scan, from an OCR confidence check
Document type and workstreamClassification step, below
Request list item matchedMatching step, below

Two details save days later. Exact duplicates are removed by hash, not by a model's opinion. And poor scans go to a person on day one, because a contract the text layer cannot read is a contract nobody has reviewed.

Sellers add and replace files, so re-run the index daily and report what is new, changed or gone.

How should documents be classified?

Give the model a fixed list of types and require one type per file, with a confidence level and the page that justified the choice:

  • Contracts: customer, supplier, lease, financing, employment, IP licence
  • Corporate: charter documents, cap table, minutes, shareholder agreements
  • Financial: audited and management accounts, budgets, debt schedules, tax filings
  • Legal and compliance: litigation, regulatory correspondence, permits
  • People, IP and technology
  • Unclassified: anything below the confidence threshold

"Unclassified" is a feature. A file the model is unsure about goes to a person, not into the nearest bucket.

Then match the files to your request list. Each item ends up as found, partly found or not found, and the not-found list goes to the seller's advisers the next morning.

What red flags should each workstream look for?

Write the list down before the review starts. A starting set:

WorkstreamRed flags to search forWhat comes back
LegalChange-of-control or assignment consent, exclusivity, most-favoured-customer pricing, uncapped liability, termination for convenience, open litigationContract, clause quote, page, counterparty, annual value
FinancialCustomer concentration, large one-off adjustments to EBITDA, debt-like items, related-party transactions, covenant breaches or waiversDocument, figure, page, period
CommercialContracts expiring within 12 months, auto-renewal terms, price reductions on renewal, churn noticesCustomer, date, term, page

Every flag carries a quote and a page number. A flag without a quote is a rumour.

Keep numbers apart from reading. Concentration is a sum over the revenue schedule, so code computes it. The model's job is to find the schedule and the clause.

How do you extract contract clauses?

With a schema, one contract at a time.

For each contract, the extraction returns fixed fields: counterparty, effective date, term, renewal, termination rights, change-of-control or assignment provision, exclusivity, liability cap, governing law. Each field has the answer, the exact quote, the page and a status: found, not found or unclear.

"Not found" must be checkable. Record pages read against page count, so a reviewer knows the model read all 40 pages, including the amendment stapled to the back.

Group the paper. A master agreement, three order forms and two amendments are one relationship, and the latest amendment wins. Extraction that treats them as six unrelated files reports the superseded term.

Sample the negatives. Have a lawyer read a random sample of contracts where the system found nothing. The miss rate in that sample is the honest measure of the pass.

How should confidential data be handled?

Data room contents are under a confidentiality agreement and often include personal data. Four questions decide whether a tool is acceptable.

  1. Where does it run? Inside your own cloud environment or on your own hardware is the simplest answer.
  2. What is retained? With zero data retention, the model provider does not store prompts or outputs after the response. Ask for that in writing. See our guide to zero data retention.
  3. Who can see it? Access should follow the deal team list and any clean-team rules, with every access logged.
  4. What happens at the end? If the deal dies, the NDA will usually call for return or destruction. Know how the index and the extracted fields are deleted.

One more risk is specific to AI. A data room is written by the other side. The OWASP Top 10 for LLM Applications describes indirect prompt injection: a file carries instructions that change a model's behaviour when it reads them. OWASP's mitigations include validating outputs with deterministic code, least privilege and human approval for high-risk actions, and it notes that no foolproof prevention is known. A tool that only reads and returns typed fields has little to hijack.

What are the limits of AI review?

  • It cannot find what is not there. A missing side letter looks the same as no side letter.
  • Poor scans and handwriting. Initialled changes in a margin can reverse a clause.
  • Materiality. A clause is a fact. Whether it matters at this price is judgment.
  • It will miss some. Plan for a miss rate, measure it, and put people on the contracts where a miss is expensive.

Worked example: Kestrel Fleet Software (fictional)

The target, the numbers and the buyer are invented.

Index. The room holds 2,840 files. Hashing removes 312 exact duplicates, leaving 2,528.

Classification. Contracts 1,140, financial 420, corporate and legal 310, people 280, IP and technology 190, unclassified 188 (routed to an associate). Total: 1,140 + 420 + 310 + 280 + 190 + 188 = 2,528.

Gap list. The request list has 96 items. 81 match at least one document and 15 do not: 15 ÷ 96 = 16% outstanding, sent to the sell-side adviser on day two.

Clause extraction. Of the 1,140 contracts, 640 are customer agreements. The system finds a change-of-control or assignment consent requirement in 74 of them.

Concentration, in code. Annual recurring revenue is $52.0M. The top 20 customers account for $31.2M, or 60%. Six of those 20 have a consent requirement, covering $11.7M: 11.7 ÷ 52.0 = 22.5% of recurring revenue.

Sampling the negatives. That leaves 640 − 74 = 566 customer contracts with no clause found. A lawyer reads a random 60 and finds 2 the system missed: 2 ÷ 60 = 3.3%. Applied to 566 contracts, that suggests about 19 more clauses in the long tail.

The decision that follows. Counsel reads all top-20 customer contracts in full, whatever the system reported. The two misses share a cause: the clause sat in an order form, not the master agreement. The team fixes the grouping rule and re-runs the 566.

Where it goes wrong

  • Treating the first pass as the review. It is the reading order for the review.
  • Trusting "none found". Sample the negatives, every time.
  • One long prompt over the whole room. Work file by file against a schema.
  • Uploading first, checking governance later. Confirm where the tool runs and what data it retains before the data room opens.

How Context Labs fits in

Context Labs (thecontextlabs.com) is an AI workforce platform for insurance, banking and private equity. It learns how your experts run multi-hour workflows, then pairs AI judgment with deterministic execution and waits for human approval on critical steps.

Context is built for regulated workflows: data stays in your environment with zero data retention, including for AI, and it deploys in your private cloud or on-premise. Document content is handled as data, and consequential actions run through deterministic code paths and human approvals. Every action is logged and every role controlled.

FAQ

Can AI replace lawyers in due diligence?

No. AI can index a data room, classify documents and pull clauses with quotes and page numbers across thousands of files. Lawyers still decide what a clause means, whether it is enforceable, how likely a consent is and what protection to seek. The first pass tells them where to start.

What should a first-pass data room review produce?

Three things: an index of every file with its type and workstream, a gap list of request items with no matching document, and a ranked reading order with flagged clauses and figures. Each flag should carry the exact quote and the page.

How accurate is AI contract clause extraction?

It varies with scan quality, contract structure and how the question is asked, so measure it on your own deal. Have a lawyer read a random sample of contracts where the system reported no clause, and calculate the miss rate. Read every high-value contract in full.

Is it safe to upload a data room to an AI tool?

It depends on where the tool runs and what it keeps. Check the confidentiality agreement first. Then confirm that the system runs in an environment you control, that no third party retains prompts or outputs, and that you can delete everything, including extracted data, if the deal ends.

What can AI not find in a data room?

It cannot find documents that were never uploaded, read text a poor scan has destroyed, or judge whether a clause matters at your price. It can also miss clauses that sit in an unexpected document, such as an order form or a side letter. A gap list and a sampling check reduce these risks.

Sources

Book a demo

Frontier Intelligence in your hands.

Book a demo