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).
Automated harness-observability audit found a gap for nemoclaw.
openshell sandbox exec -n <name> -- tail -n 200 [-f] /tmp/gateway.logINSIDE the sandbox, then separately callsopenshell logs <name> -n 200 --source allfor OCSF audit lines — because for container-backed sandboxes /tmp/gateway.log lives in the container's filesystem, not the host's._openshell_sandbox_logs()never callssandbox 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.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")Filed by
scripts/harness/audit.py. Fingerprint: hgap-bff6366705 (used to dedupe — keep it in the body).