Rules

What every call holds to.

  1. Exact where it matters. Geometry is decided in double precision, and every yes-or-no question (inside or outside, left or right, crossing or not) is answered exactly.
  2. Tolerances scale with the model. Thresholds follow the size of the input, and an approximation takes its tolerance as an explicit argument.
  3. No crashes, coded results. Every call validates its input and returns a result or a coded error with what to do about it.
  4. No side effects. Calls never change the host’s document; the host decides what to commit.
  5. Typed calls for agents. Agents get typed calls with schemas, never a way to run code.
  6. One source. Schemas, these pages and the tests come from the same description of each call.