Docs
Architecture overview
How the nono CLI, MCP server, recorder, runner, verifier and evidence store fit together.
nono is MCP-first and local-first. The MCP server is the agent interface, the CLI is the developer interface, and both drive the same local verification engine, which is the source of truth. The dashboard visualizes local evidence; the hosted service is an optional layer for sharing sanitized reports.
System diagram#
DEVELOPER
|
Claude Code / Codex / Cursor
|
nono MCP ——— nono CLI
| |
+-------+-------+
|
nono Core
|
+---------------------+---------------------+
| | |
Recorder Runner Verifier
| | |
+---------------------+---------------------+
|
Evidence Store (.nono/)
|
+---------------------+---------------------+
| |
Local Dashboard Cloud Sync (optional,
(127.0.0.1:4319) explicit `nono sync`)
Verification pipeline#
Journey definition
|
Browser execution (runner, Playwright + Chromium)
|
Runtime event capture (runner: network, console, exceptions, DOM, screenshots)
|
Redaction and normalization (instrumentation: secrets, timestamps, IDs, volatile values)
|
Assertion evaluation (verifier, deterministic)
|
Baseline comparison (verifier)
|
Evidence generation (evidence store, content-addressed)
|
Verification verdict (VERIFIED | FAILED | REGRESSION | UNVERIFIED | EXECUTION_ERROR)
Every stage is deterministic. No stage calls an LLM.
Packages#
| Package | Responsibility |
|---|---|
packages/protocol |
Shared schemas and types: journeys, assertions, manifests, verdicts. Validated with Zod. Depends on nothing else in the repo. |
packages/config |
Loading and validating .nono/config.yaml and journey YAML. |
packages/instrumentation |
Redaction and normalization primitives (headers, sensitive fields, token patterns, volatile text, path patterns) applied to everything captured. |
packages/recorder |
Interactive headed recording that produces journey definitions. |
packages/runner |
Executing journeys in Chromium via Playwright and capturing network, console, exceptions, checkpoints and DOM probes. |
packages/verifier |
Evaluating assertions and comparing runs and baselines, including screenshot comparison. |
packages/evidence |
The .nono/ store: manifests, captures, content-addressed artifacts, baselines, proposals, retention and Markdown/HTML reports. |
packages/core |
Orchestrates the above into operations like verify, replay, compare, doctor and integrate. |
packages/mcp |
The MCP server over stdio, built on the official TypeScript SDK. |
packages/cli |
The nono executable, published as nono-proof, including the local dashboard server and its static assets. Internal packages are bundled into it. |
packages/ui |
Shared design tokens for the website and dashboards. |
apps/web |
Public website, docs, interactive demo and hosted dashboard (Next.js). |
apps/api |
Optional hosted API (Hono, PostgreSQL, Drizzle). |
Dependency direction#
cli, mcp ──▶ core ──▶ recorder, runner, verifier, evidence, config ──▶ instrumentation ──▶ protocol
The core engine never depends on the CLI, MCP server or web apps. Both interfaces consume the same core primitives, so an agent calling nono_verify and a developer running nono verify get identical results.
Data model#
- Journey (
.nono/journeys/<name>.yaml) — steps and assertions; hashed intojourneyHash. - Run (
.nono/runs/<runId>/) —manifest.json(verdict and checks) andcapture.json(normalized events). - Artifact (
.nono/artifacts/<sha256>.<ext>) — screenshots and evidence files, stored once by content hash. - Baseline (
.nono/baselines/<journey>/<baselineId>/) — immutable approved snapshot;CURRENTpoints at the active one. - Proposal (
.nono/proposals/<journey>/<id>.json) — a candidate baseline awaiting human approval.
See Evidence format for the manifest schema.
Trust boundaries#
- Application under test → nono. Everything captured from the app (DOM, console, network) is untrusted data. It is redacted at capture and never interpreted as instructions.
- nono → agent. MCP tools validate inputs, constrain filesystem access to
.nono/, restrict targets to loopback, the configured base URL's host andtarget.allowedHosts, and return bounded, redacted evidence. Baseline approval is not exposed. - Local → hosted. Nothing crosses unless the developer runs
nono sync, and only a sanitized manifest is sent, authenticated by a project token.
Hosted service#
Internet ─▶ Caddy (HTTPS) ─▶ apps/web (Next.js)
└─▶ apps/api (Hono) ─▶ PostgreSQL (internal)
The hosted API stores sanitized manifests, manages projects, tokens and share links, and serves public shared reports. It does not execute user code or run browsers. See Self-hosting.
Design choices#
- Filesystem storage over a database locally — evidence is portable, diffable and inspectable with ordinary tools.
- Content-addressed artifacts — identical screenshots are stored once; hashes double as integrity checks.
- Explicit verdict states —
UNVERIFIEDandEXECUTION_ERRORexist so that "didn't run" is never confused with "passed". - No approve tool over MCP — expected behaviour changes require a human.