Skip to content

docs: align gateway shell executor claims with client-executed shell - #401

Merged
maralbahari merged 1 commit into
vllm-project:mainfrom
LeaderOnePro:docs/shell-executor-alignment
Oct 1, 2026
Merged

maralbahari merged 1 commit into
vllm-project:mainfrom
LeaderOnePro:docs/shell-executor-alignment

Conversation

@LeaderOnePro

@LeaderOnePro LeaderOnePro commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Aligns ARCHITECTURE.md with the implemented, client-executed shell tool (#353).

  • ARCHITECTURE.md described shell-executor interfaces that do not exist: an application-provided ShellExecutor slot, a GatewayExecutorRegistration::Shell execution grant, an opt-in gateway-executed shell history projection, and a ShellHandler::model_input entry point. Shell is client-executed only: ShellHandler deliberately does not implement GatewayExecutor (PR feat: add shell tool wire types #264 removed the optional executor to keep execution on the client), and RFC RFC: opt-in gateway shell executor for deployment-provided execution backends #352 tracks the proposed gateway-executed shell backend as future work.
  • Rewrites the two shell passages (the translate/ section and the tool/ registry section) to describe the implemented flow: declarations normalize to canonical function tools, calls restore to shell_call and command SSE events, the client executes each call and submits shell_call_output with the same call_id, and shell history stays public in storage, lowering into function history through the standard output-to-input conversion plus typed input conversions.
  • Refreshes the GatewayExecutors slot list: MCP servers are the only lazily connected slot (configured clients and discovered handlers are cached by server_label across requests; request-declared servers connect afresh per request, their discovered handlers reused only within that request), alongside the shared WebSearchHandler and the opt-in Eryx-backed CodeInterpreterExecutor added in feat: support code interpreter as gateway execution tool #368 (disabled by default). Adds shell to the client-owned tool list.

Fixes #353

Test Plan

  • Documentation-only change; no code paths affected.
  • Verified every claim against the implementation: GatewayExecutorRegistration variants (tool/executors.rs), ShellHandler not implementing GatewayExecutor (tool/shell.rs), MCP client caching by server_label with fresh request-declared connections (tool/executors.rs), and shell history lowering (types/io/input.rs, docs/design/shell-tool.md).
  • rg 'ShellExecutor|GatewayExecutorRegistration::Shell|ShellHandler::model_input|opt-in gateway executor' ARCHITECTURE.md returns no matches.
  • git diff --check is clean and the diff touches only ARCHITECTURE.md.
  • Locally, pre-commit run --files ARCHITECTURE.md passes all hooks.

ARCHITECTURE.md described an application-provided ShellExecutor slot,
GatewayExecutorRegistration::Shell, an opt-in gateway shell history
projection, and a ShellHandler::model_input entry point that do not
exist in the implementation. Shell remains client-executed:
ShellHandler deliberately does not implement GatewayExecutor
(PR vllm-project#264 removed the optional executor), and RFC vllm-project#352 tracks a
possible gateway-executed shell backend as future work.

Also refresh the GatewayExecutors slot list to include the opt-in
Eryx-backed code interpreter executor added in PR vllm-project#368.

Fixes vllm-project#353

Signed-off-by: LeaderOnePro <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The documented behavior matches the implementation; only a non-blocking terminology correction remains.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Aligns architecture documentation with the implemented client-executed shell flow.

Changes:

  • Corrects shell execution and history-lowering descriptions.
  • Updates MCP, web-search, and code-interpreter executor documentation.
File Description
ARCHITECTURE.md Documents current shell and gateway executor behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread ARCHITECTURE.md
Comment on lines +1261 to +1263
into the existing gateway scheduler, not a
second tool loop. Client-owned
tools (`function`, `custom`, `shell`, `namespace`) never touch this file; their registry
@maralbahari
maralbahari merged commit 8c04243 into vllm-project:main Oct 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: align gateway ShellExecutor claims with client-executed shell implementation

4 participants