Skip to content

Track permission instructions in world state - #33944

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7d8d212460c1690ca617859f66dcd825987f1e23
Jul 18, 2026
Merged

Track permission instructions in world state#33944
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7d8d212460c1690ca617859f66dcd825987f1e23

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 18, 2026

Copy link
Copy Markdown

Track permission instructions in world state

What changed

  • Model permission instructions as a world-state section keyed by a stable hash of their rendered developer message.
  • Re-emit permission context when its model-visible contents change or the retained fragment is missing, while avoiding duplicates when matching instructions already exist in history, including bundled developer messages.
  • Normalize CRLF line endings when hashing world-state fragments so equivalent content produces the same snapshot.

Testing

  • Add snapshot coverage for unchanged, changed, absent, and unknown permission state.
  • Cover bundled retained permissions and restored world-state baselines during rollout reconstruction.

## What changed

- Model permission instructions as a world-state section keyed by a stable hash of their rendered developer message.
- Re-emit permission context when its model-visible contents change or the retained fragment is missing, while avoiding duplicates when matching instructions already exist in history, including bundled developer messages.
- Normalize CRLF line endings when hashing world-state fragments so equivalent content produces the same snapshot.

## Testing

- Add snapshot coverage for unchanged, changed, absent, and unknown permission state.
- Cover bundled retained permissions and restored world-state baselines during rollout reconstruction.

GitOrigin-RevId: 7d8d212460c1690ca617859f66dcd825987f1e23
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/7d8d212460c1690ca617859f66dcd825987f1e23 branch from 6ef7080 to 82b294c Compare July 18, 2026 02:46
@copyberry
copyberry Bot merged commit 82b294c into main Jul 18, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/7d8d212460c1690ca617859f66dcd825987f1e23 branch July 18, 2026 02:47
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants