MARK GARASLEGAL AI & SOFTWARE
← Back to all projects

Source assurance

Legal Labelling Engine

A form-migration checker for legal automation teams, designed to catch answers landing in the wrong fields when a PDF is updated.

Working local engine
Intended users
Legal-document automation teams maintaining PDF and docassemble workflows
What they leave with
A reviewed field mapping, comparison results and a reversible export.
Starts with

Supported PDF forms, a proposed mapping between their fields, and reference outputs prepared independently.

Produces

A mapping bundle with replay results and a reversible docassemble mapping, or a rejection explaining why verification failed.

Build details and capabilities
My work
I designed the workflow, built the software, and tested it.
Built with
Python · PDF processing · Render comparison · docassemble mappings

A revised form may have the same number of fields and ask different questions. Copying an old mapping can then put the right information in the wrong place. This engine checks a proposed migration against examples prepared independently of that mapping.

  • Proposed PDF field mappings that identify unresolved matches
  • Field-value and visual comparisons against independently authored reference files
  • Verification tied to a reviewed mapping, plus reversible docassemble exports
  • Reasoned mapping corrections in the offline review screen, with duplicate destinations blocked and a new approval required after edits
A choice I made

A mapping cannot be its own answer key. I used separate reference files and included deliberately incorrect mappings alongside correct examples to test whether the verifier catches the mistakes.

Limits

Only a limited set of AcroForm migrations is supported. The engine rejects scans, XFA forms and unsupported appearances. Approval in the demonstration was simulated; a qualified reviewer still needs to assess the legal meaning.

Reviewed 31 October 2026. These software checks and synthetic examples do not establish legal accuracy or performance in production. Client materials and private source code are not included.