feat(confidence-engine): isolate finding-informed understanding
This commit is contained in:
@@ -30,7 +30,7 @@ import {
|
||||
selectActiveUnknownCandidate,
|
||||
validateGraphReferences,
|
||||
} from "./utils.js";
|
||||
import { validateFindings } from "./finding-helpers.js";
|
||||
import { validateFindings, produceFindingInformedSummary } from "./finding-helpers.js";
|
||||
|
||||
function toValidationErrors(error) {
|
||||
return (
|
||||
@@ -853,6 +853,14 @@ async function updateCaseWithDependencies(body, dependencies = {}) {
|
||||
appendedFindings = normalized;
|
||||
}
|
||||
|
||||
// ── Post-authoritative finding-informed understanding seam ────
|
||||
const authoritativeSummary =
|
||||
applicationResult.updatedSituationGraph?.currentSummary ?? "";
|
||||
const experimentalSummary = produceFindingInformedSummary(
|
||||
authoritativeSummary,
|
||||
appendedFindings,
|
||||
);
|
||||
|
||||
return {
|
||||
success: true,
|
||||
stage: "update_applied",
|
||||
@@ -866,7 +874,7 @@ async function updateCaseWithDependencies(body, dependencies = {}) {
|
||||
newActiveUnknownNodeId: applicationResult.newActiveUnknownNodeId,
|
||||
changesApplied: applicationResult.changesApplied,
|
||||
appendedFindings,
|
||||
summary: applicationResult.updatedSituationGraph?.currentSummary ?? "",
|
||||
summary: experimentalSummary,
|
||||
diagnostics: buildUpdateDiagnostics({
|
||||
promptVersion,
|
||||
modelName,
|
||||
|
||||
Reference in New Issue
Block a user