The stage
rehearse stage serves the stage and prints its address.
$ rehearse stageThe stage is at http://127.0.0.1:4400/Stop it with Ctrl-C, or kill 453619.rehearse open prints the stage’s address for one scenario, and starts the stage when none is running.
$ rehearse open 'packages/api/items.hurl#The count is right'http://127.0.0.1:4400/?s=packages%2Fapi%2Fitems.hurl%23The%20count%20is%20rightThe stage started for it; stop it with kill 454227.The stage is one page, served by the CLI on 127.0.0.1, where a person tries any scenario: on the base, on the head, or side by side. An agent does the same through commands that print JSON; the stage is for the person who reviews the change.
The frame
Section titled “The frame”The frame is the same for every scenario:
| Part | What it does |
|---|---|
| The top | The base (main@c68f00d9) and the head (its commit, and + changes when it has uncommitted ones), and the line from the latest comparison. With no comparison of every scenario yet, it counts what was compared: “3 of 8 compared · …”. With none at all, “Not compared yet”. |
| The list | Every scenario, grouped by area, with its kind and a dot for its verdict. Find filters by name, id, kind and area. |
| The heading | The scenario’s name, its kind and file, its verdict, and why: the announcement’s line, “Its own definition was edited”, or “It fails on the base too: not this change’s doing”. |
| World and As | Run it from another world, or as another person. “(its own)” keeps the scenario’s own. |
| Base, Head, Diff | What the canvas shows: one side, or both against each other. Diff is chosen when the scenario has been compared. |
| Run, Compare | Run on the base or Run on the head runs it on that side; in Diff, Compare runs both and gives a verdict. |
| The canvas | The kind’s own view (below). |
| Works, Doesn’t | Your judgement, with a note, kept with the scenario. The last five tries show below it. |
The stage shows each scenario’s verdict from the latest comparison of every scenario (.rehearse/compare/latest.json),
so run rehearse compare first to see every verdict at once. A comparison of a few scenarios (rehearse compare <id>,
--affected, or Compare on the stage) folds over it: for each scenario, the newer of the two counts. Only a
comparison of this base and this head counts.
Compare on the stage reads the announcement at .rehearse/announce.yaml; one you passed to
rehearse compare --announce isn’t known to it.
Keyboard and screen readers
Section titled “Keyboard and screen readers”- / moves to Find, unless you are typing in a field.
- A short change of status, such as “Running on the head…” or “Saved.”, is said once through a polite live region, even when it is the same as the last one.
- When a part of the stage is drawn again, the focus stays on the control that had it, and the caret where it was in a text box. A button at work, such as Compare while it compares, is marked busy, not disabled, so it keeps the focus. When the control is gone, as Run on the base is once it has run, the mode now shown takes the focus.
- Switching Base, Head and Diff keeps a call you edited and a try you haven’t saved yet.
- When you choose scenarios quickly one after another, the stage shows only the last one you chose.
The canvases
Section titled “The canvases”| Kind | Base or Head | Diff |
|---|---|---|
| piece | The component, live, on its canvas in the package’s own Vite and React, and the tree Rehearse saw in each scheme | The differences, then the base and the head live side by side, and what Rehearse saw of each |
| flow | Each step in a list; the tree and the screenshot after the step you pick | The differences; steps whose tree changed are marked; the base’s and the head’s tree for the step, lines that differ marked |
| call | The request in Hurl, editable, with Send to the base or Send to the head, and the answer: status, content type, who it was sent as, the body. Put back returns the request to the call as its file has it. | The differences, then the base’s answer and the head’s answer side by side |
| file | The input, then each output: rows as a table, JSON, or lines; a zip entry by entry | The differences, then the head’s output with each changed cell marked and what it was on the base |
A failure shows in the canvas too: the line or step, what was expected and what came back. A scenario not yet run on a side shows a button to run it.
Works and Doesn’t, with a note, record a try. Rehearse appends it to .rehearse/tries.jsonl beside the
manifest, one JSON object per line (schema try):
{"v":1,"scenario":"packages/api/items.hurl#The count is right","works":false,"note":"Counts only items over 5.","world":null,"person":null,"mode":"diff","verdict":"fails","base":"c68f00d9431f37f4008fa53bb6ce3b9f5e1c2d6d","head":"dc928d1a519971ed0fd790128d6306edd85db198","at":"2026-12-03T21:09:47.541Z"}A try keeps the world and person you chose (null for the scenario’s own), whether you looked at the base, the head
or the diff, the verdict at the time, and both commits. So a reviewer’s “doesn’t work” stays tied to what they saw.
A scenario’s address
Section titled “A scenario’s address”rehearse open <id> prints the stage’s address for one scenario: the link a pull request or a message carries. If no
stage is running for this manifest, it starts one in the background first.
| Option | Does |
|---|---|
--port <port> |
The port for a stage it starts. Default 4400, or a free port when 4400 is taken. |
--no-start |
Prints the address of a stage already running, and fails when none is. |
--json |
Prints {"v": 1, "url", "scenario", "started"}. |
The id must be exact; rehearse list shows them. A stage open started keeps running. Its pid is in
.rehearse/stage.json and its log in .rehearse/logs/stage.log; stop it with kill <pid>.
What the stage brings up, and stops
Section titled “What the stage brings up, and stops”The stage starts with nothing up. It brings up only what a click needs:
| You | The stage |
|---|---|
| open it | Brings nothing up. The base’s worktree is checked out the first time the base is needed. |
| Run on a side | Brings that scenario’s services up on that side, builds its world, runs it, and takes them down. |
| Compare | Runs the scenario on the base, then the head, as rehearse compare does, with the cache. |
| Send a call | Brings every service up on that side, builds the world (its before, then its add), signs everyone in, and keeps them up for the next send to the same side and world. Sending to the other side, choosing another world, or running a scenario takes them down first. |
| look at a piece | Starts a Vite server in the piece’s package on that side, kept until the stage stops. |
| stop it (Ctrl-C) | Stops the piece servers and the services it kept up for sending. |
The machine’s budget still holds: one set of services at a time, unless budget.services says more.
Starting and stopping the stage
Section titled “Starting and stopping the stage”| Option | Does |
|---|---|
--base <ref or folder> |
The base. Default the manifest’s base. |
--head <ref or folder> |
The head. Default this checkout as it is now. |
--port <port> |
Default 4400, or a free port when 4400 is taken. |
--json |
Prints one line once it listens, {"v": 1, "url", "port", "pid"}, and keeps running. |
Ctrl-C ends the stage with exit 130, and kill <pid> with exit 143. Either way, it first stops what it brought up.
One stage runs per repository: a second is refused, naming the first one’s address and pid.
Later kinds
Section titled “Later kinds”Each kind’s canvas is a view registered by its kind. The kinds job, agent and plan are reserved: the stage has a
place for their view, and shows “job scenarios come in a later version of Rehearse” with what was observed. A kind the
stage has no view for shows what Rehearse observed, as JSON. v1 runs only piece, flow, call and file scenarios.
- Calls: send a call by hand
- For agents: the same, through JSON.