Этап 4 / Волна 10: корректировка settlement-кейса — доменная фиксация синтеза, честное покрытие, удержание фокуса / Этап 4 / Волна 11: бизнес-якоря, доменное заземление и устранение утечки дебага

This commit is contained in:
2026-03-28 02:17:19 +03:00
parent 914843a8ba
commit a06e575be4
367 changed files with 432257 additions and 3627 deletions
@@ -0,0 +1,16 @@
import { describe, expect, it } from "vitest";
import { extractSubjectTokensForTests } from "../src/services/assistantService";
describe("wave11 subject token pollution cleanup", () => {
it("settlement_query_subject_tokens_must_not_include_spurious_accounts_from_dates", () => {
const tokens = extractSubjectTokensForTests(
"Оплата по счету № 4 от 07.07.20 на 276 873,60 пришла 13 июля, но 62.01/62.02 не сходятся."
);
expect(tokens).toContain("account_62.01");
expect(tokens).toContain("account_62.02");
expect(tokens).not.toContain("account_07.07");
expect(tokens).not.toContain("account_13");
});
});