Skip to content

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

chore(storage): tidy import formatting and clarify migration marker docs

Steven Enamakel4f073ade3cf9
diff --git a/crates/openhuman-core/src/integrations/composio/file_store_documents_tests.rs b/crates/openhuman-core/src/integrations/composio/file_store_documents_tests.rs
index e44879f8cc..9419267986 100644
--- a/crates/openhuman-core/src/integrations/composio/file_store_documents_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/file_store_documents_tests.rs
@@ -164,7 +164,7 @@ fn the_import_marker_is_a_migrations_entry_and_stops_a_second_import() {
#[tokio::test]
async fn v1_state_documents_move_into_kv_without_replacing_a_newer_value() {
- use tinystoragedrivers::{Precondition};
+ use tinystoragedrivers::Precondition;
let storage = MemoryStorage::new();
let scoped = storage.for_scope(&Scope::new("local").unwrap()).unwrap();
let raw = scoped.documents();
diff --git a/crates/openhuman-core/src/storage/README.md b/crates/openhuman-core/src/storage/README.md
index 128f689e04..23ea949549 100644
--- a/crates/openhuman-core/src/storage/README.md
+++ b/crates/openhuman-core/src/storage/README.md
@@ -54,7 +54,7 @@ through TinyAgents' `legacy` importer, which owns those formats: the run ledger
from a `VACUUM INTO` snapshot of `session_db/sessions.db`, each
`session_raw` transcript into the scope of the agent its stem names (matched
against the known definitions, else the default agent), and the turn-state
-JSON into the default agent. Each importer keeps a marker per workspace, so a
+JSON into the default agent. Each importer records a `tsd.migrations` entry per workspace, so a
record deleted afterwards is not resurrected from the untouched legacy file.
## Entry points
diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rs
index 25213d6611..e142383cd5 100644
--- a/tests/storage_desktop_upgrade_e2e.rs
+++ b/tests/storage_desktop_upgrade_e2e.rs
@@ -402,7 +402,10 @@ async fn host_documents(backend: &dyn StorageBackend) -> usize {
let docs = backend.for_scope(&Scope::local()).unwrap();
let mut total = 0;
// The importers write the v2 collections of the owners behind each source.
- let owners: Vec<&str> = import::sources().iter().map(|source| source.owner).collect();
+ let owners: Vec<&str> = import::sources()
+ .iter()
+ .map(|source| source.owner)
+ .collect();
for schema in openhuman_core::storage::schema::owner_schemas() {
if !owners.contains(&schema.owner.as_str()) {
continue;