What problem does it solve? Building a Partner Development Environment (PDE) org for Revenue Cloud requires temporary feature-flag changes (pde=true, billing_ui=false) that must never leak into committed configuration, plus a uniquely-aliased scratch org and reliable cleanup of build artifacts. Doing this by hand risks committing flag flips, clobbering local edits, or misreading a truncated build log as success. ## Core Features & Use Cases - Self-reverting build script: Runs scripts/build_pde_dev_r1.sh to provision a fresh pde<datetimestamp><pid> scratch org from the tfid-pde shape, apply runtime-only flags, execute the prepare_rlm_org flow, and restore every touched file on exit. - Configurable overrides: Control the build via environment variables such as ORG, SHAPE, FLOW, and CLEAN_BUILD_ARTIFACTS, including switching to the dev-r1 Developer Edition scratch shape. - Safe scheduling and verification: Gate follow-up actions on the script exit code rather than the visible log tail, and verify cleanliness with git status after the run. - Use Case: A developer needs a clean PDE org for a Revenue Cloud demo. They run the script, which fails fast if the alias exists, builds the org with temporary flags, and leaves the working tree untouched. ## Quick Start Ask your agent to build a PDE org by running scripts/build_pde_dev_r1.sh and confirm success from its exit code and a clean git status.