A nested model for AI design and validation