tooling: supply anchored previous question in update-only mode

This commit is contained in:
2026-08-12 10:41:02 +01:00
parent 70db093cb1
commit 8526aa4b69
2 changed files with 53 additions and 3 deletions
@@ -239,7 +239,10 @@ async function runUpdateOnlyMode() {
// Deep-copy so mutation doesn't corrupt the original fixture.
const situationGraph = JSON.parse(JSON.stringify(initialGraph));
let selectedQuestion = null;
// Derive previousQuestion from the committed savings-realism anchor so that
// update-only mode can reach the production Update path without requiring Start.
let selectedQuestion = fixtureData.unresolved_question ?? savingsNode.label;
// ── Exactly one Update through production route ────────
const updateNum = 1;