Planning autonomous systems within a chemical machine