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
Carry terminal truncation metadata through Gym token-capture receipts #4737
PR #4491 fixes multi-turn context exhaustion for ordinary Gym results, but the token-capture receipt path still marks truncation only when the assembled sequence length equals the maximum length. A terminal response that ends with incomplete_details.reason=max_output_tokens before that equality can therefore escape overlong_filtering and undercount truncation metrics.
Carry the terminal response's truncation evidence through receipt assembly and use the same context-exhaustion semantics when finalizing captured rows. Preserve compatibility with older receipts that lack the metadata, and keep content-filter or ordinary completed responses distinct from length truncation.
Add tests that drive receipt assembly through RolloutReassembler for a zero-token context-exhausted final turn, terminal length exhaustion below the total limit, an ordinary completed response, a content-filtered response, and a legacy receipt. Check both the emitted TRUNCATED column and the downstream overlong filter.
The receipt finalization path still sets TRUNCATED based on reconstructed sequence length alone, so terminal length-exhaustion evidence may be lost before the training batch is assembled.
I'd be interested in contributing a focused regression and fix covering terminal max_output_tokens below the sequence limit, zero-token terminal exhaustion, normal completion, content-filtered responses, and legacy receipts without the new metadata.
I also noticed #4711 and #4776 touch nearby rollout/capture paths, so I'd want to avoid overlapping with ongoing work.
@linj-glitch, are you already implementing this follow-up? If not, would a test-first contribution focused on receipt propagation and downstream filtering be useful?
Hi, I am picking this up. I will reproduce the receipt-path truncation gap first (terminal max_output_tokens below the sequence limit / zero-token final turn escaping TRUNCATED and overlong_filtering), then open a focused PR with the fix plus regression tests through RolloutReassembler covering terminal length exhaustion, zero-token exhaustion, normal completion, content-filtered responses, and legacy receipts.
Activity
GBX-Max1220 commentedon Oct 21, 2026
Hi, I looked into this follow-up to #4491.
The receipt finalization path still sets
TRUNCATEDbased on reconstructed sequence length alone, so terminal length-exhaustion evidence may be lost before the training batch is assembled.I'd be interested in contributing a focused regression and fix covering terminal
max_output_tokensbelow the sequence limit, zero-token terminal exhaustion, normal completion, content-filtered responses, and legacy receipts without the new metadata.I also noticed #4711 and #4776 touch nearby rollout/capture paths, so I'd want to avoid overlapping with ongoing work.
@linj-glitch, are you already implementing this follow-up? If not, would a test-first contribution focused on receipt propagation and downstream filtering be useful?
four1er commentedon Nov 23, 2026
Hi, I am picking this up. I will reproduce the receipt-path truncation gap first (terminal
max_output_tokensbelow the sequence limit / zero-token final turn escapingTRUNCATEDandoverlong_filtering), then open a focused PR with the fix plus regression tests throughRolloutReassemblercovering terminal length exhaustion, zero-token exhaustion, normal completion, content-filtered responses, and legacy receipts.