fix(consult): pass birth-time accuracy instead of treating every chart as unrectified

Hospital records and adopted rectification times were still fed to the model as not_auto_rectified because the chart request omitted declared_accuracy/time_source and mastra hardcoded the boundary. Map profile truth into the engine request, keep rectified for accepted/confirmed active times only, and leave window/general guards unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-09-02 01:21:40 +08:00
co-authored by Cursor
parent 8617eb565c
commit 56daf6be49
14 changed files with 531 additions and 14 deletions
+1
View File
@@ -1181,6 +1181,7 @@ export async function POST(request: Request) {
plan: prepared.preReserveResult,
}),
consultationMode,
{ birthTimeSource: prepared.serverChart.truth.birthTimeSource },
);
const workflowReceipt = consultationWorkflowReceipt(workflowContext);