Commit graph

1 commit

Author SHA1 Message Date
DEls
8654c65e6f feat(ingest): add honest document status resolution
The three synchronous importers (timesheets, fuel, plant hours) used to
write status: "processed" on their audit row before a single insert ran,
and never updated it. Production had 21 such phantom-processed batches
across payroll and plant hours. resolveDocumentOutcome() computes the
real status from actual insert counts, so no route can claim success it
didn't earn.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 13:43:15 +02:00