Reference
Limits
What a principle may hold and do.
The same limits apply in the agent's run_tests, in the browser editor, on the registry and on everyone's machine.
When a detector runs#
| Limit | Value | What happens past it |
|---|---|---|
| Time for one event | 100 ms | The detector is stopped and reported once per session. The agent carries on. |
| Memory | 32 MB | The same. |
| Findings for one event | 20 | The rest are dropped. |
match and file of a finding | 300 characters | The detail is left out, the finding still fires. |
A file read with node:fs | 512 KB, text only | It looks like a file that does not exist. |
| Network, processes, writing files | None | There is no API for them. |
What a principle may hold#
| Limit | Value |
|---|---|
| Name | 3 to 64 characters of a-z, 0-9 and dashes |
| Files of its own | 60 |
| Size of its own files | 512 KB |
| Files of its packages | 500 |
| Size of its packages | 2 MB |
| The built detector with its packages | 1 MB |
| Title | The first line, a # heading |
| Summary | One paragraph of at most 200 characters |
| Advice | At most 20,000 characters for the whole principle.md |
| Tags | Up to 5, each at most 30 characters |
Tests#
| Limit | Value |
|---|---|
| Test files | At least one *.test.ts outside fixtures |
| Tests that make the detector fire | At least one |
| Tests that see it stay quiet | At least one |
Calls to detect in one run | 300 |
Accounts#
| Limit | Value |
|---|---|
| Uploads, from an agent or the editor | 50 per hour. run_tests and Run tests are not counted. |
| Connected GitHub repositories | 10 |
| Principles in one repository | 300 |
The agent's probe, on your machine | Fails a detector that throws on a file, or that fires on more than 50% of 10 or more files it handles. |