Three bugs fixed:
1. triage_pr() returns 3 values but line 611 unpacked 2 → ValueError on every
non-deterministic PR (circuit breaker opened, 5 PRs stuck)
2. costs import was inside triage else-block → NameError on deterministic routes
3. pr_cost never written to prs.cost_usd → 0% cost tracking across 1,118 PRs
Cost tracking now covers all 4 exit paths: domain failed, domain rejected,
Leo failed, and normal completion. Uses additive UPDATE (cost_usd + ?) so
re-evals accumulate correctly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>