4 JanStarts in 29 days, 20 hours, 27 minutes and 51 secondsLegal Tech Funding 2026: The NumbersEvent details →
← Back to News
Legal AI Engineering: Lessons Learned
Analysis

Legal AI Engineering: Specifics on Why, What & How

December 4, 202610 minutes

What if your opposing counsel is super-human? They can go deeper and further into any legal matter. They can neutralize any of your arguments. Worse, super-legal is able to process all at a fraction of your costs. Well, that is the pitch which essentially raised $9B this year alone. Is it that simple? We'll soon know. Meanwhile, AI needs legal engineers, and here's why.

Brace: we're entering a weird world where what once was very valuable is now worthless. Starting with the value of intelligence. Weird since intelligence is the key ingredient in creating wealth. Key if you weren't lucky enough to inherit wealth. This leaves everyone to wonder how to generate wealth when raw intelligence is worth less. However, there are different types of intelligence. Some do not rely on facts, but they rely on feelings. That's why mathematicians are losing their shirt, while legal looks sweeter with each new day. How?

 

Legal actually regulates feelings with facts, while STEM (science, technology, engineering and mathematics) generates facts. These facts influence feelings. And the number-one feeling that legal is tasked to legislate is feeling safe. That job is harder than any other problem humans have ever faced. That's why legal is also the highest-paid occupation since 300 AD. I often joke that the first-ever legal tech engineer gave Moses stone tablets with 10 commandments. Some of the very early writings archeologists discovered were laws etched in stone. That's because those words needed to be immutable. Now we use PDF. Pin PDF for later. I'm cooking something.

As said: legal regulates life and living together in harmony. The operating system for society which has worked the longest is democracy. It relies on the rule of law. To simplify the mechanics: you need a rule and enforcement. Rules can be clauses in contracts, articles in legislation, policies in companies and governments or judgements in courts. Any rule is designed to be enforceable, and thus we need systems to monitor breaches. In short, systems to a) discover enforceable rules and b) design compliance tracking. A legal engineer is supposed to be able to build these systems by whatever means.

 

Legal tech evolved from stone tablets, paper libraries, digital research platforms and AI contract redlining. Unfortunately, that is only the discovery problem. Those systems ignore the bigger market of governance, risk and compliance (GRC). How big is GRC? GRC has raised almost 5x as much as legal tech this year ($48B). The average GRC company has raised about 5.5x more than the average legal tech company. Check "Governance, Risk and Compliance, in Seven Questions" for an in-depth breakdown of the GRC market. Why are NVidia, its CEO and the entire AI trade in trouble? Lack of a system of governance because of an underestimation of risk.

Now all legal professionals face an adversary in AI with capabilities none can match. Eventually, any legal benchmark will be saturated. SemiAnalysis GDPx recently marked GPT 6.2 Astra as the only model scoring above 0%. Digging deeper into the makeup of GDPx reveals a focus on legal actions rather than just answers. Hence, models score lower since AI is not able to decide what task has legal relevance. AI lacks the feeling for legal. What is this feeling for law?

 

If peace were as simple as math, we would not have any wars. As fate would have it, I was rewatching Matrix parts II & III, flying between Paramaribo and Amsterdam. Those movies reminded me of the real problem humanity faces: choice. More specifically, what (and who) we choose to trust. Despite its magic, AI still has flaws which make it difficult to blindly trust. As a legal engineer, you help AI retrieve facts, reveal flaws, and generate fixes. We help AI connect to the right context and orchestrate the best sequences for processing legal tasks. Engineers help AI choose tools, tactics and techniques to resolve contracts, conflicts and crises.

 

Contrary to the Riemann Hypothesis and Navier-Stokes, there are more ways than one to achieve peace in the Middle East.

As said: the challenge in legal engineering is choice. In some cases, a solution requires accuracy, and in others, ingenuity. Understanding when to apply what is where the engineering part becomes important. For example, let's take a famous deal. It ended in dispute and ultimately in a real-life disaster: HP v Autonomy. Was HP buying Autonomy for $11.1 billion a good deal? 40 contracts said yes. However, 28,000 documents said no. HP 'lost' $8.8 billion on this deal. If the HP lawyers had AI, could they have avoided this loss? This would depend on designing an orchestration of tools for the question you need to answer.

 

Most AI models have a million-token context window. This translates to reliably handling ~160 documents of 6 pages each. For example, during the HP-Autonomy trial, evidence required to fully answer the Autonomy valuation question required a system to comb through millions of documents to find relevant ones. The trial noted that there were 28,000 documents which hid the answer. This is still outside 160. So what you can and cannot ask AI:

 

Questions AI can answer (up to ~160 contracts)

#QuestionWhy it worksPotential tool orchestration solutionMonocle today
1What is the governing law and notice period of every contract?The AI reads every contract at once.Not needed below the window. Above it: extract both fields from every contract into one table. Report how many contracts were read.Yes, up to 8 documents. Tabular review, asking for governing law and notice period columns.
2Which contracts have a change-of-control clause, and what does it say?Nothing falls outside its view.Not needed below the window. Above it: check every contract, quote each clause found, and list the contracts without one.Yes, up to 8 documents. Tabular review with a change-of-control column.
3Does the disclosure schedule match the contracts?Both sets fit in one window.Optional below the window. Above it: turn the schedule and the contracts into two tables. Match them in code and list every mismatch and gap.A related check, disclosure against warranties, is scheduled for release.
4Which version of the contract is in force today?It sees every amendment side by side.Not needed for a short chain. Above the window: extract effective dates and “amends” or “replaces” links. Then build the chain in code.Renewal calendar and fact chronology do not chain amendments yet.
5Is there anything unusual in here?It can read it all and flag what stands out.One read can skim past things. Add a pass that compares each contract with your standard terms and ranks the outliers.Partly. Flags departures from a playbook or billing guidelines, not what you did not ask about.

 

Questions AI can not answer (beyond ~160 contracts)

#QuestionWhy it breaksPotential tool orchestration solutionMonocle today
6How much did we sell in total across all contracts?Search reads about 20 documents and gives a confident total anyway.Map-reduce: extract the sales value from every contract into a table. Then sum it in SQL or code. Report how many documents had no value.Partly. Totals invoice lines in code from one sheet, not values across contracts.
7Can you confirm no purchase records exist for this supplier?No result does not mean nothing exists.Check every record under every name the supplier trades as, then count. Report “none found” with the number checked, unreadable files and the expected miss rate.Partly. Sell-side Q&A and discovery say when the supplied files hold no answer. No proof of absence at scale.
8Why are we paying a hardware vendor $41m if we sell software?You cannot search for something you did not know to ask.Anomaly scan: classify every document against a profile of what the company does. Keep a “does not fit” field, and rank those by value.No. Unless AI gets an unlimited context window.
9Which amendment is in force after all changes?Search ranks by similarity, not by date.Date-aware chaining: extract each effective date and the clause it changes. Then apply them in order in code. The model reads; code decides the order.No. Same gap as question 4.
10Did they know it was a financing?Intent is inference across many documents, not a lookup.An agent builds a timeline and evidence graph of who saw what and when, citing each passage. A lawyer still decides what it proves.Partly. Dated chronology with the source of each entry. No view of who knew what.
11Is this clause market practice?Requires access to similar documents.A retrieval tool pulls similar clauses from a benchmark corpus (clause library, public filings). Compare term by term and show the sample size.Partly. Chat can quote up to two contracts filed with the US securities regulator. Not a benchmark.
12Which author grants me online rights?Grants use different words and change over time. So search misses some and cannot show the list is complete.Extract every grant (author, work, use, territory, term, later changes) into a rights matrix. Then filter on online use and list the unclear ones.Partly. Tabular review has a license grant column, up to 8 documents. Or matrix by author or use.

Spoiler: it is neither coding nor legal but problem-solving at a human level. Case in point: my own experience in practicing law inspired questions 11-12. Question 11, I encountered in negotiations. When we hear the term market practice, those clauses usually cannot be easily objectively validated. Number 12 is a specific example for copyright law. However, any area of law has similar questions with the answer hidden in various documents. In short: each legal question above may need a distinct legal engineering solution. Now, do we need to buy or build 12 tools? Currently, Monocle supports 29 use cases in 285 jurisdictions. And I'm convinced that I have not even scratched the surface.

 

This explains the apparent proliferation of legal AI and demand for legal engineers. It also explains the zero score for all except one in GDPx. The variety of solutions also illustrates the danger of describing legal problems as software problems, especially when I hear non-legal people dismissively explain which software solution would simply work on legal. Generally, software divas do not understand the difference between what is a legal objective fact and a legal subjective argument. They lack the legal skills to spot nuances in law. Still, software does work, and engineers can help if they can empathize. This brings me to the essential skill a legal engineer requires: empathy.

Recap

Even geniuses need governance. AI is restricted by our variety of choices in legal. There are many ways to answer a question of law. Hence we usually say: it depends... Therefore, a legal engineer essentially needs empathy and ingenuity.

 

This post is dedicated to the pioneers who vibe-code legal, since only they can manage to process the vastness of legal problems at super-speed with super-coding.

More to read