An autonomous system for identifying and governing a cell's state in yeast