Built by Benchrock Systems ·Custom contract workflows →

How it works

How the Citation Audit Gate works

Language models are good at spotting a risky clause and bad at admitting when they made one up. ClauseMemo lets the model read, then makes a program prove every citation.

The pipeline

Three stages, one rule

  1. Stage 1

    Deterministic parser

    • PDF text comes out page by page with PyMuPDF; DOCX keeps Word's own page breaks.
    • Scanned, image-only PDFs are rejected with a clear message. A blank read never becomes a clean report.
    • Files up to 10 MB and 50 pages, processed in memory and never written to disk.
  2. Stage 2

    Structured red-flag extraction

    • Claude reads the contract inside fenced delimiters and treats its text as data, never as instructions.
    • Each finding is a clause flag (with a verbatim quote and page) or a missing protection (with no quote at all).
    • Output is schema-validated JSON: category, severity, plain-English risk and a copy-pasteable redline.
  3. Stage 3

    Citation Audit Gate

    • Pure Python, no AI. Quotes are matched after normalizing ligatures, curly quotes, line-break hyphens and spacing.
    • A quote on the wrong page is re-anchored to the right one. A quote that runs across a page break still matches.
    • Missing-protection claims pass only if the document never mentions that protection.
    • Anything unproven gets one targeted repair pass, then it is removed. It is never shown as verified.

The receipt

What a verified flag looks like

[C01]p. 2Payment terms
“Client shall remit payment of undisputed invoices within ninety (90) days of Client's receipt of a correct and complete invoice, provided that the related Deliverables have been accepted by Client in writing.”

Citation Audit Gate: passed · 6 of 6 findings verified against source pages

Severity labels are operational, not legal conclusions: Escalate to counsel, Negotiate or Standard. ClauseMemo is a first-pass screen, not legal advice.