Skip to content

Fix stale Newton solver transforms after fixed-root pose writes - #7777

Merged
ooctipus merged 4 commits into
isaac-sim:developfrom
ooctipus:ooctipus/fix-newton-root-pose-notification
Sep 19, 2026
Merged

ooctipus merged 4 commits into
isaac-sim:developfrom
ooctipus:ooctipus/fix-newton-root-pose-notification

Conversation

@ooctipus

@ooctipus ooctipus commented Sep 13, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Fix stale solver-owned transforms after root-pose writes through the Newton articulation and rigid-object adapters.

For nonfloating roots, Newton stores the root transform in model.joint_X_p, not state.joint_q. The asset writers updated that model array but did not notify an already-constructed solver, so solver-owned root transforms could remain stale.

Changes

  • Notify the active solver immediately after each nonfloating link/COM root-pose write, for both index and mask selection.
  • Preserve the existing floating-root path.
  • Keep the notification at the mutation boundary so it remains capturable with masked writes.
  • Add one focused regression over the eight leaf writers and update the existing mock view contract.
  • Add the required isaaclab_newton changelog fragment.

No manager helper, queued compatibility path, public API, dependency, or configuration was added. If a write occurs before solver construction, the updated model is already the source used to construct the solver, so there is no separate notification to queue.

Validation

  • 194 passed: full test_newton_manager_abstraction.py
  • 256 passed: shared articulation and rigid-object root-pose interface selection
  • The focused regression fails when the notification is removed and passes for all eight leaf writers.
  • uv run isaaclab -f passed all hooks against the actual upstream/develop base.
  • git diff --check passed.

Type of change

  • Bug fix (non-breaking change)

Release backport

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

Checklist

  • I have read and understood the contribution guidelines.
  • I have run the repository formatting and pre-commit checks.
  • I have added a focused regression test.
  • I have added the required changelog fragment.

Notify solver model properties at nonfloating root-write boundaries, including masked writes and CUDA graph replay. Add active-contact and asset-writer regressions without changing floating-root behavior.
@ooctipus
ooctipus requested a review from a team September 13, 2026 10:04
@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Sep 13, 2026
@greptile-apps

greptile-apps Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with focused synchronization changes and comprehensive regression coverage for the affected root types and execution paths.

Summary

  • Adds solver model-property notifications to articulation and rigid-object link/COM pose writers.
  • Preserves the existing state-only behavior for floating roots.
  • Adds fixed-root, locked-D6, selection-mode, deferred-FK, active-contact, and CUDA graph replay regressions.
  • Updates the mock articulation view and adds a changelog fragment.

Diagram

sequenceDiagram
    participant C as Asset caller
    participant W as Root-pose writer
    participant M as Newton model/state
    participant N as NewtonManager
    participant S as Active solver

    C->>W: Write root link or COM pose
    alt Floating root
        W->>M: Update state.joint_q
    else Nonfloating root
        W->>M: Update model.joint_X_p
        alt Solver constructed
            W->>N: _notify_model_changed(JOINT_PROPERTIES)
            N->>S: notify_model_changed(JOINT_PROPERTIES)
        else Before solver construction
            W->>N: Queue JOINT_PROPERTIES
        end
    end
    opt skip_forward is false
        W->>N: Invalidate selected FK/pose caches
    end
Loading

Reviews (1) · Last reviewed commit: "Fix stale Newton solver transforms after..."

@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 change adds immediate ModelFlags.JOINT_PROPERTIES notifications after nonfloating root-pose writes in Newton articulation and rigid-object adapters, while retaining queued notifications before solver construction. The fixed-root, locked-D6, floating-root, selection, and CUDA graph paths are covered by focused regressions.

  • Design and architecture: The notification boundary correctly follows the model-transform write and remains independent of optional pose-cache/FK invalidation. Floating-root writes preserve their existing state-only behavior. Immediate notification may cost more than batching repeated writes, but it is an intentional tradeoff required for capture and replay correctness.
  • API: Writer signatures, defaults, return behavior, and skip_forward semantics remain unchanged. _notify_model_changed is an internal coordination helper used by package-owned adapters; its private visibility does not establish a public extension contract or compatibility problem. The user-visible fix is documented in the package changelog fragment.
  • Implementation: Notification coverage is consistent across articulation and rigid-object link/COM writers using index and mask selection, including skip_forward=True. The helper delegates directly to an active solver and reuses the existing model-change queue before construction. Tests verify dispatch timing, floating-root exclusion, queued initialization, active-contact equivalence, unchanged-world isolation, and graph replay; lightweight asset stand-ins are a non-blocking testing tradeoff.

No blocking issues. No inline issue met the actionable-evidence threshold; the assessment above records the review feedback.

Automated review; human maintainers own approval decisions.

Notify the active solver directly at the model-backed root write boundaries. Solver construction already consumes any writes made before a solver exists, so no manager helper or initialization queue path is needed.

Replace the combinatorial contact fixture with one focused regression covering the articulation and rigid-object leaf writers.
Check for an active solver before inspecting the real Newton root view. Mock-only writers need no extra inverse flag, while constrained-root notification behavior remains unchanged.
@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 f8e37e0 into isaac-sim:develop Sep 19, 2026
52 of 53 checks passed
ooctipus added a commit that referenced this pull request Sep 19, 2026
## Description

Disable the Franka cable, cloth, and soft-body rendering test files in
the legacy and ovstage kitless CI jobs. The [legacy job on
#7777](https://github.com/isaac-sim/IsaacLab/actions/runs/35427363586/job/105858130835)
failed 12 image-comparison cases across these three files.

Remove the three files from both jobs' explicit selections and record
the reason beside the jobs. Cartpole, both Kuka scenes, and Shadow Hand
remain selected. The Kit rendering job and the test implementations
remain available. The post-merge subsets already contain only Cartpole
kitless cases and need no changes.

## Validation

- Parsed the workflow and exercised the existing test-file collector for
both kitless jobs: each selects exactly the four remaining files.
- Verified both post-merge subsets still reference selected files and
that all other workflow configuration is unchanged.
- `uv run isaaclab -f` and `git diff --check` passed.
- GPU rendering was not rerun for this CI selection change.

## Type of change

- CI configuration fix

## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`
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]>
qianl-nv pushed a commit that referenced this pull request Oct 6, 2026
# Description

Fix stale solver-owned transforms after root-pose writes through the
Newton articulation and rigid-object adapters.

For nonfloating roots, Newton stores the root transform in
`model.joint_X_p`, not `state.joint_q`. The asset writers updated that
model array but did not notify an already-constructed solver, so
solver-owned root transforms could remain stale.

## Changes

- Notify the active solver immediately after each nonfloating link/COM
root-pose write, for both index and mask selection.
- Preserve the existing floating-root path.
- Keep the notification at the mutation boundary so it remains
capturable with masked writes.
- Add one focused regression over the eight leaf writers and update the
existing mock view contract.
- Add the required `isaaclab_newton` changelog fragment.

No manager helper, queued compatibility path, public API, dependency, or
configuration was added. If a write occurs before solver construction,
the updated model is already the source used to construct the solver, so
there is no separate notification to queue.

## Validation

- `194 passed`: full `test_newton_manager_abstraction.py`
- `256 passed`: shared articulation and rigid-object root-pose interface
selection
- The focused regression fails when the notification is removed and
passes for all eight leaf writers.
- `uv run isaaclab -f` passed all hooks against the actual
`upstream/develop` base.
- `git diff --check` passed.

## Type of change

- Bug fix (non-breaking change)

## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Checklist

- [x] I have read and understood the contribution guidelines.
- [x] I have run the repository formatting and pre-commit checks.
- [x] I have added a focused regression test.
- [x] I have added the required changelog fragment.

---------

Co-authored-by: ooctipus <[email protected]>
@ooctipus
ooctipus deleted the ooctipus/fix-newton-root-pose-notification branch October 14, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants