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

## Rationale

Cloud messages server-side [D] plus client transcript copy; no retention policy; local file rewritten on fork

## 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

API mode: server-held messages (retention [D]/unknown), plus a client `transcript.jsonl` copy. Local mode: per-conversation `messages.jsonl`, appended, rewritten on fork or migration. No age-based retention. Tool overflow files are pruned after 24h, at interactive startup only [E35][E36][E37][E38].

## Evidence cited by the mark

- [E37] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/utils/transcript-paths.ts#L6-L12 — API-mode client transcript copy path — [S]
- [E35] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/backend/local/local-store.ts#L2950-L2964 — local transcript append (`appendFileSync`) — [S]
- [E36] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/backend/local/local-store.ts#L2808-L2887 — full transcript rewrite on fork/legacy upgrade — [S]

## Evidence also cited by the review finding

- [E38] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/tools/impl/overflow.ts#L62-L98 — overflow files deleted after 24h (called only at interactive startup, src/index.ts:846-850) — [S]

## Grading record

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