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