Skip to content

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

test(composio_list_tools_stack_overflow_regression): update comments to reflect removal of integrati

Steven Enamakel63ed3181401f
diff --git a/tests/composio_list_tools_stack_overflow_regression.rs b/tests/composio_list_tools_stack_overflow_regression.rs
index 3c651921b9..4d99c3f6ee 100644
--- a/tests/composio_list_tools_stack_overflow_regression.rs
+++ b/tests/composio_list_tools_stack_overflow_regression.rs
@@ -4,7 +4,10 @@
//!
//! While a user chat went through
//! `web_channel → orchestrator turn → delegate_to_integrations_agent
-//! → integrations_agent → composio_list_tools`, the in-process core
+//! → integrations_agent → composio_list_tools` (the orchestrator has since
+//! stopped spawning `integrations_agent` — it searches for and calls the
+//! action itself — but the sub-agent runner path below is unchanged), the
+//! in-process core
//! aborted with `EXC_BAD_ACCESS (SIGBUS) — KERN_PROTECTION_FAILURE`
//! at an address inside the **stack guard page** of a `tokio-rt-worker`
//! thread. That's a stack overflow — not a Rust panic. The kernel
@@ -20,7 +23,7 @@
//! ← config::ops::load_config_with_timeout
//! ← ComposioListToolsTool::execute
//! ← subagent_runner::run_inner_loop / run_typed_mode / run_subagent
-//! ← SkillDelegationTool::execute (delegate_to_integrations_agent)
+//! ← SkillDelegationTool::execute (delegate_to_integrations_agent, since removed)
//! ← Agent::execute_tool_call / execute_tools / turn
//! ← web_chat::run_chat_task
//! ```
@@ -51,11 +54,10 @@
//!
//! Faithful reproduction in cargo-test is awkward: we can't easily
//! rebuild the upper chat-channel layers (`web_chat::
-//! run_chat_task → Agent::turn → execute_tools → SkillDelegationTool`)
+//! run_chat_task → Agent::turn → execute_tools → <delegation tool>`)
//! without standing up an HTTP + Socket.IO stack. We drive the production
-//! path from `run_subagent` downward — i.e. everything below
-//! `delegate_to_integrations_agent::execute` — on a production-realistic
-//! 2 MB tokio worker stack.
+//! path from `run_subagent` downward — i.e. everything below a delegation
+//! tool's `execute` — on a production-realistic 2 MB tokio worker stack.
//!
//! **Caveat — what this test does and does not catch.** Because the
//! upper ~30 frames are missing, the bare path here fits in 2 MB even
@@ -93,8 +95,8 @@
//! hide for longer,
//! * `OPENHUMAN_WORKSPACE` pointed at a tempdir with a representative
//! `config.toml` so the TOML parser does real work,
-//! * `run_subagent(integrations_agent)` exactly like
-//! `delegate_to_integrations_agent` does, with a stubbed `ChatModel`
+//! * `run_subagent(integrations_agent)` exactly like a delegation tool
+//! does, with a stubbed `ChatModel`
//! that emits one `composio_list_tools` tool call on iteration 1
//! and stops on iteration 2.
//!