pub fn validate_plan(plan_json: &str) -> Result<JsValue, JsValue>
Validate a plan JSON blob and return structured authoring diagnostics.