Rules
What every call holds to.
- 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.
- Tolerances scale with the model. Thresholds follow the size of the input, and an approximation takes its tolerance as an explicit argument.
- No crashes, coded results. Every call validates its input and returns a result or a coded error with what to do about it.
- No side effects. Calls never change the host’s document; the host decides what to commit.
- Typed calls for agents. Agents get typed calls with schemas, never a way to run code.
- One source. Schemas, these pages and the tests come from the same description of each call.