АРЧ АП11 - Архитектура после регресса: Архитектура: закрыть translit hybrid-entry seam в phase13 и закрепить routing в endpoint-регрессии

This commit is contained in:
2026-04-18 19:45:55 +03:00
parent 823cb56a63
commit 0ecee2b360
5 changed files with 128 additions and 25 deletions
@@ -1791,5 +1791,6 @@ describe("assistant address llm pre-decompose candidate preference", () => {
expect(calls[0].message).not.toContain("остаток по счету 07");
expect(calls[0].message.toLowerCase()).toContain("договору 1-пм/2020");
});
});
@@ -163,9 +163,17 @@ describe("assistant mode API", () => {
expect(response.body.reply_type).not.toBe("out_of_scope");
expect(response.body.debug?.route_summary?.message_in_scope).toBe(true);
expect(Array.isArray(response.body.debug?.routes)).toBe(true);
expect(response.body.debug?.routes.some((item: { route?: string }) => item.route !== "no_route")).toBe(true);
expect(response.body.debug?.routes.length).toBeGreaterThan(0);
expect(
response.body.debug?.routes.every((item: { route?: string }) => item.route === "hybrid_store_plus_live")
).toBe(true);
expect(Array.isArray(response.body.debug?.retrieval_results)).toBe(true);
expect(response.body.debug?.retrieval_results.some((item: { status?: string }) => item.status === "ok")).toBe(true);
expect(
response.body.debug?.retrieval_results.some(
(item: { status?: string; route?: string }) =>
item.status === "ok" && item.route === "hybrid_store_plus_live"
)
).toBe(true);
});
it("avoids false route mismatch when supported evidence exists for bounded answer", async () => {