I inherited an installation of several wired AC smoke detectors. They're three-wire units (AC hot/neutral, plus an interconnect wire). At some point a previous installer removed one of the detectors, kept the wires in the ceiling box joined to prevent interruption to the other detectors, and replaced the unit with a 2-wire 12 VDC smoke detector monitored by an alarm panel:
The wires inside the ceiling box are live. The 12V wire goes around the outside of the box directly into the attic -- the DC and AC lines aren't technically in the same box. However they are in front of each other, and I'm not sure if they're too close.
Per the NEC, is there any violation here? The safest thing I can think to do is put a round cover over the box, move the 12 VDC wire a foot or two over, and install the detector in its own separate spot.