Skip to content
Back to skills

Sim2real Iteration

ASecurity

Guides disciplined MuJoCo robotics sim-to-real controller iteration using robosim_gauntlet verification, preflight scene/goal audits, deterministic episode forking, paired Common Random Numbers, and adversarial robotics critic reviews. Use only when iterating on MuJoCo robot manipulation controllers, triaging contact/safety failures, or comparing controller candidates. Don't use for RL training (use mujoco-playground-rl) or non-robotics tuning.

  • 164 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentspythongobashdebugging

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add eust-w/open-robotics-plugin --skill sim2real-iteration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sim2real Iteration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sim2real Iteration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/eust-w-sim2real-iteration/badge)](https://www.skillsdirectory.com/skills/eust-w-sim2real-iteration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sim2real-iteration
description: >-
  Guides disciplined MuJoCo robotics sim-to-real controller iteration using
  robosim_gauntlet verification, preflight scene/goal audits, deterministic
  episode forking, paired Common Random Numbers, and adversarial robotics critic
  reviews. Use only when iterating on MuJoCo robot manipulation controllers,
  triaging contact/safety failures, or comparing controller candidates. Don't
  use for RL training (use mujoco-playground-rl) or non-robotics tuning.
metadata:
  publisher: google
---

# Sim-to-Real Controller Iteration

Use alongside `sim2real-gauntlet` (`src/robosim_gauntlet` on `sys.path`) when tuning or debugging a manipulation controller for physical deployment. Never claim an improvement from single-seed runs, `T0`-only checks, or unpaired rollouts. Reference consumers: `../sim2real-gauntlet/examples/playground_tasks.py` and `../sim2real-gauntlet/examples/color_blob_ik_controller.py`.

## Loop

1. **Preflight gate**: Audit compiled `MjModel` physics and positive/negative goal controls (`safety.goal_setter` for articulated fixtures) before iterating:
   ```bash
   python -m robosim_gauntlet.cli --task-py=../sim2real-gauntlet/examples/playground_tasks.py --robot=yam --tasks=cube_in_bowl --preflight-only
   ```
   Fix every reported issue (manipuland welds, non-robot actuators, manipuland margin/gap, contact overrides, or vacuous/unsatisfiable `task.success`).
2. **Unprivileged controller contract**: Drive `proxy.RemoteDeviceLayer(os.environ["GAUNTLET_URL"])` out of process (or an in-process `fn(dl)` behind `wrappers.AllowlistWrapper`) using only `task.deployment_keys()` and `<cam>_timestamp`. On `T4` terminal faults (`camera_freeze` or `dead_gripper`), observe post-onset state and exit with `{"status": "abort", "fault": "<fault>"}`; aborting without an active fault fails with `spurious_abort`.
3. **Inner-loop diagnosis (`episode.fork`)**: Inspect `result.grade.violations`, `result.grade.metrics`, and `result.log` (`poses_at`, `FORCES`) to find the earliest causal failure tick, then replay deterministically on the exact seeded `T0`-`T4` plant to `tick` and hand off to a candidate command or callable:
   ```python
   forked = episode.fork(result, task, tick, candidate_cmd_or_fn)
   ```
   Confirm fixes on full-episode sweeps after fork debugging.
4. **Paired CRN hill-climbing**: Set `GAUNTLET_CRN_SECRET` (`>= 16` bytes) for HMAC-locked evaluation and compare baseline (`v0`) vs candidate (`v1`) on identical `--task-py`, `--robot`, `--tiers=T0,T1,T2,T3,T4`, `--episodes`, and `--seed`:
   ```bash
   GAUNTLET_CRN_SECRET="$KEY" python -m robosim_gauntlet.cli \
     --task-py=../sim2real-gauntlet/examples/playground_tasks.py --robot=yam \
     --compare-controller="$V0_CMD" --controller="$V1_CMD" \
     --tiers=T0,T1,T2,T3,T4 --episodes=4 --seed=0 --output-json=/tmp/crn.json
   ```
   Or compare saved runs via `--baseline-json=v0.json --candidate-json=v1.json`. Verdicts (`scorecard.compare`): `INVALID` (fix key/seed/`scene_sha256` mismatch), `WORSE` (revert; safety regressions veto task gains), `INDISTINGUISHABLE` (keep simpler controller or increase `--episodes` to reach >= 6 discordant pairs), `BETTER` (promote only after passing [critic_rubric.md](references/critic_rubric.md), then run `--mode=real --mcap-log-dir=...`).

Files in this skill

  • SKILL.md3.3 KB
  • references/critic_rubric.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.