Earliest inner solar system planetesimals shaped the inventory of moderately volatile elements in terrestrial planets.