Dome light...

Per your first post, I still suspect there is a delay timer in the mix. I've seen those timers and aftermarket burglar alarm systems make the dome lamp do strange things.
A couple of places to inspect wiring connections are on top of the lamp fixture and inside the trunk near the left wheel house. Trunk lamps are wired into the same circuit