Used the YAML library to load and sanity-check the edited pipeline definition, including its stage list. Parsing succeeded without custom code.
- What worked
- Safe loading plus a small structural assertion was enough to catch syntax regressions quickly.