requireCanvasSceneIntegrity function
Rejects invalid generic scene data before recursive processing or resource work.
Throws ArgumentError at the first integrity failure. Error messages provide context for people; their wording, locations, and traversal order are not a stable diagnostic API. Component availability is owned by the caller.
Implementation
void requireCanvasSceneIntegrity(CanvasSceneDocument document) {
_SceneValidator().validate(document);
}