docs: align gateway shell executor claims with client-executed shell #401
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 286 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #401"
general
weight: 0.35
franciscojavierarceo
Summary
Aligns ARCHITECTURE.md with the implemented, client-executed shell tool (#353).
ShellExecutorslot, aGatewayExecutorRegistration::Shellexecution grant, an opt-in gateway-executed shell history projection, and aShellHandler::model_inputentry point. Shell is client-executed only:ShellHandlerdeliberately does not implementGatewayExecutor(PR #264 removed the optional executor to keep execution on the client), and RFC #352 tracks the proposed gateway-executed shell backend as future work.translate/section and thetool/registry section) to describe the implemented flow: declarations normalize to canonical function tools, calls restore toshell_calland command SSE events, the client executes each call and submitsshell_call_outputwith the samecall_id, and shell history stays public in storage, lowering into function history through the standard output-to-input conversion plus typed input conversions.GatewayExecutorsslot list: MCP servers are the only lazily connected slot (configured clients and discovered handlers are cached byserver_labelacross requests; request-declared servers connect afresh per request, their discovered handlers reused only within that request), alongside the sharedWebSearchHandlerand the opt-in Eryx-backedCodeInterpreterExecutoradded in #368 (disabled by default). Addsshellto the client-owned tool list.Fixes #353
Test Plan
GatewayExecutorRegistrationvariants (tool/executors.rs),ShellHandlernot implementingGatewayExecutor(tool/shell.rs), MCP client caching byserver_labelwith 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.mdreturns no matches.git diff --checkis clean and the diff touches onlyARCHITECTURE.md.pre-commit run --files ARCHITECTURE.mdpasses all hooks.