# gvn > gvn (governor) is a Python framework for building agent harnesses with verified control flow. This build documents the repository source with package version 0.1.0. It requires Python 3.12 or newer. Install it with `pip install gvn`. The offline examples need no API key or network. ## Start here - [Install](https://gvn-harness.dev/install.md): Install command, Python requirements, and package extras. - [Run your first agent](https://gvn-harness.dev/start.md): Runnable offline example with a scripted model and one tool. - [Quickstart](https://gvn-harness.dev/quickstart.md): Verifier findings, state transitions and the run loop. - [Runnable recipes](https://gvn-harness.dev/recipes.md): Complete offline scripts: tool approval, recovery after a restart, an offline test, a two-stage workflow. - [Choose your path](https://gvn-harness.dev/paths.md): Ordered reading routes by goal: build a harness, try it in an afternoon, evaluate, brief a coding agent. - [For coding agents](https://gvn-harness.dev/for-agents.md): The actor table, the rules of the framework, the task to page map, tested files and copyable prompts. ## Build a harness - [8. A workflow of two actors](https://gvn-harness.dev/tutorials/workflow.md): Use when the job has more than one step: a machine, Host stages, a Plan and a Workflow class. - [Workflows](https://gvn-harness.dev/concepts/workflows.md): Use when a stage runs several children at once, or to see what a Plan checks. - [Workflows in depth](https://gvn-harness.dev/concepts/workflows-in-depth.md): Use for judges, loops, the Memo, joins, ForEach, Parallel, compensation and declared tools. - [Errands](https://gvn-harness.dev/concepts/errands.md): Use when code fixes the tool calls and no model chooses them: payments, writes, notifications. - [Structured answers](https://gvn-harness.dev/guides/structured-answers.md): Use when an agent must return checked data: answer=Record(...) and where to read it. - [Model-backed choices](https://gvn-harness.dev/guides/model-backed-choices.md): Use when a model picks one of a declared set of options and a workflow routes on the pick. - [Rules](https://gvn-harness.dev/tools/rules.md): Use to write the policy: which tool calls are cleared, need approval or are forbidden. - [Using a vendor model](https://gvn-harness.dev/guides/vendors.md): Use to replace the scripted model with an Anthropic, OpenAI or Chat Completions model. - [11. Testing your harness](https://gvn-harness.dev/tutorials/testing.md): Use to test a policy, an actor, a whole run and a crash at every journal write, offline. - [Testing your harness](https://gvn-harness.dev/concepts/testing.md): Use for the fakes of every port, controlling time and checks on recorded runs. - [6. Crash and resume](https://gvn-harness.dev/tutorials/durability.md): Use when a run must survive a restart: a SQLite journal, recovery and repeat-safe tools. - [Domains](https://gvn-harness.dev/domains/index.md): Use to read complete harnesses with their tools, policies and offline tests. ## Measure a harness with evals - [Evals](https://gvn-harness.dev/evals/index.md): Cases, criteria, trials, reports and comparisons, and who writes what. - [Your first eval](https://gvn-harness.dev/evals/first-eval.md): The support desk eval end to end with the gvn eval command line. - [Writing criteria](https://gvn-harness.dev/evals/criteria.md): The eval file: must pass and measured criteria, judges and reviews. - [Reading reports](https://gvn-harness.dev/evals/reports.md): Pass rates, intervals, comparison verdicts, budgets and CI gates. - [Writing the project](https://gvn-harness.dev/evals/project.md): The Project behind eval files, and gvn.evals from Python. ## Build and run a harness - [Interface contracts](https://gvn-harness.dev/reference/interfaces.md): Contracts for actors, tools, decisions and ports. - [5. A policy and approval](https://gvn-harness.dev/tutorials/agent-with-approval.md): Require approval for a tool call. - [Running as a service](https://gvn-harness.dev/guides/running-as-a-service.md): Shared journals, leases, recovery and answering parked runs. - [Stability](https://gvn-harness.dev/reference/stability.md): Public API and stored-data compatibility. - [Runtime guarantees](https://gvn-harness.dev/reference/runtime-guarantees.md): Application responsibilities for effects, approvals, and spending. ## Python API, generated from the source - [Python API](https://gvn-harness.dev/reference/python.md): How the packages fit together, names by task, and every public name A to Z. - [gvn.shortcuts](https://gvn-harness.dev/reference/python/shortcuts.md): run_agent and FunctionTool: one agent run to the end in one call. - [gvn.kernel](https://gvn-harness.dev/reference/python/kernel.md): Blueprints (Moore and Mealy), definitions, the verifier, decisions and schemas. - [gvn.harness](https://gvn-harness.dev/reference/python/harness.md): Agents, workflows, tools, messages, events, requests and the ports. - [gvn.runtime](https://gvn-harness.dev/reference/python/runtime.md): The Governor, fulfillers, recovery, replay, forks, leases, memory and spending. - [gvn.adapters](https://gvn-harness.dev/reference/python/adapters.md): Vendor models, SQLite and PostgreSQL journals, logs, traces and eval files. - [gvn.evals](https://gvn-harness.dev/reference/python/evals.md): Cases, criteria, judges, runners, reports and comparisons. - [gvn.console](https://gvn-harness.dev/reference/python/console.md): The gvn command line and the Project it loads. - [gvn.testing](https://gvn-harness.dev/reference/python/testing.md): Fakes for every port and the contract suites.