# openclaw · Context recovery

> 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: [openclaw](https://ai-agents-review.com/runtime/openclaw.md)
- Column: [Context recovery](https://ai-agents-review.com/column/context-recovery.md) (Evidence and memory)
- Mark: 3 s
- Default deployment: 3
- Best supported configuration: 3
- Page: https://ai-agents-review.com/cell/openclaw/context-recovery

## Rationale

Ungated sessions_history/sessions_search over kept rows; spill paths break on restart, no auto injection (level 4 unmet)

## Rubric criteria for this column

- 0: Evidence that leaves the prompt is gone, or never stored
- 1: Only an in-prompt summary; originals not stored, or stored but unreachable by the agent
- 2: Originals stored, reachable only through generic means (re-reading files, temp-file paths named in the summary) or through a retrieval tool that is off by default
- 3: Default-on retrieval tool or command over stored transcript/memory (search plus read)
- 4: Level 3, plus automatic relevance-based injection of stored evidence **or** stable references (ids/paths) that survive restart and compaction

## Review finding

Built in. The persisted compaction entry holds the summary plus a first-kept id. Older rows stay in SQLite. Retrieval through ungated `sessions_history`/`sessions_search` and `memory_search` (sessions included by default on single-user installs). Spill-file paths stop working after a restart [E65][E66][E67][E68].

## Evidence cited by the mark

- [E65] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/sessions/session-manager-entries.ts#L57-L80 — persisted compaction entry; context = summary + entries from firstKeptEntryId — [S]
- [E66] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/openclaw-tools.ts#L653-L664 — `sessions_history` / `sessions_search` added without config gate — [S]
- [E67] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/sessions/tools/private-temp-file.ts#L16-L17 — "restart or cap eviction makes old notices unreadable" — [S]

## Evidence also cited by the review finding

- [E68] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/packages/memory-host-sdk/src/host/config-utils.ts#L101-L123 — `rememberAcrossConversations` defaults true for dmScope main — [S]

## Grading record

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