feat(confidence-engine): synthesize restored findings
This commit is contained in:
@@ -272,8 +272,16 @@ export default function ScenarioForm() {
|
||||
|
||||
setFindings(() => nextFindings);
|
||||
|
||||
// ── Synthesis trigger: eligible Finding → not_relevant → one reconstruction ──
|
||||
if (newDisposition !== "not_relevant") return;
|
||||
// ── Synthesis trigger: completed canonical eligibility transition ──
|
||||
const prevFinding = (findings ?? []).find((f) => f.id === findingId);
|
||||
const previousDisposition = prevFinding?.userDisposition;
|
||||
|
||||
const notRelevantTransition =
|
||||
previousDisposition !== "not_relevant" && newDisposition === "not_relevant";
|
||||
const restoreTransition =
|
||||
previousDisposition === "not_relevant" && newDisposition === null;
|
||||
|
||||
if (!notRelevantTransition && !restoreTransition) return;
|
||||
|
||||
const currentGraph = result?.situationGraph;
|
||||
if (!currentGraph) return;
|
||||
|
||||
Reference in New Issue
Block a user