Skip to content

About

Reproducible performance-regression bisection for IsaacLab

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

IsaacLab Bisection Agent

isaaclab-bisection-agent finds the first IsaacLab commit that regressed a performance metric. It checks out each candidate, reconstructs that commit's pinned runtime stack, runs one fixed benchmark contract, and preserves the evidence needed to defend the verdict.

The project is currently an alpha developer preview. Deterministic code owns measurement, thresholding, and binary-search decisions. Optional LLM policies may diagnose setup failures and propose bounded retries, but cannot change a GOOD or BAD verdict. Post-bisection trace analysis remains an external integration point.

Install

Python 3.11 or newer is required:

python -m pip install .
isaaclab-bisect --help

For development:

python -m pip install --editable ".[test]"

Real benchmark runs require Linux, Git, an NVIDIA GPU/driver compatible with the target commits, and either Docker or enough host disk for reconstructed Python environments.

Build the reconstruction image

The image contains CUDA userspace, build tools, Git, uv, and the agent. It deliberately does not contain Isaac Sim:

docker build --file docker/Dockerfile --tag isaaclab-bisection-agent:dev .

Benchmark one commit

isaaclab-bisect benchmark-commit \
    --repo_root /path/to/IsaacLab \
    --commit <COMMIT_SHA> \
    --tooling_ref <TOOLING_SHA> \
    --work_dir /tmp/isaaclab-benchmark \
    --runner_mode docker-reconstruct \
    --image isaaclab-bisection-agent:dev \
    --task_id Isaac-Cartpole-Direct \
    --backend_key physx \
    --num_envs 4096 \
    --gpu_model "NVIDIA L40S"

--tooling_ref must be a full committed SHA for authoritative runs. It pins the benchmark driver, parser, metric semantics, task configuration, and content hash. WORKTREE is available only for explicitly non-authoritative development.

Probe compatibility across a range

Use probe-range to validate checkout, reconstruction, and benchmark execution without claiming a first-bad commit:

isaaclab-bisect probe-range \
    --repo_root /path/to/IsaacLab \
    --good_ref <OLDER_SHA> \
    --bad_ref <NEWER_SHA> \
    --tooling_ref <TOOLING_SHA> \
    --work_dir /tmp/isaaclab-probe \
    --runner_mode docker-reconstruct \
    --image isaaclab-bisection-agent:dev \
    --task_id Isaac-Cartpole-Direct \
    --backend_key physx \
    --num_envs 4096 \
    --cleanup_probe_envs

Both endpoints are always measured. --max_tests bounds selected interior commits; set it high enough to cover the complete ancestry path. Each commit is independent, so setup or benchmark failures are recorded and the sweep continues. This mode never emits GOOD, BAD, or a first-bad verdict.

Bisect a reproduced regression

isaaclab-bisect bisect-range \
    --repo_root /path/to/IsaacLab \
    --good_ref <GOOD_SHA> \
    --bad_ref <BAD_SHA> \
    --tooling_ref <TOOLING_SHA> \
    --work_dir /tmp/isaaclab-bisect \
    --runner_mode docker-reconstruct \
    --image isaaclab-bisection-agent:dev \
    --task_id Isaac-Cartpole-Direct \
    --backend_key physx \
    --num_envs 4096 \
    --reference_runs 3 \
    --candidate_runs 1 \
    --warmup_runs 1

The run first qualifies the good and bad endpoints. Binary search starts only when the references are comparable, stable enough, and exceed the effective regression threshold. A non-reproducing or noisy range is reported as inconclusive.

Runner modes

  • synthetic rehearses search and artifact logic without a GPU.
  • local-source uses the host's existing IsaacLab environment.
  • docker-source source-mounts a candidate into an existing IsaacLab image.
  • local-reconstruct builds each commit's pinned stack on the host.
  • docker-reconstruct performs that reconstruction in an isolated container and is recommended for reproducible investigations.

Evidence

Important outputs include:

  • plan.resolved.json: immutable task, runner, metric, sampling, and tooling contract.
  • tooling_manifest.json: tooling SHA, content hash, file count, and contract identity.
  • preflight.json and hardware_context.json: host and GPU evidence.
  • reference_measurements.json: endpoint samples and qualification result.
  • summary.json and report.md: final verdict, values, thresholds, confidence, narrowed interval, stack movement, and blockers.
  • probe_range.json: non-authoritative compatibility sweep results.
  • measurements/ and results/: attempt logs and per-candidate evidence.
  • relaunch.json: an argv handoff for an equivalent host.

Setup and tooling incompatibilities are structured skips, not performance verdicts. See the compatibility policy.

Agent Skills

The repository ships operator and automation playbooks under skills/. The three atomic operations share one JSON adapter:

isaaclab-bisect-skill --input request.json --output response.json

The adapter preserves the canonical artifacts and returns a small response envelope for Fanes Agent or other automation.

Development and release

The core has no required third-party Python dependency. Tests, linting, and container builds run in GitHub Actions; authoritative GPU sweeps remain a separate hardware validation gate.

About

Reproducible performance-regression bisection for IsaacLab

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages