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/memory/confine_tests.rs,crates/openhuman-core/src/mem
Steven Enamakelf4b6675b470a
diff --git a/crates/openhuman-core/src/memory/confine_tests.rs b/crates/openhuman-core/src/memory/confine_tests.rsindex 505655e634..5e38d79556 100644--- a/crates/openhuman-core/src/memory/confine_tests.rs+++ b/crates/openhuman-core/src/memory/confine_tests.rs@@ -127,7 +127,10 @@ async fn list_fetch_and_recall_never_read_another_root() {).await.unwrap();- assert!(answer.citations.iter().all(|citation| citation.id.0 != theirs));+ assert!(answer+ .citations+ .iter()+ .all(|citation| citation.id.0 != theirs));}#[tokio::test]diff --git a/crates/openhuman-core/src/memory/files_tests.rs b/crates/openhuman-core/src/memory/files_tests.rsindex 97578b744d..3e598f3328 100644--- a/crates/openhuman-core/src/memory/files_tests.rs+++ b/crates/openhuman-core/src/memory/files_tests.rs@@ -14,7 +14,11 @@ fn write_private_writes_the_bytes() {let file = tmp.path().join("memory").join("state.json");write_private(&file, b"{\"a\":1}").unwrap();write_private(&file, b"{}").unwrap();- assert_eq!(std::fs::read(&file).unwrap(), b"{}", "truncated, not appended");+ assert_eq!(+ std::fs::read(&file).unwrap(),+ b"{}",+ "truncated, not appended"+ );}#[cfg(unix)]@@ -51,8 +55,8 @@ async fn every_memory_state_file_is_owner_only() {use tinymemory_api::{ConsolidateRequest, ItemKind, Namespace, Reach};use crate::memory::lifecycle::jobs;- use tinymemory_tools::BackgroundJob;use crate::memory::test_fixtures::config_in;+ use tinymemory_tools::BackgroundJob;let tmp = tempfile::tempdir().unwrap();let config = config_in(&tmp);diff --git a/crates/openhuman-core/src/memory/local_root.rs b/crates/openhuman-core/src/memory/local_root.rsindex 8fa20133de..f43725e0db 100644--- a/crates/openhuman-core/src/memory/local_root.rs+++ b/crates/openhuman-core/src/memory/local_root.rs@@ -150,7 +150,9 @@ fn read(file: &Path) -> std::io::Result<Option<LocalRoot>> {let record: LocalRoot = serde_json::from_str(&text).map_err(std::io::Error::other)?;let id = record.root.strip_prefix(LOCAL_ROOT_PREFIX).unwrap_or("");if id.is_empty() || !id.bytes().all(|b| b.is_ascii_alphanumeric()) {- return Err(std::io::Error::other("the recorded local root is malformed"));+ return Err(std::io::Error::other(+ "the recorded local root is malformed",+ ));}Ok(Some(record))}@@ -168,8 +170,9 @@ fn record_once(file: &Path, record: &LocalRoot) -> std::io::Result<LocalRoot> {temp.as_file().sync_all()?;match std::fs::hard_link(temp.path(), file) {Ok(()) => Ok(record.clone()),- Err(error) if error.kind() == std::io::ErrorKind::AlreadyExists => read(file)?- .ok_or_else(|| std::io::Error::other("the local root record vanished")),+ Err(error) if error.kind() == std::io::ErrorKind::AlreadyExists => {+ read(file)?.ok_or_else(|| std::io::Error::other("the local root record vanished"))+ }Err(error) => Err(error),}}diff --git a/crates/openhuman-core/src/memory/local_root_tests.rs b/crates/openhuman-core/src/memory/local_root_tests.rsindex db42e4c014..e3435bd830 100644--- a/crates/openhuman-core/src/memory/local_root_tests.rs+++ b/crates/openhuman-core/src/memory/local_root_tests.rs@@ -18,10 +18,7 @@ fn local_config(tmp: &tempfile::TempDir, install: &str) -> Config {}fn forget_cached(config: &Config) {- CACHE- .lock()- .unwrap()- .remove(&path(&config.workspace_dir));+ CACHE.lock().unwrap().remove(&path(&config.workspace_dir));}fn recorded(config: &Config) -> LocalRoot {