attempt 1
  plan  enroll(course='CS340', student='maya', term='spring')
  plan  enroll(course='STAT210', student='maya', term='spring')
  plan  enroll(course='MATH220', student='maya', term='spring')
  plan  enroll(course='PHIL101', student='maya', term='spring')
  pyrel check: exit 1
    states 1-4  prerequisites_first  violated  {"$course": "CS340", "$needs": "MATH220", "$student": "maya", "$term": "spring"}
      the rule in PyRel: m.where(enrolls(step, student, course, term), prerequisite_chain(step, course, needs)).require(passed(step, student, needs))
    states 1-4  prerequisites_first  violated  {"$course": "CS340", "$needs": "STAT210", "$student": "maya", "$term": "spring"}
attempt 2
  plan  enroll(course='CS230', student='maya', term='spring')
  plan  enroll(course='PHIL101', student='maya', term='spring')
  plan  enroll(course='STAT210', student='maya', term='spring')
  plan  record_grade(grade='C', course='STAT210', student='maya')
  plan  enroll(course='CS340', student='maya', term='spring')
  pyrel check: exit 1
    states 1-3  no_retake  violated  [["maya", "CS230"]]
      the rule in PyRel: m.where(enrolls(step, student, course, String.ref())).require(not_(passed(step, student, course)))
    states 4-5  no_retake  violated  [["maya", "CS230"], ["maya", "STAT210"]]
    state 5  prerequisites_first  violated  {"$course": "CS340", "$needs": "MATH220", "$student": "maya", "$term": "spring"}
attempt 3
  the bot says: Maya cannot enroll in CS250 because it is not offered in spring.
  plan  enroll(course='CS230', student='maya', term='spring')
  plan  enroll(course='STAT210', student='maya', term='spring')
  plan  enroll(course='PHIL101', student='maya', term='spring')
  plan  record_grade(grade='C', course='STAT210', student='maya')
  plan  enroll(course='CS340', student='maya', term='spring')
  pyrel check: exit 1
    states 1-3  no_retake  violated  [["maya", "CS230"]]
    states 4-5  no_retake  violated  [["maya", "CS230"], ["maya", "STAT210"]]
    state 5  prerequisites_first  violated  {"$course": "CS340", "$needs": "MATH220", "$student": "maya", "$term": "spring"}
no plan was accepted in 3 attempts
