Skip to content

Add basic browser tool for agentic env gen interactive editing#803

Draft
qianl-nv wants to merge 17 commits into
mainfrom
qianl/dev/agentic_browser
Draft

Add basic browser tool for agentic env gen interactive editing#803
qianl-nv wants to merge 17 commits into
mainfrom
qianl/dev/agentic_browser

Conversation

@qianl-nv

Copy link
Copy Markdown
Collaborator

Summary

Add a browser-based agentic env gen/review script prompt-driven spec generation, initial spec editing and graph visualization.

Detailed description

  • What was the reason for the change?
    User needs a tool to interactive run pieces of the agentic env gen pipeline, make changes and visualizer the impact.
  • What has been changed?
    A new script is added to start the browser-based tool. A new module is also added for rendering/server logic used by the toll.
    The review GUI supports starting from input prompt, or load an initial graph spec (using --yaml).
  • What is the impact of this change?
    An additional user interface to run the agentic env gen pipeline with better support for user intervention. It supplements the e2e script.
    Support for persisent SimApp will be in a follow up MR.

qianl-nv added 8 commits June 15, 2026 23:58
Adds a Streamlit-based live editor for reviewing and editing
UnresolvedArenaEnvGraphSpec YAMLs. The review tool renders:
- A mermaid.js spatial graph of initial-state constraints with
  anchor highlighting, task-constraint dashed edges, and
  objectReference dotted edges
- A task table (index, kind, description, params)
- A node card grid with type badges and per-node YAML stanzas

The YAML editor auto-renders when the spec is valid and changed.
Node cards display a two-letter placeholder thumbnail by default.

Also adds YAML round-trip serialization to ArenaEnvGraphSpec and
moves assert_unique_ids/assert_references_exist to __post_init__
so validation fires on every load-from-yaml/dict path.

Signed-off-by: Qian Lin <qianl@nvidia.com>
Replace monolithic review_graph.py and review_app.py with server, streamlit_ui,
and a render subpackage; node thumbnails remain placeholders until SimApp lands.

Signed-off-by: Qian Lin <qianl@nvidia.com>
Replace html_document.render_html_for_spec with dashboard.render_dashboard_html.

Signed-off-by: Qian Lin <qianl@nvidia.com>
Stack visualizer sections vertically with three node thumbnails per row and unary
constraints beside the Mermaid spatial graph instead of below it.

Signed-off-by: Qian Lin <qianl@nvidia.com>
… import.

Wire LLM fetch plus in-process catalogue build and IntentCompiler into the
live editor with optional --yaml, and lazy-load USD helpers so library
registration avoids early pxr imports.

Signed-off-by: Qian Lin <qianl@nvidia.com>

@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

Comment thread isaaclab_arena/environments/arena_env_graph_spec.py Outdated
Comment thread isaaclab_arena/agentic_environment_generation/environment_generation_agent.py Outdated
Comment thread isaaclab_arena/assets/object.py
Comment thread isaaclab_arena_examples/agentic_environment_generation/review_gui/server.py Outdated
/isaac-sim/python.sh -m isaaclab_arena_examples.agentic_environment_generation.review_gui.server \\
--yaml isaaclab_arena/tests/test_data/pick_and_place_maple_table_init_env_graph.yaml

# Prompt-only (empty editor until you generate or paste YAML):

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.

move this to the first usage line. this should be the default mode

qianl-nv added 9 commits June 16, 2026 09:05
write_yaml already validates and serializes; to_yaml was unused in the repo.

Signed-off-by: Qian Lin <qianl@nvidia.com>
build_asset_catalogue() after SimApp init: ~10.0s without deferral vs
~9.9s with deferral; pxr loads in both cases once ensure_assets_registered
imports the object libraries.

Signed-off-by: Qian Lin <qianl@nvidia.com>
The review GUI still validated EnvironmentIntentSpec after fetch_intent_from_prompt,
so the split added indirection without skipping work; generate_spec inlines the
LLM call and validation again.

Signed-off-by: Qian Lin <qianl@nvidia.com>
Relocate the Streamlit CLI from review_gui/server.py to the parent package
so the launcher sits beside review_gui/ rather than inside it.

Signed-off-by: Qian Lin <qianl@nvidia.com>
Document render_tasks_table, render_node_cards, and render_node_card in
panels.py to match the existing render_unary_constraints style.

Signed-off-by: Qian Lin <qianl@nvidia.com>
Signed-off-by: Qian Lin <qianl@nvidia.com>
Remove the duplicate usage line and list the no-args launch first in
gui_runner.py and streamlit_ui.py.

Signed-off-by: Qian Lin <qianl@nvidia.com>
Document the remaining helpers and panel renderers so every public
entry point in the Streamlit app has a summary docstring.

Signed-off-by: Qian Lin <qianl@nvidia.com>
Cache validation per editor text, drop the duplicate validate on file load,
and pre-render generated specs from the compiler output instead of
re-parsing on the next Streamlit rerun.

Signed-off-by: Qian Lin <qianl@nvidia.com>
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.

1 participant