factor_agent.gate.Gate.check#

Gate.check(candidate, zoo)[source]#

Return Passed with the candidate’s graph, or Rejected with why not.

zoo holds the factors the candidate must be original against. A writing error carries the hints of the vocabulary’s fixes it matches, a broken stage rule its own (Rejected.hints).

Raises:
RuntimeError

If the sandbox cannot be started or replies with something that is not its protocol.