Skip to content

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

docs(storage): describe tinystoragedrivers as a git tag dependency

Steven Enamakel3a652c7d4ec2
diff --git a/crates/openhuman-core/src/storage/README.md b/crates/openhuman-core/src/storage/README.md
index ac2fad3f15..f512a2f4c9 100644
--- a/crates/openhuman-core/src/storage/README.md
+++ b/crates/openhuman-core/src/storage/README.md
@@ -2,7 +2,7 @@
The process's storage backend on the
[tinystoragedrivers](https://github.com/tinyhumansai/tinystoragedrivers)
-ports, vendored through `vendor/tinyagents/vendor/tinystoragedrivers`.
+ports, taken by git tag (`v0.11.0`) by the host and by every module, so the build holds one copy.
One URL picks it: `OPENHUMAN_STORAGE_URL`, else `[storage] url` in
`config.toml` (`config::StorageConfig`), else the default,
diff --git a/docs/gitbooks/en/developing/architecture.md b/docs/gitbooks/en/developing/architecture.md
index e40812c31a..8544ee3637 100644
--- a/docs/gitbooks/en/developing/architecture.md
+++ b/docs/gitbooks/en/developing/architecture.md
@@ -230,7 +230,7 @@ Conversation state is separate from memory: each thread's transcript is a JSONL
## Storage
-Durable state sits on the ports of `tinystoragedrivers` (documents, streams, blobs, search, secrets), vendored through `vendor/tinyagents/vendor/tinystoragedrivers`. One URL picks the backend for the process: `OPENHUMAN_STORAGE_URL`, else `[storage] url`, else the workspace default, `sqlite:<workspace>/storage`, so a build needs the `storage-sqlite` driver (or a URL for another one). The drivers are Cargo features (`storage-sqlite`, `storage-file`, `storage-mongodb`; `memory` is always there), and a URL for a driver the build lacks fails at boot. Records live in a scope: the tenant's profile when work runs for one, else the acting agent's id, else `local` for the operator in single-user mode. In SaaS mode a call with no profile is refused. The host side is `crates/openhuman-core/src/storage/`. See [Storage](architecture/storage.md).
+Durable state sits on the ports of `tinystoragedrivers` (documents, streams, blobs, search, secrets), taken by git tag (`v0.11.0`) by the host and by every module, so the build holds one copy. One URL picks the backend for the process: `OPENHUMAN_STORAGE_URL`, else `[storage] url`, else the workspace default, `sqlite:<workspace>/storage`, so a build needs the `storage-sqlite` driver (or a URL for another one). The drivers are Cargo features (`storage-sqlite`, `storage-file`, `storage-mongodb`; `memory` is always there), and a URL for a driver the build lacks fails at boot. Records live in a scope: the tenant's profile when work runs for one, else the acting agent's id, else `local` for the operator in single-user mode. In SaaS mode a call with no profile is refused. The host side is `crates/openhuman-core/src/storage/`. See [Storage](architecture/storage.md).
## Security architecture
diff --git a/docs/gitbooks/en/developing/architecture/storage.md b/docs/gitbooks/en/developing/architecture/storage.md
index 58685d6041..874fd575da 100644
--- a/docs/gitbooks/en/developing/architecture/storage.md
+++ b/docs/gitbooks/en/developing/architecture/storage.md
@@ -7,7 +7,7 @@ icon: database
# Storage
-OpenHuman keeps durable state on the ports of [`tinystoragedrivers`](https://github.com/tinyhumansai/tinystoragedrivers), vendored through `vendor/tinyagents/vendor/tinystoragedrivers`. One URL picks the backend for the whole process. The host adapter is `crates/openhuman-core/src/storage/`. It resolves the URL, opens the backend, holds it in a process slot and decides which scope a call runs in. The ports, the drivers and their conformance suites belong to `tinystoragedrivers`, and the typed records stay with the domain that owns them.
+OpenHuman keeps durable state on the ports of [`tinystoragedrivers`](https://github.com/tinyhumansai/tinystoragedrivers), taken by git tag (`v0.11.0`) by the host and by every module, so the build holds one copy. One URL picks the backend for the whole process. The host adapter is `crates/openhuman-core/src/storage/`. It resolves the URL, opens the backend, holds it in a process slot and decides which scope a call runs in. The ports, the drivers and their conformance suites belong to `tinystoragedrivers`, and the typed records stay with the domain that owns them.
With no URL configured, which is the desktop default, the host opens `sqlite:<workspace>/storage` and installs it. The URL decides where the whole process keeps its state, and there is no second layout: older installs' per-domain databases, transcripts and turn-state files are imported once, read-only, when the backend is installed. The files that remain outside the ports are listed under "What is not on the ports yet" below.
@@ -148,7 +148,8 @@ cargo test -p openhuman-cli --features storage-sqlite,storage-file --test storag
For MongoDB, start a single-node replica set and set the URL (a replica set is what lets the driver report and exercise transactions):
```bash
-bash vendor/tinyagents/vendor/tinystoragedrivers/.github/scripts/start-mongo-replset.sh 27017
+# start-mongo-replset.sh is in the tinystoragedrivers repo, .github/scripts/ (tag v0.11.0)
+bash start-mongo-replset.sh 27017
export TSD_MONGO_URL='mongodb://127.0.0.1:27017/tsd_test?directConnection=true'
cargo test -p openhuman-cli --features storage-mongodb --test storage_approvals_e2e
```
@@ -161,5 +162,5 @@ CI has two lanes for this:
## Where to read next
- `crates/openhuman-core/src/storage/README.md` for the entry points and the consumers.
-- The `tinystoragedrivers` specs: `docs/specs/storage-ports.md` and `docs/plans/storage-rollout.md` in `vendor/tinyagents/vendor/tinystoragedrivers`.
+- The `tinystoragedrivers` specs: `docs/specs/storage-ports.md` and `docs/plans/storage-rollout.md` in the tinystoragedrivers repository (tag `v0.11.0`).
- [Security](security.md) for the keyring and credential stores.