You already know: the system design method, enterprise RAG (retrieval, permissions, citations) and the support agent case (deterministic checks around a model). This case is a batch system with an interactive side: thousands of long documents processed against a deadline, where missing one clause can cost more than the whole project.
How to read this lesson. No code, on purpose. Numbers marked assumed are assumptions you state out loud; prices are illustrative. Nothing here is legal advice; the system supports lawyers, it does not replace them.
1. The prompt, and the questions that change the design
Due diligence means a company is being acquired, and the buyer's lawyers must find every contract term that matters (change of control, assignment restrictions, exclusivity, liability caps) before signing. A staff candidate recognises three things quickly: recall matters more than precision for risk clauses, every extracted value must point to its exact source text, and client confidentiality is a professional duty with structural consequences.
Assumptions you state: