Skip to content

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

chore: files changed src/openhuman/cron/scheduler_tests_part_01_tests.rs

Steven Enamakel470f52d9c8f7
diff --git a/src/openhuman/cron/scheduler_tests_part_01_tests.rs b/src/openhuman/cron/scheduler_tests_part_01_tests.rs
index 4ef56d384b..556c4cc175 100644
--- a/src/openhuman/cron/scheduler_tests_part_01_tests.rs
+++ b/src/openhuman/cron/scheduler_tests_part_01_tests.rs
@@ -78,7 +78,11 @@ async fn attributed_cron_build_retains_profile_gates() {
let mut profile = crate::openhuman::agent::profiles::store::built_in_default_profile();
profile.id = "alice".into();
profile.built_in = false;
- profile.allowed_tools = Some(vec!["file_read".into()]);
+ // `shell` rather than `file_read`: the subject here is that a profile's
+ // `allowed_tools` gate survives the cron build, and `file_read` moved into
+ // the `files` tool pack, so the visible set would come back as the
+ // `use_skill` proxy and the assertion would be about packing instead.
+ profile.allowed_tools = Some(vec!["shell".into()]);
profile.memory_sources = Some(vec!["slack:#eng".into()]);
crate::openhuman::agent::profiles::store::AgentProfileStore::new(config.workspace_dir.clone())
.upsert(profile)
@@ -91,7 +95,7 @@ async fn attributed_cron_build_retains_profile_gates() {
assert_eq!(
built.agent.visible_tool_names_for_test(),
- &["file_read".to_string()].into_iter().collect()
+ &["shell".to_string()].into_iter().collect()
);
assert_eq!(
built.profile.and_then(|profile| profile.memory_sources),