Expand description
Deterministic runtime for the govern pipeline.
Implements the architecture described in
[specs/022-deterministic-runtime/spec.md]. The runtime exposes two
surfaces — an MCP server (gvrn mcp) and a subprocess interpreter
(gvrn exec) — sharing a common library of primitives.
§Stability
This library is an implementation detail of the gvrn binary.
The supported public surface is the CLI (gvrn --help) and the
JSON-over-stdio / MCP protocol it speaks. Linking against this crate
directly is not supported in v0.x: every module (interpreter,
io, mcp, parser, primitives, schema) may change shape
without a semver bump. Consume gvrn by installing the binary
(cargo install gvrn) and invoking it via stdio, or by running the
MCP server and connecting an MCP-capable host. A curated library
surface may land in a future major release; until then, treat the
items below as private to the runtime.
Modules§
- host
- Host config loader — resolves the
{cli-config-dir}and{project}template variables used to locate slash-command files atgvrn exectime. See spec 022 scenariocommands-dir-parameterization. - interpreter
- Procedure walker and JSON-over-stdio protocol I/O.
- io
- Stdio framing helpers for protocol messages.
- mcp
- MCP server wiring built on
rmcp. - parser
- Procedure parser for slash command Instructions sections.
- primitives
- Deterministic primitive operations.
- schema
- Typed schemas for primitives, the JSON-over-stdio protocol, and initial-release LLM extension points.