Skip to content

GEN-2150: Retain and reliably finalize canonical Codex traces - #199

Merged
exe-dev-github-integration[bot] merged 1 commit into
mainfrom
fix/gen-2150-canonical-traces
Oct 9, 2026
Merged

exe-dev-github-integration[bot] merged 1 commit into
mainfrom
fix/gen-2150-canonical-traces

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

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.

@linear

linear Bot commented Oct 9, 2026

Copy link
Copy Markdown

GEN-2150

@exe-dev-github-integration
exe-dev-github-integration Bot added this pull request to the merge queue Oct 9, 2026
Merged via the queue into main with commit 02f4b1f Oct 9, 2026
2 checks passed
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