Designing production document-verification agents for compliance workflows: architecture and open questions

Unique_Geologist6888 · reddit · 2026-11-24

The author shares an agentic document-verification architecture for financial/audit workflows (10–25 linked PDFs per case checked against buyer-specific Excel/SOP checklists): a hierarchical case graph (Case→Document→Page→ExtractedField→RuleResult→AuditEvent); extraction escalating from native PDF text to OCR/VLM with page/bounding-box provenance; deterministic Python/SQL for all arithmetic and threshold checks (never letting an LLM do math); and an agentic triage layer that investigates flagged mismatches, groups them by probable cause, and routes to a HITL exception queue. Three open questions: compiling messy buyer checklists into versioned checks without per-tenant code; guarding against agents hallucinating real errors away as 'innocent timing lags'; and preserving provenance plus building golden-set evals for cause-classification precision.

Original post →

More from coding & agent

coding & agent channel →