Repository navigation
fix(codex): keep native transcript when removing a cyber block - #870
Merged
Merged
Conversation
The projector dropped encrypted multi-agent records from a real rollout. Same-provider recovery has to copy native JSONL. Refs #869
The native-resume projector dropped encrypted agent_message records and stringified tool outputs. Same-provider recovery copies the source rollout up to the last-model-step cut. Fixes the unusable fork of 01a08846. Refs #869
Codex refuses to append a paginated rollout whose last line has no ordinal, and resume uses session_id as the live thread. The synthetic complete now continues the last kept ordinal, and root clones rewrite session_id together with id. Refs #869
Juliusolsson05
added a commit
that referenced
this pull request
Sep 11, 2026
Brings #860 (New Agent In), #861 (Reader Mode from the render ledger) and #870 (Codex cyber-block native clone) into the branch before merge. The textual merge is clean; eight files changed on both sides, so the merged tree is re-verified with tsc and the full suite rather than trusting the pre-merge CI run. Refs #865 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LEwGeHkkhnDxU3X3chXX3F
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Remove Cybersecurity Block ran the Codex native-resume projector on a same-provider fork. On the real session
01a08846-936d-7dd3-a91b-0f933d0d9f29that wrote7ef23509-c0b4-4e30-b46f-7ed58d382b81and threw away the useful transcript:response_item.agent_messagerecords (encrypted subagent payloads) became opaque and were droppedinter_agent_communication_metadatarecords were droppedcustom_tool_call_output.outputwent from Codex’s native array to a JSON stringtask_started/turn_context/ emptytask_completeframing was synthesizedThat is why the recovered feed looked unusable.
Behavior
Same-provider cyber-block recovery now copies native JSONL up to the last-model-step cut, rewrites
session_meta.id, and appends a cleantask_completeonly so Codex does not immediately resample the flagged tail.Rewind/duplicate still use the projector. That is a separate issue.
Tests
testing/fixtures/codex-cyber-policy-native-clone/source.jsonlis a redacted structural copy of the observed rollout. The clone test asserts:agent_messageandinter_agent_communication_metadatasurvivecyber_policyare goneprojectNativeResumestill drops those records, so this path must not go back to itFixes #869