# pi · Execution records

> 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: [Execution records](https://ai-agents-review.com/column/execution-records.md) (Operations and verification)
- Mark: 2 s
- Default deployment: 2
- Best supported configuration: 2
- Page: https://ai-agents-review.com/cell/pi/execution-records

## Rationale

JSONL includes tools, failures and retries, but the telemetry contract ships no exporter, so level-3 optional telemetry is unmet

## Rubric criteria for this column

- 0: No records beyond console output
- 1: Logs or partial transcript; failures not recorded as structured events
- 2: Structured transcript/events including tool calls and errors, written by the runtime; freely mutable
- 3: Level 2, plus failures and aborts recorded as structured events, **and** optional structured telemetry (OTel or similar)
- 4: Level 3, plus records protected from the agent (enforced) **or** tamper-evident

## Review finding

Built in. The SessionManager JSONL is the record: messages, tools, usage, compactions, custom entries. Provider failures and failed retries are kept. Extensions can append entries and replace finalized messages. A telemetry contract exists but ships no exporter; there is a crash log. [O100][O101][O102][O103][O104]

## Evidence cited by the mark

- [O100] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/session-manager.ts#L184-L195 — Session JSONL entry types (messages, usage, model change, compaction, custom, …) — [S]
- [O102] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/agent-session.ts#L3960-L3961 — Failed retry attempts kept in raw history — [S]
- [O104] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/ai/src/telemetry.ts#L1-L40 — Telemetry span contract; no exporter shipped — [S]

## Evidence also cited by the review finding

- [O101] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/extensions/types.ts#L1512-L1523 — Extensions may rewrite tool results (content/isError) and replace the finalized message — [S]
- [O103] pi — https://github.com/earendil-works/pi/blob/2126569de40d5595dd3f41f7af126001f04c1de0/packages/coding-agent/src/core/crash-log.ts#L7-L23 — Crash log writer — [S]

## Grading record

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