Preserve Guardian history across thread reconstruction - #42065
Merged
copyberry[bot] merged 1 commit intoSep 1, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Guardian review evidence must remain available after a compacted thread is resumed or forked, while rolled-back or parent-local evidence must not grant authorization in a different context. ## What changed - Store the bounded, model-invisible Guardian transcript alongside compacted rollout history and restore it from the newest surviving checkpoint during replay. - Trim Guardian history at rollback boundaries, clearing it when the boundary has already been evicted. - Preserve the checkpoint for user-initiated forks, but remove it when spawning a subagent so parent review evidence is not inherited. - Keep the new rollout field optional for compatibility with existing compacted records and legacy readers. ## Testing - Cover Guardian history across compaction, restart, paginated and pathless stores, user forks, rollback, bounded replay, serialization, and subagent forks. GitOrigin-RevId: 6ab076d5e0c3aac4d6a41ebd50ba2b200c90213e
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/6ab076d5e0c3aac4d6a41ebd50ba2b200c90213e
branch
from
September 1, 2026 14:36
422a2e5 to
28097e9
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/6ab076d5e0c3aac4d6a41ebd50ba2b200c90213e
branch
September 1, 2026 14:39
SIMON-WORLD
temporarily deployed
to
issue-triage
September 1, 2026 14:43 — with
GitHub Actions
Inactive
SIMON-WORLD
temporarily deployed
to
issue-triage
September 1, 2026 14:43 — with
GitHub Actions
Inactive
SIMON-WORLD
temporarily deployed
to
issue-triage
September 1, 2026 14:43 — with
GitHub Actions
Inactive
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.
Preserve Guardian history across thread reconstruction
Why
Guardian review evidence must remain available after a compacted thread is resumed or forked, while rolled-back or parent-local evidence must not grant authorization in a different context.
What changed
Testing