# Reading a run

**Who this page is for:** anyone who opens a recorded run in the Workbench to find out what
happened, and why it ended where it did.

A **run** is one job carried out by a harness, from its first event to its outcome, and
everything about it is in the [journal](../reference/glossary.md#journal): one record per event
it handled, in order. The Workbench reads a run record by record, and for each record says what
arrived, which actors moved from which state to which, where every actor then stood, and which
requests began and ended. It paints the same facts on the drawing of whichever actor you
select.

- **You will be able to:** step through a run, read a moment's evidence, tell the instances of
  a stage apart, recognise an actor that started and finished within one event, and see what a
  run waits on a person for.
- **Read first:** [Your first session](first-session.md) and
  [Reading a harness drawing](drawings.md).
- **Time:** about 15 minutes.

## Where a run page comes from

```mermaid
flowchart LR
    journal[("Journal<br/>record 0 · 1 · 2 · …")]
    harness["The harness's<br/>actor class"]
    inspector["gvn's Inspector<br/>feeds every record again"]
    moments["Moments<br/>one per record"]
    page["The run page<br/>timeline · drawing · evidence"]
    journal --> inspector
    harness --> inspector
    inspector --> moments --> page
```

The Workbench finds which harness the run belongs to (the one whose actor class rebuilds the
run's first snapshot), rebuilds the run's actor from that snapshot and hands it every record
again, exactly as recovery after a crash does. Nothing is fulfilled: no model, tool or person
is asked anything, and nothing is written. The part of gvn that does this is
[inspection](../guides/inspecting-a-run.md), and anything the Workbench shows about a run can
be read the same way from Python.

When a run belongs to none of the project's harnesses, the Workbench tries each of the project's
[versions](../evals/project.md#the-versions) and names the first that rebuilds it. When none
does, the run is still listed, and its records are shown as the journal holds them.

## The run page

The page has a header with the run's id, its harness, how it ended (or the state it stands in
and what it waits on), and three parts that move together:

- **The timeline**: one row per record, numbered from 0. Each row says which event arrived,
  for which actor, which actors moved and how, and how many requests began and ended. A
  rejected or failing record is marked.
- **The drawing** of the selected actor, painted for the selected moment: the state it stands
  in (**Here now**), the states it went through (**Was here**), where it ended (**Ended here**),
  and the transitions it took.
- **The evidence** for the selected moment; see below.

Select a row, or step with the arrow keys or the previous and next buttons. Select an actor's
name anywhere on the page to draw that actor instead. The address holds the run, the journal,
the moment and the actor, so it opens the same view when shared.

## Moments

A **moment** is one record of the journal: one event arriving, and every move it caused. One
event can move several actors. An answer finishes a child, and its finishing moves the
workflow: in `release-ci-failed`, moment 3 is the CI result arriving for the errand, and both
the errand (to `done`) and `ReleaseReview` (to `needs_attention`) moved in it.

The evidence for a moment has:

| Part | What it holds |
|---|---|
| What arrived | the event's name, which actor it was for, and its recorded content (the payload: a model's reply, a tool's result, a person's answer) |
| Who moved | each actor that took a step, started, ended or was dropped, with each step: the state it left, the input, the state it entered, what it emitted, and whether the step was declared or came from the otherwise rule |
| Requests begun | the work actors asked for at this moment: a model call, tool calls, a question to a person |
| Requests answered | the requests that ended at this moment |
| Still pending | every request the run wants once the moment is handled |

A moment is **rejected** when the event changed nothing: no declared transition took it. A
moment with an **error** is one where the actor's code refused the event; a recorded run has
none unless the code changed since it was recorded.

## Standings

A **standing** is where one actor is at one moment: its name, the machine it runs on and the
state it is in, and so whether it has finished. After every moment the Workbench knows the
standing of every actor in the run, the entry actor first and then every child it hosts at that
moment, each followed by those it hosts in turn. Painting a drawing is reading one actor's
standing.

An actor is drawn on the machine it ran on. Usually that is its class's own drawing. A
reference `Agent` built with a [structured answer](../guides/structured-answers.md) runs on a
definition with states of its own for checking the answer; for such an actor the run page draws
that machine and says how it differs from the class's drawing.

## Actors that pass within one event

Some actors start and finish while one event is handled. The release review's
`ChecklistGate` is one: started with a checklist, it decides at once and ends `ready` or
`incomplete`. It never stands in any state between two moments.

The Workbench still shows it. In the moment that started it, the gate is listed under who moved
as having started and ended, with the final state it ended in, and the workflow's own steps show
what its ending caused: `validating` on `checklist_complete` to `collecting_evidence`, in the
same moment as `idle` on `started` to `validating`. In gvn this is `Reaction.passed`; see
[Inspecting a run](../guides/inspecting-a-run.md#actors-that-pass-within-one-event).

## Instances of a template

A drawing of a harness shows each child once, as a template. A run makes instances of it, and
each instance has a **run-time name** built from the workflow's name, the stage, the visit and,
for a stage with several children, the child's position:

| Run-time name | Means |
|---|---|
| `release-approved/validating.1` | the `validating` stage's child, on the stage's first visit |
| `release-approved/collecting_evidence.1.1` | branch 1 of the `Parallel` stage, first visit |
| `release-approved/reviewing_components.1.2.1` | the `ForEach` stage, first visit, item 2, first attempt |
| `release-approved/reviewing_components.1.2.2` | the same item's second attempt |
| `release-approved/cross_checking.1.0` | copy 0 of the `FanOut` stage |

A **visit** is one entry into a stage. A workflow that loops back to a stage enters it again, and
the second visit's children are new actors, numbered `.2`. Items, copies and branches count from
0; a `ForEach` item's attempts count from 1. Every instance of a template has the same
[template path](drawings.md#moving-between-drawings), so the Workbench always knows which drawing
an instance belongs to.

On a run page, a stage that made several instances lists them; select one to draw it. In
`release-approved`, the review of item 2 failed on its first attempt (moment 6) and was tried
again, and both attempts are listed.

A stage with a deadline also writes records of its own, such as the clock reading at moment 10
of `release-approved`. They are addressed to `<workflow>/<stage>#<visit>`
(`release-approved/awaiting_approval#1`), which is the stage's timer, not an actor.

## What a run waits on

A run that has not finished stands in some state and wants some requests. When one of them is
a question to a person, the run is [parked](../reference/glossary.md#park): no process holds it,
it costs nothing, and it continues when the answer arrives. The Workbench lists every such
request in the run's header, saying who asks, who is asked, the question and the choices:

| Who asks | Request | What it waits for |
|---|---|---|
| an [`Inquiry`](../concepts/asking-a-person.md) | `request_input`, a question | an answer with content: text, or one of the given choices |
| an [`Approval`](../concepts/human-in-the-loop.md#an-approval-on-its-own), or an agent whose tool calls its policy holds for a person | `request_approval`, an approval | a yes or no; a no can carry a reason |

`release-awaiting-approval` waits on an `Inquiry` from its `awaiting_approval` stage to the
`release_manager`: "Approve release 2026.11.9?", with the choices `approve` and `revise`, since
moment 8.

**Waiting on you**, in the header of every page, lists everything the runs of the project's
journal and of every fork wait on a person for, each with its run and journal, and counts them.
[Forks and answers](forks-and-answers.md) explains how to answer.

## Recap

- A run page reads the run record by record through gvn's inspection, with nothing fulfilled
  and nothing written.
- A moment is one record: what arrived, who moved and how, which requests began, ended and
  remain.
- A standing is where an actor is at a moment; a drawing on a run page paints it.
- An actor that starts and finishes within one event is listed in that moment, with the state
  it ended in.
- Instances of one template are told apart by visit, item, copy or branch, and attempt.
- A run waiting on a person says who asks, who is asked, and what.

**Next:** [Forks and answers](forks-and-answers.md).
