# software-agent-sdk · Durable evidence

> 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: [software-agent-sdk](https://ai-agents-review.com/runtime/software-agent-sdk.md)
- Column: [Durable evidence](https://ai-agents-review.com/column/durable-evidence.md) (Evidence and memory)
- Mark: 0→3 [opt: persistence_dir on agent-server with retention set] s
- Default deployment: 0
- Best supported configuration: 3 (opt: persistence_dir on agent-server with retention set)
- Page: https://ai-agents-review.com/cell/software-agent-sdk/durable-evidence

## Rationale

Default InMemoryFileStore; with persistence, append-only events, configurable server retention, condensation keeps events

## Rubric criteria for this column

- 0: Default deployment keeps nothing after the process exits
- 1: Final messages persist, but tool calls/results or intermediate steps do not
- 2: Full transcript including tool calls persists by default, with no stated retention policy and freely rewritable records
- 3: Level 2, plus an explicit retention policy (configurable, or "never pruned" stated in code) **and** revert/compaction keep the originals (new record or hidden row), not destructive rewrite
- 4: Level 3, plus records the agent itself cannot alter (enforced), **or** tamper-evidence (hashing/signing)

## Review finding

Default local SDK: in-memory only (no `persistence_dir`). With `persistence_dir`, and on the server: `base_state.json` (rewritten) plus append-only per-event JSON files under a lock. No default expiry. The `Conversation` factory defaults `delete_on_close=True` [E95][E96][E97][E98][E99]. Note E-8.

## Evidence cited by the mark

- [E95] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/conversation/state.py#L682-L692 — no `persistence_dir` → `InMemoryFileStore` with warning — [S]
- [E96] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/conversation/event_store.py#L315-L380 — locked per-event append; duplicate ids rejected — [S]
- [E99] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-agent-server/openhands/agent_server/config.py#L437-L466 — optional retention / disk budget, default unset — [S]

## Evidence also cited by the review finding

- [E97] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/conversation/conversation.py#L85 — factory `delete_on_close: bool = True` (DELETE sent at impl/remote_conversation.py:2087-2097; direct constructor default False at :814) — [S]
- [E98] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-workspace/openhands/workspace/docker/workspace.py#L241-L250 — container run with `--rm` (volumes default empty at :97-100) — [S]

## Grading record

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