Skip to content

fix: fail rollout migration on oversized records - #1

Draft
weivwang wants to merge 3 commits into
mainfrom
fix/rollout-migration-oversized-record
Draft

weivwang wants to merge 3 commits into
mainfrom
fix/rollout-migration-oversized-record

Conversation

@weivwang

@weivwang weivwang commented Aug 12, 2026 •

Copy link
Copy Markdown
Owner

Review-only staging PR

This PR targets my personal fork only. It is not an unsolicited pull request to openai/codex. The upstream repository accepts external PRs by invitation, so upstream submission remains gated on explicit maintainer approval in openai#37673.

What

Make rollout migration fail closed when a legacy JSONL record exceeds the 16 MiB migration limit.

  • The forward migration reader returns an explicit error instead of representing the record as absent.
  • The bounded-subagent reverse scanner records whether it skipped an oversized record and refuses to publish an unsafe bounded replay.
  • Regression tests verify the source rollout remains byte-identical, no journal is written, and SQLite history remains Legacy.

Why

The previous path could consume and omit a valid oversized JSONL record, then publish the staged rollout and report Migrated. Real field reports in openai#24948 include individual rollout records around 52.1 MiB and 72.75 MB, so this is reachable with real history.

Validation

  • just test -p codex-rollout -p codex-thread-store: 332 passed, 0 failed, 0 skipped
  • just fix -p codex-rollout -p codex-thread-store: passed with no source changes
  • Manual fork CI: https://github.com/weivwang/codex/actions/runs/31601239203
    • formatting, Rust benchmark smoke, cargo shear, and the argument-comment-lint package passed
    • Linux repo-wide Bazel lint hit its configured 30-minute timeout without a code failure
    • Windows/macOS jobs did not start due to fork runner/billing constraints
  • Draft-PR blocking CI: https://github.com/weivwang/codex/actions/runs/31604998555
    • passed: cargo-deny, codespell, blob-size policy, changed-area detection, formatting, Rust benchmark smoke, and cargo shear
    • the only executed failing repository check reported the pre-existing codex-rs/code-mode/Cargo.toml stale MANIFEST_FEATURE_EXCEPTIONS entry, outside this PR's five changed files; its clean-worktree check passed
    • Linux Bazel and argument-comment jobs were cancelled at the workflow's 30-minute limit while still compiling, without a code failure
    • Windows, macOS, and SDK jobs that failed in seconds executed no steps because the fork lacks the upstream runner/billing environment

Upstream issue

@weivwang

weivwang commented Sep 3, 2026

Copy link
Copy Markdown
Owner Author

PR-side CI issue fixed in 61ad63d: the stale MANIFEST_FEATURE_EXCEPTIONS entry was removed and the manifest verifier now passes locally. Remote Rust formatting and cargo-shear checks also pass.

The remaining red jobs are repository/fork infrastructure or baseline dependency failures, not failures introduced by this PR:

  • required codex-runners runner group is unavailable for Windows/SDK jobs
  • macOS jobs are prevented from starting by the account payment/spending limit
  • Linux Bazel fetches an Ubuntu zlib package URL that now returns 404
  • package staging cannot download an artifact from upstream openai/codex from this fork
  • cargo-deny flags the fork baseline h2 0.4.13 advisory

I did not disable checks or broaden this focused migration fix into an upstream/infrastructure sync. Those items require repository runner/billing/permissions maintenance or a separately scoped dependency update.

— by @codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant