Skip to content

fix(codex): qualify native replay for 0.169.0-alpha.11.1 - #8916

Merged
huangruiteng merged 1 commit into
codex/c1-work-contract-review-20261107from
codex/c1-native-replay-0169-20261117
Nov 17, 2026
Merged

huangruiteng merged 1 commit into
codex/c1-work-contract-review-20261107from
codex/c1-native-replay-0169-20261117

Conversation

@loopx-agent

Copy link
Copy Markdown
Collaborator

Goal And Delivered Outcome

Codex 0.169.0-alpha.11.1 writes paginated replay that the C1 resume reader does not yet qualify. A complete, observed read therefore loses its reuse proof on resume and conservatively requests full context again. This change qualifies that exact writer after native-process verification; incomplete, failed, tampered or unknown replay still falls back to full.

  • Outcome basis: the existing native replay contract in docs/reference/required-work-context.md.
  • Observable before → after: the native Code Mode observed-coverage case fails on the C1 base and passes with this change. The affected native suite changes from 18 passed / 12 failed / 6 expected failures to 30 passed / 6 expected failures.
  • Related to C1: unify work sources and validate recovery #8266. Intended base: codex/c1-work-contract-review-20261107 at df05cfd7b099476ce6d09223ca32b76c789ce53a.

Author Declaration

  • Written by: OpenAI Codex agent.

Implemented against

  • Specification and revision: docs/reference/required-work-context.md, native replay qualification paragraphs, at df05cfd7b099476ce6d09223ca32b76c789ce53a.
Criterion Disposition Symbol / path Validation
Reuse requires complete observed output in the native-selected replay interval with matching context implemented codex_context_history.py::_snapshot Real Codex exec and app-server boundary suite
Failed, missing, replaced or unqualified replay cannot establish continuity implemented Existing reader and lifecycle guards, unchanged Resume/lifecycle counterexamples, including failed tool output for the new writer
Qualification is bounded to tested writer versions; creator metadata is not the running host version implemented Private compatibility tuple and bilingual reference paragraphs Exact writer added; no version range or wildcard
  • Self-check: inspected the native failure and its base counterexample, qualified the same process path after the change, ran the affected regression suites, and scanned all three changed files for the public boundary. No model outcome, model retention or cost benefit is claimed.

Scope And Continuation

  • Complete within this scope: one exact native writer profile, positive and negative regression cases, and the existing English/Chinese documentation paragraphs.
  • The existing provider-specific Python IO reader remains the owner; TypeScript retains lifecycle decisions. This extends a private compatibility profile, adds no shared vocabulary, setting or authority, and needs no new abstraction.
  • The parent C1 integration and adoption remain with C1: unify work sources and validate recovery #8266. This independently reversible fix does not qualify every host, authorize installation, or resolve the native compaction limitations below.

Validation

  • Tested revision: 38f88ba1199a82fc053cb696b830abc8b9ddb683 (the tested diff was committed without further changes).
  • Run state: finished.
  • Input classes: synthetic, public_fixture.
Check kind Result Public-safe evidence / limitation
regression_parity passed One native observed-coverage case fails on the exact C1 base and passes after the profile extension. All 12 coverage failures in the native suite pass after the fix.
real_entrypoint passed tests/control_plane/test_codex_context_boundary.py with Codex 0.169.0-alpha.11.1: 30 passed, 6 expected failures. Real exec/app-server processes, isolated test homes and a local synthetic provider; no external model inference.
unit passed tests/control_plane/test_codex_context_resume.py and test_codex_context_lifecycle.py: 341 passed, including new-writer shell/direct coverage and failed-tool rejection.
static passed Diff whitespace check; semantic inventory diff advisory (no candidate carriers, with the private profile disposition assessed above); public-boundary scan of all changed files.
static passed Staged RFC bilingual check; no paired RFC changed.
real_entrypoint not_run Windows native execution and installed App UI adoption were not tested.
  • Coverage and gaps: six existing expected failures remain: two failed compact-hook recovery cases, two small additional-context cases that lose context during automatic compaction, and two large additional-context cases incomplete before the first model input. These are disclosed host limitations, not passing evidence. Full-context recovery remains required when replay cannot qualify. These checks establish IO compatibility, not scientific effectiveness or full cost.

Frontend / Visual Evidence

  • UI impact: none. The existing automatic native resume path is unchanged apart from eligibility for the tested writer.
  • Before / after / viewport / states / attention / craft review: N/A; no presentation change.
  • Source data: synthetic, public_fixture.

Type of Change

  • Bug fix
  • Documentation update
  • Test update

LoopX Area

  • Control plane
  • Host or runtime integration

Technical Direction

  • Bounded host compatibility maintenance under the existing required-work-context contract.

Shared-authority RFC fixture impact

N/A. No authority store, provider routing, schema or migration change.

Boundary Checklist

  • Diff and PR text disclose no private state, credentials, raw traces, verifier output, internal links or local machine paths.
  • No duplicated benchmark work; this fixes the existing native reader.
  • Scope remains the writer qualification gap described above.
  • No paired RFC changed; staged bilingual check passed.
  • UI impact is none.
  • Commit includes a DCO Signed-off-by trailer.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
@huangruiteng
huangruiteng merged commit 1d42038 into codex/c1-work-contract-review-20261107 Nov 17, 2026
36 of 48 checks passed
@huangruiteng
huangruiteng deleted the codex/c1-native-replay-0169-20261117 branch November 17, 2026 10:16
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.

2 participants