Repository navigation
Deduplicate retained instructions across Guardian reviews - #48060
Merged
copyberry[bot] merged 1 commit intoSep 25, 2026
Conversation
## Why Reused Guardian sessions already contain previously delivered instructions. Follow-up reviews can avoid repeating that evidence, but must deliver it again if it changes or compaction removes it. ## What changed - Track retained source identity, revision, and completeness in host-owned history metadata, preserving revisions during replay. - Omit retained instructions from synchronous review inputs only when the same complete revision remains in reviewer history. - Restore missing evidence after reviewer compaction, enforcing the request budget before persisting additions. Classify restored evidence as context rather than new user authorization. - Keep source-order labels stable across eviction and retain full delivery for legacy records without reliable provenance. ## Testing Add coverage for consecutive-review deduplication, changed revisions, missing or incomplete metadata, and restoring compacted evidence exactly once. Extend compaction and resume coverage to verify retained revisions. GitOrigin-RevId: e90fca16cde0a0970da36dd873af2ca1dbaaf4d3
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/e90fca16cde0a0970da36dd873af2ca1dbaaf4d3
branch
from
September 25, 2026 10:50
d1ae7b7 to
86be532
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/e90fca16cde0a0970da36dd873af2ca1dbaaf4d3
branch
September 25, 2026 10:50
This branch was successfully deployed
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.
Deduplicate retained instructions across Guardian reviews
Why
Reused Guardian sessions already contain previously delivered instructions. Follow-up reviews can avoid repeating that evidence, but must deliver it again if it changes or compaction removes it.
What changed
Testing
Add coverage for consecutive-review deduplication, changed revisions, missing or incomplete metadata, and restoring compacted evidence exactly once. Extend compaction and resume coverage to verify retained revisions.