# codex · Memory maintenance

> 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: [Memory maintenance](https://ai-agents-review.com/column/memory-maintenance.md) (Evidence and memory)
- Mark: 0→3 [opt: memories feature] s
- Default deployment: 0
- Best supported configuration: 3 (opt: memories feature)
- Page: https://ai-agents-review.com/cell/codex/memory-maintenance

## Rationale

memories off by default; when on, phase-2 consolidation agent runs; retry/leases only [D] (level 4 unmet)

## Rubric criteria for this column

- 0: No learned-memory facility
- 1: Memory is files or notes that the agent edits with ordinary tools, prompted by instructions only
- 2: Dedicated memory tools or store (write, recall, forget), but no consolidation process
- 3: A consolidation process exists (background or idle job that merges, archives or supersedes), on by default **or** opt-in
- 4: Level 3 on by default, plus failure handling (retry or backoff, or a recorded failure state) **and** a correction path (versioning or restore, loss guard)

## Review finding

Optional `memories` (off by default). Phase 1: per-rollout extraction with secret redaction. Phase 2: a consolidation sub-agent edits `~/.codex/memories` under a git baseline. Leases and retry backoff are documented only. Root, non-ephemeral sessions only [E9][E10][E11][E12]. Note E-1.

## Evidence cited by the mark

- [E9] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/features/src/lib.rs#L1579-L1583 — feature key `memories`, Stable, `default_enabled: false` — [S]
- [E10] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/memories/write/src/start.rs#L24-L37 — memory pipeline skipped for ephemeral, flag-off or non-root sessions — [S]
- [E12] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/memories/README.md — phase-2 consolidation agent, leases, retry backoff, git baseline (stale code path reference) — [D]

## Evidence also cited by the review finding

- [E11] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/memories/write/src/phase1_output.rs#L49-L54 — `redact_secrets` applied to phase-1 outputs — [S]

## Grading record

- Grader A (default / best): 0 / 3
- Grader B (default / best): 0 / 3
