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
Context compaction: retry a failed prompt group instead of dropping it #4557
When a prompt group fails on infrastructure (a timeout, a transport error, or an agent error that reaches RL as an HTTP 500), the ordinary path re-runs the group with backoff, up to max_infra_attempts times (rollout_manager.py#L2215-L2219).
Under CC the group is never retried. It is dropped on the first failure (rollout_manager.py#L2210-L2214). The code comment gives the reason: RL keeps the record of which responses the agent accepted only for that request, so re-sending the group would lose it. The guide leaves retry for later checkpoint/retry work (context-compaction.md#L47).
Why it matters
At moderate scale, transient failures are routine. Without retry, every one of them becomes a lost prompt group. In #4124 as it stands, a lost group stops the whole run. Even if CC steps are allowed to train with fewer groups, every transient failure still throws data away, where the ordinary path would have recovered it.
Ask
Keep, or rebuild, the per-request selection state so a failed CC group can be re-sent the same way the ordinary path re-sends it.
Remove the CC-only break so CC uses the same retry budget (max_infra_attempts, backoff).
Add a test: inject one transient infrastructure failure into a CC group, check that the group is retried, and check that the step then trains with the full set of groups.
Hi, I can take a look at this. I’ll focus on preserving the context-compaction selection state across transient retries and add regression coverage for a fail-first/succeed-second prompt group. Happy to put up a PR if nobody’s working on it yet.
Activity
Epsilon006 commentedon Oct 7, 2026
Hi, I can take a look at this. I’ll focus on preserving the context-compaction selection state across transient retries and add regression coverage for a fail-first/succeed-second prompt group. Happy to put up a PR if nobody’s working on it yet.