Repository navigation
Capture Guardian review checkpoints from live context - #46512
Merged
copyberry[bot] merged 1 commit intoSep 18, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Committing a Guardian review snapshot currently flushes and reloads the transcript from storage, even though the completed model context is already available in memory. ## What changed - Build forkable checkpoints directly from live session state, preserving model history, retained Guardian context, world state, turn context, and token usage. - Preserve compaction window metadata and MCP resource origins in the checkpoint. - Recognize prior user turns inside compacted replacement history. ## Testing Add round-trip checkpoint tests for legacy and thread-owned Guardian context without storage, including preservation after live history is mutated. Extend the review compaction test to assert that checkpoints do not load history from storage. GitOrigin-RevId: cb2638ca93bba6ab4472de50c7e2913e1a2f25a8
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/cb2638ca93bba6ab4472de50c7e2913e1a2f25a8
branch
from
September 18, 2026 23:37
840ae5a to
0f7c860
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/cb2638ca93bba6ab4472de50c7e2913e1a2f25a8
branch
September 18, 2026 23:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Capture Guardian review checkpoints from live context
Why
Committing a Guardian review snapshot currently flushes and reloads the transcript from storage, even though the completed model context is already available in memory.
What changed
Testing
Add round-trip checkpoint tests for legacy and thread-owned Guardian context without storage, including preservation after live history is mutated. Extend the review compaction test to assert that checkpoints do not load history from storage.