Merge nucleic/plucky-north-vole-sdna into dev

This commit is contained in:
2026-08-01 16:14:34 -07:00
parent 14e04a4ed5
commit 9903296da6
2 changed files with 18 additions and 1 deletions
+6 -1
View File
@@ -217,7 +217,12 @@ def attach_first_responses(
continue
previous = responses.get(turn.session_id)
if previous is not None:
raise DataError(f"ambiguous assistant response after first prompt in session {turn.session_id!r}")
# The dataset can contain multiple transcript rows at one conversational
# ordinal. `turn_number` is the documented checked tie-breaker; retain the
# earliest actual response and make the condition visible in the funnel.
funnel["multipleAssistantResponsesAtFirstResponseOrdinal"] += 1
if (turn.turn_number, turn.turn_id) >= (previous.turn_number, previous.turn_id):
continue
responses[turn.session_id] = turn
preliminary: list[Candidate] = []