Skip to content

Make rollout reconstruction resumable for backtracking#13096

Open
charley-oai wants to merge 1 commit intomainfrom
cc/rollout-reconstruction-resumable-backtracking
Open

Make rollout reconstruction resumable for backtracking#13096
charley-oai wants to merge 1 commit intomainfrom
cc/rollout-reconstruction-resumable-backtracking

Conversation

@charley-oai
Copy link
Collaborator

Summary

  • add a resumable RolloutReconstructionState that carries loaded rollout items plus extra backtracking
  • use replay-based reconstruction during thread rollback when rollout persistence exists
  • add coverage for backtracking past the current rollout suffix and for rollback restoring history metadata

Testing

  • cargo test -p codex-core --lib codex::rollout_reconstruction_tests -- --nocapture
  • cargo test -p codex-core --lib thread_rollback -- --nocapture
  • just fix -p codex-core
  • just fmt

Co-authored-by: Codex <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant