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
test(memory): assert pending deletion queue is owner-only
Steven Enamakela4bc702d405e
diff --git a/crates/openhuman-core/src/memory/deletion_tests.rs b/crates/openhuman-core/src/memory/deletion_tests.rsindex f30220d1fb..6818203d25 100644--- a/crates/openhuman-core/src/memory/deletion_tests.rs+++ b/crates/openhuman-core/src/memory/deletion_tests.rs@@ -107,3 +107,16 @@ async fn a_blank_thread_id_queues_nothing() {assert_eq!(forget_thread(&config, " ").await, 0);assert!(pending(&config.workspace_dir).is_empty());}++#[cfg(unix)]+#[test]+fn the_pending_queue_is_owner_only() {+ use std::os::unix::fs::PermissionsExt;+ let tmp = tempfile::tempdir().unwrap();+ enqueue(tmp.path(), thread("t"));+ let mode = std::fs::metadata(path(tmp.path()))+ .unwrap()+ .permissions()+ .mode();+ assert_eq!(mode & 0o077, 0, "{mode:o}");+}