Skip to content

Make direct cloning cfg-first - #7608

Merged
ooctipus merged 20 commits into
isaac-sim:developfrom
ooctipus:codex/cfg-first-direct-cloning
Sep 19, 2026
Merged

ooctipus merged 20 commits into
isaac-sim:developfrom
ooctipus:codex/cfg-first-direct-cloning

Conversation

@ooctipus

@ooctipus ooctipus commented Sep 6, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Direct workflows previously constructed entities first, recorded their cfgs through a process-wide replication queue, and only then built a clone plan from raw source and destination paths. Clone coverage therefore depended on constructor side effects instead of the declared scene.

This change makes a flat tuple of asset, sensor, and marker cfgs the complete construction manifest for homogeneous direct scenes. clone_plan_from_env_0(...) now:

  • accepts CloneCfg plus the flat manifest;
  • derives replicated and global paths from declared prim_path values;
  • assigns exact prototype spawn paths and publishes the plan before construction; and
  • routes that same plan through registered clone contexts at replicate(...).

The post-construction REPLICATION_QUEUE and queue_replication calls are deleted. There is no stage discovery, fallback routing, or second clone description.

InteractiveScene(cfg) remains the user-facing composition root for cfg-owned scenes and continues to hide its cloning lifecycle. Only hand-built homogeneous direct scenes use the explicit cfg-first helper in _setup_scene. Custom environment positions and low-level direct ClonePlan construction remain supported.

Affected direct tasks, demos, deployment examples, and generated task templates now declare global assets alongside replicated entities and construct runtime objects with cfg.class_type(cfg).

Production and maintained workflow code is 508 additions / 593 deletions (net -85 lines), excluding tests, documentation, and changelog fragments.

Migration

asset_cfgs = (cfg.robot, cfg.sensor, cfg.ground, cfg.light)
plan = cloner.clone_plan_from_env_0(cfg.scene.clone_cfg, asset_cfgs, cfg.scene.num_envs, cfg.scene.env_spacing)

robot = cfg.robot.class_type(cfg.robot)
sensor = cfg.sensor.class_type(cfg.sensor)
cfg.ground.spawn.func(cfg.ground.spawn.spawn_path, cfg.ground.spawn)
cfg.light.spawn.func(cfg.light.spawn.spawn_path, cfg.light.spawn)
cloner.replicate(plan, replicate_physics=cfg.scene.replicate_physics)

The former raw-path clone_plan_from_env_0(source, destination, ...), REPLICATION_QUEUE, and queue_replication interfaces are removed.

Validation

  • uv run isaaclab -f: passed.
  • Replication session tests: 8 passed.
  • Focused cfg-first clone-plan tests: 10 passed.
  • Newton global-body FrameTransformer regression: 4 passed.
  • Contributed Cartpole camera CI regression: passed.
  • Flat and rough Anymal-C direct environments: passed.
  • Direct RSL-RL export flow with the leapp extra: passed.
  • Empty InteractiveScene to direct-plan handoff: passed.
  • OVPhysX sparse-ID/source-only frame-view regression: passed.
  • Direct-task configuration suite: 67 passed; the teleop case passed with its project extra.
  • Full documentation build with warnings as errors: passed.

Matched warm startup samples used GPU 0, 4096 environments, seed 42, no interactive visualizer, and one paired warm-up per branch:

Workload Metric This PR develop
Cartpole Direct, Newton MJWarp Total startup 19.94 s 19.57 s
Environment creation 18.17 s 17.91 s
First step 0.08 s 0.08 s
Cartpole Camera Direct, Newton MJWarp + Newton renderer, RGB Total startup 30.86 s 31.05 s
Environment creation 28.62 s 28.45 s
First step 0.06 s 0.06 s

The differences are within single-sample startup noise, with no measured runtime regression.

Type of change

  • Breaking change
  • Documentation update

Release backport

  • Backport this pull request to the active release branch after it merges into develop

Screenshots

Not applicable.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks with uv run isaaclab -f
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a changelog fragment under source/<pkg>/changelog.d/ for every touched package
  • My name already exists in CONTRIBUTORS.md

@ooctipus

ooctipus commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator Author

run-ci

@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team infrastructure labels Sep 6, 2026
@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 Sep 6, 2026
@greptile-apps

greptile-apps Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR replaces constructor-driven replication discovery with an explicit cfg-first manifest for homogeneous direct scenes.

  • Reworks clone_plan_from_env_0() to derive paths, backend routing, and prototype spawn paths before construction.
  • Removes the process-wide replication queue and migrates direct tasks, demos, tests, templates, and documentation.
  • Preserves ReplicateSession as the managed lifecycle for cfg-owned or heterogeneous scenes.
  • One lifecycle-hardening issue remains: failed direct prototype construction can leave the newly published plan active.

Confidence Score: 4/5

The PR appears safe to merge, with a non-blocking lifecycle-hardening concern around retrying direct scene setup after prototype construction fails.

The cfg-first routing and maintained workflow migrations are coherent, but publishing the plan before caller-owned construction without an abandonment path can leave a reused simulation context stuck after a caught initialization exception.

Files Needing Attention: source/isaaclab/isaaclab/cloner/clone_plan.py

Important Files Changed

Filename Overview
source/isaaclab/isaaclab/cloner/clone_plan.py Introduces cfg-first homogeneous plan construction and publication; direct construction failures lack lifecycle cleanup.
source/isaaclab/isaaclab/cloner/replicate_session.py Removes queue-based discovery while retaining managed plan dispatch and exception cleanup.
source/isaaclab/isaaclab/scene/interactive_scene.py Removes queue registration for static scene assets while preserving the session-owned scene lifecycle.
source/isaaclab/isaaclab/sensors/camera/camera.py Adapts camera prototype spawning to preassigned plan paths and removes queue registration.
source/isaaclab_tasks/isaaclab_tasks/core/reorient/reorient_direct_env.py Migrates the direct reorientation scene to an explicit flat manifest and cfg-driven construction.
source/isaaclab_tasks/isaaclab_tasks/contrib/factory/factory_env.py Migrates factory assets, optional gears, globals, and replication ordering to the cfg-first workflow.
tools/template/templates/tasks/direct_single-agent/env Updates generated direct-task setup code to use the new cfg-first clone lifecycle.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Flat asset and sensor cfg manifest] --> B[clone_plan_from_env_0]
    B --> C[Derive env rows and global paths]
    C --> D[Assign prototype spawn paths]
    D --> E[Publish ClonePlan]
    E --> F[Construct env_0 prototypes]
    F --> G[replicate]
    G --> H[USD clone context]
    G --> I[Registered physics clone context]
    F -. construction exception .-> J[Published plan remains active]
Loading

Reviews (1): Last reviewed commit: "Harden cfg-first clone planning" | Re-trigger Greptile

spawn.spawn_paths = [source_path]
else:
spawn.spawn_path = source_path
sim.set_clone_plan(plan)

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.

P2 Failed Setup Leaves Plan

clone_plan_from_env_0() publishes the plan before the caller constructs the prototypes. If a prototype constructor then raises and the caller catches the error, the simulation retains the unconsumed plan, so retrying setup fails with “A SimulationContext owns exactly one clone lifecycle.” Unlike ReplicateSession, the direct lifecycle has no exception cleanup or supported way to abandon the published plan. This is a non-blocking hardening concern, but it makes recovery from initialization failures harder.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

DirectRLEnv tears down its SimulationContext when scene setup raises; retrying construction inside the same partially initialized simulation is not a supported lifecycle. Adding an abandon/retry API would create a second ownership path for the plan, so this remains intentionally strict.

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.

That lifecycle constraint addresses the concern. Since DirectRLEnv tears down the SimulationContext when setup fails, retrying within the same partially initialized simulation is unsupported; adding an abandon/retry API would introduce a second ownership path for the plan. I’m treating this as intentional strict lifecycle behavior, not an issue.

@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

The cfg-first cloning design replaces constructor-side-effect discovery with an explicit construction manifest, but it removes established public cloner APIs and replaces the helper’s positional contract without the required prior deprecation period.

  • Design and architecture: The manifest-based lifecycle coherently centralizes path derivation, routing, spawn-path assignment, and plan publication before construction. The architecture itself is consistent with the retained InteractiveScene and ReplicateSession paths.
  • API: The removal of REPLICATION_QUEUE and queue_replication from public exports and documentation, together with the incompatible clone_plan_from_env_0 signature replacement, violates the repository requirement to deprecate public APIs before removal. Compatibility shims and a staged migration are needed.
  • Implementation: The new implementation traces the flat manifest through prim-path expansion, environment/global classification, context routing, and prototype spawn-path assignment. No separate implementation defect was accepted beyond the unsupported immediate removal of the previous public interfaces.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

queue_replication,
replicate,
)
from .replicate_session import ReplicateSession, replicate

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 · Api — Public cloner exports removed without deprecation

REPLICATION_QUEUE and queue_replication are dropped from the package exports and API docs in one step, so any external from isaaclab.cloner import queue_replication fails at import. Repository rules require a prior deprecation and migration path before removing a public API. Keep both symbols as deprecated shims (queue-append becoming a no-op with a warning) for one release, then remove them. The same concern applies to clone_plan_from_env_0's replaced positional signature.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This removal is intentional and recorded in the major changelog fragment and migration section. Keeping queue shims, even as no-ops, would preserve the post-construction side channel this change removes; direct workflows now declare the complete cfg manifest before construction.

@ooctipus

ooctipus commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

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 Sep 7, 2026
@ooctipus

ooctipus commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

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 Sep 7, 2026
@ooctipus
ooctipus requested a review from peterd-NV as a code owner September 8, 2026 08:44
@github-actions github-actions Bot added the isaac-mimic Related to Isaac Mimic team label Sep 8, 2026

@StafaH StafaH left a comment

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.

I like the cfg-first direction and removing the global replication queue, but I’m worried we’re exposing too much of the internal cloning lifecycle to users.

With this API, a normal _setup_scene() has to do all of this:

asset_cfgs = (
    self.cfg.robot_cfg,
    self.cfg.cube_cfg,
    self.cfg.gripper,
    self.cfg.ground_cfg,
    self.cfg.light_cfg,
)

plan = cloner.clone_plan_from_env_0(
    self.cfg.scene.clone_cfg,
    asset_cfgs,
    self.cfg.scene.num_envs,
    self.cfg.scene.env_spacing,
)

assets = [cfg.class_type(cfg) for cfg in asset_cfgs]
self.robot, self.cube, self.gripper, _, _ = assets

self.scene.articulations["robot"] = self.robot
self.scene.rigid_objects["cube"] = self.cube
self.scene.surface_grippers["gripper"] = self.gripper

cloner.replicate(
    plan,
    replicate_physics=self.cfg.scene.replicate_physics,
)

That feels pretty hard to discover and easy to get wrong. Users need to understand planning order, class_type, positional unpacking, scene registration, replication, and collision filtering just to create a scene.

Could InteractiveScene own this whole lifecycle instead? For example:

def _setup_scene(self):
    self.scene.build(
        robot=self.cfg.robot_cfg,
        cube=self.cfg.cube_cfg,
        gripper=self.cfg.gripper,
        ground=self.cfg.ground_cfg,
        light=self.cfg.light_cfg,
    )

    self.robot = self.scene["robot"]
    self.cube = self.scene["cube"]
    self.gripper = self.scene["gripper"]

scene.build() could create the plan, construct and register the assets, replicate them, and handle collision filtering. The configs are named, so adding an optional asset also doesn’t break positional unpacking.

Even better, I think Direct environments should be able to use the same declarative scene pattern as other workflows:

@configclass
class PickAndPlaceSceneCfg(InteractiveSceneCfg):
    robot = ROBOT_CFG.replace(prim_path="{ENV_REGEX_NS}/Robot")
    cube = CUBE_CFG
    gripper = GRIPPER_CFG
    ground = AssetBaseCfg(
        prim_path="/World/ground",
        spawn=GroundPlaneCfg(),
    )
    light = AssetBaseCfg(
        prim_path="/World/Light",
        spawn=DomeLightCfg(intensity=2000.0),
    )

Then the setup code is just:

def _setup_scene(self):
    self.robot = self.scene["robot"]
    self.cube = self.scene["cube"]
    self.gripper = self.scene["gripper"]

The low-level ClonePlan and ReplicateSession APIs can still exist for advanced or heterogeneous layouts, but I don’t think normal users should need to call clone_plan_from_env_0(), cfg.class_type(cfg), or cloner.replicate() themselves.

One other thing: clone_plan_from_env_0() currently sounds like a plan-building helper, but it also mutates the configs and publishes the plan to the active SimulationContext. That’s surprising behavior for a function with this name. I’d either keep that internal or separate pure plan creation from applying the plan.

@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 Sep 16, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator Author

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 Sep 17, 2026
kellyguo11 pushed a commit that referenced this pull request Sep 17, 2026
)

Franka Lift can stall while filling its reset-state bank: the updated
`franka_panda.usda` defaults to `Colliders=primitives`, whose first-link
capsule extends 6 cm below the ground. The existing ground-clearance
criterion rejects every candidate, leaving the RSL-RL export batch at
`0/2048` until its 600-second timeout. This PR selects
`Colliders=convex_hulls` on the robot configuration shared by rigid
Franka Lift and Reorient, restoring the previous collision geometry and
successful reset sampling.

The affected asset and reset setup originated in
[#6457](#6457)
([564a008](564a008)),
then moved into the current Lift tasks in
[#6732](#6732)
([73106da](73106da)).
The triggering change is external: the production Franka asset's top
layer now selects primitive colliders and reports `Last-Modified:
2026-09-15 22:49:27 GMT`. Controlled comparisons found 0 valid states in
128 draws with the new default; explicit convex hulls and the preserved
old asset both produced 63 valid states from the same draws.

The same reset hang appeared in CI for #7838, #7608, #7832, #7834, and
#7866. [The #7866 RL
log](https://github.com/isaac-sim/IsaacLab/actions/runs/35202342707/job/105139978507)
shows the batch blocked on Franka Lift after environment setup. #7866
fixes the independently configured Franka Pour task; it does not change
Lift's robot configuration. This change covers Lift/Reorient only.

Validation:

- Fresh regression check on this branch: both Lift/Reorient cases failed
without the production fix; all 9 tests in `test_lift_env_cfg.py` passed
with it.
- `uv run isaaclab -f` passed.
- Earlier GPU validation of the identical Lift change completed the
original 2,048-state harvest and reset in 22.169 seconds; the existing
four-task RSL-RL export batch passed in 107.92 seconds.
- Local GPU validation used PyTorch 2.11+cu128, Newton 1.6rc1, and
RSL-RL 5.4.1. The identical Lift fix also passed [the full
locked-environment RL CI job in
#7865](https://github.com/isaac-sim/IsaacLab/actions/runs/35207648168/job/105158711330).

Reset-bank sizes, clearance criteria, export behavior, the global Franka
defaults, and Pour remain unchanged.
kellyguo11 pushed a commit that referenced this pull request Sep 17, 2026
A standalone demo that becomes ready at 299 seconds is currently
terminated at the 300-second startup deadline, before its five-second
soak can finish. This caused the arms smoke test in #7608 and #7674 to
fail after printing its setup and reset messages. Stop applying the
startup deadline once the readiness marker has been observed, while
preserving the existing 300-second startup and five-second soak
settings.

The unconditional deadline was introduced by
[#6704](#6704), commit
[16083cc](16083cc).
This fix does not address the separate arms failures in #7838 and #7866
that never reached readiness within 300 seconds.

Validation: the deterministic regression fails on develop and passes
with this change; all 11 supervisor checks pass; `uv run isaaclab -f`
passes.
kellyguo11 pushed a commit to kellyguo11/IsaacLab-public that referenced this pull request Sep 17, 2026
…im#7869)

A standalone demo that becomes ready at 299 seconds is currently
terminated at the 300-second startup deadline, before its five-second
soak can finish. This caused the arms smoke test in isaac-sim#7608 and isaac-sim#7674 to
fail after printing its setup and reset messages. Stop applying the
startup deadline once the readiness marker has been observed, while
preserving the existing 300-second startup and five-second soak
settings.

The unconditional deadline was introduced by
[isaac-sim#6704](isaac-sim#6704), commit
[16083cc](isaac-sim@16083cc).
This fix does not address the separate arms failures in isaac-sim#7838 and isaac-sim#7866
that never reached readiness within 300 seconds.

Validation: the deterministic regression fails on develop and passes
with this change; all 11 supervisor checks pass; `uv run isaaclab -f`
passes.

(cherry picked from commit 0921d32)
kellyguo11 pushed a commit to kellyguo11/IsaacLab-public that referenced this pull request Sep 17, 2026
…aac-sim#7870)

Franka Lift can stall while filling its reset-state bank: the updated
`franka_panda.usda` defaults to `Colliders=primitives`, whose first-link
capsule extends 6 cm below the ground. The existing ground-clearance
criterion rejects every candidate, leaving the RSL-RL export batch at
`0/2048` until its 600-second timeout. This PR selects
`Colliders=convex_hulls` on the robot configuration shared by rigid
Franka Lift and Reorient, restoring the previous collision geometry and
successful reset sampling.

The affected asset and reset setup originated in
[isaac-sim#6457](isaac-sim#6457)
([564a008](isaac-sim@564a008)),
then moved into the current Lift tasks in
[isaac-sim#6732](isaac-sim#6732)
([73106da](isaac-sim@73106da)).
The triggering change is external: the production Franka asset's top
layer now selects primitive colliders and reports `Last-Modified:
2026-09-15 22:49:27 GMT`. Controlled comparisons found 0 valid states in
128 draws with the new default; explicit convex hulls and the preserved
old asset both produced 63 valid states from the same draws.

The same reset hang appeared in CI for isaac-sim#7838, isaac-sim#7608, isaac-sim#7832, isaac-sim#7834, and
isaac-sim#7866. [The isaac-sim#7866 RL
log](https://github.com/isaac-sim/IsaacLab/actions/runs/35202342707/job/105139978507)
shows the batch blocked on Franka Lift after environment setup. isaac-sim#7866
fixes the independently configured Franka Pour task; it does not change
Lift's robot configuration. This change covers Lift/Reorient only.

Validation:

- Fresh regression check on this branch: both Lift/Reorient cases failed
without the production fix; all 9 tests in `test_lift_env_cfg.py` passed
with it.
- `uv run isaaclab -f` passed.
- Earlier GPU validation of the identical Lift change completed the
original 2,048-state harvest and reset in 22.169 seconds; the existing
four-task RSL-RL export batch passed in 107.92 seconds.
- Local GPU validation used PyTorch 2.11+cu128, Newton 1.6rc1, and
RSL-RL 5.4.1. The identical Lift fix also passed [the full
locked-environment RL CI job in
isaac-sim#7865](https://github.com/isaac-sim/IsaacLab/actions/runs/35207648168/job/105158711330).

Reset-bank sizes, clearance criteria, export behavior, the global Franka
defaults, and Pour remain unchanged.

(cherry picked from commit c5d33ef)
kellyguo11 pushed a commit to kellyguo11/IsaacLab-public that referenced this pull request Sep 17, 2026
…aac-sim#7870)

Franka Lift can stall while filling its reset-state bank: the updated
`franka_panda.usda` defaults to `Colliders=primitives`, whose first-link
capsule extends 6 cm below the ground. The existing ground-clearance
criterion rejects every candidate, leaving the RSL-RL export batch at
`0/2048` until its 600-second timeout. This PR selects
`Colliders=convex_hulls` on the robot configuration shared by rigid
Franka Lift and Reorient, restoring the previous collision geometry and
successful reset sampling.

The affected asset and reset setup originated in
[isaac-sim#6457](isaac-sim#6457)
([564a008](isaac-sim@564a008)),
then moved into the current Lift tasks in
[isaac-sim#6732](isaac-sim#6732)
([73106da](isaac-sim@73106da)).
The triggering change is external: the production Franka asset's top
layer now selects primitive colliders and reports `Last-Modified:
2026-09-15 22:49:27 GMT`. Controlled comparisons found 0 valid states in
128 draws with the new default; explicit convex hulls and the preserved
old asset both produced 63 valid states from the same draws.

The same reset hang appeared in CI for isaac-sim#7838, isaac-sim#7608, isaac-sim#7832, isaac-sim#7834, and
isaac-sim#7866. [The isaac-sim#7866 RL
log](https://github.com/isaac-sim/IsaacLab/actions/runs/35202342707/job/105139978507)
shows the batch blocked on Franka Lift after environment setup. isaac-sim#7866
fixes the independently configured Franka Pour task; it does not change
Lift's robot configuration. This change covers Lift/Reorient only.

Validation:

- Fresh regression check on this branch: both Lift/Reorient cases failed
without the production fix; all 9 tests in `test_lift_env_cfg.py` passed
with it.
- `uv run isaaclab -f` passed.
- Earlier GPU validation of the identical Lift change completed the
original 2,048-state harvest and reset in 22.169 seconds; the existing
four-task RSL-RL export batch passed in 107.92 seconds.
- Local GPU validation used PyTorch 2.11+cu128, Newton 1.6rc1, and
RSL-RL 5.4.1. The identical Lift fix also passed [the full
locked-environment RL CI job in
isaac-sim#7865](https://github.com/isaac-sim/IsaacLab/actions/runs/35207648168/job/105158711330).

Reset-bank sizes, clearance criteria, export behavior, the global Franka
defaults, and Pour remain unchanged.

(cherry picked from commit c5d33ef)
kellyguo11 pushed a commit to kellyguo11/IsaacLab-public that referenced this pull request Sep 17, 2026
…aac-sim#7870)

Franka Lift can stall while filling its reset-state bank: the updated
`franka_panda.usda` defaults to `Colliders=primitives`, whose first-link
capsule extends 6 cm below the ground. The existing ground-clearance
criterion rejects every candidate, leaving the RSL-RL export batch at
`0/2048` until its 600-second timeout. This PR selects
`Colliders=convex_hulls` on the robot configuration shared by rigid
Franka Lift and Reorient, restoring the previous collision geometry and
successful reset sampling.

The affected asset and reset setup originated in
[isaac-sim#6457](isaac-sim#6457)
([564a008](isaac-sim@564a008)),
then moved into the current Lift tasks in
[isaac-sim#6732](isaac-sim#6732)
([73106da](isaac-sim@73106da)).
The triggering change is external: the production Franka asset's top
layer now selects primitive colliders and reports `Last-Modified:
2026-09-15 22:49:27 GMT`. Controlled comparisons found 0 valid states in
128 draws with the new default; explicit convex hulls and the preserved
old asset both produced 63 valid states from the same draws.

The same reset hang appeared in CI for isaac-sim#7838, isaac-sim#7608, isaac-sim#7832, isaac-sim#7834, and
isaac-sim#7866. [The isaac-sim#7866 RL
log](https://github.com/isaac-sim/IsaacLab/actions/runs/35202342707/job/105139978507)
shows the batch blocked on Franka Lift after environment setup. isaac-sim#7866
fixes the independently configured Franka Pour task; it does not change
Lift's robot configuration. This change covers Lift/Reorient only.

Validation:

- Fresh regression check on this branch: both Lift/Reorient cases failed
without the production fix; all 9 tests in `test_lift_env_cfg.py` passed
with it.
- `uv run isaaclab -f` passed.
- Earlier GPU validation of the identical Lift change completed the
original 2,048-state harvest and reset in 22.169 seconds; the existing
four-task RSL-RL export batch passed in 107.92 seconds.
- Local GPU validation used PyTorch 2.11+cu128, Newton 1.6rc1, and
RSL-RL 5.4.1. The identical Lift fix also passed [the full
locked-environment RL CI job in
isaac-sim#7865](https://github.com/isaac-sim/IsaacLab/actions/runs/35207648168/job/105158711330).

Reset-bank sizes, clearance criteria, export behavior, the global Franka
defaults, and Pour remain unchanged.

(cherry picked from commit c5d33ef)
@ooctipus

Copy link
Copy Markdown
Collaborator Author

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 Sep 19, 2026
@ooctipus
ooctipus merged commit 0b10de8 into isaac-sim:develop Sep 19, 2026
53 of 54 checks passed
@ooctipus
ooctipus deleted the codex/cfg-first-direct-cloning branch September 19, 2026 08:18
ooctipus added a commit that referenced this pull request Sep 20, 2026
…7904)

## Description

Backports ten `develop` PRs to `release/3.0.0`, including the PyTorch
2.12/CUDA 13.0 upgrade, the near-singular OSC fix, and the complete
cfg-first cloning and schema-fragment migrations.

The audit covers September 17, 2026 00:00 UTC through `develop` commit
`4269c29a39e463dd07c74a9704d890d7a5c01e08` (September 19, 23:55 UTC),
against release base `970d21ef48057a2efc3d749c0f2abab8e7e0c30e`.

| Source PR | Included change |
| --- | --- |
| #7777 | Refresh Newton solver transforms after fixed-root pose writes
|
| #7608 | Make direct cloning cfg-first, including assets, callers,
templates, tests, and migration documentation |
| #7895 | Apply the existing CI exclusion for Franka cable/cloth/soft
kitless rendering tests |
| #7872 | Load the CUDA runtime matching PyTorch for Newton graph
capture |
| #7831 | Check authored Newton mesh-collision schema tokens correctly |
| #7834 | Build documentation with the extra that provides Sphinx |
| #7838 | Migrate maintained consumers to physics schema fragments,
including readers and overrides |
| #7840 | Consistently name Isaac Lab 3.1 as the deprecation removal
release |
| #7903 | Handle near-singular operational-space control |
| #7674 | Upgrade PyTorch to 2.12, TorchVision to 0.27, and the CUDA
stack to 13.0, including installer, wheel, and cuRobo compatibility
changes |

All 305 changed non-lock files match the audited `develop` snapshot
exactly. The remaining file, `uv.lock`, matches that snapshot after
substituting the package versions from the release branch's existing
manifests; all 418 package entries were checked. Existing release
package versions, compiled changelogs, documentation routing, and OVRTX
compatibility code remain intact, including the #7880 revert. Source
commit hashes are recorded in the commit messages.

### Already present

#7866, #7870, #7867, #7869, and #7868 were included in #7851; #7819 was
backported by #7884; #7883, #7885, and #7887 were backported by #7889.
#7874, #7888, #7773, #7886, and #7042 were also already present.

The three automatic changelog/version compilation commits are excluded;
the release branch compiles its own fragments and maintains its own
versions.

## Type of change

- Release integration/backport
- Bug fixes and documentation updates
- Breaking changes already accepted for the 3.0 cloning and schema
migrations; their migration guidance and changelog fragments are
included

## Validation

- `uv run --no-sync isaaclab -f`: all checks passed using the existing
shared environment and the release base for changelog validation.
- Focused cloning, OSC feature, schema parity/shim, CLI, and task
configuration suite: **283 passed**.
- Newton fixed-root updates and CUDA runtime/capture regressions: **14
passed**.
- Complete OSC simulation suite: **21 passed**.
- Mesh-collision fragments: **17 passed**; cfg-first cloning
integration: **16 passed**; scene construction/ownership: **7 passed**.
- The above **358 tests passed with PyTorch 2.11**.
- With **PyTorch 2.12/CUDA 13.0**: installer/metadata/Docker tests **91
passed**; CPU/GPU OSC feature tests **17 passed**; complete OSC
simulation suite **21 passed**.
- `uv lock --check`: passed; release package manifests match their
lockfile entries.
- Repository skill validation: **23 skills passed**.
- File-by-file source audit, release-metadata preservation checks, and
`git diff --check`: passed.

Local simulation used RTX 5090 and Isaac Sim 6.0.1 with PyTorch 2.11 and
2.12. The full Docker image build and fresh installation matrix were not
rerun locally for this backport. Release CI uses its pinned Isaac Sim
6.1 image and remains the authoritative full integration check.
Kit-dependent suites run in separate processes to avoid loading
standalone USD before Kit.

## Release backport

Not applicable: this PR targets `release/3.0.0` directly.

## Checklist

- [x] Ran the complete pre-commit command.
- [x] Included the original migration documentation, regression tests,
and changelog fragments for every changed package.
- [x] Preserved source attribution and recorded every source commit.
- [x] Preserved the release branch's versions and existing
release-specific changes.

---------

Co-authored-by: vidurv-nvidia <[email protected]>
Co-authored-by: ooctipus <[email protected]>
ooctipus added a commit that referenced this pull request Sep 21, 2026
…7530, #7899) (#7926)

## Description

Backports the two changes merged into `develop` since September 19 that
are still missing from `release/3.0.0`:

| Source PR | Change | Source commit |
| --- | --- | --- |
| #7530 | Validate camera outputs against renderer capabilities before
simulator startup | `31d1c53510490c76841e9c35a329574b357d9900` |
| #7899 | Share native resources by construction cfg and centralize
ownership and teardown | `c90c3a1097a0a669a823b880b1c8d0654d7fd267` |

Includes the original regression tests, API documentation, and changelog
fragments. #7530 applied without changes. #7899 required two conflict
resolutions to retain the release branch's OVRTX mapping API,
documentation, and tests. Of its 62 files, 59 match the merged source
exactly; the other three retain those existing release additions.
Release versions, lockfile entries, compiled changelogs, and
documentation routing are preserved.

## Audit

Checked all **33 PRs** merged from September 19, 2026 00:00
America/Los_Angeles through `develop` commit `c90c3a1097` (September 20,
21:29 Pacific), against release base `75e9c8ce12`. **31 are already
backported; the remaining two are included here.** Git first-parent
history and GitHub's merged PR list agree. Automatic changelog/version
compilation remains branch-specific.

<details>
<summary>31 PRs already recorded in release</summary>

| Source PRs | Existing release commit |
| --- | --- |
| #7777, #7608, #7895, #7872, #7831, #7834, #7838, #7840, #7903, #7674 |
[`ff22c52891`](ff22c52)
|
| #7886 |
[`41bfaee5f0`](41bfaee)
|
| #7042 |
[`970d21ef48`](970d21e)
|
| #7905 |
[`f0563d1f9e`](f0563d1)
|
| #7604 |
[`dca7cfe984`](dca7cfe)
|
| #7610, #7603 |
[`5dd2220243`](5dd2220)
|
| #7839 |
[`b8b93bb96e`](b8b93bb)
|
| #6851 |
[`baa025ad90`](baa025a)
|
| #7250 |
[`f86b33e6b1`](f86b33e)
|
| #7910 |
[`24f7b4842b`](24f7b48)
|
| #7810 |
[`9738e096c8`](9738e09)
|
| #7832 |
[`be270ed88b`](be270ed)
|
| #4679 |
[`80157aa22d`](80157aa)
|
| #7914 |
[`01b59b5a22`](01b59b5)
|
| #7502 |
[`db7db61f60`](db7db61)
|
| #7918 |
[`bca9dba8bb`](bca9dba)
|
| #7919 |
[`ef1514c97c`](ef1514c)
|
| #7922 |
[`7d6979a19e`](7d6979a)
|
| #7923 |
[`a1dd560b98`](a1dd560)
|
| #7924 |
[`892e51dc1d`](892e51d)
|
| #7925 |
[`75e9c8ce12`](75e9c8c)
|

</details>

## Validation

**745 tests passed** on the combined backport:

- Core registry, configclass, replication, camera contracts, and task
presets: 158 passed.
- Newton manager/model/reset and coupling suites: 299 passed.
- OVPhysX/OVRTX lifecycle, scene data, bindings, and material contracts:
141 passed on CPU.
- Clone-plan algebra: 83 passed.
- All 8 OV CUDA cases skipped in the CPU run: 8 passed on GPU.
- OVPhysX ray-caster regression: 1 passed.
- Kit simulation-context and PhysX scene-data tests: 54 passed.
- Newton solver reset integration: 1 passed.

The registry-identity and borrowed-config-field regressions both fail
with the pre-backport implementations and pass with this change.
Backport file-scope validation, source-file comparison, `git diff
--check`, and `uv run isaaclab -f` passed.

Local validation used PyTorch 2.12.0/CUDA 13.0, Isaac Sim 6.0.1.0,
Newton 1.6.0rc1, and an RTX 5090. Existing deprecation/runtime warnings
occurred. Full Docker CI is requested separately against the pinned
environment; local checks do not claim a startup or runtime speedup.

## Checklist

- [x] Read the contribution guidelines and ran formatting/changelog
checks.
- [x] Included source tests, documentation, and changelog fragments.
- [x] Verified regression behavior and preserved release-specific
changes.
- [x] Recorded source commit hashes and audited the requested merge
window.

---------

Co-authored-by: Antoine RICHARD <[email protected]>
Co-authored-by: ooctipus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team isaac-mimic Related to Isaac Mimic team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants