You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Record when a model's reply was cut off, so a run can show it #170
When a reply hits its token limit, the row should say so. Today nothing in a stored row shows that a judge, the simulated user, the assistant or a scorer's model was cut off, and a cut-off reply is a common cause of a wrong verdict: a judge that stops before its <rating>, a user turn that ends mid-sentence, an assistant reply that ends early and is scored as complete.
#116 makes the reason visible to code: acall_llm returns each call's finish_reason ("length" for a cut-off reply, Anthropic's max_tokens mapped to it) and usage. This issue is about keeping it in the row.
Why can't you do it today?
A probe can read finish_reason in its own hooks after #116, but the loop's own calls (the user model, the gate, the inline judge, summaries) happen inside the loop, and nothing records their stop reason. SimulationOutcome keeps per-alias calls, tokens and wall clock; SimulationTrace records checks, not model calls.
What shape do you propose?
Recorded from _finish_call, where every call already reports its usage to the outcome builder. Options:
A per-alias count of cut-off replies, per_model_cut_offs, next to per_model_calls. Smallest; tells a report which model ran out of tokens and how often, not where.
A warning (WarningKind) with the turn and alias. Shows where; a row with a cut-off reply reads "completed with warnings".
A trace per cut-off call, with finish_reason in extra. Most detail; traces today are per check, so this would be the first per-call one.
We'd suggest 1, plus 2 for the loop's own judge and user calls, where a cut-off changes the conversation.
Results impact
Option 1 adds an outcome key. Option 2 can move rows from completed to completed-with-warnings.
Activity