Skip to content

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

chore: files changed crates/openhuman-core/src/storage/README.md,docs/ci-private-validation.md,docs/

Steven Enamakel4a8bc1a104ad
diff --git a/crates/openhuman-core/src/storage/README.md b/crates/openhuman-core/src/storage/README.md
index a2e79fe858..2c0d77dab3 100644
--- a/crates/openhuman-core/src/storage/README.md
+++ b/crates/openhuman-core/src/storage/README.md
@@ -98,10 +98,12 @@ it with the core stopped.
- `driver_is_shared(driver)` / `installed_is_shared()`: whether other
processes may write the same backend (MongoDB). Boot-time recovery, such
as the orphaned-run sweep, is skipped on a shared backend.
-- `driver_has_cross_process_cas(driver)`: whether a compare-and-swap on
- that driver is atomic across processes (MongoDB, SQLite), which a
- clustered node's leases need. Memory and file drivers coordinate only
- within one process.
+- `backend_has_cross_process_cas(backend)`: whether the backend reports
+ `Capability::SharedAcrossProcesses` (MongoDB, SQLite), i.e. a
+ compare-and-swap atomic across processes, which a clustered node's leases
+ need. `driver_has_cross_process_cas(driver)` is the same answer from a
+ name, for the boot guard, which judges a URL before opening anything.
+ Memory and file drivers coordinate only within one process.
- `blob_sweep`: reclaims expired blobs (`StorageBackend::sweep_expired_blobs`)
for `local`, each known agent scope and each provisioned SaaS profile
(`u:<id>` plus the blob-owning modules' scopes for it) every hour,
diff --git a/docs/ci-private-validation.md b/docs/ci-private-validation.md
index 51cb36f867..6f8fbc55b6 100644
--- a/docs/ci-private-validation.md
+++ b/docs/ci-private-validation.md
@@ -14,10 +14,10 @@ not treated as equivalent merely because they select the same crate.
| core no-default lib, existing gate filters | plain libtest | coverage nextest with equivalent substring unions |
| core no-default plus `modules,mcp,e2e-test-support`, gate filters | serial plain libtest | serial coverage nextest |
| Tauri own manifest/default features | coverage libtest | coverage nextest |
-| CLI ten storage E2E targets, `storage-sqlite,storage-file` | plain libtest | coverage nextest, same targets and driver matrix |
+| CLI storage E2E targets, SQLite only | plain libtest | coverage nextest, same targets |
| core storage domain filters excluding cron module tests | plain libtest | coverage nextest, same inclusions/exclusions |
| core storage cron bus/documents tests | serial plain libtest | serial coverage nextest |
-| RPC `session-store,storage-sqlite,storage-file`, `session_store::` | plain libtest | coverage nextest |
+| RPC `session-store,storage-sqlite`, `session_store::` | plain libtest | coverage nextest |
The storage E2E list and domain filter list remain declared in `lanes-plan.mjs`.
Product features remain in `scripts/ci/product-features.txt`; they are resolved
@@ -49,7 +49,7 @@ that their test selections are distinct.
| `mcp_registry_e2e` | The E2E runner explicitly adds `--ignored --test-threads=1`; ordinary integration execution skips these ignored cases. | Preserve this distinct test mode. |
| `tinymcp_storage_smoke_e2e` | The E2E runner adds `e2e-test-support` and serial execution. | Preserve this distinct feature configuration. |
| `tinydocs_linked_e2e` | The E2E runner adds non-product `linked-modules`. | Preserve this distinct feature configuration. |
-| Browser/desktop E2E, Windows secrets and MongoDB validation | These exercise frontend or native host flows, Windows-specific code, or a separate storage feature and external-service configuration. | Preserve these distinct contexts. |
+| Browser/desktop E2E and Windows secrets validation | These exercise frontend or native host flows, Windows-specific code, or external-service configuration. | Preserve these distinct contexts. |
These full/reusable workflows do not invoke the private coverage lane. No
execution above is removed on the assumption that private coverage replaces an
diff --git a/docs/gitbooks/en/developing/architecture/storage.md b/docs/gitbooks/en/developing/architecture/storage.md
index 9131bf1ddf..743f353867 100644
--- a/docs/gitbooks/en/developing/architecture/storage.md
+++ b/docs/gitbooks/en/developing/architecture/storage.md
@@ -150,35 +150,17 @@ Secrets with a backend installed are encrypted documents in the current storage
## Tests and CI
-Every storage test target runs the same body once per driver, and each run is a separate test case named after the driver (`memory::…`, `sqlite::…`, `file::…`, `mongodb::…`), so a failure says which driver broke. The shared helper is `tests/support/storage_drivers.rs`.
+The host's storage tests run on SQLite only. They test the host's wiring on a configured backend (which domain stores land in it, which scope they use, what a second process reads back), not the drivers. The shared helper is `tests/support/storage_case.rs`: it opens a SQLite backend on a temp directory and takes a lock on the process-wide storage slot, so the tests of one binary take turns.
-| Driver | Runs |
-| ---------------- | ------------------------------------------------------------------------------------------------------- |
-| `memory` | Always |
-| `sqlite`, `file` | When `storage-sqlite` or `storage-file` is compiled in, on temp directories |
-| `mongodb` | When `storage-mongodb` is compiled in and `TSD_MONGO_URL` is set. Each case uses a database of its own. |
+Whether each driver honours the storage ports is proven upstream, in `tinystoragedrivers`. Its `conformance` module runs the same checks against every driver (nested scope isolation, compare-and-swap and leases across processes via `run_shared` for drivers that claim `Capability::SharedAcrossProcesses`, fencing, document secrets and migrations), and its CI runs them against a MongoDB replica set as well. The host asks a backend for `Capability::SharedAcrossProcesses` rather than hardcoding driver names where it can (`storage::backend_has_cross_process_cas`); the boot guard judges a URL before anything is opened, so it keeps a name check that a test pins to the real drivers.
-The targets are `storage_approvals_e2e`, `storage_domains_e2e`, `storage_flows_e2e`, `storage_secrets_e2e`, `storage_scope_e2e`, `storage_agent_scopes_e2e`, `storage_delegation_e2e` and `cli_storage_url_e2e`. Run one locally with the drivers you want:
+The targets are `storage_approvals_e2e`, `storage_domains_e2e`, `storage_flows_e2e`, `storage_secrets_e2e`, `storage_scope_e2e`, `storage_agent_scopes_e2e`, `storage_delegation_e2e`, `storage_desktop_upgrade_e2e` and `cli_storage_url_e2e`. Run one locally:
```bash
-cargo test -p openhuman-cli --features storage-sqlite,storage-file --test storage_approvals_e2e
+cargo test -p openhuman-cli --features storage-sqlite --test storage_approvals_e2e
```
-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
-# the script lives in the tinystoragedrivers repo (tag v0.11.0); fetch the pinned copy first
-curl -fsSL -o start-mongo-replset.sh \
- https://raw.githubusercontent.com/tinyhumansai/tinystoragedrivers/9eeef54aea403ac07461a612189bdf4982782823/.github/scripts/start-mongo-replset.sh
-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
-```
-
-CI has two lanes for this:
-
-- The `storage-drivers` lane in `scripts/ci/self-hosted/lanes-plan.mjs` builds with `storage-sqlite,storage-file`. It runs every storage target plus the lib tests of the domains on the ports. The `storage` area in `.github/ci-paths-filter.yml` arms it when storage, cron, flows, approvals, devices, notifications, task sources, keyring or credentials, orchestration, the cost tracker, app and desktop-control state or the rpc session store change.
-- `.github/workflows/storage-mongodb.yml` builds with `storage-mongodb` against a real replica set. It runs on pull requests that touch the same paths, nightly on `main` and on demand.
+CI runs these targets, with the lib tests of the domains on the ports, in the core coverage suite (`scripts/ci/rust-coverage.sh`). The `storage` area in `.github/ci-paths-filter.yml` arms it when storage, cron, flows, approvals, devices, notifications, task sources, keyring or credentials, orchestration, the cost tracker, app and desktop-control state or the rpc session store change. There is no separate driver lane and no MongoDB workflow in this repository. The `storage-mongodb` and `storage-file` features still ship in the product.
## Where to read next