Skip to content

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

ci: run storage lanes when their test targets or helpers change

Steven Enamakelf4eb5fc94728
diff --git a/.github/ci-paths-filter.yml b/.github/ci-paths-filter.yml
index 045c5c81dc..e2c7707f3e 100644
--- a/.github/ci-paths-filter.yml
+++ b/.github/ci-paths-filter.yml
@@ -167,6 +167,13 @@ scripts:
- 'app/scripts/e2e-web-build.sh'
- 'app/scripts/e2e-web-session.sh'
- 'app/vite.config.*'
+ # The storage-target parity test in self-hosted-lanes.test.mjs checks that
+ # every registered `tests/storage_*_e2e.rs` target is in the storage lane
+ # and the MongoDB workflow; adding a target must run it.
+ - 'tests/storage_*.rs'
+ - 'tests/cli_storage_url_e2e.rs'
+ - 'crates/openhuman-cli/Cargo.toml'
+ - '.github/workflows/storage-mongodb.yml'
# Test-wiring surface: a change here can orphan a test or add an
# untested controller domain → run the inventory guard.
inventory:
diff --git a/.github/workflows/storage-mongodb.yml b/.github/workflows/storage-mongodb.yml
index cfa78eb32b..7af6b784ca 100644
--- a/.github/workflows/storage-mongodb.yml
+++ b/.github/workflows/storage-mongodb.yml
@@ -58,6 +58,11 @@ on:
- "tests/support/storage_drivers.rs"
- ".gitmodules"
- "vendor/**"
+ # The helpers this workflow invokes, and the root build script the
+ # test targets compile through.
+ - "scripts/ci/checkout-submodules.sh"
+ - "scripts/ci-cancel-aware.sh"
+ - "build.rs"
schedule:
- cron: "17 3 * * *"
workflow_dispatch: {}
diff --git a/gitbooks/developing/architecture/storage.md b/gitbooks/developing/architecture/storage.md
index e96378475b..0c427ef41d 100644
--- a/gitbooks/developing/architecture/storage.md
+++ b/gitbooks/developing/architecture/storage.md
@@ -80,7 +80,7 @@ On a shared backend (MongoDB) other processes may write the same records, so boo
Without a URL, the classic layout is unchanged: per-domain SQLite databases (`approval/approval.db`, `devices/devices.db`, `notifications/notifications.db`, `task_sources/sources.db`, `cron/jobs.db`, `flows/flows.db`, `graph_checkpoints.db`), JSON and JSONL files, and the OS keyring or `secrets.enc`. Records written to a configured backend are not copied back to those files. The domain stores do not import their files either, with one exception: credentials. On first read with a backend installed, the auth-profile and HTTP-credential stores copy the records in their files into the backend, and the keyring adopts a secret it finds in the process backend. The source files are left untouched.
-Secrets with a backend installed are encrypted documents in the acting agent's scope. Each scope's data key is derived with HKDF-SHA256 from the keyring master key (`OPENHUMAN_KEYRING_MASTER_KEY` or `_FILE`, else the OS keychain), and with no master key they fail closed. The config encryption key stays on the process keyring because `config.toml` is loaded before any agent acts.
+Secrets with a backend installed are encrypted documents in the current storage scope: the acting agent's scope on a desktop or CLI host, and the profile's scope under SaaS, where every agent in one profile shares the profile's credentials and data key. Each scope's data key is derived with HKDF-SHA256 from the keyring master key (`OPENHUMAN_KEYRING_MASTER_KEY` or `_FILE`, else the OS keychain), and with no master key they fail closed. The config encryption key stays on the process keyring because `config.toml` is loaded before any agent acts.
## Tests and CI