Skip to content

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

chore: files changed crates/openhuman-core/src/agent/registry/defaults_tests.rs,crates/openhuman-cor

Steven Enamakela8f8a0aa295e
diff --git a/crates/openhuman-core/src/agent/registry/defaults_tests.rs b/crates/openhuman-core/src/agent/registry/defaults_tests.rs
index 60e2b057d5..c49e62157d 100644
--- a/crates/openhuman-core/src/agent/registry/defaults_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/defaults_tests.rs
@@ -5,7 +5,7 @@ fn default_agents_include_core_personas() {
let agents = default_agents();
let ids: Vec<&str> = agents.iter().map(|agent| agent.id.as_str()).collect();
assert!(ids.contains(&"orchestrator"));
- assert!(ids.contains(&"archivist"));
+ assert!(ids.contains(&"summarizer"));
assert!(
!ids.contains(&"researcher"),
"the researcher agent was removed"
@@ -36,7 +36,7 @@ fn custom_entry(id: &str) -> AgentRegistryEntry {
enabled: true,
model: Some("hint:reasoning".to_string()),
system_prompt: Some("You are a meticulous finance analyst.".to_string()),
- tool_allowlist: vec!["memory_search".to_string(), "web_search".to_string()],
+ tool_allowlist: vec!["memory".to_string(), "web_search".to_string()],
tool_denylist: vec!["file_write".to_string()],
subagents: AgentSubagentPolicy::from_allowlist(vec!["researcher".to_string()]),
tags: vec!["finance".to_string()],
@@ -59,7 +59,7 @@ fn definition_from_registry_entry_preserves_tools_model_denylist_subagents() {
assert!(matches!(
def.tools,
ToolScope::Named(ref names)
- if names == &vec!["memory_search".to_string(), "web_search".to_string()]
+ if names == &vec!["memory".to_string(), "web_search".to_string()]
));
assert_eq!(def.disallowed_tools, vec!["file_write".to_string()]);
assert_eq!(
diff --git a/crates/openhuman-core/src/agent/registry/ops_tests.rs b/crates/openhuman-core/src/agent/registry/ops_tests.rs
index 5473af0e8b..c87297c689 100644
--- a/crates/openhuman-core/src/agent/registry/ops_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/ops_tests.rs
@@ -12,7 +12,7 @@ fn custom_agent(id: &str, enabled: bool) -> AgentRegistryEntry {
enabled,
model: Some("reasoning-v1".to_string()),
system_prompt: Some("Do custom work.".to_string()),
- tool_allowlist: vec!["memory.search".to_string()],
+ tool_allowlist: vec!["memory".to_string()],
tool_denylist: Vec::new(),
subagents: AgentSubagentPolicy::default(),
tags: vec!["custom".to_string()],
@@ -23,8 +23,8 @@ fn custom_agent(id: &str, enabled: bool) -> AgentRegistryEntry {
#[test]
fn merge_entries_applies_default_overrides_and_filters_disabled() {
let configured = vec![AgentRegistryEntry {
- id: "archivist".to_string(),
- name: "Archivist".to_string(),
+ id: "summarizer".to_string(),
+ name: "Summarizer".to_string(),
description: "Disabled for this workspace.".to_string(),
source: AgentRegistrySource::Default,
enabled: false,
@@ -38,11 +38,11 @@ fn merge_entries_applies_default_overrides_and_filters_disabled() {
}];
let visible = merge_entries(&configured, false);
- assert!(!visible.iter().any(|agent| agent.id == "archivist"));
+ assert!(!visible.iter().any(|agent| agent.id == "summarizer"));
let all = merge_entries(&configured, true);
- let archivist = all.iter().find(|agent| agent.id == "archivist").unwrap();
- assert!(!archivist.enabled);
+ let summarizer = all.iter().find(|agent| agent.id == "summarizer").unwrap();
+ assert!(!summarizer.enabled);
}
#[test]
@@ -71,10 +71,10 @@ fn find_custom_in_config_ignores_default_source_entries() {
let mut config = Config::default();
config.agent_registry.entries = vec![AgentRegistryEntry {
source: AgentRegistrySource::Default,
- ..custom_agent("archivist", true)
+ ..custom_agent("summarizer", true)
}];
- assert!(find_custom_in_config(&config, "archivist").is_none());
+ assert!(find_custom_in_config(&config, "summarizer").is_none());
}
#[test]