Scientists have discovered a surprising set of chemical reactions involving magnesium that degrade battery performance even before the battery can be charged up. The findings could steer the design of next-gen batteries.