A homeostatic process involved in the maintenance of a compartment boundary. A compartment boundary is a lineage restriction boundary within a developing tissue which does not correspond to some morphological barrier.