raise a proper error if the manifest is invalid

+ don't include 'inherit' in the built manifest

[finishes #42103811]