experiment(confidence-engine): add reconstruction-only helper flag

This commit is contained in:
2026-09-06 18:22:20 +01:00
parent be8b725a8d
commit 5878ce45ec
2 changed files with 30 additions and 3 deletions
@@ -141,6 +141,24 @@ describe("start-case-experiment-helper.cjs apparatus", () => {
});
});
describe("B.1 — reconstruction-only CLI option", () => {
it("passes reconstructionOnly through the startCase seam without selecting OpenAI", async () => {
const result = await runHelper(["--reconstruction-only", "Scenario text"]);
expect(result.exitCode).toBe(0);
const parsed = parseOutput(result);
expect(parsed.diagnostics).toMatchObject({
modelName: "inline-test-double",
reconstructionOnly: true,
});
});
it("composes reconstruction-only with file input", async () => {
const result = await runHelper(["--reconstruction-only", "--file", tmpFile]);
expect(result.exitCode).toBe(0);
expect(parseOutput(result).diagnostics.reconstructionOnly).toBe(true);
});
});
// ── C — Environment loading ─────────────────────────────────────
describe("C — environment loading", () => {