anterior/posterior lineage restriction, imaginal disc
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.
GO:0048099 · biological process