1. Sounds like you are dealing with an enclosed/ conditioned attic.
2. Sounds like you are asking about """draft stops"""
Draftstopping materials.
Materials utilized for draftstopping of attic spaces shall comply with Section 718.3.1.
718.4.1.1 Openings.
Openings in the partitions shall be protected by self-closing doors with automatic latches constructed as required for the partitions.
718.4.2 Groups R-1 and R-2.
Draftstopping shall be provided in attics, mansards, overhangs or other concealed roof spaces of Group R-2 buildings with three or more dwelling units and in all Group R-1 buildings. Draftstopping shall be installed above, and in line with, sleeping unit and dwelling unit separation walls that do not extend to the underside of the roof sheathing above.
Exceptions:
1. Where corridor walls provide a sleeping unit or dwelling unit separation, draftstopping shall only be required above one of the corridor walls.
2. Draftstopping is not required in buildings equipped throughout with an automatic sprinkler system in accordance with Section 903.3.1.1.
3. In occupancies in Group R-2 that do not exceed four stories above grade plane, the attic space shall be subdivided by draftstops into areas not exceeding 3,000 square feet (279 m2) or above every two dwelling units, whichever is smaller.
4. Draftstopping is not required in buildings equipped throughout with an automatic sprinkler system in accordance with Section 903.3.1.2, provided that automatic sprinklers are also installed in the combustible concealed space where the draftstopping is being omitted.