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: files changed crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs
Steven Enamakel612d959f09ff
diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rsindex 97503d8a60..7731b1b5b7 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_builder_sections_tests.rs@@ -647,90 +647,3 @@ fn tools_section_json_with_an_embedded_catalogue_lists_tools_once() {assert!(!rendered.contains("Call as:"), "{rendered}");assert!(rendered.contains("Parameters:"), "{rendered}");}--#[test]-fn user_memory_section_renders_namespaces_with_headings() {- let learned = LearnedContextData {- tree_root_summaries: vec![- ns_summary_at(- "user",- "Steven prefers terse Rust answers.",- "2026-05-25T00:00:00Z",- ),- ns_summary_at(- "conversations",- "Recent thread: prompt rework.",- "2026-05-25T00:00:00Z",- ),- ],- ..Default::default()- };- let prompt_tools: Vec<PromptTool<'_>> = Vec::new();- let ctx = PromptContext {- workspace_dir: Path::new("/tmp"),- model_name: "test-model",- agent_id: "",- tools: &prompt_tools,- workflows: &[],- dispatcher_instructions: "",- learned,- visible_tool_names: &NO_FILTER,- tool_call_format: ToolCallFormat::PFormat,- connected_integrations: &[],- connected_identities_md: String::new(),- user_identity: None,- personality_roster: vec![],- agents_md_global: None,- agents_md_local: None,- };- let rendered = UserMemorySection.build(&ctx).unwrap();- assert!(rendered.starts_with("## User Memory\n\n"));- assert!(- rendered- .contains("### user (last updated 2026-05-25)\n\nSteven prefers terse Rust answers."),- "heading must carry the absolute update date (#2944); got:\n{rendered}"- );- assert!(rendered- .contains("### conversations (last updated 2026-05-25)\n\nRecent thread: prompt rework."));-}--#[test]-fn memory_date_label_formats_absolute_utc_date() {- let dt = chrono::DateTime::parse_from_rfc3339("2026-05-25T18:30:00Z")- .unwrap()- .with_timezone(&chrono::Utc);- // Absolute date, no time-of-day — must stay byte-stable day to day.- assert_eq!(memory_date_label(dt), "2026-05-25");-}--#[test]-fn user_memory_section_labels_stale_summary_and_warns_against_present_tense() {- // #2944 regression: a summary last updated weeks ago must render with- // its absolute date, and the section must steer the model to compare- // against the current date — so a May-25 briefing is never served as- // today's.- let learned = LearnedContextData {- tree_root_summaries: vec![ns_summary_at(- "briefings",- "Daily briefing: 2 meetings, proposal due.",- "2026-05-25T07:00:00Z",- )],- ..Default::default()- };- let rendered = UserMemorySection.build(&ctx_with_learned(learned)).unwrap();-- assert!(- rendered.contains("### briefings (last updated 2026-05-25)"),- "stale summary must carry its absolute update date; got:\n{rendered}"- );- // Guardrail: tell the model to cross-check against the current date- // and not restate older memory as today's.- assert!(- rendered.contains("Current Date & Time"),- "section must reference the current-date block; got:\n{rendered}"- );- assert!(- rendered.contains("never present older memory as"),- "section must forbid presenting stale memory as current; got:\n{rendered}"- );-}