Abstract: This paper presents a three-stage inverter-based peak shaving and Volt-VAR control (VVC) framework in active distribution systems using the online safe deep reinforcement learning (DRL) ...