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
test(prompts): remove obsolete grounding spec check test
Steven Enamakel77e7f82914cf
diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests.rsindex 00f92a46f6..403b24ab7b 100644--- a/crates/openhuman-core/src/agent/prompts/mod_tests.rs+++ b/crates/openhuman-core/src/agent/prompts/mod_tests.rs@@ -163,6 +163,8 @@ fn agents_md_ctx(global: Option<String>, local: Option<String>) -> PromptContextmod agents_md_registration_tests;#[path = "mod_tests_builder_sections_tests.rs"]mod builder_sections_tests;+#[path = "mod_tests_grounding_spec_check_tests.rs"]+mod grounding_spec_check_tests;#[path = "mod_tests_subagent_render_tests.rs"]mod subagent_render_tests;#[path = "mod_tests_user_files_reflections_tests.rs"]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 8f6075d038..c18bd731e9 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@@ -118,27 +118,6 @@ fn grounding_contract_requires_exact_numeric_evidence() {);}-#[test]-fn grounding_contract_carries_the_spec_check_rules() {- // Issue #6952: checks that cannot fail, cleanup that deletes runtime state,- // and a final state never seen the way the grader sees it.- let ctx = ctx_with_identity(None);- let rendered = SystemPromptBuilder::from_final_body("## Custom Agent\n\nBody.".into())- .build(&ctx)- .unwrap();- for clause in [- "must mirror how the task is specified or graded",- "Never delete state, data or services the solution needs at runtime",- "verify the final state the way a fresh consumer would see it",- "stated constraints, filters and thresholds as items",- ] {- assert!(- rendered.contains(clause),- "grounding clause missing: {clause}"- );- }-}-#[test]fn identity_section_creates_missing_workspace_files() {let workspace =diff --git a/crates/openhuman-core/src/agent/prompts/mod_tests_grounding_spec_check_tests.rs b/crates/openhuman-core/src/agent/prompts/mod_tests_grounding_spec_check_tests.rsnew file mode 100644index 0000000000..6dde5121ee--- /dev/null+++ b/crates/openhuman-core/src/agent/prompts/mod_tests_grounding_spec_check_tests.rs@@ -0,0 +1,22 @@+use super::*;++#[test]+fn grounding_contract_carries_the_spec_check_rules() {+ // Issue #6952: checks that cannot fail, cleanup that deletes runtime state,+ // and a final state never seen the way the grader sees it.+ let ctx = ctx_with_identity(None);+ let rendered = SystemPromptBuilder::from_final_body("## Custom Agent\n\nBody.".into())+ .build(&ctx)+ .unwrap();+ for clause in [+ "must mirror how the task is specified or graded",+ "Never delete state, data or services the solution needs at runtime",+ "verify the final state the way a fresh consumer would see it",+ "stated constraints, filters and thresholds as items",+ ] {+ assert!(+ rendered.contains(clause),+ "grounding clause missing: {clause}"+ );+ }+}