mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-31 22:14:25 +01:00
cost_usd stays a finite number. Trial and eval records gain an optional cost_known boolean (absent means known, so old records still parse; the validator accepts only a boolean). Session-ledger rows record whether the session's terminal result carried total_cost_usd; PTY and Codex sessions never do, and SDK captures without a terminal result do not. A trial is cost-known only when it has eval records and every record and session captured billing, so JUnit-only PTY cases (125 of 298 trials in run 37198445662 recorded 0) now read cost unknown. The census headline prints the known sum plus the unknown count, never a bare total over unknown costs, and no total when every cost is unknown; the history import keeps the flag. PTY transcripts are not priced: test/helpers/pricing.ts estimates exclude cache writes, so they cannot give the billed cost.