Answering a TRW member's request, I examined the decoder to determine where are best places to connect a keep-alive circuit.
The info here pertains to the original runs of the model. As I understand, Atlas will be releasing another run in 2023-2024 and I do not know if it will be using the same decoder. I suspect not, as they no longer make V4 decoders.
This decoder is a LokSound V4 decoder and it follows the design used in other ESU N scale LokSound V4 decoders. Shown here is a partial schematic diagram of its power supply section.
There isn't much available space inside the model for a keep-alive circuit. Largest open space is in the rear of the loco between the worm/flywheel and the bottom of the decoder. There is a similar open area in the front of the loco, but with less space due to capacitors installed on the bottom of the decoder board. The white rectangle in the picture shows the best location for placing the keep-alive circuit.
As far as electrical connections go, keep-alives are usually connected to the raw rectified voltage. Negative side of the keep-alive connects to any of the decoder's numerous green colored "ground" points, and positive to the purple colored points (identified as "A"). When connected this way, the keep alive will supply power to the entire model (motor, headlights, and the decoder's logic and sound sections). Unfortunately, most of the raw rectified voltage traces are inaccessible, hidden in the inner layers of the circuit board, or covered by the SMD components soldered to the external pads, and the few exposed "purple" pads are not very easy to deal with.
As shown in the picture, the three current limiting resistors for the LEDs are connected to the "A" voltage. While those are convenient locations for connecting the positive keep-alive wire to, I would not recommend them. The resistors are very small and there is a good possibility that heating the resistor's positive side solder pad will also melt the solder on the other side of the resistor causing it to shift. Repairing that will require a soldering iron with very small tip, and a very steady hand. Not worth the risk (IMO). The other thing I'm worried about is that the "via" connecting the surface positive voltage pad to the internal voltage trace or plane might not be able to handle the heavy current for charging and discharging the keep-alive.
As I see it, the preferred hookup location is a the cathode lead of the Zener Diode (marked "A1" on the picture). The vias at that diode's solder pad are designed to carry the full current used by the model. The diode itself and the solder pad are also larger than those of the LED resistors, so accidental unsoldering is unlikely.
But that diode is on the top of the decoder board, so that presents a problem of running a wire to the keep-alive installed on the underside. There isn't much clearance between the sides of the decoder and the metal shelf. A wire could be routed around the front or back of the decoder (as there is clearance), or file small notch (similar to the existing notches the sides of the decoder for the truck pickup wires) to run the keep-alive wire in the new notch. I used a black rectangle in the picture to indicate a possible area for notching the board, but I don't know how many internal traces are hidden there. I recommend using a triangular or round jeweler's file to make a notch much shallower than the existing notches. Just file it until you hit the external copper ground plane on the board's surface. That should not damage any internal traces. But because the notch will be shallow, a thin wire should be used. Enameled magnet wire would be a good choice due to its thinness.
An easier and safer alternative would be to connect the keep-alive to the points colored red, and marked "B". Those are all accessible on the bottom of the decoder. Keep-alive connected there will provide power to all of the decoder circuits except the motor and LED. That should prevent decoder from reinitializing on power drops while hopefully the flywheels will get the model moving past the brief dead spots.
I have circled the recommended location for soldering the keep-alive wires (for both "A" and "B" options, and the common ground).
Since most of the connection points are on MLCCs (multi-layer ceramic capacitors), I will mention another warning. MLCCs are made up internally of a sandwich of hundreds of very thin layers of ceramic and metal, and they can be affected by a heat shock (the sudden expansion of the ceramic can create tiny fractures) when using a soldering iron. When soldering wires to their metal end caps, try to be quick.
As far as keep-alives go, most have the recommended resistor/diode circuit built-in. To make your own, use the diagram shown in the LokSound decoder manual (6.12.2.PowerPack section of the manual).
Another unrelated item worth mentioning is an LED on the top of the decoder in the front of the loco. It is controlled by function F6. Not sure what was its intended purpose since I don't believe any of the S2s have any lights up front other than the headlight, but if someone wants to utilize that function (rotary beacon maybe?), it is there.