Skip to content

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

fix(tests): update orchestrator prompt marker to new routing header

Steven Enamakel1510f3d43592
diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs
index 782b26b28c..2a4d69422f 100644
--- a/tests/agent_harness_e2e.rs
+++ b/tests/agent_harness_e2e.rs
@@ -3524,7 +3524,7 @@ fn advertised_tool_names(request: &Value) -> Vec<String> {
/// Heading of the orchestrator's own `prompt.md`; picks its requests out of a
/// turn that also carries a specialist's.
#[cfg(feature = "skills")]
-const ORCHESTRATOR_PROMPT_MARKER: &str = "## How you work";
+const ORCHESTRATOR_PROMPT_MARKER: &str = "## Routing\n\nFirst match wins:";
/// Concatenated system-message text of one captured model request.
#[cfg(feature = "skills")]
diff --git a/tests/agent_prompt_comprehension_e2e.rs b/tests/agent_prompt_comprehension_e2e.rs
index ef30b550ae..32052b73fc 100644
--- a/tests/agent_prompt_comprehension_e2e.rs
+++ b/tests/agent_prompt_comprehension_e2e.rs
@@ -915,7 +915,7 @@ fn workflow_builder_reaches_propose_workflow() {
fn orchestrator_searches_for_and_calls_the_integration_action() {
run_case(Case {
agent: "orchestrator",
- agent_marker: "## How you work",
+ agent_marker: "## Routing\n\nFirst match wins:",
entry: Entry::WebChat,
user_message: "Check my Gmail for anything from my landlord.",
scripted_completions: vec![
@@ -946,7 +946,7 @@ fn orchestrator_searches_for_and_calls_the_integration_action() {
fn orchestrator_reaches_cron_through_the_scheduling_pack() {
run_case(Case {
agent: "orchestrator",
- agent_marker: "## How you work",
+ agent_marker: "## Routing\n\nFirst match wins:",
entry: Entry::WebChat,
user_message: "What reminders do I have scheduled?",
scripted_completions: vec![
@@ -1063,7 +1063,7 @@ fn orchestrator_prompt_names_only_discoverable_delegates() {
let requests = captured().clone();
let orchestrator = requests
.iter()
- .find(|r| system_text(r).contains("## How you work"))
+ .find(|r| system_text(r).contains("## Routing\n\nFirst match wins:"))
.expect("no orchestrator request captured");
let prompt = system_text(orchestrator);
let belt = advertised_tool_names(orchestrator);