From 20b416dcb6398ec2a75adb4f69e12392af0f7e5e Mon Sep 17 00:00:00 2001 From: robbond Date: Wed, 7 Oct 2026 07:43:08 +0100 Subject: [PATCH] test(confidence-engine): report final deep provider count --- tests/graph/live-update-experiment-helper-checkpoint.test.cjs | 4 ++-- tests/graph/live-update-experiment-helper.cjs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/graph/live-update-experiment-helper-checkpoint.test.cjs b/tests/graph/live-update-experiment-helper-checkpoint.test.cjs index 676b790..eb54697 100644 --- a/tests/graph/live-update-experiment-helper-checkpoint.test.cjs +++ b/tests/graph/live-update-experiment-helper-checkpoint.test.cjs @@ -394,8 +394,8 @@ assert(helperSrc.includes("effectiveContributions.push(derivedContrib)"), "one d // D7. Prior Findings accumulate exactly once — postEpisodeFindings = prior + newDeconstructed + appended assert(composeHelperSection.includes("postEpisodeFindings") && composeHelperSection.includes("[...priorFindings, ...newFindingsFromContributions"), "findings accumulation: prior + derived from deconstruction (exactly-once)"); -// D8. Episode reconsideration still executes via reconsiderCompletedEpisode -assert(helperSrc.includes("reconsiderCompletedEpisode"), "episode reconsideration still executes post-deconstruction"); +// D8. Episode reconsideration receives timedProvider (counter accounting fix) +assert(helperSrc.includes("reconsiderCompletedEpisode(prepared, { provider: timedProvider })") || helperSrc.includes('reconsiderCompletedEpisode(prepared, { provider : timedProvider })'), "episode reconsideration receives timedProvider (counter accounting fix)"); // D9. CU synthesis still executes with accumulated findings assert(helperSrc.includes("postEpisodeFindings") && helperSrc.includes("synthesizeCurrentUnderstanding"), "CU synthesis uses full accumulated findings"); diff --git a/tests/graph/live-update-experiment-helper.cjs b/tests/graph/live-update-experiment-helper.cjs index 446fb04..7978ffb 100644 --- a/tests/graph/live-update-experiment-helper.cjs +++ b/tests/graph/live-update-experiment-helper.cjs @@ -381,7 +381,7 @@ async function composeDeepInvestigationCheckpoint({ situationGraph, previousQues throw new Error("no_episodic_content: prepared episode has no turns or eligible findings"); } - const reasoning = await reconsiderCompletedEpisode(prepared); + const reasoning = await reconsiderCompletedEpisode(prepared, { provider: timedProvider }); if (!reasoning.success) { throw new Error(`reconsiderCompletedEpisode failed: ${reasoning.error}`); }