Turn on a failure scenario, run your app (or its tests) against Jitterbox, then open Resilience in the project. Jitterbox grades how your client behaved when requests failed, and links every verdict to the requests behind it.
Operations
An operation is one logical call plus its retries. Requests are grouped:
- By
X-Jitterbox-Operation, if the client sends it. This is exact, so use it in test suites. - By fingerprint otherwise: the same method, path, query, body and
User-Agent, arriving within 60 s of a failed attempt. A success closes the operation. Requests carrying differentIdempotency-Keys are never merged; a retry that drops its key still joins, and is flagged.
Jitterbox doesn't store client IPs, so two clients sending byte-identical requests at the same moment could be merged. The explicit header avoids that.
Checks
| Check | Passes when | Fails / warns when |
|---|---|---|
| Retries transient failures | a 408, 429, 5xx, timeout or dropped stream is followed by a retry | the operation stopped right after one |
| Respects Retry-After | every retry waited at least the response's Retry-After / retry-after-ms (100 ms tolerance) |
a retry came sooner |
| Backs off | waits grow, or follow the server's Retry-After |
fail: a retry within 200 ms of the failure; warn: flat waits with no Retry-After |
| Gives up eventually | at most 10 attempts | more than 10 |
| Doesn't retry permanent errors | the client stopped after 400/401/403/404/405/410/413/422 | it retried one |
| Keeps the idempotency key | retried POST/PATCH carried the same Idempotency-Key throughout |
warn: no key at all; fail: dropped or changed |
| Times out instead of hanging | on a ≥ 5 s timeout fault, the client disconnected or retried before the response | it waited the whole time |
Gaps are measured at Jitterbox, so they include the network round-trip: an "instant" retry over the internet arrives tens of milliseconds after the failed response, which is why the hammering threshold is 200 ms (real backoff starts well above it; the SDKs wait about 0.5–1 s).
A check that nothing exercised shows "not tested". The report covers a window (15m, 1h, 24h or 7d; up to the latest 5,000 requests) and can be narrowed to one endpoint or one scenario.
Verified with real clients
e2e/llm/resilience.mjs runs the official OpenAI and Anthropic SDKs (default settings) and a naive fetch
client against "fail twice, then succeed" with Retry-After: 1:
| OpenAI SDK | Anthropic SDK | Naive client | |
|---|---|---|---|
| Retries transient failures | ✓ | ✓ | ✓ |
| Respects Retry-After | ✓ (waits ~1.0–1.2 s) | ✓ | ✗ retried after ~15 ms locally, ~80–90 ms in production |
| Backs off | ✓ | ✓ | ✗ |
| Gives up eventually | ✓ (3 attempts) | ✓ | ✓ |
| Keeps the idempotency key | ! no key on chat calls | ! | ! |
Run it with cd e2e/llm && pnpm install && JITTERBOX_URL=http://localhost:8080 node resilience.mjs.
API
GET /api/projects/{id}/resilience?window=15m|1h|24h|7d (or since/until as ISO-8601, at most 7 days apart)
&endpointId=&scenarioId= returns:
{
since, until, analyzedRequests, truncated,
operations, retriedOperations, succeeded, gaveUp,
checks: { id, title, description, verdict: "PASS"|"WARN"|"FAIL"|"NA", pass, warn, fail,
examples: { operationId, executionIds, detail }[] }[],
operationList: { id, groupedBy: "OPERATION_HEADER"|"FINGERPRINT", method, path, endpointId,
outcome: "SUCCEEDED"|"GAVE_UP"|"IN_PROGRESS",
attempts: { executionId, startedAt, status, faults, gapMs, retryAfterMs, disconnected }[],
checks: { id, verdict, detail }[] }[] // newest first, at most 200
}
It's computed on demand from recorded requests, with no extra storage. gapMs is the time between the previous
response ending and this attempt starting.