A common argument for putting a language model in charge of agent permissions is that fixed rules cannot keep up with a large company's catalogue of tools. We loaded the APIs of eleven vendors at once, about 9,400 operations, and decided every one of them. Each decision took under 2 ms; the forms came from the vendors' own documents, no rule was written by hand for the catalogue, and a role adds about ten rules. The test also showed where our own engine was heavy, and we fixed it: the memory needed fell from 9.5 GB to 0.7 GB.
## Why it matters
Large platforms argue that fixed rules do not scale across a big company's catalogue of tools, and that a language model must judge intent instead. If that were true, the deterministic gate would only work for small setups. So we measured it on the largest catalogue we could build.
## What we did
We took the API documents of eleven vendors, GitHub, Stripe, Okta, Zendesk, Jira, Vercel, Slack, Supabase, Discord, Auth0 and Cloudflare, about 9,400 operations, and compiled each into the gate's rules: every operation gets the checks its own document states (required fields, types, allowed values, lengths). Dangerous operations, such as money going out, deletions and account settings, are closed behind a short list a person signs, about 75 lines for everything we hold. Then we sent one request to every operation, in one process, and timed every decision.
## What we found
Every decision took about 1.6 to 1.9 ms in the middle of the range, and 11 ms for the slowest one in a hundred. Nothing in the catalogue was written by hand: the checks come from the vendors' documents. What a role adds is small, between 9 and 23 rules for the four ready-made sets we have built (a support agent on Stripe, an Italian back office, a staff assistant, a sales assistant).
The test also showed a weak spot of ours. The checks taken from the documents were written as one long expression per operation, up to 240 KB, and the first use of each one cost up to 15 seconds and a lot of memory: 9.5 GB once every operation had been used. We now run those checks directly in the engine, with exactly the same answers: 149,139 generated requests gave the same result both ways. Memory fell to 0.7 GB and the slowest first call to 0.77 seconds.
## Technical detail
- 11 vendors as published on 2026-12-02, 9,432 operations, one request per route, each decided twice (first use, then again).
- Old form: 9.5 GB after every operation was used once, slowest first use 14.8 s. New form: 0.73 GB, 0.77 s. After first use both answer in about 1.6 to 1.9 ms (99th percentile about 10 to 11 ms), with identical outcomes, 3,955 pass and 5,475 do not.
- Equivalence: 3,535 operations with a body, 149,139 bodies (valid ones and variants with a wrong type, an empty text, a number too large, a missing or an extra field), 0 differences.
- In production as gate 2.18.0.
```chart
{"title": "Memory once every operation was used (GB)", "series": ["memory"], "unit": "", "max": 10, "rows": [["Long expressions", 9.5], ["Checked in the engine", 0.7]]}
```
This update is not available.