Skip to content

Preserve collision sort capacity when contact matching enables determinism - #2

Closed
lgulich wants to merge 1 commit into
feat/newton-contact-manifold-controlsfrom
fix/contact-pipeline-capacity
Closed

lgulich wants to merge 1 commit into
feat/newton-contact-manifold-controlsfrom
fix/contact-pipeline-capacity

Conversation

@lgulich

@lgulich lgulich commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Contact matching can enable a deterministic collision pipeline even when global determinism is NOT_GUARANTEED. When the solver requires a larger contact capacity, the old branch grew only Contacts and left the pipeline sort buffer undersized.

Use the constructed pipeline's actual deterministic flag to rebuild matching contact/sort buffers. Preserve the unsorted allocation path and solver/scoring behavior.

Validation: three CPU regressions pass using real Newton collision pipelines: contact matching with implicit sorting, explicit GPU_TO_GPU determinism, and unsorted contacts. Each grows capacity32→80 and executes collision. The all-task OSMO campaign used this exact one-line fix; this change does not claim to resolve later nonfinite physics errors.

@github-actions github-actions Bot added bug Something isn't working isaac-lab labels Sep 15, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-15T10:48:12.345950Z 31f690b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 31f690b646

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

_need = _solver.get_max_contact_count()
if _need > NewtonManager._contacts.rigid_contact_max:
if cls._deterministic_mode != wp.DeterministicMode.NOT_GUARANTEED:
if cls._collision_pipeline.deterministic:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Update the existing collision-pipeline fake

Running test_newton_manager_abstraction.py::test_deterministic_collision_pipeline_matches_expanded_contact_capacity now raises AttributeError here: that test replaces CollisionPipeline with a fake that implements contacts() and _rigid_contact_max but has no deterministic attribute. The newly added standalone test does not replace or update this still-collected regression, so the existing Newton physics test suite fails before reaching its assertions; extend the existing test double to model the effective deterministic state.

AGENTS.md reference: AGENTS.md:L33-L34

Useful? React with 👍 / 👎.

_need = _solver.get_max_contact_count()
if _need > NewtonManager._contacts.rigid_contact_max:
if cls._deterministic_mode != wp.DeterministicMode.NOT_GUARANTEED:
if cls._collision_pipeline.deterministic:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the Newton changelog fragment

This user-visible fix changes runtime behavior in the isaaclab_newton source package, but the commit adds no file under source/isaaclab_newton/changelog.d. The repository changelog check treats a changed package without either a release-note fragment or a .skip fragment as an error, so this commit cannot pass that required validation until the package receives the appropriate fragment.

AGENTS.md reference: AGENTS.md:L43-L44

Useful? React with 👍 / 👎.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant