Skip to content

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

fix(prompts): tighten greeting-grounding and resolve-time rules

Steven Enamakelef1c33dff9a1
diff --git a/crates/openhuman-core/src/agent/prompts/SOUL.md b/crates/openhuman-core/src/agent/prompts/SOUL.md
index 1ea01109a0..6c7306764f 100644
--- a/crates/openhuman-core/src/agent/prompts/SOUL.md
+++ b/crates/openhuman-core/src/agent/prompts/SOUL.md
@@ -1,3 +1,7 @@
# OpenHuman
-You are OpenHuman, the user's AI teammate on their own machine. Warm, direct, no filler; say "I'm not sure" rather than guess. The user drives. When something fails, try another way, then say what failed. Own real limits plainly.
+You are OpenHuman, the user's AI teammate on their own machine. Warm, direct, no filler; say "I'm not sure" rather than guess. The user drives. When something fails, try another way, then say what failed.
+
+## When OpenHuman is criticized
+
+Own real limits plainly. Don't validate FUD: ask what they actually hit, or correct it with specifics.
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.rs
index 980fd90f01..ed61e18f52 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
@@ -232,7 +232,7 @@ fn datetime_section_is_static_grounding_rule_without_volatile_timestamp() {
assert!(rendered.starts_with("## Current Date & Time\n\n"));
// Greeting/clock grounding rule must be present, ungated (no tools here).
assert!(
- rendered.contains("good morning") && rendered.contains("match the actual local hour"),
+ rendered.contains("match greetings") && rendered.contains("local hour"),
"datetime section must carry the greeting-grounding rule; got:\n{rendered}"
);
assert!(
@@ -300,7 +300,7 @@ fn datetime_section_appends_resolve_time_rule_only_when_tool_present() {
};
let rendered_with = DateTimeSection.build(&ctx_with).unwrap();
assert!(
- rendered_with.contains("resolve_time") && rendered_with.contains("never hand-compute"),
+ rendered_with.contains("resolve_time") && rendered_with.contains("never hand-computed"),
"expected the resolve_time discipline rule when the tool is present; got:\n{rendered_with}"
);
diff --git a/crates/openhuman-core/src/agent/prompts/sections.rs b/crates/openhuman-core/src/agent/prompts/sections.rs
index 36ea8c4897..eebbab74ab 100644
--- a/crates/openhuman-core/src/agent/prompts/sections.rs
+++ b/crates/openhuman-core/src/agent/prompts/sections.rs
@@ -686,7 +686,7 @@ impl PromptSection for DateTimeSection {
// tool never see the rule.
if ctx.tools.iter().any(|t| t.name == "resolve_time") {
out.push_str(
- " Time arguments come from `resolve_time`.",
+ " Time arguments come from `resolve_time`, never hand-computed.",
);
}
Ok(out)
diff --git a/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs b/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs
index 9ee409a8c7..f311d7c987 100644
--- a/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/loader_tests_orchestrator_tier_tests.rs
@@ -33,7 +33,7 @@ fn the_web3_skill_keeps_the_crypto_safety_contract() {
}
let prompt = include_str!("orchestrator/prompt.md");
assert!(
- prompt.contains("except moving funds and stopping"),
+ prompt.contains("Explicit yes only before moving funds"),
"the orchestrator prompt must bind money actions to explicit consent"
);
}
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.rs
index 8070009acc..6eb3e5eb4f 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
@@ -56,7 +56,7 @@ fn build_includes_runtime_and_datetime_sections() {
.nth(1)
.expect("datetime section must follow its heading");
assert!(
- dt.contains("match the actual local hour"),
+ dt.contains("match greetings") && dt.contains("local hour"),
"datetime section must carry the greeting-grounding rule (#3602); got:\n{dt}"
);
}
diff --git a/crates/openhuman-core/src/agent/tools/todo_tests.rs b/crates/openhuman-core/src/agent/tools/todo_tests.rs
index 2de40f4146..4286f7fcb6 100644
--- a/crates/openhuman-core/src/agent/tools/todo_tests.rs
+++ b/crates/openhuman-core/src/agent/tools/todo_tests.rs
@@ -162,7 +162,7 @@ fn schema_is_the_claude_shape() {
let desc = tool.description();
assert!(desc.contains("3+ steps"), "missing when-to-use guidance");
assert!(
- desc.contains("one `in_progress`"),
+ desc.contains("one item `in_progress`"),
"missing single-in_progress rule"
);
assert!(