The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/agent/harness/artifact_offload/artifact_offload_tests
Steven Enamakel6a139c82a3a6
diff --git a/crates/openhuman-core/src/agent/harness/artifact_offload/artifact_offload_tests.rs b/crates/openhuman-core/src/agent/harness/artifact_offload/artifact_offload_tests.rsindex b8bf626fab..c99efe138b 100644--- a/crates/openhuman-core/src/agent/harness/artifact_offload/artifact_offload_tests.rs+++ b/crates/openhuman-core/src/agent/harness/artifact_offload/artifact_offload_tests.rs@@ -105,7 +105,6 @@ fn workspace_guard_defers_to_the_security_policy_for_internal_state() {}fn memory_blobs() -> Arc<dyn tinystoragedrivers_api::BlobStore> {- use tinystoragedrivers::StorageBackend as _;let backend = crate::storage::test_support::memory_backend();let scoped = backend.for_scope(&crate::storage::Scope::local())diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rsindex 41a7f609e3..b6481c1277 100644--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_tests.rs@@ -536,7 +536,7 @@ fn closed_session_is_not_reusable() {#[test]fn an_equal_millisecond_live_close_persists_and_a_stale_snapshot_cannot_reopen_it() {use crate::agent::orchestration::subagent_sessions::store_documents::{with_override, Docs};- use crate::storage::{test_support::memory_backend, Scope, StorageBackend};+ use crate::storage::{test_support::memory_backend, Scope};let storage = memory_backend();let docs = Docs::over(&storage.for_scope(&Scope::new("local").unwrap()).unwrap());diff --git a/crates/openhuman-core/src/memory/state_store_tests.rs b/crates/openhuman-core/src/memory/state_store_tests.rsindex 798d99a6bf..f38ef1395c 100644--- a/crates/openhuman-core/src/memory/state_store_tests.rs+++ b/crates/openhuman-core/src/memory/state_store_tests.rs@@ -1,5 +1,4 @@use super::*;-use crate::storage::StorageBackend;use tinymemory_api::{ConsolidateRequest, ItemKind, Namespace, Reach};use tinymemory_tools::BackgroundJob;diff --git a/crates/openhuman-core/src/platform/cost/tracker_tests.rs b/crates/openhuman-core/src/platform/cost/tracker_tests.rsindex 4e97cb6180..d7416083b9 100644--- a/crates/openhuman-core/src/platform/cost/tracker_tests.rs+++ b/crates/openhuman-core/src/platform/cost/tracker_tests.rs@@ -573,7 +573,7 @@ fn empty_ledger_sums_are_not_negative_zero() {#[test]fn the_ledger_dispatches_to_documents_when_a_backend_is_pinned() {- use crate::storage::{Scope, StorageBackend};+ use crate::storage::Scope;let storage = crate::storage::test_support::memory_backend();let docs_for = |scope: &str| {super::super::tracker_documents::CostDocs::over(diff --git a/crates/openhuman-core/src/profiles/host_tests.rs b/crates/openhuman-core/src/profiles/host_tests.rsindex c8dda5762b..fd6149e324 100644--- a/crates/openhuman-core/src/profiles/host_tests.rs+++ b/crates/openhuman-core/src/profiles/host_tests.rs@@ -2,7 +2,7 @@ use super::*;use crate::core::runtime::DispatchCtx;use crate::profiles::doctor::DoctorProfileState;use crate::storage::test_support::{memory_backend, sqlite_backend};-use crate::storage::{CollectionSpec, Scope, StorageBackend};+use crate::storage::{CollectionSpec, Scope};use std::collections::BTreeMap;fn snapshot_tree(root: &std::path::Path) -> BTreeMap<std::path::PathBuf, Vec<u8>> {diff --git a/crates/openhuman-core/src/profiles/registry_tests.rs b/crates/openhuman-core/src/profiles/registry_tests.rsindex 42966b30d4..c515945935 100644--- a/crates/openhuman-core/src/profiles/registry_tests.rs+++ b/crates/openhuman-core/src/profiles/registry_tests.rs@@ -1,6 +1,5 @@use super::*;use crate::storage::test_support::{memory_backend, sqlite_backend};-use crate::storage::StorageBackend;use tinystoragedrivers_types::{CollectionSpec, Precondition, Scope};fn meta(id: &str, created_at: u64) -> ProfileMeta {diff --git a/crates/openhuman-core/src/storage/blob_sweep_tests.rs b/crates/openhuman-core/src/storage/blob_sweep_tests.rsindex 3fa4d00fc8..b0b9e55df4 100644--- a/crates/openhuman-core/src/storage/blob_sweep_tests.rs+++ b/crates/openhuman-core/src/storage/blob_sweep_tests.rs@@ -323,7 +323,6 @@ fn orphan_sweep_rejects_malformed_or_nonadvancing_listing_pages() {#[tokio::test]async fn orphan_sweep_pages_and_preserves_referenced_blobs() {- use tinystoragedrivers_api::BlobStore;use tinystoragedrivers_testkit::memory_storage;use tinystoragedrivers_types::Scope;@@ -351,7 +350,6 @@ async fn orphan_sweep_pages_and_preserves_referenced_blobs() {#[tokio::test]async fn orphan_sweep_checks_references_only_for_eligible_blobs() {use std::sync::atomic::{AtomicUsize, Ordering};- use tinystoragedrivers_api::BlobStore;use tinystoragedrivers_testkit::memory_storage;use tinystoragedrivers_types::Scope;@@ -376,7 +374,6 @@ async fn orphan_sweep_checks_references_only_for_eligible_blobs() {#[tokio::test]async fn orphan_sweep_stops_on_reference_error_after_preserving_prior_progress() {- use tinystoragedrivers_api::BlobStore;use tinystoragedrivers_testkit::memory_storage;use tinystoragedrivers_types::Scope;@@ -405,7 +402,6 @@ async fn orphan_sweep_stops_on_reference_error_after_preserving_prior_progress()#[tokio::test]async fn orphan_sweep_stops_on_listing_error_before_touching_blobs() {use std::sync::Arc;- use tinystoragedrivers_api::BlobStore;use tinystoragedrivers_testkit::{memory_storage, Failing, FaultPlan};use tinystoragedrivers_types::{ErrorKind, Scope};@@ -427,7 +423,6 @@ async fn orphan_sweep_stops_on_listing_error_before_touching_blobs() {#[tokio::test]async fn orphan_sweep_stops_on_delete_error_after_preserving_prior_progress() {use std::sync::Arc;- use tinystoragedrivers_api::BlobStore;use tinystoragedrivers_testkit::{memory_storage, Failing, FaultPlan};use tinystoragedrivers_types::{ErrorKind, Scope};diff --git a/crates/openhuman-core/src/storage/config_tests.rs b/crates/openhuman-core/src/storage/config_tests.rsindex 308140497a..b2b8ce6038 100644--- a/crates/openhuman-core/src/storage/config_tests.rs+++ b/crates/openhuman-core/src/storage/config_tests.rs@@ -90,9 +90,6 @@ async fn the_default_url_opens_in_directory_mode() {).await.unwrap();- drop(docs);- drop(scoped);- drop(backend);// Directory mode: the directory holds the database file.assert!(dir.path().join(DEFAULT_DIR).exists());let reopened = crate::storage::open(&url).await.unwrap();@@ -190,9 +187,6 @@ async fn the_v2_default_opens_one_storage_db_file_beside_config_toml() {).await.unwrap();- drop(documents);- drop(scoped);- drop(backend);assert!(layout.storage_db.is_file(),"{} should be a database file",diff --git a/crates/openhuman-core/src/storage/fenced_backend_tests.rs b/crates/openhuman-core/src/storage/fenced_backend_tests.rsindex 506c5b3d8d..d3d26454b9 100644--- a/crates/openhuman-core/src/storage/fenced_backend_tests.rs+++ b/crates/openhuman-core/src/storage/fenced_backend_tests.rs@@ -12,7 +12,6 @@ use std::sync::{Arc,};use std::time::Duration;-use tinystoragedrivers_api::StorageBackend as _;use tinystoragedrivers_types::{CollectionSpec, NewMessage, Precondition, QueueSpec, Scope};const TTL: Duration = Duration::from_secs(30);diff --git a/crates/openhuman-core/src/storage/host_migration_tests.rs b/crates/openhuman-core/src/storage/host_migration_tests.rsindex 1240dab3b5..e26af84718 100644--- a/crates/openhuman-core/src/storage/host_migration_tests.rs+++ b/crates/openhuman-core/src/storage/host_migration_tests.rs@@ -5,7 +5,7 @@//! source readers or prove a migration; it only relied on the retired global//! schema registry.-use super::{StorageBackend, boot::prepare_and_migrate, schema::owner_collections};+use super::{boot::prepare_and_migrate, schema::owner_collections};use crate::storage::{DocumentStoreExt, Scope};#[tokio::test]diff --git a/crates/openhuman-core/src/storage/import/mod_tests.rs b/crates/openhuman-core/src/storage/import/mod_tests.rsindex 4539150263..e7b986c6cd 100644--- a/crates/openhuman-core/src/storage/import/mod_tests.rs+++ b/crates/openhuman-core/src/storage/import/mod_tests.rs@@ -533,7 +533,6 @@ fn records_the_previous_release_wrote_as_documents_are_imported_and_win_over_leglet source = devices();let db = dir.path().join(source.db);{- use tinystoragedrivers::StorageBackend as _;let url = format!("sqlite:{}", db.display());let storage =crate::storage::block_on(async move { crate::storage::open(&url).await }).unwrap();diff --git a/crates/openhuman-core/src/storage/lease_documents_tests.rs b/crates/openhuman-core/src/storage/lease_documents_tests.rsindex 734a2050d9..73bcc3abf8 100644--- a/crates/openhuman-core/src/storage/lease_documents_tests.rs+++ b/crates/openhuman-core/src/storage/lease_documents_tests.rs@@ -6,7 +6,6 @@ use std::time::Duration;use crate::storage::test_support::SqliteBackend;use crate::storage::test_support::memory_backend;-use crate::storage::lease::LeaseStore as _;use tinystoragedrivers_types::{CollectionSpec, Precondition, Scope};const TTL: Duration = Duration::from_millis(1_000);diff --git a/crates/openhuman-core/src/storage/sessions/splice_fixture_tests.rs b/crates/openhuman-core/src/storage/sessions/splice_fixture_tests.rsindex 1c00d8b8df..5c69456263 100644--- a/crates/openhuman-core/src/storage/sessions/splice_fixture_tests.rs+++ b/crates/openhuman-core/src/storage/sessions/splice_fixture_tests.rs@@ -15,8 +15,6 @@ pub(crate) fn memory_locator() -> Arc<dyn TranscriptLocator> {/// agent IDs share this fixture's isolated scope so legacy transcript grouping/// can be exercised without weakening production scope selection.pub(crate) fn memory_session_provider() -> Arc<dyn SessionStoreProvider> {- use tinystoragedrivers_api::StorageBackend as _;-let backend = crate::storage::test_support::memory_backend();let factory: AgentStorageFactory = Arc::new(move |_| {let scope = tinystoragedrivers_types::Scope::new("transcript-fixture")