The NYT had an excellent piece describing the system of factory inspections that Walmart and other major retailers use to ensure both the quality of products produced overseas and safety and fairness of working condition. The piece explained how the inspection system can be gamed so that factories can continue violating company rules without being detected.