refactor(4.3): вынести роутер в routing.decide_engine + детерминированный юнит-тест (поведение не меняется)

Закрывает аудит-претензию «хрупкий нетестируемый keyword-роутер»: логика
идентична прежней inline-версии, но теперь покрыта прямым тестом (5 кейсов) в CI.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
anor
2026-06-10 18:23:55 +10:00
co-authored by Claude Fable 5
parent 861da5e981
commit 4d178710e3
4 changed files with 127 additions and 45 deletions
+1 -1
View File
@@ -12,4 +12,4 @@ jobs:
- name: Синтаксис всех модулей (py_compile)
run: python3 -m py_compile *.py
- name: Юнит-тесты без живого сервера
run: python3 -m pytest tests/test_chat_context.py tests/test_code_validator.py tests/test_gge_deep.py -q
run: python3 -m pytest tests/test_chat_context.py tests/test_code_validator.py tests/test_gge_deep.py tests/test_routing.py -q