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(session_host): assert goal tools absent from prompt and declarations
Steven Enamakelb5740d0c6e8d
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rsindex 6ef70a688f..a8f2bbfbc2 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs@@ -42,7 +42,16 @@ async fn debug_prompt_matches_the_system_prompt_sent_on_a_cold_turn() {}).collect::<String>();- assert_no_goal_tools(&sent, &ToolSnapshot::default());+ for goal_tool in ["goal_get", "goal_set", "goal_complete"] {+ assert!(+ !sent.contains(goal_tool),+ "{goal_tool} leaked into the actual system prompt"+ );+ assert!(+ !request.tools.iter().any(|tool| tool.name == goal_tool),+ "{goal_tool} leaked into the actual tool declarations"+ );+ }assert_eq!(dumped, sent,"debug dump must equal the real cold-turn system prompt"