fix(чат): не отрицать доступный период цен; список периодов в подсказке

Живой прогон исходного диалога 20.11.2026: на «3 квартал 2026» ответ
утверждал, что цен 2026 нет, хотя они загружены. Добавлена строка доступных
периодов и детерминированная поправка ложного отрицания.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-20 03:55:11 +10:00
co-authored by Claude Code
parent ad39a0af73
commit bd87250c1d
2 changed files with 25 additions and 4 deletions
+8
View File
@@ -285,6 +285,14 @@ def test_period_correction_flags_false_denial():
assert "3 квартал 2026" in note and "неверно" in note
def test_period_correction_flags_false_2026_denial():
status = "3 квартал 2026"
ans = ("Индексов и стоимости ресурсов на III квартал 2026 "
"в моей базе нет.")
note = cbg._period_claim_correction(ans, status)
assert "3 квартал 2026" in note and "неверно" in note
def test_period_correction_silent_without_denial():
status = "Индексы ГОСР (РИМ): 3 квартал 2026, 86/86"
assert cbg._period_claim_correction("Цена 2025 Q2.", status) == ""