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
On main f32c884 (0.5.0), _trajectory_agent_runtime_failure_reason treats a trajectory as tokenless whenever optional final aggregate token totals are absent or zero. It ignores positive per-step token metrics. An ordinary generated answer such as 401 is then reported as an agent runtime failure and a valid reward can be discarded.
Proposed fix
Use recorded step token usage as well as final totals to decide whether the trajectory is tokenless. Preserve explicit runtime exceptions and structured provider error events. The prepared tests cover missing/empty/zero aggregates, prompt-only and completion-only usage, tokenless failures and explicit failures after token usage.
Reproduction steps
With the Tier 3 dependencies installed, this runs offline:
A collector-level regression also reproduces a completed trial with a valid reward becoming failed/unscored. Unlike #82, this needs neither a verifier exception nor a plain-log scan; the trajectory heuristic is the remaining path.
Activity