Skip to content

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

Open
lgulich wants to merge 1 commit into
isaac-sim:mainfrom
lgulich:lgulich/drop-final-obs-every-step
Open

lgulich wants to merge 1 commit into
isaac-sim:mainfrom
lgulich:lgulich/drop-final-obs-every-step

Conversation

@lgulich

@lgulich lgulich commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

SuperMimic's learned dynamics needed environments to capture physical successors before resets and interval events on every step, so #9193 added final_obs_every_step to the manager-based, direct and multi-agent environments. rsl-rl-lib-extras 6.0.0.2 (leggedrobotics/rsl_rl#308) no longer needs it: the successors of finished episodes come from the regular final observations, as for 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. In G1 motion tracking that is about one transition in 600. A comparison with and without every-step capture (3 seeds × 60 minutes per recipe) showed no measurable difference.

The environments return to their state before #9193. The SuperMimic runner configuration enables compute_final_obs instead, and the dependency moves to rsl-rl-lib-extras 6.0.0.2. The flag hasn't been released, so it is removed without deprecation.

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 <noreply@anthropic.com>

@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.


final_obs_every_step: bool = True
"""Capture physical observations before resets and interval events on every step."""
compute_final_obs: bool = True

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.

🔴 Critical · Compatibility — Keep mask-native SuperMimic resets working

This default makes DirectRLEnv.step raise whenever a mask-native reset override returns None, even without a reset; the previous SuperMimic default allowed that path. Support capture for these overrides before enabling the default.

@@ -1 +0,0 @@
* Added optional physical successor observations on every step in manager-based, direct single-agent and direct multi-agent environments for learned dynamics, captured before resets and interval events.

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.

🟡 Warning · Style Consistency — Replace the isaaclab changelog fragment

Deleting this fragment leaves the changed isaaclab environment behavior without a package-local changelog entry. Replace it with a fragment describing terminal-only capture and the configuration transition.

Currently consumed by the :class:`~isaaclab_rl.sb3.Sb3VecEnvWrapper` wrapper.
"""

final_obs_every_step: bool = False

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.

🟡 Warning · Compatibility — Preserve every-step capture during deprecation

Removing this public field and its direct, MARL, runner, and adapter paths rejects existing configurations and removes the documented successor signal. Keep them functional with targeted warnings, migration guidance, and transition tests.

@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

Comment on lines +249 to +251
# capture the terminal observation before reset and expose it for Same-Step autoreset.
if self.cfg.compute_final_obs:
self.extras["final_obs"] = self.observation_manager.compute()

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.

P1 Manual resets lose final states

When a user requests a reset and no environment ends naturally that step, SuperMimic no longer receives the observations from before the reset. final_obs is captured only in the automatic-reset branch. The later manual-reset branch marks episodes as terminated and resets them without capturing their final observations.

Previously, every-step capture preserved these states. The returned observations now describe new episodes, leaving the finished transitions without their true successors. Capture observations before manual resets too. The direct single-agent and multi-agent paths have the same gap.

Knowledge Base Used: Environment architecture

This branch has not been deployed

No deployments
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.

1 participant