# codex · Durable evidence

> 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: [Durable evidence](https://ai-agents-review.com/column/durable-evidence.md) (Evidence and memory)
- Mark: 2 s
- Default deployment: 2
- Best supported configuration: 2
- Page: https://ai-agents-review.com/cell/codex/durable-evidence

## Rationale

Full JSONL rollouts kept, revert writes new file; no explicit rollout retention policy (logs only) (level 3 unmet)

## Rubric criteria for this column

- 0: Default deployment keeps nothing after the process exits
- 1: Final messages persist, but tool calls/results or intermediate steps do not
- 2: Full transcript including tool calls persists by default, with no stated retention policy and freely rewritable records
- 3: Level 2, plus an explicit retention policy (configurable, or "never pruned" stated in code) **and** revert/compaction keep the originals (new record or hidden row), not destructive rewrite
- 4: Level 3, plus records the agent itself cannot alter (enforced), **or** tamper-evidence (hashing/signing)

## Review finding

Built in. One JSONL rollout per thread under `~/.codex/sessions/`, plus SQLite state/log DBs. No age-based deletion of rollouts. Revert writes a new rollout file and leaves the old one. archive/delete remove history on request. Logs are pruned after 10 days. `history.jsonl` (prompts) can be turned off [E1][E2][E3][E4][E13].

## Evidence cited by the mark

- [E1] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/rollout/src/recorder.rs#L96-L100 — `thread/revert` creates a new immutable rollout file under the same thread id — [S]
- [E3] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/state/src/runtime/logs_maintenance.rs#L11-L79 — 10-day log retention; `DELETE FROM logs WHERE ts < ?` — [S]
- [E4] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/app-server-protocol/src/protocol/common.rs#L614-L619 — `thread/archive` / `thread/delete` methods mutate or remove history on request — [S]

## Evidence also cited by the review finding

- [E2] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/state/src/sqlite.rs#L49-L54 — SQLite DB filenames (logs, goals, memories, queue, state) — [S]
- [E13] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/config/src/types.rs#L236-L257 — `[history] persistence = save-all|none`, `max_bytes` for `history.jsonl` — [S]

## Grading record

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