prescale run and prescale investigate saves a versioned JSON file to .prescale/runs/<id>.json. The prescale run --json flag emits the same shape to stdout, so the file you get on disk and the JSON you pipe to another tool are always identical. Use prescale schema to print the full machine-readable JSON Schema at any time.
Top-level fields
The root object has the following properties. Fields marked required must be present on every result; the remaining fields are conditionally present based on which command was run and which options were used.Always
1. Additive fields may appear in future releases without bumping this version, so your consumer should ignore unknown properties.The filename stem of the saved result (e.g.
20260628T173648Z). IDs sort chronologically so ls .prescale/runs/ gives you results in time order.A human-readable warning emitted during the run (e.g. robots.txt signal, rate-cap hit), or
null if everything was clean.The exact configuration used for this run. See config fields below.
The top-level capacity verdict. See verdict fields below.
Per-level load metrics. See stages below.
Git context captured at run time. Present only when the run was executed inside a git repository.
Present with
investigation: plain text for a coding agent (Claude Code, Cursor) with where it broke, at how many users, the diagnosis, the evidence and the fixes. Built from the result itself, with no model; never includes response bodies, secrets or credentials from the URL.Root-cause diagnosis. Present only when
prescale investigate ran. See investigation fields below.config fields
Theconfig object records every tunable that governed the run. You can reproduce a run exactly by replaying these values as CLI flags.
p95 latency threshold in seconds. A stage where p95 exceeds this is considered failed.
Error-rate threshold (0–1). A stage where the error rate exceeds this is considered failed.
true when the run tested a local build that PreScale started with --app (replica mode). Absent otherwise. The command itself is never recorded.verdict fields
Theverdict object is the single most important part of the result — it summarises what PreScale found.
The highest concurrent-user level at which the app stayed within both the latency wall and error threshold. This is the headline capacity number.
The user level where failure first appeared, or
null if the app survived all tested levels.Whether the first failure was triggered by the error-rate threshold (
"errors") or the latency wall ("latency"), or null if there was no failure.The route path that degraded first, or
null if all routes degraded together or there was no failure.A short plain-English description of the likely failure cause, or
null if no failure was observed.true if throughput plateaued while virtual users kept rising — a sign the server hit a concurrency ceiling.The user level where saturation was first detected, or
null if saturation was not observed.true if the failure onset is close to max_tested, meaning the true ceiling may be higher than tested. Re-run with a larger -u value to be sure.stages
Thestages array contains one object per tested load level, in ascending order of virtual users.
Number of latency samples recorded (may differ from
total when sampling is applied at very high RPS).A map of route path → per-route stats. Each value has the same shape:
total, errors, error_rate, rps, p50_ms, p95_ms, p99_ms.investigation fields
Theinvestigation object is added to the result when you run prescale investigate. It contains the root-cause diagnosis for the culprit route.
Machine-readable bottleneck classification (e.g.
"connection_pool", "concurrency_ceiling"). See Bottleneck Types for the full list.How confident the classifier is in its diagnosis.
"high" means the signal was unambiguous; "low" means you should re-run with --repeat 3 for more data.The specific signals that led to this classification — baseline vs loaded latency, static-route probe outcome, error kinds, server header, etc.
Ordered list of concrete fix recommendations, enriched with hints based on detected stack (e.g. gunicorn, nginx, pgbouncer).
Journey runs only: set when the journeys ramped together starved the culprit journey. Same shape as
combined.interference.Key-value map of detected infrastructure signals — typically
server (e.g. "gunicorn/21.2.0") and cdn (e.g. "Cloudflare"). Empty if nothing was detected.