Skip to content

Drop the every-step final observation flag for SuperMimic - #9214

Merged
lgulich merged 3 commits into
isaac-sim:mainfrom
lgulich:lgulich/drop-final-obs-every-step
Nov 25, 2026
Merged

lgulich merged 3 commits into
isaac-sim:mainfrom
lgulich:lgulich/drop-final-obs-every-step

Conversation

@lgulich

@lgulich lgulich commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

#9193 added a public option, final_obs_every_step, to the configs of the manager-based, direct and multi-agent environments. Only SuperMimic uses it: its learned dynamics needed every environment to capture the physical successor on every step, before resets and interval events. That is a public API change to every environment type for a single learner, and it hasn't shipped yet. This PR reverts it before 3.1 is released.

Change

The revert is possible because of rsl-rl-lib-extras 6.0.0.2 (leggedrobotics/rsl_rl#308). Learned dynamics there follows the same contract as SAC: the successors of finished episodes come from the regular extras["final_obs"], and the others from the returned observations. The environments go back to their state before #9193, the SuperMimic runner config enables compute_final_obs instead of the removed option, and the dependency moves to 6.0.0.2.

Effect on training

Training is unaffected. Resets are handled as before, and replay windows still stop at dones. Command updates only change goal observations, not the state and labels groups the world model learns from. So the only difference is that physical interval edits such as pushes now enter the world model's targets, about one transition in 600 in G1 motion tracking. On Isaac-Motion-Tracking-G1 (Newton, default environment count, one L40S per run, 3 seeds × 60 minutes per recipe), training with and without every-step capture gave the same results: episode reward 12.1 ± 0.4 without vs 11.7 ± 0.3 with it for the SuperMimic recipe, and 13.8 ± 0.2 vs 13.5 ± 0.7 for the BlinkMimic recipe, with the same world-model error.

Viewer-reset fix

Since SuperMimic now relies on final_obs, this also fixes a gap that affected SAC: a reset requested from the viewer on a step without an automatic reset ended episodes without capturing their final observations. The three environment types now capture them in that case too.

Testing

To train:

uv run isaaclab train --rl_library rsl_rl --task Isaac-Motion-Tracking-G1 \
    --agent rsl_rl_supermimic_cfg_entry_point presets=state_obs

On one RTX 6000 Ada with 1024 environments, the reward rose from 0.17 to 7.4 in under 8 minutes.

🤖 Generated with Claude Code

SuperMimic's learned dynamics required environments to capture physical
successors before resets and interval events on every step, so isaac-sim#9193
added final_obs_every_step to the manager-based, direct and multi-agent
environments. rsl-rl-lib-extras 6.0.0.2 takes the successors of finished
episodes from the regular final observations, like SAC, and the others
from the returned observations; resets are handled as before and replay
windows still stop at dones. Only interval edits such as pushes now
enter the world model's targets, about one transition in 600 in G1
motion tracking, with no measurable effect on training.

The environments return to their state before isaac-sim#9193. The SuperMimic
runner configuration enables compute_final_obs instead, and the
dependency moves to rsl-rl-lib-extras 6.0.0.2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

Needs attention: Compatibility and deprecation (2), Style consistency (1). Other reviewed categories look good.

  • PR description: Correct “only interval edits” to include command updates, remove the deprecation exemption, and complete supplied learning comparisons with baseline/candidate revisions, command, hardware, backend, environment count, warmup, and metrics.
  • Design and architecture: Architecture looks good.
  • Scope and over-engineering: No over-engineering issues.
  • API: API changes look good.
  • Compatibility and deprecation: Breaking changes: Removing final_obs_every_step configurations and the validity signal lacks functional compatibility, targeted warnings, migration guidance, removal guidance, and transition coverage; SuperMimic's new default also rejects supported mask-native reset overrides.
  • Implementation: Implementation looks good.
  • Style consistency: Deleting the isaaclab changelog fragment leaves its configuration and behavior changes undocumented; replace it with a package-local transition entry.
  • Test quality: Test quality looks good.

Significant concerns. Posted 3 inline findings.

Automated review; human maintainers own approval decisions.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes affect optional final-observation capture across environment types and the SuperMimic training path.

Capture final observations for manual resets before merging so SuperMimic keeps the true final states of finished episodes.

Findings

  1. P1 Manual resets lose final states ▶

Summary

Removes final_obs_every_step and switches SuperMimic to compute_final_obs.

  • Environments capture final observations only when an episode ends.
  • SuperMimic gets finished-episode successors from final observations.

Acknowledgments: lgulich explicitly accepts interval edits entering the learned targets and removal of the unreleased flag without deprecation.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Advance physics] --> B{Automatic episode end?}
  B -->|Yes| C[Capture final observations]
  C --> D[Reset finished environments]
  B -->|No| E{Manual reset requested?}
  D --> E
  E -->|Yes| F[Mark remaining episodes finished]
  F --> G[Reset without capturing final observations]
  E -->|No| H[Update commands and interval events]
  G --> H
  H --> I[Return observations]
Loading

Reviews (1) · Last reviewed commit: "Drop the every-step final observation fl..." · Reviewed by Greptile

lgulich and others added 2 commits November 25, 2026 14:13
A reset requested from the viewer marks the remaining episodes as
terminated and resets them, but final observations were only captured
for automatic resets. On a step without an automatic reset, learners
that read extras["final_obs"] for done environments, such as SAC and
now SuperMimic, received dones without final observations. Manager-based,
direct and multi-agent environments now capture them before the viewer
reset when no automatic reset did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pending changelog fragments must not be edited, so the model-based
entries stay as merged and new fragments record the removal of the
every-step option and the SuperMimic runner and dependency change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread uv.lock

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a wheel for this one?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AntoineRichard

Copy link
Copy Markdown
Collaborator

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Nov 25, 2026
@lgulich
lgulich merged commit 158bfc0 into isaac-sim:main Nov 25, 2026
95 of 96 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants