GR-API
12 rules. Part I of the specification.
- API-1Every JSON endpoint applies the same body gate, and reports its refusals
- API-2The turn endpoint and the launch endpoint judge inputs identically
- API-3A session with no workflow is a conflict, not a server error
- API-4Node configuration could be checked ahead of save
- API-5The paginated envelope is a third envelope, with four fixed pagination keys
- API-6Paging is clamped silently, and the clamped values are what is reported
- API-7A generic failure is a last resort, never a design
- API-8Every refusal carries a stable machine-readable code
- API-9A discovery document says where each route is
- API-10An asynchronous launch answers 202 with the run it started
- API-11A launch carrying an Idempotency-Key starts at most one run
- API-12A workflow's runs are listed newest first, in the paginated envelope