pub fn execute(
root: &Path,
shell: &dyn Shell,
fs: &dyn Fs,
name: &str,
args: &Value,
) -> ToolOutcomeExpand description
Execute one tool call.
shell decides WHERE commands land – host, container, remote. The tools never know, which
is the point: the previous harness encoded that in a prompt instruction and the worker
edited the host whenever the instruction went missing.
fs decides WHERE files live. Kept separate from shell because the two can differ: a
container with a bind-mounted workspace shares the conversation model’s files while running its
own commands, and a remote sandbox shares neither. Pairing the wrong two would have the
model editing one filesystem and verifying another.