What Gets Recorded
Usage Extraction
extractTokens() accepts provider output shapes that expose token fields under names such as:
resolveAuthoritativeTokens() prefers provider-reported usage when present and falls back to tracked callback totals. This matters because streaming and tool loops can expose usage at different points depending on the model adapter.
Run Lifecycle
Workflow runs useworkflow/run-tracker.ts for lifecycle state:
Cron metadata records total executions, successes, failures, and last-run details per trigger.