Files
6krrt/tests/test_incumbent_routing.py
adlee-was-taken f769eb4a35 test(incumbent): stamp the cache-rate fixture with now, not a fixed date
_seed_measured_cache_rate wrote observed_at='2026-09-13T00:00:00+00:00', but
_measured_cache_rates only reads rows inside objective.cache_rate_window_hours
(168). Once the date aged out of that window, around 2026-09-20, the incumbent
was priced at the assumed rate instead of the measured one and
test_debug_log_emits_incumbent_identity failed on main, with no code change.

Stamp the seeded rows with the current time so the fixture cannot age out.
The file goes from 25 of 26 to 26 of 26; the full suite is 2544 passed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KkCGRantZsSwmcFpet6FTa
2026-10-03 10:43:19 -04:00

31 KiB