record_ingest_run
Record an ingestion pass audit: log emails seen, events written, and skipped items with reasons, then return the earliest backfill cursor for coverage tracking.
Instructions
Ingestion agent plumbing: record a run (heartbeat + audit) after every ingestion pass, even one that wrote nothing. skipped: [{source_ref, reason}] for receipts/lines the agent could not parse (never guess — skip and log). Returns the backfill cursor: earliest_window_start already covered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skipped | No | ||
| window_end | Yes | ||
| emails_seen | Yes | ||
| window_start | Yes | ||
| events_written | Yes |