test(confidence-engine): report final deep provider count

This commit is contained in:
2026-10-07 07:43:08 +01:00
parent 44db12d9c0
commit 20b416dcb6
2 changed files with 3 additions and 3 deletions
@@ -394,8 +394,8 @@ assert(helperSrc.includes("effectiveContributions.push(derivedContrib)"), "one d
// D7. Prior Findings accumulate exactly once — postEpisodeFindings = prior + newDeconstructed + appended // 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)"); assert(composeHelperSection.includes("postEpisodeFindings") && composeHelperSection.includes("[...priorFindings, ...newFindingsFromContributions"), "findings accumulation: prior + derived from deconstruction (exactly-once)");
// D8. Episode reconsideration still executes via reconsiderCompletedEpisode // D8. Episode reconsideration receives timedProvider (counter accounting fix)
assert(helperSrc.includes("reconsiderCompletedEpisode"), "episode reconsideration still executes post-deconstruction"); 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 // D9. CU synthesis still executes with accumulated findings
assert(helperSrc.includes("postEpisodeFindings") && helperSrc.includes("synthesizeCurrentUnderstanding"), "CU synthesis uses full accumulated findings"); assert(helperSrc.includes("postEpisodeFindings") && helperSrc.includes("synthesizeCurrentUnderstanding"), "CU synthesis uses full accumulated findings");
@@ -381,7 +381,7 @@ async function composeDeepInvestigationCheckpoint({ situationGraph, previousQues
throw new Error("no_episodic_content: prepared episode has no turns or eligible findings"); 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) { if (!reasoning.success) {
throw new Error(`reconsiderCompletedEpisode failed: ${reasoning.error}`); throw new Error(`reconsiderCompletedEpisode failed: ${reasoning.error}`);
} }