validate
Validate the entire context configuration. Called automatically during SWML rendering, but can be called manually to catch errors early.
Checks performed:
- At least one context exists.
- A single context is named
"default". - Every context has at least one step.
- All context-level
valid_contextsreferences point to contexts that exist in the builder. - All
gather_infocompletion_actiontargets point to valid steps.
Returns
void — Throws Error with a descriptive message if validation fails.