What the job includes
Moisture first
A careful contractor traces every exhaust duct, checks the hatch, light housings and plumbing vents for warm air leaks, reads the boards with a moisture meter and looks for flashing leaks from inside. Those findings decide whether the fix is ductwork, air sealing, venting or a roofer.
Containment
The access is sealed and a HEPA air scrubber keeps the attic under negative pressure, so dust and loose fibers stay up there rather than settling in bedrooms.
Cleaning wood
Mold on sound sheathing and rafters can almost always be cleaned rather than replaced. The crew HEPA-vacuums, scrubs or sands the surfaces, then vacuums again. Boards that are delaminated or soft get flagged for the roofer.
Insulation
Wet, matted or debris-filled insulation is bagged and taken out. EPA notes that absorbent materials "may have to be thrown away if they become moldy" (EPA, mold cleanup in your home).
Correcting the cause
Ducts are run to a proper exterior cap, ceiling gaps are sealed and blocked soffit vents are cleared. Some of that work may belong to another trade, and the written scope should say who does what.