Repository navigation
Added
- Journeys: your users' real paths, saved in your repo. A journey file
(prescale/journeys/<name>.yaml) lists the requests a user's path makes (log in, add to
cart, place an order), carrying tokens and IDs from one step to the next.
prescale journeyslists them;prescale journeys verify <url>replays each once, as one
user, and names the step that no longer answers as expected (the journey is stale, or the
app is broken). It exits non-zero, so it works as a CI check.- Secrets come from environment variables (
{{env.NAME}}); a literal password, token or
API key in a journey file is refused. - Journeys that change data only run against local hosts or hosts you allow with
--allow-writes; journeys that send messages or delete data are never replayed. - The example shop has a JSON API and three example journeys in
examples/journeys/
(browse, checkout behind a 25-connection pool, and a flash sale on one product).
- Secrets come from environment variables (
prescale runreplays journeys at load. Whenprescale/journeys/has journeys, virtual
users walk whole journeys (with each step's think time and their own cookies) instead of hitting
single URLs. Each journey is ramped on its own; the report names the journey and the step that
break first, with per-step timings, and saved runs carry ajourneysfield (plus
verdict.culprit_journey). Stale journeys are skipped with the reason.--journeypicks
journeys;--urlstests URLs as before.- Journeys together, and interference. After ramping each journey alone,
prescale run
ramps them all together, the users split between journeys byweight, and flags a journey that
breaks with no more of its own users than it held alone: it competes with the others for
something they share (a database pool, CPU, a cache). Saved runs carry acombinedfield.
--no-combinedskips it. - Journeys everywhere. The
--htmlreport shows each journey, the combined run and
--expect; the MCP tools' run summaries list each journey's verdict; andprescale compare
diffs each journey by name (terminal,--json,--markdown). A drop past the threshold in any
journey counts as a regression for--fail-on-regression, even when it isn't the weakest journey. - Journeys in CI.
prescale ciand the GitHub Action replay the checkout's journeys when
prescale/journeys/exists. The PR comment shows each journey's verdict, interference, and
journeys that no longer replay (listed always;--stale fail/stale: failfails the check).
A journey that gets no answer, or a 5xx with a single user, always fails the check (that's the
app, not a stale file). Response bodies never reach the PR comment or uploads; locally,
journeys verifyshows them with every secret the journeys read masked.
New Action inputs:staleandallow-writes(the action only passes them when set, so a
pinned olderprescale-versionkeeps working). A journey run is only ever compared with a
journey baseline (and a URL run with a URL baseline); if the dashboard can't say it compared
like with like, the PR comment shows no change instead of a possibly misleading one. - How many at once, and one-at-a-time bottlenecks. For the journey step that breaks first,
investigatenow counts how many requests it serves at once (its most completions per second
times its 1-user time, once those completions stop rising while users keep rising) and says so:
"~25 requests served at once" is often the pool or worker count you're hitting. About one at a
time gets a new class,serialized: a lock on one shared row (one product's stock in a flash
sale), a global lock, or a single worker, with fixes for each. The example shop has a
flash-salejourney that PreScale names this way. - A fix prompt for your coding agent. Every diagnosis now comes with
fix_prompt: plain
text that says where it broke, at how many users, the likely cause, the evidence and the
fixes, and asks the agent for the smallest fix and to re-run PreScale to confirm. It's built
from the run itself, with no model, and never includes response bodies, secrets or
credentials from the URL.investigateprints it,--jsonand saved runs carry it, the
HTML report (show --html) has a Diagnosis section with a Copy button, MCP'sinvestigate
returns it, and the PR comment folds it under the diagnosis. - Journey runs in CI are diagnosed.
prescale ciand the GitHub Action now probe the
journey step that broke first (as URL runs already were), so the PR comment says why it broke
and how to fix it, not just where. investigatediagnoses the journey step that breaks first. With journeys in
prescale/journeys/,prescale investigateramps them likerun, then probes the step that
broke first with the journey's own state (its 1-user latency comes from replaying the journey
from the start), compares it with the journey's other steps, and names the bottleneck and the
fix:culprit checkout, step 3 place order · connection_pool (high confidence). If the
journeys ramped together starved that journey, the evidence says so; if every journey held alone
but they broke together, the step that broke together is diagnosed. A step that answers an
unexpected 4xx under load gets a new class,unexpected_answer(users conflicting over shared
data, or sessions failing under load). Theinvestigationfield gainsculprit_journey,
culprit_stepandinterference.--urlsinvestigates URLs as before.--expect Nonrunsays whether you'd hold N users at peak. In a journey run, N is split
across journeys by weight: each must hold its share alone, and all together must hold N.
Changed
- With journey files,
run,investigateandcitest journeys. Ifprescale/journeys/
exists in the directory you run from, these commands replay its journeys instead of URLs. Add
--urlsto test URLs as before. Without that directory nothing changes.
Fixed
prescale mcpworks on a fresh install again.pip install 'prescale[mcp]'picked up the new
mcp 2.x, which renamed the server class PreScale uses, so the MCP server wouldn't start and told
you to install the extra you already had. The extra now installs mcp 1.x, and if an unsupported
mcp is already installed,prescale mcpsays so and shows the command that fixes it.
What's Changed
- chore: jeebzstack ship config (checks, proof, risky paths, deploy, release) by @pyjeebz in #5
- fix(mcp): pin mcp below 2 and say when the installed mcp is unsupported by @pyjeebz in #6
- feat(journeys): journey file format and prescale journeys verify by @pyjeebz in #7
- feat(journeys): prescale run replays journeys at load by @pyjeebz in #8
- feat(journeys): ramp journeys together to catch interference, and --expect by @pyjeebz in #9
- feat(journeys): journeys in the HTML report, compare and MCP summaries by @pyjeebz in #10
- feat(journeys): prescale ci and the Action replay journeys, with --stale by @pyjeebz in #11
- feat(journeys): investigate diagnoses the journey step that breaks first by @pyjeebz in #12
- feat(journeys): the diagnosis in CI and the HTML report, plus a fix prompt for coding agents by @pyjeebz in #13
- feat(journeys): count how many requests a step serves at once, and name one-at-a-time bottlenecks by @pyjeebz in #14
- chore: release 1.2.0 by @pyjeebz in #15
Full Changelog: v1.1.3...v1.2.0