# codex · Execution records

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [codex](https://ai-agents-review.com/runtime/codex.md)
- Column: [Execution records](https://ai-agents-review.com/column/execution-records.md) (Operations and verification)
- Mark: 2 s
- Default deployment: 2
- Best supported configuration: 2
- Page: https://ai-agents-review.com/cell/codex/execution-records

## Rationale

Rollout JSONL persists TurnAborted, but rollout policy marks Error events transient, so failures are not structured records. Level 3 unmet; mutable

## Rubric criteria for this column

- 0: No records beyond console output
- 1: Logs or partial transcript; failures not recorded as structured events
- 2: Structured transcript/events including tool calls and errors, written by the runtime; freely mutable
- 3: Level 2, plus failures and aborts recorded as structured events, **and** optional structured telemetry (OTel or similar)
- 4: Level 3, plus records protected from the agent (enforced) **or** tamper-evident

## Review finding

Built in. `RolloutRecorder` appends a session JSONL. Tracing goes to the `logs_2.sqlite` diagnostic DB (10-day retention). OTLP is off by default; metrics go to the vendor (Statsig) only when analytics consent is on. Records can be altered by archive/delete RPCs and by compression (replace-by-rename); none is tamper-evident. [O3][O4][O5][O6][O7]

## Evidence cited by the mark

- [O3] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/rollout/src/recorder.rs#L74-L86 — RolloutRecorder writes canonical session rollout items to JSONL under ~/.codex/sessions — [S]
- [O6] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/config/src/types.rs#L641-L653 — OtelConfig defaults: no log/trace exporter; metrics exporter Statsig; prompts not logged — [S]
- [I14] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/core/src/tasks/mod.rs#L300-L309 — `spawn_task` aborts existing tasks with `TurnAbortReason::Replaced` — [S]

## Evidence also cited by the review finding

- [O4] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/rollout/src/maintenance.rs#L1-L8 — Rollout compression/migration replaces files by rename under a lock — [S]
- [O5] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/state/src/runtime/logs_maintenance.rs#L1-L12 — Diagnostic log DB pruned on a timer: 10-day retention, 64 MiB budget — [S]
- [O7] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/core/src/otel_init.rs#L76-L84 — Statsig metrics disabled unless analytics enabled — [S]

## Grading record

- Grader A (default / best): 2 / 2
- Grader B (default / best): 2 / 2
