Studio Egregori

LabelAssay

Check a beverage label or a whole batch against the filed application details. Get a finding for each automated check, with the rule and citation behind it.

Take the 90-second tourTry the live demoView source

A review tool with visible reasons

I built LabelAssay in five days for a federal alcohol-labeling compliance problem (TTB, 27 CFR). It is an independent prototype, not a government service or an agency deployment.

My role: I designed the pipeline, directed the AI-assisted implementation, checked the regulatory sources, built the evaluation corpus, and deployed the app.

Python · FastAPI · vision model · local OCR · rules held as data

The working prototype

The LabelAssay demo form, with a label-image upload, a rotation choice, and fields for the brand name, fanciful name, and class or type from the application.
The live demo interface, captured November 11, 2026. Open the app to try a sample label.

Two readings, then explicit checks

  1. Read the image. A vision model transcribes the label while independent OCR reads it locally.
  2. Check the evidence. Python rules compare the readings and evaluate warning text, heading format, the filed brand name, and proof/ABV consistency.
  3. Show the reason. Each finding includes its citation. Unreadable or conflicting evidence goes to “needs review.”
A LabelAssay result page headed Needs Your Review, with four findings. The warning wording and the bold heading are held for review; the brand name and alcohol content are compliant. The wording finding says the scan read GOVERNMENT as GOVERMENT.
A result from the hosted demo, November 12, 2026, for a label in TTB’s public registry whose warning heading is misprinted “GOVERMENT”. The vision model transcribed the correct spelling. The local scan read the misprint, so the finding is held for a person and says where to look. The other two differences are the scan’s own misreads, which is why a scan’s reading alone never fails a label.

Read the exact checks and coverage →

Batch review, down to each finding

In the hosted demo since November 12, 2026. Individual findings, review queues, printable reports, revision comparisons and human-review records.

  1. Match each label to its application. Upload the images and a CSV with one row per filename. Without a matching application, the brand check is shown as not checked.
  2. Open the evidence. Select “View findings” beside a completed label to read every check, citation, and text difference. The page identifies the file and the rulebook version used.
  3. Keep the full report. Once the batch finishes, download all its findings as JSON, including files that could not be processed. The CSV export remains available for a compact summary and per-rule verdicts.

The detail page explains when checks could not run, even if the checks that did run passed. Download a report to keep it: batch results expire, and uploaded images are not retained.

Follow a correction through review

In the hosted demo since November 12, 2026. The comparison shown below is an earlier local run.

Historical November 4 LabelAssay comparison of two renderings of a synthetic product, with check times, matching rulebook versions and one heading-check result changing to pass.
Historical local vision/OCR comparison of two renderings of the same synthetic product, November 4, 2026: one heading-check result changed to pass; three others retained their result. This does not establish what caused the change. The November 5 local interface labels such a transition “Now passes in this check.”
  1. Start with the review queue. Filter corrections, uncertain readings, uncheckable findings or files that could not be read. A label with passed checks and a missing application match stays “Checks incomplete.”
  2. Check the correction. Submit the revised artwork with the intended application details. Keep the earlier and corrected full-report JSON exports.
  3. Compare the evidence. Select the matching label from each export. Review changed and unchanged findings, new or removed checks, and any rulebook or coverage changes. “Now passes in this check” describes the recorded result; an uncheckable or removed rule does not count as a later pass.
  4. Keep a review copy. Print the individual findings, the whole batch, or the comparison with citations, rulebook versions and recorded check times. Older reports without a check time say so.

A comparison reads saved findings; it does not recheck the image or establish that the two reports describe the same product. Changed rulebooks can change a result even when the artwork did not change. The reviewer still decides what the evidence supports.

Keep human decisions with the evidence

Local preview: open a saved report, select its label row and record a reviewer reference, notes and a decision for each finding. Every decision starts pending. A reviewer can agree, request correction or escalate to a specialist.

The download retains the unchanged automated findings alongside the human decisions, export time and a digest of the normalized report. Pending findings keep the record incomplete. “Complete” means each finding has a decision, not that the label is approved. The digest checks report consistency; it does not authenticate the report or reviewer.

No model is called during this step. The app keeps no review history, so the reviewer saves the downloaded record. The upload and export flow also works without JavaScript for the first label row.

A repeatable gate for rule changes

The November 5, 2026 local offline gate at commit 5992997 compares the rule engine against 14 explicit scenarios and 56 expected rule decisions. The witnessed run passed, recording 30 passes, 7 needs-review findings, 4 failures and 15 uncheckable findings. It checks supplied text and OCR fixtures, not vision accuracy, production accuracy or regulatory approval.

The retained historical November 4, 2026 snapshot at local commit 422797f covers 12 scenarios and 48 decisions. It records 26 passes, 5 needs-review findings, 4 failures and 13 uncheckable findings, with per-rule expected/actual tables. Its baseline matches the retained results hash. The later local commit 05d9ae6 adds expected-evidence assertions; this snapshot does not claim a fresh run of that gate. This measures behavior on supplied text and OCR evidence; it does not measure vision accuracy or image boldness. A separate pull-request workflow is prepared locally to run the gate without deploying the app. Inspect the historical synthetic inputs, expected decisions and recorded results. These local artifacts are separate from the published repository and hosted demo.

What I measured

A November 10, 2026 run put 100 generated labels through the app and scored each one against the generator’s answer key. No defective label passed and no compliant label failed. Of 50 defective labels, 36 failed and 14 were held for review. Of 50 compliant labels, 26 passed and 24 were held for review. The result for every label is published with this page. A label held for review is not a correct verdict and is counted separately.

That run exercises known defects on generated artwork, with an answer key built from the app’s own rules. It does not establish accuracy across real-world label artwork; the project documents that gap and a separate, smaller corpus of real registry labels. Older project notes also describe a 300-label run and an earlier 100-label run with no false passes or false fails. Their per-label results were not kept, and the earlier 100-label breakdown accounts for 50 of its 51 compliant labels, so they are not cited here. Evaluation method · 300-label run and limits.

Advisory findings only. A compliance specialist makes the decision. Coverage is partial, wine and malt rules have documented gaps, and physical type size cannot be established from an image without scale.

Try it with a sample

The repository includes synthetic labels and matching application data. Use one of those in the demo to see the findings for yourself.

The hosted demo sends the label image to Anthropic for transcription; the OCR pass stays local to the server. Use public or synthetic artwork. The free host may need time to wake up.

Open the live demo → · Run your own instance →

Review the local evidence

Artifact scope and file hashes identify the synthetic review copies. These files accompany the local portfolio preview; public repository links above describe released versions.