Skip to content

fix: reject compile-only backends for environment creation - #193

Merged
wlgys8 merged 1 commit into
mainfrom
fix/reject-compile-only-env-backends
Nov 27, 2026
Merged

wlgys8 merged 1 commit into
mainfrom
fix/reject-compile-only-env-backends

Conversation

@wlgys8

@wlgys8 wlgys8 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add an explicit runtime capability contract to simulator backends.
  • Reject compile-only backends in both DirectEnv and ManagerEnv before backend construction or scene compilation, instead of failing on the render argument.
  • Explain that MuJoCo is currently used for sim2sim deployment and does not yet support creating environments for training.
  • Keep standalone MuJoCo scene compilation unchanged and document the supported boundary.

Tests

  • Core and MuJoCo fast suites: 382 passed, 2 deselected (python -m pytest motrix_env_core/tests motrix_env_mujoco/tests -m "not slow and not integration" -q).
  • After refining the diagnostic: registry and MuJoCo scene compiler tests: 63 passed.
  • Regression coverage includes Direct/Manager workflows, headless modes, registry.make and resolve().make; asserts that compile-only backend construction is never reached.
  • Manually verified the original Cartpole reproduction with real MuJoCo: headless=False/True are rejected with a clear ValueError.
  • prek run --all-files: passed (rerun before commit).
  • No GPU training or window rendering validation; this change intentionally rejects unsupported runtime construction.

Scope

This fixes the misleading constructor failure, not MuJoCo training support. MuJoCo remains compile-only for sim2sim tooling.

Closes #190

@wlgys8 wlgys8 changed the title fix: reject compile-only backends for runtime environments fix: reject compile-only backends for environment creation Nov 27, 2026
@wlgys8
wlgys8 force-pushed the fix/reject-compile-only-env-backends branch 2 times, most recently from 316489d to 4c12769 Compare November 27, 2026 13:01
@wlgys8
wlgys8 force-pushed the fix/reject-compile-only-env-backends branch from 4c12769 to cd2ec3f Compare November 27, 2026 13:08
@wlgys8
wlgys8 merged commit 0b14f8c into main Nov 27, 2026
12 checks passed
@wlgys8
wlgys8 deleted the fix/reject-compile-only-env-backends branch November 27, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: MuJoCo backend rejects render argument from public environment factory

1 participant