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

## Rationale

Typed step/tool/execution failure events, optional OTLP. Revert and delete remove rows, so not protected

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

The server writes SQLite session projections plus one shared log file compacted in place past 50 MiB. Typed failure events (step/tool/execution failed, retry scheduled). Optional OTLP. Revert and delete remove rows; no append-only audit log by default. [O84][O85][O86][O87]

## Evidence cited by the mark

- [O86] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/schema/src/session-event.ts#L245-L260 — Execution/step/tool/retry failure event types — [S]
- [O85] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/util/src/observability.ts#L20-L50 — OTLP export from `OTEL_EXPORTER_OTLP_*` env — [S]
- [O87] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/core/src/session/projector.ts#L1150-L1175 — Revert/delete paths remove projected rows — [S]

## Evidence also cited by the review finding

- [O84] opencode — https://github.com/anomalyco/opencode/blob/2204311ec6e966db8d67988ab3638ad95a811a46/packages/util/src/observability/logging.ts#L5-L10 — Shared append-only log compacted in place past 50 MiB (keeps ~25 MiB) — [S]

## Grading record

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