Skip to content

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

fix(tests): replace planner references with archivist in registry tests

Steven Enamakeldc45eec79927
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs
index b4ddf0631b..e8c325a33b 100644
--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs
@@ -461,7 +461,7 @@ fn rejects_reasoning_to_reasoning_delegation() {
#[test]
fn rejects_worker_with_subagents() {
let mut defs = load_builtins().unwrap();
- let worker = defs.iter_mut().find(|d| d.id == "code_executor").unwrap();
+ let worker = defs.iter_mut().find(|d| d.id == "archivist").unwrap();
worker
.subagents
.push(SubagentEntry::AgentId("critic".into()));
diff --git a/crates/openhuman-core/src/agent/registry/defaults_tests.rs b/crates/openhuman-core/src/agent/registry/defaults_tests.rs
index a20032f39d..a48b8c2b4a 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(&"planner"));
+ assert!(ids.contains(&"archivist"));
assert!(!ids.contains(&"researcher"), "the researcher agent was removed");
assert!(ids.contains(&"code_executor"));
assert!(agents
diff --git a/crates/openhuman-core/src/agent/registry/ops_tests.rs b/crates/openhuman-core/src/agent/registry/ops_tests.rs
index 99d5f3c456..5473af0e8b 100644
--- a/crates/openhuman-core/src/agent/registry/ops_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/ops_tests.rs
@@ -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: "planner".to_string(),
- name: "Planner".to_string(),
+ id: "archivist".to_string(),
+ name: "Archivist".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 == "planner"));
+ assert!(!visible.iter().any(|agent| agent.id == "archivist"));
let all = merge_entries(&configured, true);
- let planner = all.iter().find(|agent| agent.id == "planner").unwrap();
- assert!(!planner.enabled);
+ let archivist = all.iter().find(|agent| agent.id == "archivist").unwrap();
+ assert!(!archivist.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("planner", true)
+ ..custom_agent("archivist", true)
}];
- assert!(find_custom_in_config(&config, "planner").is_none());
+ assert!(find_custom_in_config(&config, "archivist").is_none());
}
#[test]
diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.json
index e601bee726..e8d3d41df6 100644
--- a/scripts/ci/agent-runtime-boundary-baseline.json
+++ b/scripts/ci/agent-runtime-boundary-baseline.json
@@ -349,13 +349,6 @@
"text": "crate::agent::harness::current_parent().map(|parent| {",
"occurrence": 1
},
- {
- "rule": "openhuman-task-local",
- "path": "crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context/tool.rs",
- "line": 277,
- "text": "crate::agent::harness::current_agent_context_prepared_sources();",
- "occurrence": 1
- },
{
"rule": "openhuman-task-local",
"path": "crates/openhuman-core/src/agent/orchestration/tools/close_subagent.rs",
diff --git a/scripts/debug/cli.sh b/scripts/debug/cli.sh
index 14288690de..b1cbd7a271 100755
--- a/scripts/debug/cli.sh
+++ b/scripts/debug/cli.sh
@@ -24,12 +24,6 @@ Commands:
Inspect saved debug-log files. `last` shows the most recent.
harness-cache-audit [options]
Run live harness turns over JSON-RPC and summarize transcript token/cache deltas.
- agent-prepare-context-audit [options]
- Live-audit the agent_prepare_context tool: force it per query, print the
- returned context bundle (incl. recommended_skills), scout thoughts,
- gathering tools used, and tokens/cache/cost. Seeds a prior-chat thread
- with a canary fact and adds a transcript-recall case to prove the scout
- searches past chats (--no-seed-transcript to skip).
goals-live [options]
Live-test the memory_goals flow (list/add/edit/delete + reflect enrichment),
printing the goals_agent's thoughts, tool calls, token usage and cost.
@@ -60,9 +54,6 @@ case "$cmd" in
harness-cache-audit)
exec node "$here/harness-cache-audit.mjs" "$@"
;;
- agent-prepare-context-audit)
- exec node "$here/agent-prepare-context-audit.mjs" "$@"
- ;;
capture)
exec node "$here/capture-first-inference.mjs" "$@"
;;
diff --git a/tests/transcript_search_e2e.rs b/tests/transcript_search_e2e.rs
index 45feefa8ca..e9edea5fe8 100644
--- a/tests/transcript_search_e2e.rs
+++ b/tests/transcript_search_e2e.rs
@@ -1,16 +1,12 @@
//! End-to-end integration test for cross-thread transcript search.
//!
-//! Proves the path the context scout (and any agent) actually walks when it
+//! Proves the path an agent actually walks when it
//! "goes through chat messages": persist real conversation threads + messages
//! via `ConversationStore`, then exercise both the `threads::ops::transcript_search`
//! op. The agent-facing `transcript_search` tool was removed with the rest of
//! the `thread_*` tool family; the op below still backs the RPC surface.
//! against that on-disk data under a per-test temp `OPENHUMAN_WORKSPACE`.
//!
-//! This is the Rust contract counterpart to the live-session audit in
-//! `scripts/debug/agent-prepare-context-audit.mjs` (which drives the same path
-//! through a real orchestrator turn over JSON-RPC).
-//!
//! Run with: `cargo test --test transcript_search_e2e`
use std::path::Path;