Repository navigation
GEN-2150: Retain and reliably finalize canonical Codex traces - #199
Merged
exe-dev-github-integration[bot] merged 1 commit intoOct 9, 2026
Merged
Conversation
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.
Codex runs now retain only their declared codex-exec.jsonl execution stream, use runs.trace_sources for polling/finalization, and reconcile the exact immutable retained bytes under the run lock. Receipts survive projection failure so retries use storage rather than recapturing the guest. Failed/stopped runs follow the same path; stop requests terminate the writer before collection and VM cleanup.
Missing turn.completed, reconciliation mismatch, or collection/projection failure yields partial artifact finalization with diagnostics shown in the UI. Receipts now include source generation, and reconciliation includes Codex completion evidence. New Codex native discovery/capture and native replay are disabled; historical native-only reads/replay and Claude/Pi support are preserved.
Validation: CSS build; full workspace npm run check with local PostgreSQL integration suites enabled (312 passing, 8 queue tests skipped), including API boundaries, TypeScript, browser/contract tests, and Worker dry runs. Final targeted checks after the historical in-flight compatibility guard: TypeScript and 22 finalization/diagnostics tests passed. PostgreSQL tests cover source persistence, canonical uploads, checksums/byte length, all terminal states, missing/empty completion, immutable receipts, projection failure/retry, cleanup, and historical reads.
Deployment: apply additive migration 0012_canonical_trace_receipts.sql before deploying. No production deployment or canary run was performed.
Resolves GEN-2150.