Nemoclaw debug pairing

From jetsonhacks/NemoClaw-Orin · View interactive version

Nemoclaw debug pairing is an AI agent skill from the GitHub repository jetsonhacks/NemoClaw-Orin. Diagnoses and recovers recurring OpenClaw pairing failures in this repository's NemoClaw Jetson workflow. Use when `openclaw tui` says `Pairing required`, when the web UI returns empty responses that may be caused by gateway pairing fallback, or when validating the local CLI approval helpers.

How to use this skill

Skill file

NemoClaw Debug Pairing

Diagnoses and recovers recurring OpenClaw pairing failures in this repository's Jetson-focused NemoClaw workflow.

Use this skill when:

Repository Sources

Start with the repo-local sources that capture the known regression and the existing recovery helpers:

What This Skill Helps Distinguish

Pairing regression

Typical symptom:

Pairing required. Run `openclaw devices list`, approve your request ID, then reconnect.

Common indicators:

Embedded fallback caused by pairing failure

Typical symptom:

Common indicators:

Network policy problem

Typical symptom:

If the failure is clearly an egress approval problem, switch to the policy and sandbox monitoring docs instead of continuing with pairing recovery.

Step 1: Capture Current Pairing State

Collect a snapshot first so we can compare before and after recovery:

./tests/test-openclaw-pairing-state.sh <sandbox-name> --label pre-recovery

This captures:

Step 2: Check Whether a Safe Approval Target Exists

Use the mapper first. It is the repository's safety gate for mechanical recovery.

./lib/map-openclaw-cli-approval-target.sh <sandbox-name> --format text

Interpret the result:

Step 3: Apply the Approval When Safe

If the mapper reports a safe approval target, use the repo helper instead of approving blindly by hand:

./lib/apply-openclaw-cli-approval.sh <sandbox-name> --format text

This is the preferred recovery action for the known CLI pairing regression documented in the RCA.

Important:

Step 4: Verify That Pairing Actually Recovered

Re-run the snapshot and compare:

./tests/test-openclaw-pairing-state.sh <sandbox-name> --label post-recovery
diff -ru tmp/test-openclaw-pairing-state/<sandbox-name>/<older> tmp/test-openclaw-pairing-state/<sandbox-name>/<newer>

Then verify the user path directly:

nemoclaw <sandbox-name> connect
openclaw tui

Signs of success:

Step 5: If Responses Are Still Empty, Test for Embedded Fallback

Once pairing is healthy, distinguish latency from auth failure:

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

Look for:

If those appear, pairing may still be unhealthy or a prior session is still using the wrong path.

If pairing is fixed but latency remains high, use the inference timeout ADR and local inference probe:

./tests/test-openshell-gateway-inference.sh

Step 6: Escalate Only When the Helper Refuses

If the mapper returns refuse_*, gather evidence before changing anything:

Do not auto-approve arbitrary requests if:

Command Summary

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

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.