Skip to content

Ingrid Kao 高英瑋律師kuoingrid0118@gmail.com

Write to me

Legal Workflow Lab

Markdown source

Ingrid Kao | Practitioner Notes and Companion Demonstrations

Three practitioner articles connect legal judgment to inspectable implementation. Each PDF includes a first-page link to its companion evidence. The examples use synthetic records and are separate from the portfolio’s original AI Review Lab and knowledge-operations demonstrations.

Choose a note

Article Best starting point Companion implementation
Testing a legal AI review workflow Legal AI evaluation and evidence checks Saved NDA review and adjudication; output gate
When a legal escalation is ready to close Legal operations, escalation ownership, and closure Workflow, scenarios, and SQL reporting
From counsel guidance to executable review rules Rule design, policy changes, and review freshness Versioned rulebook

The article separates authored software fixtures from a recorded model-review exercise:

Inspect the sources, policy, original key, raw response, author adjudication, scoring ledger, revised key, and scorer.

The article defines completion evidence and continuing ownership. Its Python/SQLite implementation exercises 12 workflow scenarios and records 62 audit events. The final register has two closed, seven blocked, and three assigned cases; one open case is overdue at the fixed snapshot. A closed case retains an accepted active preservation follow-up.

The 12 scenarios are not the 29 gate tests in the separate 06_knowledge_operations project. They exercise different code and records. Here, pending preservation review blocks closure; pre-execution preservation enforcement remains a deployment requirement.

From counsel guidance to executable review rules

The article turns a legal instruction into an explicit policy record. Its rulebook evaluates 18 authored scenarios under two policy versions, producing 36 aggregate evaluations and 108 rule rows. Four cases change outcome; six change reasons. Four review-freshness checks produce one CURRENT and three RECHECK_REQUIRED results.

This deterministic prototype evaluates source-linked annotations. It does not extract meaning from arbitrary contracts or call a model.

Dataset map

Project Inputs or evaluation unit Reported observation
Original 01_ai_review Lab 20 synthetic NDAs; 15 held-out; 15 rule types 16 held-out reference issues; three recorded review batches
This collection’s experimental_llm Eight NDA fragments; four toy policy rules Eight revised document–rule pairs; six actionable groups; one saved batch
This collection’s toolkit 16 authored output fixtures and 12 workflow scenarios Gate behavior and workflow transitions
Original 06_knowledge_operations Separate article/escalation/policy fixtures 29 gate tests
This collection’s rulebook_toolkit 18 annotated scenarios under two policies 36 evaluations; 108 rule rows; four freshness checks

Counts use different denominators. They should be interpreted within the named project rather than combined into a single accuracy or test-total claim.

Run locally

Python 3.10+ and its standard library are sufficient. No API key, package installation, or external connection is needed. From this folder:

python3 toolkit/run.py
python3 toolkit/run.py --regression
python3 experimental_llm/evaluate_exploration.py
python3 -m unittest discover -s experimental_llm -p test_exploration.py -v
python3 rulebook_toolkit/run.py
python3 rulebook_toolkit/run.py --regression

The toolkit and rulebook runners rebuild their own outputs. Regression commands run in fresh directories and compare generated artifacts. The exploratory scorer checks the saved model response; it does not generate a new response.

Editable Word and Markdown sources accompany the PDFs in articles/. MANIFEST.json records the collection’s file hashes. All operational records, clauses, policies, and examples are synthetic. The original saved response and provisional key remain unchanged for inspection.

Fictional or anonymized examples. Nothing here is legal advice.