Skip to content

An open-source, faster Devin alternative

TypeScript

docs: shift unit from 1 GB to 4 GB per interval (= 1 GB-hour)

Igor Zalutski8c67c01d388a
diff --git a/docs/api-reference/capacity/create-reservations.mdx b/docs/api-reference/capacity/create-reservations.mdx
index 984855a7..046a0204 100644
--- a/docs/api-reference/capacity/create-reservations.mdx
+++ b/docs/api-reference/capacity/create-reservations.mdx
@@ -33,7 +33,8 @@ or transfer.
</ParamField>
<ParamField body="intervals[].capacityGb" type="integer" required>
- Positive integer. GB to add to this interval's reserved capacity.
+ Positive multiple of 4 (the grain is 1 GB-hour = 4 GB × 15 min). Other
+ values are rejected.
</ParamField>
<ResponseExample>
@@ -63,7 +64,7 @@ or transfer.
{
"startsAt": "2026-04-29T02:00:00Z",
"requestedGb": 80,
- "reservableGb": 30,
+ "reservableGb": 28,
"reason": "insufficient_capacity"
}
]
diff --git a/docs/reserved-capacity/calendar.mdx b/docs/reserved-capacity/calendar.mdx
index bd9513b6..96a7362f 100644
--- a/docs/reserved-capacity/calendar.mdx
+++ b/docs/reserved-capacity/calendar.mdx
@@ -102,8 +102,8 @@ POST /api/capacity/reservations capacityGb: 80 → applied
### Plan then write, lost race
```text
-GET /api/capacity/calendar → reservableGb: 50
-POST /api/capacity/reservations capacityGb: 80 → rejected with reservableGb: 30
+GET /api/capacity/calendar → reservableGb: 48
+POST /api/capacity/reservations capacityGb: 80 → rejected with reservableGb: 28
```
On rejection, read the calendar again and either:
diff --git a/docs/reserved-capacity/concepts.mdx b/docs/reserved-capacity/concepts.mdx
index 652a92b3..ef717d97 100644
--- a/docs/reserved-capacity/concepts.mdx
+++ b/docs/reserved-capacity/concepts.mdx
@@ -48,7 +48,9 @@ entries, not a single range:
A commitment event. Each `POST /api/capacity/reservations` creates one
reservation: a server-generated UUID, a `createdAt` timestamp, and one or
-more `(interval, capacityGb)` line items.
+more `(interval, capacityGb)` line items. `capacityGb` must be a positive
+multiple of 4 (= 1 GB-hour over the 15-minute interval); single-GB
+reservations aren't accepted.
```json
{
diff --git a/docs/reserved-capacity/overview.mdx b/docs/reserved-capacity/overview.mdx
index fbf1a2db..b66e195b 100644
--- a/docs/reserved-capacity/overview.mdx
+++ b/docs/reserved-capacity/overview.mdx
@@ -25,16 +25,18 @@ risk reserved capacity exists to remove.
The hedge is to **book conservatively**: reserve only what you're confident
you'll run, and let on-demand absorb everything else.
-## The unit is 1 GB for 15 UTC minutes
+## The unit is 1 GB-hour
Reservations are made against 15-minute UTC intervals on the quarter-hour
-grid: `:00`, `:15`, `:30`, `:45`. Within each interval, you commit an
-integer number of GB. A two-hour reservation of 16 GB is 8 intervals × 16 GB.
-
-The 15-minute grain is deliberate. Reserve the slots you'll actually run
-in — you aren't pushed into a long contiguous block and asked to pay for
-the troughs in between. A nightly batch reserves the eight intervals it
-occupies; a weekday workload reserves working hours and skips evenings
+grid: `:00`, `:15`, `:30`, `:45`. Within each interval, the minimum
+commitment is **4 GB for 15 minutes — that is, 1 GB-hour.** All
+reservations must be multiples of 4 GB per interval; anything smaller
+isn't a meaningful commitment unit and the API rejects it.
+
+The 15-minute time grain is deliberate. Reserve the slots you'll actually
+run in — you aren't pushed into a long contiguous block and asked to pay
+for the troughs in between. A nightly batch reserves the eight intervals
+it occupies; a weekday workload reserves working hours and skips evenings
and weekends. The reserved rate applies whatever shape your demand takes.
You don't book individual blocks or get block IDs back. You just tell the
@@ -90,7 +92,7 @@ that interval falls back to on-demand rates.
| Availability | Subject to platform headroom | Guaranteed for the interval you booked |
| Best for | Unpredictable or bursty workloads | Nightly batch jobs, scheduled runs, known traffic patterns |
-If you already know you'll run 50 GB of agents at 3am every night, reserve
+If you already know you'll run 48 GB of agents at 3am every night, reserve
the day before, get the lower rate, get the guarantee. If your workload is
"whatever users ask for," stay on-demand. And because the granularity is
15 minutes, you can be precise — reserve the peaks, leave the troughs to
diff --git a/docs/reserved-capacity/reserving.mdx b/docs/reserved-capacity/reserving.mdx
index b54f4c9e..529c9aea 100644
--- a/docs/reserved-capacity/reserving.mdx
+++ b/docs/reserved-capacity/reserving.mdx
@@ -55,7 +55,7 @@ Response (success):
| --- | --- |
| `startsAt` and `endsAt` UTC and 15-minute aligned | Reject misaligned. |
| `endsAt == startsAt + 15 minutes` | Reject longer spans; enumerate intervals. |
-| `capacityGb` positive integer | Reject zero, negative, or fractional. |
+| `capacityGb` is a positive multiple of 4 | Reject anything else. The grain is 1 GB-hour (= 4 GB × 15 min). |
| `startsAt >= earliestReservableStart` | Reject intervals too soon. |
| Requested capacity fits current `reservableGb` | Reject instead of overbooking. |
| `Idempotency-Key` stable on retry | Replaying same key + body returns original result. |
@@ -69,7 +69,7 @@ Response (success):
{
"startsAt": "2026-04-29T02:00:00Z",
"requestedGb": 80,
- "reservableGb": 30,
+ "reservableGb": 28,
"reason": "insufficient_capacity"
}
]
@@ -85,6 +85,7 @@ with adjusted numbers in a single round-trip.
| `reservation_limit_exceeded` | Would exceed your org's `max_memory_gb` for the interval. |
| `too_soon` | `startsAt` is before `earliestReservableStart`. |
| `misaligned` | `startsAt`/`endsAt` not on the 15-minute grid. |
+| `capacity_grain` | `capacityGb` is not a positive multiple of 4. |
## Idempotency