ГЛОБАЛЬНЫЙ РЕФАКТОРИНГ АРХИТЕКТУРЫ - Рефакторинг этапов Stage 3.3: убран шаблонный LIMITED_WITH_REASON и переведен в контекстный мягкий отказ с полезными next-step.

This commit is contained in:
2026-04-11 17:22:25 +03:00
parent c2fa360eb9
commit a0d0f95dde
5 changed files with 597 additions and 50 deletions
@@ -2352,7 +2352,8 @@ describe("address query limited taxonomy and stage diagnostics", () => {
expect(result?.debug.detected_intent).toBe("unknown");
expect(result?.debug.limited_reason_category).toBe("unsupported");
const reply = String(result?.reply_text ?? "");
expect(reply.toLowerCase()).toContain("вне поддерживаемого контура");
expect(reply.toLowerCase()).toContain("адресн");
expect(reply).toContain("Что могу сделать сейчас:");
expect(reply).not.toMatch(/address_query|V1|lookup|materialized|якор/iu);
});