SpendRule
The answer has to survive the journey from inbound file to client decision.
Problem
Healthcare invoices and governing agreements arrive through different systems, often as scans or archives. Pricing authority may be split across amendments, rate tables, facilities, and effective dates.
Hard constraint
A financial conclusion needs the right source, scope, and time. An accepted upload event is not proof a document was processed; retries and replay must preserve identity and avoid duplicate decisions.
Architectural move
Route SFTP and dropzone files through event-driven archive and document handlers into a versioned vault. Run extraction, contract compilation, and invoice validation as durable stages. Use models for semantic matching, deterministic checks for pricing, and traces and audit paths to examine the result.
Retries, traces, and audit records help inspect the processing and decision path.
Evidence / artifact
A production validation flow with content-addressed document storage, event-driven intake and recovery, source-linked decisions, and an asynchronous audit of validation outcomes.
What this reveals
I design the operating and recovery path alongside the AI decision path. Provenance matters from the first file transfer to the final explanation.