Skip to content

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

docs(storage): document saas profile blob sweeping

Steven Enamakel93c029002a26
diff --git a/crates/openhuman-core/src/storage/README.md b/crates/openhuman-core/src/storage/README.md
index 75941eb3b6..ac2fad3f15 100644
--- a/crates/openhuman-core/src/storage/README.md
+++ b/crates/openhuman-core/src/storage/README.md
@@ -74,8 +74,12 @@ record deleted afterwards is not resurrected from the untouched legacy file.
clustered node's leases need. Memory and file drivers coordinate only
within one process.
- `blob_sweep`: reclaims expired blobs (`StorageBackend::sweep_expired_blobs`)
- for `local` and each known agent scope every hour, spawned with the cron
- service (`core::runtime::services`). SaaS profile scopes are not swept yet.
+ for `local`, each known agent scope and each provisioned SaaS profile
+ (`profile:<id>` plus the blob-owning modules' scopes for it) every hour,
+ spawned with the cron `ServiceSet` switch (`core::runtime::services`; not
+ gated on `[cron] enabled`, since it reclaims storage rather than running
+ jobs). Each scope's sweep is bounded by `SCOPE_SWEEP_TIMEOUT`; a timeout
+ counts as a failed sweep and is retried on the next tick.
- `fence` / `fenced_backend`: lease-epoch write fencing (see
[Write fencing](#write-fencing)).
- `scope_for_profile(profile_id)`: the scope a SaaS profile's records live