fix(rectification): keep candidate state coherent
This commit is contained in:
@@ -122,6 +122,7 @@ test("PR-4 candidate decisions use server UUIDs, receipt-derived gates and separ
|
||||
birth_date: "1997-08-08",
|
||||
latitude: 36.420487,
|
||||
longitude: 114.209936,
|
||||
timezone_id: "Asia/Shanghai",
|
||||
timezone_offset: 8,
|
||||
birth_time_source: "family_exact",
|
||||
reported_birth_time: "05:00",
|
||||
@@ -193,6 +194,26 @@ test("PR-4 candidate decisions use server UUIDs, receipt-derived gates and separ
|
||||
},
|
||||
{ rank: 2, time: "05:08", relative_support: 40, tied_minute_count: 1 },
|
||||
];
|
||||
const inferenceState = {
|
||||
algorithm_version: "rectification-pr4-fixture-v1",
|
||||
candidate_set_id: "04:50-05:10:05:07,05:08",
|
||||
revision: 0,
|
||||
phase: "candidate_ready",
|
||||
result_status: "completed_with_range",
|
||||
range_start: "04:50",
|
||||
range_end: "05:10",
|
||||
candidates: [
|
||||
{ id: "05:07", time: "05:07", cluster_range: ["05:07", "05:07"], prior_score: 60, posterior_score: 60, probability: 0.6, status: "active", rank: 1, strong_conflict_count: 0 },
|
||||
{ id: "05:08", time: "05:08", cluster_range: ["05:08", "05:08"], prior_score: 40, posterior_score: 40, probability: 0.4, status: "active", rank: 2, strong_conflict_count: 0 },
|
||||
],
|
||||
events: [],
|
||||
probes: [],
|
||||
answered_probes: [],
|
||||
rounds: [],
|
||||
entropy: 1,
|
||||
representative_time: "05:07",
|
||||
credible_range: ["05:07", "05:08"],
|
||||
};
|
||||
const decisionReceipt = {
|
||||
display_allowed: true,
|
||||
accept_allowed: true,
|
||||
@@ -201,6 +222,7 @@ test("PR-4 candidate decisions use server UUIDs, receipt-derived gates and separ
|
||||
overall_confidence: "high",
|
||||
margin_percent: 20,
|
||||
representative_candidate_id: fakeCallerCandidateId,
|
||||
inference_state: inferenceState,
|
||||
};
|
||||
const executionLedger = [
|
||||
{ phase: "candidate.score", status: "completed", engine: "fixture-engine" },
|
||||
|
||||
Reference in New Issue
Block a user