# codex · Declarative configuration

> 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: [Declarative configuration](https://ai-agents-review.com/column/declarative-configuration.md) (Product integration)
- Mark: 3 s
- Default deployment: 3
- Best supported configuration: 3
- Page: https://ai-agents-review.com/cell/codex/declarative-configuration

## Rationale

Unknown keys only warn by default, but a documented `--strict-config` meets level 3. Level 4 not met because strictness is not the default

## Rubric criteria for this column

- 0: Configuration only through code or flags
- 1: Config file(s), no validation: unknown keys and wrong types silently ignored
- 2: Config file(s) with type validation, but unknown keys ignored or warning only by default
- 3: Schema-validated config where unknown keys are rejected, **or** strict mode available and documented
- 4: Level 3 by default, plus semantic checks (limits, references) **and** a published machine-readable schema

## Review finding

Built in: layered TOML (system, user, project `.codex/`, managed layers, `-c` overrides); generated JSON Schema checked in. Unknown keys warn by default and are errors only with `--strict-config`; the schema's `deny_unknown_fields` does not affect parsing. [I7][I8][I9][I10][I11]

## Evidence cited by the mark

- [I9] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/config/src/strict_config.rs#L268-L290 — `ignored_config_warning` collects unknown fields; surfaced as startup warning (loader/mod.rs:553) — [S]
- [I10] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/config/src/loader/mod.rs#L651-L657 — strict validation path used only with `--strict-config` — [S]
- [I11] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/core/config.schema.json — generated config JSON Schema checked in — [S] (existence)

## Evidence also cited by the review finding

- [I7] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/config/src/config_toml.rs#L174-L177 — `#[schemars(deny_unknown_fields)]` on `ConfigToml` affects generated schema only — [S]
- [I8] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/config/src/loader/local.rs#L104-L124 — managed, system and user layers load with `strict_config: false` — [S]

## Grading record

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