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
chore: remove outdated prompt test files and related references
Steven Enamakel0df28d3b6e67
diff --git a/crates/openhuman-core/src/agent/prompts/README.md b/crates/openhuman-core/src/agent/prompts/README.mdindex 155c5b1633..aab2bcf5a4 100644--- a/crates/openhuman-core/src/agent/prompts/README.md+++ b/crates/openhuman-core/src/agent/prompts/README.md@@ -138,7 +138,7 @@ each leading system message its own cacheable segmentconnected service changes the second segment and leaves the firstbyte-identical (`system`, `system.1`). A prefix is reusable only up to the first differingbyte, so a volatile section rendered early invalidates every stable byte-behind it. Two consequences are visible in this module: `DateTimeSection`+behind it. One consequence is visible in this module: `DateTimeSection`renders only the clock *rules* and is `Stable` (the live timestamp rides theuser message via `current_datetime_line`).diff --git a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rsindex b612f9bf21..adc487cf21 100644--- a/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/fleet_prompt_tests.rs@@ -7,7 +7,7 @@use super::load_builtins;use crate::agent::harness::definition::{AgentDefinition, PromptSource, SubagentEntry, ToolScope};-use crate::agent::prompts::{LearnedContextData, PromptContext, ToolCallFormat};+use crate::agent::prompts::{PromptContext, ToolCallFormat};use std::collections::{BTreeMap, BTreeSet, HashSet};use std::sync::Arc;diff --git a/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rsindex b9e6b8492f..a96138a607 100644--- a/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/image_agent/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::{LearnedContextData, ToolCallFormat};+use crate::agent::prompts::{ToolCallFormat};use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rsindex dbd30e8154..34a61a14aa 100644--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_builtin_registration_tests.rs@@ -153,7 +153,7 @@ fn coding_agent_prompts_reference_action_sandbox_not_stale_workspace() {#[test]fn every_builtin_has_a_prompt_body() {use crate::agent::prompts::{- ConnectedIntegration, LearnedContextData, PromptContext, PromptTool, ToolCallFormat,+ ConnectedIntegration, PromptContext, PromptTool, ToolCallFormat,};let empty_tools: Vec<PromptTool<'_>> = Vec::new();let empty_integrations: Vec<ConnectedIntegration> = Vec::new();diff --git a/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rsindex f688e7d1db..6f4bbbf5bb 100644--- a/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/morning_briefing/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::{LearnedContextData, ToolCallFormat, UserIdentity};+use crate::agent::prompts::{ToolCallFormat, UserIdentity};use std::collections::HashSet;fn ctx_with_identity(identity: Option<UserIdentity>) -> PromptContext<'static> {diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rsindex dfef20ab61..03ea7bea73 100644--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::{LearnedContextData, ToolCallFormat};+use crate::agent::prompts::{ToolCallFormat};use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rsindex 3e594c45cd..a0cbea0427 100644--- a/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/presentation_agent/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::{LearnedContextData, ToolCallFormat};+use crate::agent::prompts::{ToolCallFormat};use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rsindex 218f87ebe8..d3070b0c36 100644--- a/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/task_manager_agent/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::{LearnedContextData, ToolCallFormat};+use crate::agent::prompts::{ToolCallFormat};use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rsindex aed9e2e13b..e6b3a6cd98 100644--- a/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rs+++ b/crates/openhuman-core/src/agent/registry/agents/video_agent/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::{LearnedContextData, ToolCallFormat};+use crate::agent::prompts::{ToolCallFormat};use std::collections::HashSet;#[test]diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rsindex 660f611d33..6bf2b33e6b 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs@@ -5,8 +5,8 @@use crate::agent::bus::{AgentTurnRequest, AgentTurnResponse, AGENT_RUN_TURN_METHOD};use crate::agent::progress::AgentProgress;use crate::channels::context::{- build_memory_context, compact_sender_history, conversation_history_key,- conversation_memory_key, is_context_window_overflow_error, ChannelRuntimeContext,+ compact_sender_history, conversation_history_key, is_context_window_overflow_error,+ ChannelRuntimeContext,};use crate::channels::routes::{get_or_create_turn_model_source, get_route_selection, handle_runtime_command_if_needed,@@ -20,7 +20,6 @@ use std::sync::Arc;use std::time::{Duration, Instant};use tinyagents_session::transcript::TranscriptMessage;use tinybus::NativeRequestError;-use tinymemory_api::provider::MemoryCore as _;use tokio_util::sync::CancellationToken;use tokio_util::task::AbortOnDropHandle;@@ -158,30 +157,14 @@ pub(crate) async fn process_channel_runtime_message(None};- let memory_context =- build_memory_context(&ctx.memory, &msg.content, ctx.min_relevance_score).await;-- if ctx.auto_save_memory {- let autosave_key = conversation_memory_key(&msg);- let _ = ctx- .memory- .store(- crate::agent::learning::transcript_ingest::CONVERSATION_RAW_NAMESPACE,- &autosave_key,- &msg.content,- tinymemory_api::types::MemoryCategory::Conversation,- None,- tinymemory_api::types::MemoryTaint::Internal,- )- .await;- }-+ // No per-turn memory recall or autosave: memory v2 reaches the session+ // through `context.md` (injected by the session host) and ingests the+ // committed turn from `ConversationTurnCommitted`.let channel_context = build_channel_context_block(&msg);- let enriched_message = match (memory_context.is_empty(), channel_context.is_empty()) {- (true, true) => msg.content.clone(),- (false, true) => format!("{memory_context}{}", msg.content),- (true, false) => format!("{channel_context}{}", msg.content),- (false, false) => format!("{memory_context}{channel_context}{}", msg.content),+ let enriched_message = if channel_context.is_empty() {+ msg.content.clone()+ } else {+ format!("{channel_context}{}", msg.content)};println!(" ⏳ Processing message...");diff --git a/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs b/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rsindex 41c5b4bf63..60a9655a13 100644--- a/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs+++ b/crates/openhuman-core/src/flows/agents/flow_discovery/prompt_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::agent::prompts::{LearnedContextData, ToolCallFormat};+use crate::agent::prompts::{ToolCallFormat};use std::collections::HashSet;fn ctx() -> PromptContext<'static> {