Skip to content

fix: complete Torch action contract migration - #192

Merged
wlgys8 merged 1 commit into
mainfrom
fix-torch-action-boundaries
Nov 27, 2026
Merged

wlgys8 merged 1 commit into
mainfrom
fix-torch-action-boundaries

Conversation

@wlgys8

@wlgys8 wlgys8 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Generate Torch actions in the all-environment smoke runner.
  • Convert NumPy commands and immutable ONNX actions at the source-rollout environment boundary.
  • Migrate environment contract tests to Tensor snapshots and assertions so reward-term checks no longer silently skip tensors.
  • Add a lightweight source-rollout regression test covering repeated command writes, Tensor actions, and immutable policy output ownership.

Fixes #189

Validation

  • CPU targeted tests: 102 passed (source rollout, deploy export, action space, basic and manipulation direct contracts).
  • Exact all-env smoke runner for Cartpole with num_envs=1 and num_envs=2: both passed, 10 steps each.
  • prek run --all-files: passed.
  • git diff --check: passed.

Not run

  • Full nightly all-environment suite, GPU training, and end-to-end rollout using a real ONNX artifact.

@wlgys8
wlgys8 force-pushed the fix-torch-action-boundaries branch from af41f22 to 3b9aa85 Compare November 27, 2026 11:37
@wlgys8
wlgys8 merged commit bb7b352 into main Nov 27, 2026
12 checks passed
@wlgys8
wlgys8 deleted the fix-torch-action-boundaries branch November 27, 2026 11:50
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]: all-env smoke passes NumPy actions to Torch Cartpole environment

1 participant