Recent testimony to federal investigators exposed a flaw in the complex operations at BP’s Macondo well, which likely contributed to the Deepwater Horizon rig explosion and Gulf oil spill.