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

## Rationale

Settings files explicitly not validated at runtime despite published schemas; only `models.json` is type-checked

## 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: JSON files in `~/.pi/agent/` and `.pi/` (settings, models, mcp, keybindings, trust). Published JSON Schemas, but settings are not validated at runtime (unknown keys allowed, errors become warnings). `models.json` is checked with compiled TypeBox. [I110][I111][I112]

## Evidence cited by the mark

- [I110] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/settings-schema.ts#L487 — `additionalProperties: true` — [S]
- [I111] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/settings-manager.ts#L130 — "Settings files are not validated" — [S]
- [I112] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/model-config.ts#L134-L195 — `models.json` checked with compiled TypeBox; published schemas in packages/coding-agent/schemas/ — [S]

## Grading record

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