Skip to content

Preserve legacy semantics during rollout migration - #37191

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3948e16d43f75df8571b0a92af12a181d1d08fdf
Aug 6, 2026
Merged

Preserve legacy semantics during rollout migration#37191
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3948e16d43f75df8571b0a92af12a181d1d08fdf

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 6, 2026

Copy link
Copy Markdown

Preserve legacy semantics during rollout migration

Why

Legacy rollouts can contain historical rollbacks, compaction checkpoints, and
subagent copies of parent history. Migrating those records verbatim can change
the visible conversation or the model context used when a thread resumes, and
can retain large amounts of duplicated subagent history.

What changed

  • Plan and replay historical rollbacks by logical turn, preserving surviving
    lifecycle events and the correct compaction anchor for future resumes.
  • Migrate subagent rollouts from a safe bounded replay when possible and record
    the history boundary so copied parent context is not projected as child turns.
  • Include archived and compressed rollouts while keeping their storage form and
    location intact.
  • Tolerate malformed, partial, oversized, and empty JSONL records during the
    migration scan.

Testing

Add coverage for rollback and compaction combinations, subagent replay bounds,
archived and compressed rollouts, recovery, concurrent maintenance, and damaged
JSONL input.

## Why

Legacy rollouts can contain historical rollbacks, compaction checkpoints, and
subagent copies of parent history. Migrating those records verbatim can change
the visible conversation or the model context used when a thread resumes, and
can retain large amounts of duplicated subagent history.

## What changed

- Plan and replay historical rollbacks by logical turn, preserving surviving
  lifecycle events and the correct compaction anchor for future resumes.
- Migrate subagent rollouts from a safe bounded replay when possible and record
  the history boundary so copied parent context is not projected as child turns.
- Include archived and compressed rollouts while keeping their storage form and
  location intact.
- Tolerate malformed, partial, oversized, and empty JSONL records during the
  migration scan.

## Testing

Add coverage for rollback and compaction combinations, subagent replay bounds,
archived and compressed rollouts, recovery, concurrent maintenance, and damaged
JSONL input.

GitOrigin-RevId: 3948e16d43f75df8571b0a92af12a181d1d08fdf
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/3948e16d43f75df8571b0a92af12a181d1d08fdf branch from 7447946 to aac9f84 Compare August 6, 2026 00:55
@copyberry
copyberry Bot merged commit aac9f84 into main Aug 6, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/3948e16d43f75df8571b0a92af12a181d1d08fdf branch August 6, 2026 00:56
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 6, 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