# Workflows ## Text and Image Inputs `build-shell` selects a floorplan matching explicit room requirements. `prepare` reuses that input and rejects requirements absent from the saved shell. A seed is reproducible within the same input library and configuration; record source versions and input hashes with results. For image input, configure the local model and use an inference-capable Python: ```bash python scene_workflow.py build-shell --case "$PWD/work/image-case" \ --floorplan-image "$PWD/src/examples/floorplan/rplan_45966.jpg" ``` Insufficient scale evidence produces a draft. Inspect it and supply `--floorplan-scale-m-per-pixel` with a confirmed scale before generation. Image interpretation does not replace topology or geometry validation. ## Generate, Audit and Render The normal order is `build-shell`, `prepare`, `execute`, `audit`, then `render`. Every stage accepts `--help`. Rendering reads the final saved scene: ```bash python scene_workflow.py render --case "$PWD/work/case-001" \ --device GPU --gpu-backend CUDA --samples 32 \ --views diagnostic_top,diagnostic_living_human_view ``` After recovery, use the final output in `execution_summary.json`; the first `execution/` result may remain a failed attempt. Geometry, rendering, physics and robot-task acceptance are separate results. ## Collect a Dataset `src/tools/collection/collect_one.py` runs the public workflow, selects the final scene after recovery, packages it and renders it. `collection_queue.py` schedules jobs and saves queue state. Inspect commands first with single-job `--dry-run`. Slot syntax is `name:cpus:gpu:case`; empty GPU and case fields select CPU execution and a new case. CPU affinity must be valid for the host. Packages are grouped by actual generated room area. The conversion target remains metadata and is used as a labelled fallback for older manifests without usable room areas. `rp1_scene_info.json` records the area basis and floorplan evidence. Per-case logs contain return codes, `worker_meta.json`, `SUCCESS.json` or failure markers. `audit_render` enables audit rendering; `audit_sample_rate` selects stable sampled audits; `presentation_views` selects presentation images. A skipped audit does not count as a passed audit. `min_free_gb` defaults to 30 GiB. Low space pauses queue launches or fails a worker preflight before generation. Repeated fast failures trigger launch cooldown. | `run_dir_retention` | Successful run | Failed run | | --- | --- | --- | | `compress` | Archive intermediate run | Archive intermediate run | | `keep` | Keep run | Keep run | | `delete_on_success` | Delete after packaging and rendering | Archive run | Compression uses system `tar` and `zstd`. Failed compression or missing `zstd` keeps the source run. Dataset packages remain separate from intermediate runs. ## Other Modules - `src/tools/rplan/`, `src/tools/rplan_library/`: floorplan conversion and screening. - `src/tools/collection/prewarm_cache.py`: prepared-asset cache warmup. - `src/engine/real_test/`: saved-scene geometry, rendering and integration tools. - `src/paper_eval/`: evaluation with separately configured inputs. - `complete-kitchen`, `revise-connections`, `place-dining`, `decorate-scene`, `revise-home`: explicit saved-scene editing stages of the public CLI. Patch snapshots in `src/engine/native_patches/` and `src/engine/parent_revisions/` belong to the source inventory; they are not disposable run output.