Nemoclaw debug inference path

From jetsonhacks/NemoClaw-Orin · View interactive version

Nemoclaw debug inference path is an AI agent skill from the GitHub repository jetsonhacks/NemoClaw-Orin. Diagnoses empty responses, inference timeouts, and gateway-versus-embedded execution path problems in this repository's Jetson NemoClaw workflow. Use when the web UI returns no content, when `openclaw agent` times out, or when validating the OpenShell inference route after onboard or recovery.

How to use this skill

Skill file

NemoClaw Debug Inference Path

Diagnoses empty responses, inference timeouts, and gateway-versus-embedded execution path problems in this repository's Jetson-focused NemoClaw workflow.

Use this skill when:

Repository Sources

Start with the repo-local investigation and decision records:

What This Skill Helps Distinguish

Healthy gateway inference path

Typical indicators:

Pairing-induced embedded fallback

Typical indicators:

If this appears, switch immediately to the local pairing workflow and recover pairing before spending time on model latency.

True gateway timeout or latency issue

Typical indicators:

Step 1: Confirm the Active OpenShell Inference Route

Start on the host:

openshell inference get

Check:

This repository's default decision is documented in docs/adr/0001-inference-timeout.md: Jetson Orin should use a 120-second OpenShell inference timeout unless overridden.

Step 2: Probe the Gateway Path Directly

Use the repo probe to test https://inference.local/v1/chat/completions from inside the sandbox through the user-facing SSH path:

./tests/test-openshell-gateway-inference.sh <sandbox-name>

If needed, use a longer probe timeout while investigating:

./tests/test-openshell-gateway-inference.sh <sandbox-name> --timeout 120

Interpret the result:

Step 3: Check Whether Agent Turns Are Falling Back to Embedded

Run a simple agent test:

openclaw agent --agent main --json -m "Reply with exactly: pong"

Look for these signatures:

If you see them, do not treat the issue as a pure model-speed problem yet. This repo's RCA shows that pairing failure can force the embedded path, and that embedded path times out around 20 seconds on this hardware.

Step 4: If Embedded Fallback Appears, Recover Pairing First

Use the local pairing workflow:

./tests/test-openclaw-pairing-state.sh <sandbox-name> --label pre-inference-debug
./lib/map-openclaw-cli-approval-target.sh <sandbox-name> --format text
./lib/apply-openclaw-cli-approval.sh <sandbox-name> --format text

Then re-run:

openclaw agent --agent main --json -m "Reply with exactly: pong"

Only continue with latency tuning after the gateway path is healthy.

Step 5: Validate Timeout Headroom

For Jetson Orin, this repo's accepted baseline is:

If current behavior suggests the timeout is still too low, verify or re-apply the host-side OpenShell setting:

openshell inference set \
  --timeout 120 \
  --provider "<active-provider>" \
  --model "<active-model>" \
  --no-verify

This setting is host-side and survives ordinary gateway restarts, but it is not guaranteed to survive full gateway teardown/recreate.

Step 6: Separate Minimal-Path Success from Realistic-Turn Failure

A passing gateway probe only proves the minimal path works.

If:

then the remaining issue is likely one of:

Use the RCA and ADR as the baseline interpretation before changing scripts.

Command Summary

openshell inference get
./tests/test-openshell-gateway-inference.sh <sandbox-name>
./tests/test-openshell-gateway-inference.sh <sandbox-name> --timeout 120
openclaw agent --agent main --json -m "Reply with exactly: pong"
./tests/test-openclaw-pairing-state.sh <sandbox-name> --label pre-inference-debug
./lib/map-openclaw-cli-approval-target.sh <sandbox-name> --format text
./lib/apply-openclaw-cli-approval.sh <sandbox-name> --format text

Related Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.