attempt 1
  plan  enroll(student='maya', course='CS340', term='spring')
  plan  record_grade(student='maya', course='CS340', grade='A')
  pyrel check: exit 1
    states 1-2  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-2  prerequisites_first  violated  {"$course": "CS340", "$needs": "STAT210", "$student": "maya", "$term": "spring"}
    state 2  no_retake  violated  [["maya", "CS340"]]
      the rule in PyRel: m.where(enrolls(step, student, course, String.ref())).require(not_(passed(step, student, course)))
attempt 2
  plan  enroll(student='maya', course='CS340', term='spring')
  pyrel check: exit 1
    state 1  prerequisites_first  violated  {"$course": "CS340", "$needs": "MATH220", "$student": "maya", "$term": "spring"}
    state 1  prerequisites_first  violated  {"$course": "CS340", "$needs": "STAT210", "$student": "maya", "$term": "spring"}
attempt 3
  plan  enroll(student='maya', course='CS340', term='spring')
  pyrel check: exit 1
    state 1  prerequisites_first  violated  {"$course": "CS340", "$needs": "MATH220", "$student": "maya", "$term": "spring"}
    state 1  prerequisites_first  violated  {"$course": "CS340", "$needs": "STAT210", "$student": "maya", "$term": "spring"}
no plan was accepted in 3 attempts
