3 months ago
97302e9Worker holds the prod OpenRouter key (OPENROUTER_API_KEY_PROD, back-compat fallback to OPENROUTER_API_KEY); eval harness uses OPENROUTER_API_KEY_EVAL. Source is derived via deriveUsageSource, never guessed. generate.ts enables usage.include and sums per-step provider cost into the trace. runWorkflows meters ai-review usage best-effort after the run persists (try/catch, run outcome unaffected); resume-run reuses persisted outcomes so no double-count. Cost flows through the trace so live writes and backfill share one read path.
Parent87464d1