# goose · Durable execution

> 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: [Durable execution](https://ai-agents-review.com/column/durable-execution.md) (Product integration)
- Mark: 2 s
- Default deployment: 2
- Best supported configuration: 2
- Page: https://ai-agents-review.com/cell/goose/durable-execution

## Rationale

Second run rejected, steps persisted. An interrupted turn is lost except confirmation-paused ones, so level 3 detect/close-out is unmet

## Rubric criteria for this column

- 0: State in memory only; a restart loses sessions
- 1: Sessions persist, but an in-flight turn is lost on restart **and** concurrent requests on one session are not serialized (dropped or racing)
- 2: Sessions persist and concurrent input is serialized (queue, steer or reject), but an interrupted turn is lost or must be resent by hand
- 3: Level 2, plus an interrupted turn is detected after restart and either closed out with a recorded error **or** resumed
- 4: Level 3, plus turns survive client disconnect **and** automatic resume or replay with an explicit idempotency rule (request ids, replay-safe declarations, at-least-once documented)

## Review finding

Built in: one active run per session; concurrent prompt rejected with a steer hint. Each step is persisted to SQLite (WAL). Dropping the prompt future (lost connection) cancels the run. On restart only turns paused at tool confirmation resume, via `session/load` (Note I-3). [I27][I28][I29][I30][I31]

## Evidence cited by the mark

- [I27] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/active_run.rs#L38-L69 — run registry refuses a second agent run per session — [S]
- [I28] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/acp/server.rs#L230-L253 — `ActiveRunDropGuard` cancels token and frees run when prompt future is dropped — [S]
- [I30] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/acp/server/load_session.rs#L248-L290 — `session/load` restarts a turn paused on tool confirmation — [S]

## Evidence also cited by the review finding

- [I29] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/services.rs#L632-L641 — `detach_connection`: "its sessions keep running" (residency) — [S]
- [I31] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/session/session_manager.rs#L1099-L1104 — SQLite WAL, 30 s busy timeout (multi-process on one DB) — [S]

## Grading record

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