← Back to Pull requests

Centralize shared Warp mathematics and rank specialization #8842

Open
unknown opened this pull request with 290 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 26, 2026 23:47 UTC
Author

Description

Quaternion/frame equations, heading, interval scaling, and Jacobian shifts were independently implemented in backend and task packages. Give shared mathematics one core owner, isaaclab.utils.warp.math, and migrate consumers to it. Device operations compose into fused caller kernels; generated rank-1/rank-2 array kernels preserve input strides and register in the mathematical owner's compilation module.

Backends retain native solver access and policies. Quaternion xyzw, spatial (linear, angular), frames, and existing non-unit-quaternion behavior are explicit contracts. The reorientation task also corrects its quaternion angular error to use xyzw components and shortest-rotation math. Deleted duplicate definitions and the Newton state-math module have no forwarding aliases. Factories use make_<operation> names.

This removes 325 lines overall, including the new documentation and ownership tests. It is an ownership refactor; no general environment-FPS improvement is claimed.

Validation

61 tests passed across shared math, ray casting, and experimental observation/reward/termination parity. All six native asset/articulation kernel modules compiled on CUDA. The architecture gate rejects a deliberately reintroduced local yaw equation.

All GPU checks used CUDA_VISIBLE_DEVICES=0, Python 3.12, Warp 1.17, and the dependencies locked by main fa569a550. Each PR was tested in an isolated source checkout with verified import paths. Full isaaclab --format, changelog validation, and git diff --check passed. Existing dependency deprecation warnings remain; complete OV/PhysX simulator tests require CI runtimes unavailable locally.

Review and dependencies

This is an independent PR against main, part 1/4 of the shared Warp refactor. It has no unmerged code dependency. The complete series is #8842 (math), #8843 (memory), #8844 (wrench), and #8820 (sensor integration), where the final end-to-end results are reported. Working branches are hosted only in ooctipus/IsaacLab.

Checklist

  • Contribution guidelines and test-audit criteria applied

  • Full formatting and lint checks passed

  • Documentation and per-package changelog fragments included

  • Focused numerical/behavioral checks and structural regression gates passed

  • Full backend CI
  • Diff: 290 lines (+217 / -73) across 3 files Reviewer: greptile-apps[bot] Review duration: 15m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.40) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 290 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.339
    Real PR Conversation Timeline
    1 comments
    "Review active on #8842"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.9% (MEDIUM) · Higher = larger blast radius
    39.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.7% · Safe to merge
    22.7%