Master equations for extended Lagrangian BRST symmetries