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: verify stateless turns add no files
Steven Enamakel0e1a5beb799f
diff --git a/crates/openhuman-embed/tests/session_store.rs b/crates/openhuman-embed/tests/session_store.rsindex 3afc9b2417..e8653aa6fd 100644--- a/crates/openhuman-embed/tests/session_store.rs+++ b/crates/openhuman-embed/tests/session_store.rs@@ -10,6 +10,7 @@mod common;+use std::collections::HashSet;use std::sync::Arc;use common::{chat_requests, offline_config, provider, runtime, stub_backend};@@ -92,6 +93,11 @@ fn a_stateless_runtime_keeps_every_conversation_in_its_session_store() {// ── asha: two turns on one thread ─────────────────────────────let asha = runtime.agent(spec("asha")).expect("asha instantiates");+ let ravi = runtime.agent(spec("ravi")).expect("ravi instantiates");+ // Runtime initialization and agent construction create required+ // configuration/scaffolding files. Snapshot that legitimate+ // baseline, then ensure turns add no durable files of any kind.+ let baseline: HashSet<_> = files_under(&scratch).into_iter().collect();let first = asha.turn("remember the table is for two").send()@@ -123,7 +129,6 @@ fn a_stateless_runtime_keeps_every_conversation_in_its_session_store() {);// ── ravi: a different agent ───────────────────────────────────- let ravi = runtime.agent(spec("ravi")).expect("ravi instantiates");ravi.turn("hello").send().await.expect("ravi's turn");// Asha's transcript is in her stores, and only hers.@@ -156,7 +161,10 @@ fn a_stateless_runtime_keeps_every_conversation_in_its_session_store() {assert!(!runs.is_empty(), "asha's runs are recorded in her store");// Nothing durable reached the scratch workspace.- let written = files_under(&scratch);+ let written: Vec<_> = files_under(&scratch)+ .into_iter()+ .filter(|path| !baseline.contains(path))+ .collect();assert!(written.is_empty(),"a stateless workspace must remain empty, found: {written:?}"