James Allison has committed his F1 future to Mercedes by signing a “long-term” contract extension to remain as technical director.