Repository navigation
Preserve model and access program pairs during compaction - #48224
Merged
copyberry[bot] merged 1 commit intoSep 25, 2026
Conversation
## Why Compaction using the previous model can inherit the current turn's access program, producing a model/program pair that the server rejects. ## What changed - Persist `cyber_access_program` in previous-turn settings and restore it during rollout reconstruction. - Use the previous turn's access program when compacting with its model, preserving an absent program instead of inheriting the current selection. - Pass the selected access program into local compaction prompts. ## Testing Add regression coverage for local and remote compaction after model switches, including resume, fork, rollback, and compaction checkpoints. Verify fallback and subsequent sampling use the current model/program pair, and API-key sessions do not inherit access-program authorization. GitOrigin-RevId: eaa7162e8711446dc9eb1bfff194e711abd54d7e
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/eaa7162e8711446dc9eb1bfff194e711abd54d7e
branch
from
September 25, 2026 22:14
c518296 to
5f3180c
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/eaa7162e8711446dc9eb1bfff194e711abd54d7e
branch
September 25, 2026 22:14
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
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.
Preserve model and access program pairs during compaction
Why
Compaction using the previous model can inherit the current turn's access program, producing a model/program pair that the server rejects.
What changed
cyber_access_programin previous-turn settings and restore it during rollout reconstruction.Testing
Add regression coverage for local and remote compaction after model switches, including resume, fork, rollback, and compaction checkpoints. Verify fallback and subsequent sampling use the current model/program pair, and API-key sessions do not inherit access-program authorization.