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 src/openhuman/agent/registry/agents/orchestrator/prompt_tests.rs,src/openhuman/
Steven Enamakelfc0845e86384
diff --git a/src/openhuman/agent/registry/agents/orchestrator/prompt_tests.rs b/src/openhuman/agent/registry/agents/orchestrator/prompt_tests.rsindex ff53a6d770..6eb496ebcf 100644--- a/src/openhuman/agent/registry/agents/orchestrator/prompt_tests.rs+++ b/src/openhuman/agent/registry/agents/orchestrator/prompt_tests.rs@@ -580,15 +580,26 @@ fn the_rendered_prompt_never_names_a_withheld_tool() {/// Withheld tool names that `text` presents as directly callable.///-/// A pack **id** may legitimately be backticked, because naming the skill is-/// how the route is written — and one pack id (`composio`) is also a tool name-/// inside that pack, so a bare substring check cannot tell a route from a call.-/// Route mentions are always spelled `skill \`<id>\``, in the prose and in the-/// generated block alike, so removing that exact form first is what makes the-/// remaining occurrences calls.+/// Two exemptions, and both are about telling a *route* from a *call*:+///+/// * The generated `## Capabilities not in your tool list` block names withheld+/// tools on purpose — that block is the route, and it is the one sanctioned+/// place to write one. It is removed wholesale before scanning.+/// * A pack **id** may be backticked anywhere, since naming the skill is how a+/// route reads in prose. Two pack ids (`composio`, `goals`) are also tool+/// names inside their own pack, so a bare substring check cannot tell the+/// two apart; routes are always spelled ``skill `<id>` ``, so removing that+/// exact form is what makes the remaining occurrences calls.fn withheld_names_presented_as_callable(text: &str) -> Vec<&'static str> {let packed = crate::openhuman::tools::toolpacks::all_packed_tool_names();- let mut prose = text.to_string();+ let mut prose = match text.find("## Capabilities not in your tool list") {+ Some(start) => {+ let rest = &text[start + 1..];+ let end = rest.find("\n## ").map(|i| start + 1 + i).unwrap_or(text.len());+ format!("{}{}", &text[..start], &text[end..])+ }+ None => text.to_string(),+ };for name in &packed {prose = prose.replace(&format!("skill `{name}`"), "");}diff --git a/src/openhuman/tools/toolpacks/toolpacks_tests.rs b/src/openhuman/tools/toolpacks/toolpacks_tests.rsindex 8bbd14c8f3..2db42eafeb 100644--- a/src/openhuman/tools/toolpacks/toolpacks_tests.rs+++ b/src/openhuman/tools/toolpacks/toolpacks_tests.rs@@ -179,6 +179,29 @@ async fn rebinding_the_synthesised_set_repoints_the_handle() {assert!(stale.is_error, "a dropped delegate stayed reachable");}+/// Closing a goal must stay directly callable.+///+/// `goal_complete` is the one goal operation an agent reaches for reactively —+/// at the end of work it has just finished. Packing it would put a `use_skill`+/// round trip at exactly that moment, and the failure when the model does not+/// pay it is silent: the objective stays open and keeps driving autonomous+/// continuation. Everything else about goals is behind the `goals` pack+/// precisely so this one tool is cheap to keep visible.+#[test]+fn closing_a_goal_is_never_packed() {+ assert!(+ !all_packed_tool_names().contains(&"goal_complete"),+ "`goal_complete` was packed; see the carve-out note on the `goals` pack"+ );+ // And the rest of the family is, or the carve-out saved nothing.+ for held in ["goals", "goal_get", "goal_set"] {+ assert!(+ all_packed_tool_names().contains(&held),+ "`{held}` should be reachable through the `goals` pack, not on the wire"+ );+ }+}+#[test]fn every_packed_name_belongs_to_exactly_one_pack() {let mut seen = HashSet::new();