Formation and/or maintenance of a lineage boundary between dorsal and ventral compartments that cells cannot cross, thus separating the populations of cells in each compartment.
dorsoventral lineage restriction, imaginal disc