Этап 4 / Волна 19.2 исправление живого replay-контура для слоя адресного сбора доказательной базы

This commit is contained in:
2026-03-29 08:58:16 +03:00
parent d461cedf35
commit 095e74ad3b
9 changed files with 863 additions and 34 deletions
@@ -32,6 +32,8 @@ describe("assistant mode API", () => {
expect(typeof response.body.debug?.temporal_guard_outcome).toBe("string");
expect(typeof response.body.debug?.temporal_alignment_status).toBe("string");
expect(typeof response.body.debug?.temporal_guard_basis).toBe("string");
expect(response.body.debug).toHaveProperty("effective_primary_period");
expect(response.body.debug).toHaveProperty("temporal_guard_input");
expect(response.body.debug?.domain_polarity_guard).toBeTruthy();
expect(Array.isArray(response.body.debug?.raw_numeric_tokens)).toBe(true);
expect(Array.isArray(response.body.debug?.classified_numeric_tokens)).toBe(true);
@@ -42,6 +44,7 @@ describe("assistant mode API", () => {
expect(typeof response.body.debug?.eligibility_time_basis).toBe("string");
expect(typeof response.body.debug?.grounded_answer_eligibility_guard?.eligibility_time_basis).toBe("string");
expect(typeof response.body.debug?.grounded_answer_eligibility_guard?.business_scope_passed).toBe("boolean");
expect(Array.isArray(response.body.debug?.company_scope_resolution_reason ?? [])).toBe(true);
expect(Array.isArray(response.body.conversation)).toBe(true);
expect(response.body.conversation.length).toBe(2);
});
@@ -151,6 +151,8 @@ describe("stage4 blocker-pack runtime guards", () => {
expect(temporal.temporal_guard_outcome).toBe("passed");
expect(temporal.raw_time_scope).toBe("2023-07-06");
expect(temporal.resolved_time_anchor).toBe("2020-07-06");
expect(temporal.effective_primary_period?.from).toBe("2020-07-06");
expect(temporal.temporal_guard_input).toBe("2020-07-06..2020-07-06");
expect(temporal.temporal_alignment_status).toBe("corrected");
expect(temporal.temporal_guard_basis).toBe("resolved_primary_period");
expect(temporal.normalized_anchor_drift_detected).toBe(true);
@@ -179,6 +181,7 @@ describe("stage4 blocker-pack runtime guards", () => {
expect(temporal.temporal_guard_applied).toBe(true);
expect(temporal.temporal_guard_outcome).toBe("passed");
expect(temporal.resolved_time_anchor).toBe("2020-07");
expect(temporal.effective_primary_period?.from).toBe("2020-07-01");
expect(hintedPlan[0].fragment_text).toMatch(/июля 2020|2020-07-01/);
});
@@ -330,6 +333,12 @@ describe("stage4 blocker-pack runtime guards", () => {
to: "2020-07-06",
granularity: "day"
},
effective_primary_period: {
from: "2020-07-06",
to: "2020-07-06",
granularity: "day"
},
temporal_guard_input: "2020-07-06..2020-07-06",
temporal_alignment_status: "corrected",
temporal_resolution_source: "company_snapshot_july_day_lock",
temporal_guard_basis: "resolved_primary_period",