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

## Rationale

Turn lease serializes (interrupt default), and a recovery turn re-drives `resume_pending`. Disconnect survival is opt; unresolved: whether `/v1/runs` resumes after restart

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

Varies by surface. Gateway: per-session turn lease; busy input interrupts by default [opt: queue, steer]; shutdown marks sessions `resume_pending` and re-drives them. API SSE disconnect interrupts the run; `/v1/runs` is connection-independent with idempotency keys. No step replay after a crash (Note I-4). [I41][I42][I43][I44][I45][I46]

## Evidence cited by the mark

- [I41] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/gateway/turn_lease.py#L1-L10 — per-session turn lease; fails closed on timeout; CLI-continuity outside the lock — [S]
- [I43] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/gateway/run_startup.py#L604-L650 — recovery turn on boot/reconnect for recent `resume_pending` sessions (marked at gateway/run_shutdown.py:893-906) — [S]
- [I44] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/gateway/platforms/api_server_openai_routes.py#L1238-L1243 — SSE client disconnect abandons/interrupts the agent task — [S]

## Evidence also cited by the review finding

- [I42] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/hermes_cli/config_defaults.py#L815 — `busy_input_mode: "interrupt"` default (interrupt/queue/steer) — [S]
- [I45] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/gateway/platforms/api_server_run_idempotency.py#L1-L30 — `/v1/runs` idempotency keys (SQLite) — [S]
- [I46] hermes-agent — https://github.com/NousResearch/hermes-agent/blob/3ef8bf4f68c91dce2870eba5625426b32ac6ba58/acp_adapter/server.py#L782-L802 — ACP concurrent prompt redirected or queued — [S]

## Grading record

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