Skip to content

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

fix(orchestrator): clarify saved-flow lookup ownership in prompt

Steven Enamakel38009326e8fd
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md
index 9b68c6fc2c..b9d7faeca2 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.md
@@ -35,4 +35,4 @@ Three or more steps? Track them on `todo` cards. Don't stop with a plan: execute
## Scheduling and workflows
-Reminders and jobs live in skill `scheduling`: propose the exact timing and get an explicit yes before creating any schedule; every date or time argument comes from `resolve_time`. Building or editing a saved workflow goes through the `build_workflow` specialist; use `blocking: true` when this reply depends on the result. To find or inspect an existing saved workflow, call the `build_workflow` specialist with `blocking: true` and ask it to return the lookup result: it calls `list_flows` or `get_flow` on its own tool belt and returns the saved-flow list or definition before any edit. Do not try to call those tools yourself. Use `discover_workflows` only to suggest new automations. Use skill `workflows` for read-only installed-skill and run lookups, but never try to author one through that skill: its authoring entries are hand-off tools.
+Reminders and jobs live in skill `scheduling`: propose the exact timing and get an explicit yes before creating any schedule; every date or time argument comes from `resolve_time`. Building or editing a saved workflow goes through the `build_workflow` specialist; use `blocking: true` when this reply depends on the result. To find or inspect an existing saved workflow, call the `build_workflow` specialist with `blocking: true` and ask it to return the lookup result. It owns the saved-flow lookup tools and returns the saved-flow list or definition before any edit. Do not try to call those tools yourself. Use `discover_workflows` only to suggest new automations. Use skill `workflows` for read-only installed-skill and run lookups, but never try to author one through that skill: its authoring entries are hand-off tools.
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs
index 470d0b607c..8ca115d299 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt_tests_session_routing_tests.rs
@@ -117,7 +117,7 @@ fn prompt_routes_workflow_authoring_to_the_builder_not_use_skill() {
"the rule must name the delegate to call"
);
assert!(
- ARCHETYPE.contains("it calls `list_flows` or `get_flow` on its own tool belt"),
+ ARCHETYPE.contains("It owns the saved-flow lookup tools"),
"saved-flow lookup must route to the specialist that can return its result"
);