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

## Rationale

Compacted rows stored agent-invisible; chatrecall off, LIKE search, first/last 3 messages. unresolved: compacted-row visibility

## 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. Compaction at 80% of the window (cap 225k) inserts a summary. Originals stay as agent-invisible DB rows. No default tool reads them. [opt: `chatrecall` SQL-LIKE search]. Truncation markers give file paths [E18][E19][E20][E21].

## Evidence cited by the mark

- [E19] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/oi-kit-agent/src/compaction/layout.rs#L48-L105 — prior messages marked agent-invisible, summary inserted — [S]
- [E20] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/platform_extensions/mod.rs#L85-L100 — `chatrecall` extension `default_enabled: false` — [S]
- [E21] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/session/chat_history_search.rs#L179 — search is SQL `LIKE` over JSON message text — [S]

## Evidence also cited by the review finding

- [E18] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/oi-kit-context-management/src/lib.rs#L34 — compaction threshold 0.8 (token cap 225k at crates/goose/src/context_mgmt/mod.rs:29) — [S]

## Grading record

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