Skip to content

[obs-gap:nemoclaw] nemoclaw: container-sandbox gateway log fetched via sandbox exec ... tail, not host filesystem read #5192

Description

@github-actions

Automated harness-observability audit found a gap for nemoclaw.

  • Harness exposes: The real CLI log path (test/cli/logs.test.ts) fetches the OpenClaw gateway log for a sandbox by running openshell sandbox exec -n <name> -- tail -n 200 [-f] /tmp/gateway.log INSIDE the sandbox, then separately calls openshell logs <name> -n 200 --source all for OCSF audit lines — because for container-backed sandboxes /tmp/gateway.log lives in the container's filesystem, not the host's.
  • ClawMetry misses: _openshell_sandbox_logs() never calls sandbox exec ... tail /tmp/gateway.log. Instead, for non-terminal sandboxes it merges lines read directly off host candidate paths via _gateway_log_files()/OPENSHELL_GATEWAY_LOG. For a genuinely container-isolated sandbox where the host has no visibility into that path, this silently yields no gateway-log lines instead of the ones the harness's own tail-in-sandbox call would return.
  • Where (harness): test/cli/logs.test.ts (createLogsTestSetup / runLogs call sequence: "sandbox exec -n alpha -- tail -n 200 /tmp/gateway.log", "sandbox exec -n alpha -- tail -n 200 -f /tmp/gateway.log")
  • Severity: high
  • Closest capability: LOGS

Filed by scripts/harness/audit.py. Fingerprint: hgap-bff6366705 (used to dedupe — keep it in the body).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions