Your first session¶
Who this page is for: anyone opening the Workbench for the first time. You need a terminal and a browser; you do not need to read Python.
This tutorial opens the release review example in the Workbench. You open its harness, drill into a stage and into a child's own machine, open a recorded run that stopped, step through it, and read the evidence for the moment it stopped: the CI result that reported a failing build.
- You will be able to: start the Workbench on a project, find your way from a harness to a child actor and back, step through a recorded run, and say why it ended where it did.
- Read first: The Workbench.
- Time: about 20 minutes.
The example¶
examples/release_review in the gvn repository is a harness that reviews a software release
before it ships. It is laid out as your own repository would be, with its own
pyproject.toml, and it runs offline: the model is scripted, the CI server answers from a
fixed table, and the release manager's answers are written down.
A release arrives with its checklist: a release ID, a summary of the change, the components it
touches and a rollback plan. One workflow, ReleaseReview, runs five stages in turn:
flowchart LR
validating["validating<br/>Runs one: ChecklistGate"]
evidence["collecting_evidence<br/>Runs side by side:<br/>an Agent and an Errand"]
components["reviewing_components<br/>Runs one per item:<br/>an Agent per component"]
cross["cross_checking<br/>Runs several copies:<br/>the same Agent twice"]
approval["awaiting_approval<br/>Runs one: an Inquiry<br/>to the release manager"]
validating --> evidence --> components --> cross --> approval
Each stage can also end the review early. The review ends in one of four states: approved,
needs_changes, needs_attention or incomplete. The example's README.md has the full
table; this page needs only the picture.
Step 1: record the runs¶
The Workbench reads runs from the project's journal, so record some first. From
examples/release_review, with gvn installed and the package importable:
Inside the gvn repository, where gvn comes from the workspace:
It writes .gvn/journal.sqlite and lists ten runs: one approved, several sent back or
stopped, and release-awaiting-approval, which waits on the release manager.
Step 2: start the Workbench¶
From the same folder:
Inside the gvn repository, uv run --project ../.. gvn eval serve --open. gvn finds the
project through [tool.gvn] in the example's pyproject.toml. Open the address it prints
without /evals/ at the end (for example http://127.0.0.1:8000/): the page opens on
Harnesses, a table with one row, release_review, what it does, and the actor a run
starts with: ReleaseReview, a workflow.
Step 3: open the harness¶
Open release_review. The page has three parts:
- the harness's summary and the actor a run starts with, driven by the Governor;
- the drawing of
ReleaseReview: its states and transitions, with a details panel beside it; - below the drawing, what a run is started with (the brief:
four fields, each of which may be left out, because the checklist gate decides whether a
release is complete), the tools it may use (
fetch_ci_status), its policy (OnlyCiReads), and the file and line the harness is defined at.
The drawing is a Moore machine: what it emits is written on each state. Ten states:
idle where every run starts, five stages, and four end states. Each arrow is a declared
transition, labelled with its input. Any other input leaves the machine where it is; that is
the otherwise rule, written once above the drawing instead
of as arrows.
A Drawing / List switch shows the same machine as two tables, states and transitions, for reading with a keyboard or a screen reader.
Step 4: select a stage¶
Select the state collecting_evidence. The details panel shows:
- how it runs its children: Runs these side by side (
Parallel): anAgentthat summarises the release, and anErrandthat reads the CI build with no model involved; - the join, the rule that decides when the stage is over:
AllOfwith successready: when every branch's verdict isreadythe stage endsevidence_ready, otherwiseevidence_blocked; - where each ending leads:
evidence_readytoreviewing_components,evidence_blockedtoneeds_attention.
So the review can stop here, before any component is reviewed, and before the release manager is asked. Keep that in mind for step 7.
Select reviewing_components too: Runs one per item (ForEach) over the release's
components, two at a time (its window), a failed review tried once more (its retry), and
a Worst join in which a blocked verdict ends the stage at once.
Step 5: open a child's machine¶
Select validating and open its child, ChecklistGate. The page says it is a child of
ReleaseReview in the stage validating; the breadcrumb leads back through release_review to
the harnesses, and a back button returns to ReleaseReview.
ChecklistGate is the project's own actor, on a Mealy machine: what it emits is written
on each arrow, after the input. From idle, started leads to checking and emits
check_required_fields; from checking, all_present leads to ready and emits
mark_ready, and missing_fields leads to incomplete and emits report_missing_fields.
Above the drawing: any other input, it stays where it is and emits ignore.
Reading a harness drawing explains every mark on these drawings.
Step 6: open a recorded run¶
Go to Runs. The table lists the ten runs of the project's journal, each with its harness,
how it ended and how many records it has. Open release-ci-failed: it ended in
needs_attention after four records.
The run page has three parts that move together:
- the timeline: one row per journal record, numbered from 0 (a moment), each saying which event arrived and which actors moved;
- the drawing of the actor you are looking at, painted with where it stands at the selected moment and the transitions it has taken;
- the evidence for the selected moment.
Select moment 0 and step with the arrow keys or the previous and next buttons:
| Moment | What arrived | Who moved |
|---|---|---|
| 0 | started, the release's checklist |
ReleaseReview went idle → validating → collecting_evidence; ChecklistGate started and ended ready within this one event; the summarising Agent started in thinking and the CI Errand in vetting |
| 1 | the model's reply, for the summariser | the summariser went to completed |
| 2 | cleared, the policy's verdict on the CI call |
the errand went vetting → acting |
| 3 | tools_returned, the CI result |
the errand went to done; ReleaseReview went collecting_evidence → needs_attention |
Moment 0 shows something worth knowing: one event can move several actors, and an actor can start and finish inside it. The checklist gate decides at once, so it never stands in any state between two moments. Reading a run explains how the Workbench shows such actors.
Step 7: read the evidence of a moment¶
Select moment 3. The evidence says:
- what arrived:
tools_returned, for the CI errand (its run-time name isrelease-ci-failed/collecting_evidence.1.1: stagecollecting_evidence, visit 1, branch 1), with its recorded content: the result offetch_ci_status, buildbuild-4103, statefailing; - who moved: the errand,
actingontools_returned→checking, thencheckingonsucceeded→done; thenReleaseReview,collecting_evidenceonevidence_blocked→needs_attention, which emitsneeds_attention, an end state; - the requests: the CI call was answered at this moment, and nothing is pending after it.
That is the whole answer to "why did this release stop?". The fetch worked, and the build it
read is failing, so the stage's decision on the CI branch (CiResult in the example's code)
gave ci_failing instead of ready. The AllOf join then gave evidence_blocked, and that
input leads to needs_attention. The approval stage was never entered, so the release manager
was never asked.
Recorded content (event data, tool results, model text, a person's answer) is shown as text in its own box. The Workbench never follows it as an instruction; see The guide and coding agents.
Step 8: select an actor in the run¶
Every actor name in the timeline and the evidence is a link. Select the CI errand: the drawing
changes to the errand's own machine, painted with the states it went through and where it
stood at the selected moment. Selecting ReleaseReview again returns to the workflow.
The address in the browser holds the run, the moment and the actor, so it can be pasted into a ticket or a chat and opens the same view.
Step 9: ask the guide¶
Press Ask the guide in the header. The guide is a chat beside the page that reads the same
project and runs you see, through the same tools a coding agent uses, and can take you to what
it explains. Ask it "Why did this release stop?" while release-ci-failed is open.
The guide answers with the project's model: its guide model
role when the project offers one, otherwise its default
model. The release review project is offline: its default model is scripted for the review's
own prompts. To talk with the guide on this example, give the project a model under the guide
role (Writing the project).
The guide and coding agents explains what it can do.
What to try next¶
- Open
release-awaiting-approval. It waits on the release manager; Waiting on you in the header counts it. Forks and answers shows how to answer it in a fork, and keep the recorded run as it is. - Open
release-approvedand step to moment 6: a component review that failed is tried once more, as a second attempt of the same item. - Replay
release-changes-requestedagainst thecandidateversion: Evaluating a change.
Recap¶
gvn eval servein the project's folder starts the Workbench; the site's root opens on the harnesses.- A harness opens on its entry actor's drawing; a stage's details say how it runs its children, how they end and where each ending leads; a child opens on its own machine.
- A run page ties the timeline, the drawing and the evidence of one moment together.
release-ci-failedstopped at moment 3 because the CI result readfailing, so the evidence stage endedevidence_blocked, which leads toneeds_attention.
Next: Reading a harness drawing.