fix(rectification): score varga-style groups at equal weight

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-08-29 00:15:21 +08:00
co-authored by Cursor
parent adfc75af8c
commit e41eaace8d
8 changed files with 222 additions and 5 deletions
@@ -151,6 +151,11 @@ export function contrastPacketFromLatestResult(
information_gain: probe.information_gain,
expected_outcomes: probe.expected_outcomes,
candidate_ids: probe.candidate_ids,
...(probe.choice_kind === "varga_style"
|| probe.choice_kind === "event_quality"
|| probe.choice_kind === "existence"
? { choice_kind: probe.choice_kind }
: {}),
}];
});
const merged = mergeEngineProbes(
@@ -248,6 +253,11 @@ function contrastPacketFromState(state: InferenceState): CandidateContrastPacket
information_gain: item.information_gain,
expected_outcomes: item.expected_outcomes,
candidate_ids: item.candidate_ids,
...(item.choice_kind === "varga_style"
|| item.choice_kind === "event_quality"
|| item.choice_kind === "existence"
? { choice_kind: item.choice_kind }
: {}),
})),
candidateTimes: state.candidates
.filter((item) => item.status !== "eliminated")