caelum0x 11877eb2e2 fix(relay-semantic-cache): lower max_temperature default to 0.5
Found while verifying the previous commit's fix doesn't miss siblings:
three of Menivor's own backend features route through this same gateway
with the identical vulnerable shape (single `user` message, no `system`
message, static instructions dominating a short variable section) at
temperatures the 0.7 default left unprotected --
app/domains/appaudit/rewrite.py (0.6), app/domains/applisting/hookscript.py
and app/domains/adclone/relay_writer.py (0.7, exactly at the old boundary).

Lowered the default to 0.5: every confirmed real caller that sets a
non-zero temperature today does so at 0.6+ specifically for sampling
variety, so 0.5 now covers all of them. No caller found anywhere in the
portfolio relies on caching in the 0.5-0.7 band, so this is pure
additional coverage, not a tradeoff -- confirmed low-temperature/no-temperature
consumers (CalDesk at 0.2, Kamiko's persona chat and Bidstage's structured
extraction, both of which omit temperature) are unaffected either way.

Extended the regression test to assert both newly-covered real
temperatures (0.6, 0.7) also bypass the cache, not just the headline 0.9
case. 22/22 tests still pass.
2026-11-17 01:29:23 +03:00
..