Skip to content

Multi-file recorded variation replay sample workflow - #1429

Merged
qianl-nv merged 4 commits into
mainfrom
qianl/feature/recorded-variations-workflow
Oct 13, 2026
Merged

qianl-nv merged 4 commits into
mainfrom
qianl/feature/recorded-variations-workflow

Conversation

@qianl-nv

@qianl-nv qianl-nv commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator

Add run-level multi-file variation replay and split the recorded-variations workflow into separate recording and replay Experiments. Reuse one builder-level placement recording across live rebuilds, then assign each recorded episode JSONL to its corresponding replay rebuild.

Why this change?

PR #1427 adds recorded placement and variation replay for one environment build. Experiments also need to record variations across multiple rebuilds and replay each resulting JSONL without manually creating one Run per file.

The sample workflow first holds settled placement layouts fixed across two live rebuilds while sampling ordinary variations. It then replays the two 500-episode recordings with a different number of parallel environments.

What changes?

  • Add ArenaRunCfg.recorded_variation_samples_paths as an ordered, run-level replay list.
  • Infer num_rebuilds from the list and assign one JSONL to each rebuild.
  • Replay every row by default, or split an explicit total rollout_limit.num_episodes across the rebuilds.
  • Allow one environment_builder.recorded_variation_samples_path to be reused across multiple rebuilds.
  • Keep the existing single-file placement replay examples unchanged.
  • Add separate 1,000-episode recording and two-file replay Experiment Definitions.
  • Document the three-step placement recording, variation recording, and replay workflow.

Usage example

Record live variations over two rebuilds while reusing one placement file:

environment_builder:
  recorded_variation_samples_path: outputs/recording/placements.jsonl
num_rebuilds: 2
rollout_limit:
  num_episodes: 1000

Replay the resulting files:

recorded_variation_samples_paths:
  - outputs/recording/episode_results_rebuild0.jsonl
  - outputs/recording/episode_results_rebuild1.jsonl
rollout_limit:
  num_episodes: 1000

The replay list creates two rebuilds and assigns 500 episodes to each file.

Validation

Passing checks:

  • Targeted pre-commit hooks passed for all changed Python, YAML, and RST files.
  • 59 focused run-configuration, Hydra, and execution tests passed.
  • Fresh settled placement recording accepted 8/8 layouts.
  • Compared 64 existing partial source/replay rows: all placement and variation payloads matched exactly, and replay source indices were consecutive.

@qianl-nv
qianl-nv force-pushed the qianl/feature/recorded-variations-workflow branch from b1028c6 to 76ba53f Compare October 12, 2026 14:56
@qianl-nv

Copy link
Copy Markdown
Collaborator Author

/review

Comment thread isaaclab_arena/evaluation/arena_run.py Resolved
@arena-review-bot

arena-review-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This PR adds ArenaRunCfg.recorded_variation_samples_paths so each rebuild replays its own JSONL. It also lets one builder-level replay file be reused across rebuilds, and adds the record and replay sample workflow with docs. The per-rebuild assignment and budget split are simple and well tested. One default-path case needs a decision.

Findings

🟡 Warning: isaaclab_arena/evaluation/run_execution.py:257: When one builder-level replay file is reused across rebuilds and num_episodes is not set, the row count is split across rebuilds. Every rebuild starts at row 0, so the first rows replay N times and the rest never run.
🔵 Improvement: isaaclab_arena/evaluation/arena_run.py:84: The num_steps check for replay now runs at config load for the list, but only in build_and_run for the single path. Could both run in __post_init__?

The PR description says 1,000 recorded episodes and 500 per file, but the YAMLs and docs use 128 and 64. Worth updating the description to match.

Verdict

Minor fixes needed

@qianl-nv
qianl-nv force-pushed the qianl/feature/placement-sampler-replay branch from 836feb5 to a34413b Compare October 12, 2026 17:07
@qianl-nv
qianl-nv force-pushed the qianl/feature/recorded-variations-workflow branch 2 times, most recently from ce23fd2 to 289c739 Compare October 12, 2026 17:45
@qianl-nv
qianl-nv marked this pull request as ready for review October 12, 2026 17:46
@qianl-nv qianl-nv changed the title Support multi-file recorded variation replay Multi-file recorded variation replay sample workflow Oct 12, 2026
Comment thread isaaclab_arena/evaluation/arena_run.py Resolved

@qianl-nv qianl-nv left a comment

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.

self review 1

@greptile-apps

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Medium impact] Adds multi-file recorded variation replay to experiment runner.

The PR appears safe to merge, with a non-blocking correction needed in the guide’s replay comparison.

Findings

  1. P2 Correct replay can fail comparison ▶

Summary

Adds ordered, run-level replay files, with one file assigned to each environment rebuild.

  • A Run replays one recorded file for each rebuild.
  • A sample workflow records and replays variations across rebuilds.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Run configuration] --> B{Ordered replay files?}
    B -->|Yes| C[Infer rebuild count from file list]
    C --> D{Explicit episode total?}
    D -->|No| E[Use each file's row count]
    D -->|Yes| F[Split total across rebuilds]
    B -->|No| G[Use configured rebuild count and budget]
    E --> H[Copy configuration for each rebuild]
    F --> H
    G --> H
    H --> I[Offset seed and select replay file]
    I --> J[Build environment and run episodes]
    J --> K[Close rebuild resources]
    K --> L[Aggregate results]
Loading

Reviews (1) · Last reviewed commit: "Support multi-file variation replay" · Reviewed by Greptile

@zhx06 zhx06 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.

Leave some suggestions here. I can check again once you are done with all the comments

Base automatically changed from qianl/feature/placement-sampler-replay to main October 13, 2026 03:29
@qianl-nv
qianl-nv force-pushed the qianl/feature/recorded-variations-workflow branch from 289c739 to ddf3ad5 Compare October 13, 2026 04:22
@qianl-nv

Copy link
Copy Markdown
Collaborator Author

/review

Comment thread isaaclab_arena/evaluation/arena_run.py Resolved

@zhx06 zhx06 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.

Thanks for the efforts! LGTM!

@qianl-nv
qianl-nv enabled auto-merge (squash) October 13, 2026 16:56
@qianl-nv
qianl-nv merged commit c3e547b into main Oct 13, 2026
12 checks passed
@qianl-nv
qianl-nv deleted the qianl/feature/recorded-variations-workflow branch October 13, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants