Skip to content

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

fix(tests): replace tinyplace_agent references with crypto_agent

Steven Enamakel0bd99ec64a01
diff --git a/src/openhuman/agent/harness/definition_tests.rs b/src/openhuman/agent/harness/definition_tests.rs
index fae7f5e8ac..a5f2224c30 100644
--- a/src/openhuman/agent/harness/definition_tests.rs
+++ b/src/openhuman/agent/harness/definition_tests.rs
@@ -393,11 +393,9 @@ fn all_builtin_agent_definitions_have_expected_effective_max_iterations() {
// Compiled out with the `skills` gate — see `openhuman::skills::stub`.
#[cfg(feature = "skills")]
("skill_executor", 50),
- ("tinyplace_agent", 50),
// Strict policy, declared `max_iterations` below the old global
// default (10) -> effective cap lowered.
("agent_memory", 6),
- ("account_admin_agent", 8),
("archivist", 3),
("critic", 5),
("crypto_agent", 8),
diff --git a/src/openhuman/agent/orchestration/run_ledger_finalize_tests.rs b/src/openhuman/agent/orchestration/run_ledger_finalize_tests.rs
index fe961da5a2..daa311358e 100644
--- a/src/openhuman/agent/orchestration/run_ledger_finalize_tests.rs
+++ b/src/openhuman/agent/orchestration/run_ledger_finalize_tests.rs
@@ -25,7 +25,7 @@ fn seed_running(config: &Config, id: &str) {
kind: AgentRunKind::Subagent,
parent_run_id: Some("parent-turn".into()),
parent_thread_id: Some("thread-1".into()),
- agent_id: Some("tinyplace_agent".into()),
+ agent_id: Some("crypto_agent".into()),
status: AgentRunStatus::Running,
prompt_ref: None,
worker_thread_id: None,
@@ -55,7 +55,7 @@ async fn settles_running_run_on_subagent_completed() {
sub.handle(&DomainEvent::SubagentCompleted {
parent_session: "session-1".into(),
task_id: "sub-1".into(),
- agent_id: "tinyplace_agent".into(),
+ agent_id: "crypto_agent".into(),
elapsed_ms: 1234,
output_chars: 760,
iterations: 3,
@@ -81,7 +81,7 @@ async fn settles_running_run_on_subagent_failed_with_error() {
sub.handle(&DomainEvent::SubagentFailed {
parent_session: "session-1".into(),
task_id: "sub-2".into(),
- agent_id: "tinyplace_agent".into(),
+ agent_id: "crypto_agent".into(),
error: "boom".into(),
})
.await;
@@ -105,7 +105,7 @@ async fn settles_running_run_on_subagent_awaiting_user() {
sub.handle(&DomainEvent::SubagentAwaitingUser {
parent_session: "session-1".into(),
task_id: "sub-3".into(),
- agent_id: "tinyplace_agent".into(),
+ agent_id: "crypto_agent".into(),
question: "Need a decision".into(),
})
.await;
@@ -130,7 +130,7 @@ async fn ignores_unrelated_events_and_missing_runs() {
sub.handle(&DomainEvent::SubagentCompleted {
parent_session: "session-1".into(),
task_id: "ghost".into(),
- agent_id: "tinyplace_agent".into(),
+ agent_id: "crypto_agent".into(),
elapsed_ms: 1,
output_chars: 0,
iterations: 1,
diff --git a/src/openhuman/tools/orchestrator_tools.rs b/src/openhuman/tools/orchestrator_tools.rs
index 1da3c60716..40eca8480f 100644
--- a/src/openhuman/tools/orchestrator_tools.rs
+++ b/src/openhuman/tools/orchestrator_tools.rs
@@ -457,30 +457,33 @@ mod tests {
);
}
- /// tiny.place should be exposed as one named worker route, not as
- /// scattered direct tools on the chat-tier orchestrator.
+ /// An agent with a `delegate_name` override should be exposed under that
+ /// name, not under the default `delegate_{id}`. `crypto_agent` is the
+ /// standing example — the orchestrator's prompt teaches `do_crypto`, and
+ /// the tool-pack table keys on it, so a regression here silently breaks
+ /// both.
#[test]
- fn tinyplace_agent_subagent_synthesises_use_tinyplace_delegate() {
+ fn a_delegate_name_override_wins_over_the_default_delegate_prefix() {
let mut orch = def("orchestrator", "test", None);
- orch.subagents = vec![SubagentEntry::AgentId("tinyplace_agent".into())];
+ orch.subagents = vec![SubagentEntry::AgentId("crypto_agent".into())];
let mut reg = registry_with_targets();
reg.insert(def(
- "tinyplace_agent",
- "tiny.place specialist - handles jobs, proposals, escrow, messages, Agent Cards, and x402 payment challenges.",
- Some("use_tinyplace"),
+ "crypto_agent",
+ "Crypto specialist - wallet balances, transfers, swaps, bridges, and contract calls.",
+ Some("do_crypto"),
));
let tools = collect_orchestrator_tools(&orch, &reg, &[]);
let names: Vec<&str> = tools.iter().map(|t| t.name()).collect();
assert_eq!(
names,
- vec!["use_tinyplace"],
- "tinyplace_agent subagent entry must synthesise its stable \
- delegate_name (`use_tinyplace`), not the default `delegate_tinyplace_agent`"
+ vec!["do_crypto"],
+ "a subagent entry must synthesise its stable delegate_name \
+ (`do_crypto`), not the default `delegate_crypto_agent`"
);
- let tool = tools.iter().find(|t| t.name() == "use_tinyplace").unwrap();
+ let tool = tools.iter().find(|t| t.name() == "do_crypto").unwrap();
assert!(
- tool.description().contains("tiny.place") && tool.description().contains("x402"),
- "synthesised tool description must surface tiny.place routing signal"
+ tool.description().contains("wallet") && tool.description().contains("swaps"),
+ "synthesised tool description must surface the target's routing signal"
);
}