g1t/services/billing/migrations/0044_cache_reads_count_a_tenth.sql
| 1 | -- Cache reads count a tenth toward the g1t agent rate, as providers price |
| 2 | -- them: a cached agent run reads most of its context from cache, and at a |
| 3 | -- full weight the rate would add about 44% to a typical Sonnet run for |
| 4 | -- tokens that cost the provider a tenth. A lower weight is a price fall, so |
| 5 | -- it applies at once; the agent rate itself starts on 2026-10-22. |
| 6 | |
| 7 | INSERT OR IGNORE INTO price_versions (id, meter, version, cost_micros, markup_percent, effective_at, reason, created_by, created_at, applied_at) VALUES |
| 8 | ('pv_agent_token_weight_cache_read_2', 'agent_token_weight_cache_read', 2, 100000, 0, '2026-10-08T00:00:00Z', |
| 9 | 'Cache reads count a tenth toward the agent rate, as model providers price them', 'migration', '2026-10-08T04:30:00Z', '2026-10-08T04:30:00Z'); |
| 10 | |
| 11 | UPDATE prices SET cost_micros = 100000, updated_at = '2026-10-08T04:30:00Z' |
| 12 | WHERE meter = 'agent_token_weight_cache_read' AND cost_micros = 1000000; |
| 13 | |
| 14 | INSERT OR IGNORE INTO price_changes (id, meter, old_cost_micros, new_cost_micros, markup_percent, reason, created_at) VALUES |
| 15 | ('prc_agent_token_weight_cache_read_2', 'agent_token_weight_cache_read', 1000000, 100000, 0, |
| 16 | 'Lower: cache reads count a tenth toward the agent rate (input, output and cache writes still count once)', '2026-10-08T04:30:00Z'); |