3 months ago
5650c9frollupEconomicsDay folds a UTC day's runs and prod ai_review_usage into economics_daily: one row per org plus a null-org totals row with the unattributed bucket, pulled-cost drift, Railway usage, and a credit decrement read only from prior days (idempotent delete-then-insert). COGS sums filter source=prod; eval-key pulled spend is excluded from drift. Cron 02:20 UTC after the pull. Integration-tested end to end.
Parent2da6eda