fix(rectification): resolve typed focus answers deterministically
Independent Staging Quality Gate / validate (push) Successful in 19m52s
Independent Staging Quality Gate / publish (push) Successful in 53m47s

This commit is contained in:
Jesse_Chen
2026-08-27 20:31:05 +08:00
parent f3327235ea
commit 85db4591d3
24 changed files with 695 additions and 168 deletions
@@ -134,7 +134,18 @@ test("hidden case walks collection through holdout to a range or representative
const before = posteriorMap(collected.candidates);
const answered = applyChoiceWithoutEvidence(collected, {
choiceKey: "A",
schema: { probe_id: first.id, semantic_key: first.semantic_key },
schema: {
probe_id: first.id,
semantic_key: first.semantic_key,
choice: {
options: [
{ key: "A", answer_class: "yes" },
{ key: "B", answer_class: "weak_yes" },
{ key: "C", answer_class: "no" },
{ key: "D", answer_class: "unsure" },
],
},
},
});
assert.equal(answered.applied, true);
assert.notDeepEqual(posteriorMap(answered.state.candidates), before);