Technology

Why one AI prompt is not enough: specialized chains for legal drafting

Single-prompt AI drafting invents citations, quotes law from memory and hides gaps. Six principles of a specialised chain (extraction, official sources, an independent critic, line checks, code guards and visible uncertainty) and what they cannot do.

A chain of five connected drafting steps compared with a single prompt

The single-prompt problem

A general AI assistant answers a legal drafting request in one pass: it reads what you gave it, draws on whatever it learned in training, and writes. The result is fluent, and fluency is exactly what makes its errors hard to see. Typical failures in legal work:

  • Invented or misattributed authority. Courts in Canada and elsewhere have already dealt with filings that cited cases which do not exist, or cited real cases for propositions they do not contain.
  • Law from memory. A provision paraphrased, an old version quoted, a rule for one permit applied to another.
  • Drifting facts. A date attached to the wrong event, an amount in the wrong currency, a family member who is not in the file.
  • Silent gaps. A concern in the refusal that is never answered, or missing evidence papered over with confident prose.

The model is not being careless; it is doing what one pass of text generation does. The fix is structural.

Comparison: a single prompt goes straight from file to draft; a specialised chain passes through fact extraction, official law, drafting, a critic from another model family and a line check before the draft
One pass versus a chain where each step can be checked.

Six principles of a specialised chain

  1. Separate reading from writing. First extract the facts from the documents exactly as written. Later steps are checked against that list, not against the model's impression of the file.
  2. Ground the law in the official text. Retrieve the current consolidated provisions from the official source and give them to the writer word for word. Never rely on what a model remembers about a statute.
  3. Use a different model to criticise. A model reviewing its own draft tends to agree with itself. A critic from a different model family makes different mistakes, so it catches more of the writer's.
  4. Check every line, not just the whole. A line-by-line comparison against the documents and the law finds the wrong occupation or the wrong event that a general review skims past.
  5. Add deterministic guards. Dates, amounts, file numbers and case citations can be checked by ordinary code: is this date in the documents, does this citation exist. Code does not get tired or persuaded.
  6. Make uncertainty visible. Write [MISSING: what is needed] instead of filling a gap, list every unconfirmed point, and never predict outcomes.

Side by side

QuestionGeneral assistant, one promptSpecialised chain
Where does the law come from?Training memoryOfficial consolidated text, quoted
Who checks the draft?Nobody, or the same modelA different model family, then every line
Are citations verified?NoExistence checked; listed for you to read
What happens to gaps?Filled with plausible textMarked as missing and listed
Does it show what it could not confirm?RarelyAlways, as a list
Is cost bounded?Per subscriptionFixed budget per draft

What a chain does not do

A chain reduces errors and makes the rest visible; it does not make a draft correct. An existing case can still be cited for the wrong point, an officer's reasoning can still be misread, and judgment about strategy remains the professional's. The value is that you start from a draft whose weak points are already marked, rather than one that hides them.

How CaseVane implements it

CaseVane runs five passes (fact extraction, official IRPA and IRPR text, drafting with an Anthropic Claude model, a critic and line check by Google Gemini models, and fact and citation guards) on de-identified text. The details are in inside the CaseVane pipeline, and you can read one unedited sample run with all its checks.

This article is general information for licensed professionals, not legal advice. Check the current text of the Act, the Regulations and IRCC's instructions before relying on any point.