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: add tests for prompt builder sections and orchestrator prompt
Steven Enamakel31aecb0ef244
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 c18bd731e9..8c0bd64e43 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,6 +118,24 @@ 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/registry/agents/orchestrator/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests.rsindex cef737c0c2..a124215a9d 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@@ -609,6 +609,17 @@ fn build_never_mandates_plan_review_and_allows_a_lead_in() {assert!(body.contains("Make a tool call in the message that announces it"));}+#[test]+fn build_carries_the_spec_check_grounding_rules() {+ // Issue #6952: in every Terminal-Bench 4.0 failure the model's own checks+ // passed without testing the deliverable against what the task stated.+ let body = build(&ctx_with(&[])).unwrap();+ assert!(body.contains("Checks must mirror how the task is specified or graded"));+ assert!(body.contains("Never delete state, data or services the solution needs at runtime"));+ assert!(body.contains("Verify the final state as a fresh consumer would see it."));+ assert!(body.contains("List the request's stated constraints, filters and thresholds as `todo` items"));+}+#[test]fn build_stays_inside_the_hermetic_byte_budget() {// The whole point of the rewrite (latency RCA, 2026-09-22): the hermetic