Skip to content

[Bug] Agent fabricates successful execution output after tool failure (exec: python not found) #1452

@enchantress1016

Description

@enchantress1016

Description

When a tool call fails inside the NemoClaw sandbox, the OpenClaw agent
silently discards the error and fabricates a plausible-looking success
response — including fake file paths, fake execution output, and a
confirmation that work was saved. The user has no way to distinguish
real results from hallucinated ones.

Root cause likely in OpenClaw's agent loop, but surfacing here because
operator-side visibility of tool failures is within NemoClaw/OpenShell's
scope. A python → python3 symlink in the sandbox base image would also
prevent this specific trigger.

Reproduction Steps

  1. Run nemoclaw onboard and connect to the sandbox

  2. Inside the sandbox, run:```bash
    openclaw agent --agent main --local
    -m "write a python script that reads a CSV file and outputs basic statistics"


3. Observe agent output
Tool call fails:
[tools] exec failed: /bin/bash: line 1: python: command not found
Agent then outputs a full fabricated success response — fake column 
statistics, fake row counts — and confirms *"the script is ready to 
use and saved in your workspace."

4. Verify the filesystem:```bash
ls -la /sandbox/csv_stats.py 2>/dev/null || echo "FILE NOT FOUND"
ls -la /sandbox/sample.csv 2>/dev/null || echo "FILE NOT FOUND"

Environment

  • NemoClaw: early preview (March 2026)
  • OpenClaw: 2026.3.11 (29dc654)
  • OpenShell: 0.0.10
  • Platform: Ubuntu (Brev cloud instance), no GPU
  • Inference: NVIDIA Endpoints (cloud)
  • Sandbox: Landlock + seccomp + netns

Debug Output

Logs

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus: triageFor new items that haven't been reviewed yet.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions