# pi · 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: [pi](https://ai-agents-review.com/runtime/pi.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/pi/durable-evidence

## Rationale

Append-only JSONL trees with tool calls; no retention policy, manual delete 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. Append-only JSONL session tree per cwd under `~/.pi/agent/sessions/`. Rewritten only for migration or branch extraction. No retention policy (manual delete). Secrets in tool output are stored verbatim [E86][E87][E88][E94]. [alt: pi-durable stores]

## Evidence cited by the mark

- [E86] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/session-manager.ts#L989-L998 — sessions as append-only JSONL trees — [S]
- [E88] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/session-manager.ts#L1136-L1146 — `_rewriteFile` used only for init/migration/branch — [S]
- [E87] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/session-manager.ts#L1166-L1200 — file created on first conversation entry, then `appendFileSync` — [S]

## Evidence also cited by the review finding

- [E94] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/docs/security.md — sessions "can contain … credentials" — [D]

## Grading record

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