From request to data
There are two front doors and one set of checks. An agent or script calls the HTTP surface with a bearer token; an app in the browser calls Convex functions directly with its session. Both end at the same chokepoints, which check the caller, refuse disabled capabilities, enforce the permission and write an audit row before any data changes.
The path of one write: 11 nodes and 12 connections at L2 Containers.
- Agent or script (actor)
- App in a browser (actor)
- Resolve the bearer (service)
- Rate limit (service)
- API access (service)
- Idempotency (service)
- Platform capability (service)
- App operation (service)
- Permission check (service)
- Write and audit (service)
- Convex database (store)
- Agent or script connects to Resolve the bearer (sync, HTTPS)
- Resolve the bearer connects to Rate limit (sync)
- Rate limit connects to API access (sync)
- API access connects to Idempotency (sync, Writes only)
- Idempotency connects to Platform capability (sync, Platform domain)
- Idempotency connects to App operation (sync, App operation)
- App in a browser connects to Platform capability (sync, Convex function)
- App in a browser connects to App operation (sync, Convex function)
- Platform capability connects to Permission check (sync)
- App operation connects to Permission check (sync)
- Permission check connects to Write and audit (sync, Allowed)
- Write and audit connects to Convex database (sync)
What the order guarantees
- Nothing reaches data unchecked. The database sits behind the two chokepoints. App code receives a
PlatformContextthat holds only the affordances the operation declared, never the raw database handle. - A token never exceeds its owner. A personal access token or OAuth token carries a scope that can only narrow its owner's permissions, and a ban takes effect on the next call.
- Operators can stop one capability. The kill switch refuses a single capability on every surface at once, without a deploy.
- Refusals leave a trace. A denied write commits its audit row and returns a typed error instead of throwing, so the denial is not rolled back with the failed write.
Related: Permissions, entitlements, and flags, Personal access tokens.