The creation and update of pre-comp files always starts with the scene compositions, working its way down to the render layers and finally the render pass compositions.
The scene/layer/pass compositions are named accordingly: <scene anchor> <camera anchor> <layer anchor> <pass anchor>.
All nodes, including output nodes, in each type of composition can be renamed, since node anchors are used to keep track of the topology during import.