Again, by communicating. If someone doesn't know what they are building, who they are building it for, and why -- then they do not have a solid grasp of the requirements.
If you’re just blindly implementing someone else tech spec, you’re not doing any engineering, you’re just programming.