The Workbench¶
Who this page is for: everyone who works on a gvn harness or looks at what it did: developers, product managers, QA engineers and technical analysts. It needs no Python.
The gvn Workbench is a page on your own computer for one project. It draws the project's harnesses as the state machines that run them, paints recorded runs on those drawings, and lets you step through a run one journal record at a time. From a run you can fork a copy and try another answer, answer a run that waits on a person, turn the run into an eval case, or replay it against another version of the harness. You can change a harness from the page, and the change is written into the project's own Python. The eval pages are one of its sections, a built-in guide answers questions about what is on screen, and coding agents reach the same tools over MCP.
- You will learn: what the Workbench is, where it sits beside your project and gvn, how to start it, and which page of this section explains each part.
- Read first: nothing. The quickstart's big picture helps if the words actor, journal and Governor are new.
- Time: about 5 minutes.
The picture¶
flowchart LR
subgraph repo ["Your repository"]
direction TB
project["The project<br/>harnesses, versions, evals<br/>(your Python)"]
stores[("Journal and results<br/>.gvn/")]
own[("The Workbench's own files<br/>.gvn/workbench/")]
end
gvn["gvn<br/>installed, unchanged"]
subgraph wb ["gvn Workbench (gvn eval serve) on 127.0.0.1"]
direction TB
page["The page<br/>Harnesses · Runs · Waiting on you · Evals"]
guide["The guide<br/>a gvn conversation"]
mcp["MCP server<br/>/mcp"]
end
agent(["Your coding agent"])
you(["You, in a browser"])
project --> wb
gvn --> wb
stores <--> wb
own <--> wb
you <--> page
guide -- "tools" --> mcp
agent -- "tools" --> mcp
Read it from the left. The Workbench runs in your repository, beside the project you already
point gvn eval at. It imports gvn and your project and reads them through gvn's own
interfaces: the verified definitions of your actors, your workflow plans, your harnesses and
the journal of recorded runs. It never changes gvn. It writes only three kinds of files:
the project's cases files (when a run becomes a case), the project's Python files (when you
save an edit) and its own files under .gvn/workbench/ (forks, opened journals, proposals,
the layout of drawings, the guide's conversations, the MCP token).
On the right are three ways in: the page in your browser, the guide beside it, and the MCP server that the guide and your own coding agent use. The guide and a coding agent use the same tools, so what one can do the other can do.
A development tool¶
The Workbench is for building and checking a harness on your computer. It comes in its own
package, gvn-workbench, which you install as a development dependency next to gvn. What
you make with it is ordinary gvn Python: a deployed harness does not import the Workbench and
does not need it installed. The evals framework and its command line (gvn eval run, gate,
compare, regrade) are part of gvn and work in CI without the Workbench.
The same holds for the wiring. Development wiring (a local journal, a scripted or cheap model, fixed answers for the outside world) lives in the project, apart from the harness definition, so the same harness runs under production wiring. The release review example is laid out this way.
Starting it¶
From the folder of your project (the one whose pyproject.toml names the project under
[tool.gvn]; see Writing the project):
$ gvn eval serve --open
The eval page is at http://127.0.0.1:8000/evals/ on this computer; press Ctrl-C to stop it.
Coding agents reach its MCP server at http://127.0.0.1:8000/mcp with the header X-Gvn-Token set to the token in /path/to/project/.gvn/workbench/mcp-token.
The first line gives the Evals section. The rest of the Workbench is at the site's root,
http://127.0.0.1:8000/, whose header links to Harnesses, Runs, Waiting on you and Evals.
--port 8010 uses another port; --open opens the Evals section in your browser. Ctrl-C
stops it.
The page lists the project's harnesses, its runs, what waits on a person, and the evals. Ask the guide opens the chat beside whatever you are looking at.
How it fits with the rest of gvn¶
| Part of gvn | What the Workbench does with it |
|---|---|
| Harnesses | Lists the ones the project offers and draws each from its entry actor down. |
| Machines and workflows | Draws each actor's verified definition; draws a workflow's stages, recipes and joins. |
| The journal | Reads every recorded run, moment by moment, through gvn's inspection. |
| Forking a run | Forks a run from any moment of its timeline into a journal of its own. |
| Replay | Replays a run against another version and names where the two first differ. |
| Evals | Holds the eval pages as its Evals section, and makes a case from a run. |
| MCP | Offers its reading tools to coding agents, and its guide uses them through gvn's own MCP client. |
The pages of this section¶
| Page | What it explains |
|---|---|
| Your first session | A tutorial on the release review example: open a harness, drill into a stage and a child, step through a recorded run, read the evidence. |
| Reading a harness drawing | States, transitions, stages and recipes, joins, Moore and Mealy, the otherwise rule. |
| Reading a run | The timeline, moments, standings, actors that pass within one event, what a run waits on. |
| Forks and answers | What a fork is and where it lives; answering a person's question in a fork or in the project's journal. |
| Evaluating a change | Replay against another version, a run that becomes an eval case, and the Evals section. |
| Editing a harness | Python as the source of truth, what can be edited where, preview, verification, save, proposals from agents. |
| The guide and coding agents | The tools, connecting an agent to /mcp, and how recorded content is handled. |
| Journals | The project's journal, forks, and a journal recorded elsewhere. |
| Files and safety | What lives in .gvn/workbench/, and how the site stays on this computer. |
| The JSON interface | Every address the page, the guide and the tools use. |
Recap¶
- The Workbench is a local page for one project: it draws harnesses, reads runs, forks and answers them, makes eval cases, edits harnesses in their Python, and holds the evals.
- It is a development tool in the
gvn-workbenchpackage; a deployed harness never needs it. gvn eval servestarts it on 127.0.0.1; Ctrl-C stops it.
Next: Your first session.