Skip to content

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

refactor(core): update cloud adapter documentation and add workspace scope test

Steven Enamakel20abae559a50
diff --git a/crates/openhuman-core/src/inference/embedding_host/cloud_adapter.rs b/crates/openhuman-core/src/inference/embedding_host/cloud_adapter.rs
index ff10bf0231..eef1c7d0ba 100644
--- a/crates/openhuman-core/src/inference/embedding_host/cloud_adapter.rs
+++ b/crates/openhuman-core/src/inference/embedding_host/cloud_adapter.rs
@@ -1,5 +1,4 @@
-//! Credential scope and the unavailable placeholder for the managed cloud
-//! embedder. The embedder itself is a registered provider
+//! Unavailable placeholder for the managed cloud embedder. The embedder itself is a registered provider
//! ([`crate::inference::registry::register_embedding`]); with none registered
//! the managed embedder is a placeholder that answers `BACKEND_UNAVAILABLE:`.
diff --git a/crates/openhuman-core/src/security/credentials/embedding_scope_tests.rs b/crates/openhuman-core/src/security/credentials/embedding_scope_tests.rs
index 4910d196a7..a92f30dfc0 100644
--- a/crates/openhuman-core/src/security/credentials/embedding_scope_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/embedding_scope_tests.rs
@@ -67,3 +67,17 @@ fn env_workspace_scope_is_the_config_dir_not_the_raw_workspace() {
assert_eq!(resolved, sibling_config);
assert_ne!(resolved, workspace);
}
+
+/// The modern `~/.openhuman/workspace` layout keeps config and credentials in
+/// the parent `.openhuman` directory too.
+#[test]
+fn modern_workspace_scope_is_the_parent_openhuman_dir() {
+ let root = tempfile::tempdir().unwrap();
+ let config_dir = root.path().join(".openhuman");
+ let workspace = config_dir.join("workspace");
+ std::fs::create_dir_all(&workspace).unwrap();
+
+ let resolved = env_workspace_state_dir(&workspace);
+
+ assert_eq!(resolved, config_dir);
+}