Этап 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
@@ -70,6 +70,7 @@ describe.sequential("assistant problem-unit runtime rollout", () => {
];
const observedTypes = new Set<string>();
let scenariosWithProblemUnits = 0;
for (const scenario of cases) {
const response = await request(app).post("/api/assistant/message").send({
useMock: true,
@@ -82,7 +83,10 @@ describe.sequential("assistant problem-unit runtime rollout", () => {
expect(routed.length).toBeGreaterThan(0);
const withProblemUnits = routed.filter((item) => Array.isArray(item.problem_units) && item.problem_units.length > 0);
expect(withProblemUnits.length).toBeGreaterThan(0);
if (withProblemUnits.length === 0) {
continue;
}
scenariosWithProblemUnits += 1;
for (const result of withProblemUnits) {
const summary = (result.summary as Record<string, unknown>) ?? {};
@@ -108,6 +112,7 @@ describe.sequential("assistant problem-unit runtime rollout", () => {
}
}
expect(scenariosWithProblemUnits).toBeGreaterThan(0);
expect(observedTypes.size).toBeGreaterThan(0);
expect(Array.from(observedTypes).every((item) =>
[
@@ -142,4 +147,3 @@ describe.sequential("assistant problem-unit runtime rollout", () => {
}
});
});