Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(agent): update storage and session docs to match current behaviour

Steven Enamakel512a842e4181
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 71c9333fed..7c0523fee2 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -541,9 +541,9 @@ proptest = "1"
langfuse = ["tinyagents-harness/langfuse"]
# Storage drivers for `[storage] url` / `OPENHUMAN_STORAGE_URL` (see the
# `storage` domain). Memory and plain files are always available.
-# `storage-sqlite` is in the contributor set and the product: the small
-# desktop stores (approvals, devices, notifications, task sources) keep their
-# rows in it by default. `storage-mongodb` is in neither; a cloud build turns
+# `storage-sqlite` is in the contributor set and the product: the default
+# backend, `sqlite:<workspace>/storage`, needs it, so a host without it must
+# name another backend. `storage-mongodb` is in neither; a cloud build turns
# it on. OS keychain support belongs to openhuman-rpc's `os-keyring` feature,
# not the core or its storage-driver feature set.
storage-sqlite = ["tinystoragedrivers/sqlite"]
diff --git a/crates/openhuman-core/src/agent/README.md b/crates/openhuman-core/src/agent/README.md
index edc538af36..47f16ce1b5 100644
--- a/crates/openhuman-core/src/agent/README.md
+++ b/crates/openhuman-core/src/agent/README.md
@@ -144,8 +144,7 @@ In order:
9. The runtime commits the turn. `OpenHumanTranscriptCodec`
([`session_host/codec.rs`](./session_host/codec.rs)) converts between durable `TranscriptMessage`
rows and model `Message`s. After the durable commit, the host publishes
- `ConversationTurnCommitted` for memory ingest, optionally dual-writes
- the legacy session format (`session_import::live`), and accounts usage
+ `ConversationTurnCommitted` for memory ingest and accounts usage
against any active goal.
10. `run_single_with_origin` publishes `AgentTurnCompleted` (or
`AgentError`) and returns the final text.
@@ -319,7 +318,7 @@ Persistence, setup and RPC:
| --- | --- |
| `artifacts/` | Agent-generated artifact storage and the `ai` RPC namespace ([README](artifacts/README.md)) |
| `session_db/` | `run_ledger` RPC over `tinyagents_session::run_ledger` |
-| `session_import/` | One-time import of legacy session files and the optional live dual-write ([README](session_import/README.md)) |
+| `session_import/` | The `session_import.run` retry of the boot-time legacy-session import, and the agent's key-value store on each turn's `RunContext` ([README](session_import/README.md)) |
| [`schemas.rs`](./schemas.rs) | The `agent` namespace controllers |
## Key types and entry points
diff --git a/docs/gitbooks/en/developing/architecture/agent-harness.md b/docs/gitbooks/en/developing/architecture/agent-harness.md
index 9658c1e884..1e1ee5c841 100644
--- a/docs/gitbooks/en/developing/architecture/agent-harness.md
+++ b/docs/gitbooks/en/developing/architecture/agent-harness.md
@@ -647,7 +647,7 @@ Every run appends to a durable event journal (`tinyagents/journal.rs`): a `Store
The remaining store cutover runs on shadow scaffolding. Product behavior is unchanged and divergences are logged:
-- Session dual-write / shadow read (`session_host/runtime_session.rs`): session messages dual-write into the TinyAgents store (default-ON flag `config.session_dual_write`); loads shadow-read for parity while the legacy file store stays authoritative.
+- Sessions live in the storage backend (`DriverSessionStores`); the file-era dual-write and shadow read are gone, and `config.session_dual_write` / `session_shadow_reads` no longer have any effect.
Goals and todos are crate-backed outright, with no shadow: thread goals live in the crate `graph.goals` KV store (`agent/goals/store.rs`), and the session todo list lives in the in-process crate `graph.todos` store (`agent/todos/ops.rs`); see [Goals and todos](../../features/goals-and-todos.md).
diff --git a/gitbooks/developing/architecture/agent-harness.md b/gitbooks/developing/architecture/agent-harness.md
index c6e5a0264d..21920810cc 100644
--- a/gitbooks/developing/architecture/agent-harness.md
+++ b/gitbooks/developing/architecture/agent-harness.md
@@ -702,7 +702,7 @@ Every run appends to a durable event journal (`tinyagents/journal.rs`): a `Store
The remaining store cutover runs on shadow scaffolding. Product behavior is unchanged and divergences are logged:
-- Session dual-write / shadow read (`session_host/runtime_session.rs`): session messages dual-write into the TinyAgents store (default-ON flag `config.session_dual_write`); loads shadow-read for parity while the legacy file store stays authoritative.
+- Sessions live in the storage backend (`DriverSessionStores`); the file-era dual-write and shadow read are gone, and `config.session_dual_write` / `session_shadow_reads` no longer have any effect.
Goals and todos are crate-backed outright, with no shadow: thread goals live in the crate `graph.goals` KV store (`agent/goals/store.rs`), and the session todo list lives in the in-process crate `graph.todos` store (`agent/todos/ops.rs`); see [Goals and todos](../../features/goals-and-todos.md).