Notarizing documentation
OpenSpec, Quint and notarizing
This guide describes Notarizing at revision 58d3f66610e4cce25ddd64d065c8f36f06abb229. Source: docs/openspec-quint.md. Source links require repository access. The App examples on the product page use reviewed revision 98455fe03bb7.
Contents
Keep OpenSpec for requirements and changes. Keep Quint for executable models. Use Notarizing to review exact revisions, their evidence and the gaps between them. You run OpenSpec, Quint and implementation checks outside Notarizing. The App reads the results that you import, including incomplete or interrupted runs.
A model result answers a question about the model. An implementation result answers a question about real code. Keep both scopes visible even when they support the same requirement.
| Tool | What it supplies | What stays separate |
|---|---|---|
| OpenSpec | Requirements, scenarios, proposed changes and declared relationships | Completing a task does not establish a requirement. |
| Quint | Model states, sampled exploration or a named verification result | A model result does not establish implementation behavior. |
| Go replay or another implementation harness | Observations from real code under an explicit model-to-code mapping | Selected trace conformance is not a refinement proof. |
| Notarizing | Pinned source, attributed receipts, policy evaluation and visual review | Importing evidence does not run or approve its checker. |
Keep your existing spec workflow
Write and revise a change under openspec/changes/. Give each requirement a stable
Requirement-ID. Keep scenarios under the requirement that they describe. Declare
Depends-On, Assumes and Evaluated-By links where they apply. The
spec-writing guide shows the supported fields and diagnostics.
Commit the source before importing it. change import resolves the selected Git
revision once and reads its files without changing the source repository. A later
edit needs a new import. OpenSpec remains responsible for the propose, apply and
archive workflow. Notarizing does not replace its files or commands.
Run the end-to-end example
The bounded counter walkthrough creates a disposable OpenSpec repository, runs pinned Quint 0.33.0, converts its results and imports the evidence into a new workspace. It includes a passing bounded run, an intentional invariant violation and a checker error. The implementation check remains missing so its unknown coverage is visible.
Use the standalone Quint report producer
with your own completed runs. It retains the result, run manifest and available
ITF trace with exact source digests. ITF is the JSON format used here for recorded model states.
The converter checks consistency. It does not run Quint or verify that supplied execution metadata describes a real run.
Local imports remain manual_unverified and follow the workspace's existing policy.
Keep model and implementation evidence distinct
A Quint run explores a model. Its trace records states from that model. Bind the result to the exact model, statement and assumption sources, checker identity, backend, seed and exploration limits. Do not label a sampled run as exhaustive verification or use its result as an implementation test.
A separate replay harness can map recorded actions to real code and compare the observations after each step. Give that evidence its own check, method and mapping source. Both reports can refer to one requirement while retaining different scope. The coverage matrix keeps these dimensions separate.
This repository already has a receipt lifecycle model in
verification/quint/receipts.qnt and a
Go replay driver. The driver invokes
the application service on a real SQLite workspace and compares its observations
with selected committed ITF traces. This is scoped trace conformance, not proof
that the implementation has no other behavior. ka2a has its own transport model
and replay driver. Transport evidence and receipt evidence answer different claims.
Review the result visually
Call get_change_report from an MCP client that supports Apps. The report provides:
- A summary with source, checkpoint, policy and individual evidence rows.
- A coverage matrix with reported outcomes beside evaluated conclusions.
- A selected requirement's declared dependencies, premises, bound checks and receipts.
The diagrams use the returned data only. An absent endpoint is unavailable, not a new inferred connection. A missing report or an unbound requirement stays visible. There is no overall correctness score.
Call get_receipt to inspect a local-source receipt and its artifact metadata.
Pass its receipt ID and a retained ITF artifact's SHA-256 to get_model_trace.
The Model Trace App provides previous/next controls, a step selector, recorded
action labels and variable changes. Its parameters and source references stay
available beside the exact artifact identity. These are recorded states. Playback
does not run Quint, call a checker or execute imported code.
The reader accepts no path or URL. It refuses missing, purged, inaccessible, altered, invalid or excessive trace data. It does not turn a partial parse into a complete trace. Plain MCP clients receive the same information as text and JSON. See operator setup and limits.
Compare the model with actual implementation observations
A replay harness maps model actions to real code and checks the resulting observations. The retained result lets you inspect where those selected traces agree or differ. It does not establish that the implementation has no other behavior.
Run the development harness from the repository root:
make quint-replay-exportIt replays a normal receipt trace and a deliberate broken-model negative control through the real Go service and SQLite store. It writes
verification/quint/replays/receipt-replay.jsonandverification/quint/replays/receipt-replay-negative-control.json.Attach the appropriate replay JSON to its
notarizing.check-report/1evidence package. Keep the methodimplementation_trace_conformanceseparate from the model-check report. Import the package withevidence import.Call
get_receiptto find the local receipt ID and declared artifact digest.Pass those values to
get_implementation_replayin an MCP host that supports Apps.
The App uses one step cursor for the expected and observed columns. Its first-divergence control selects the earliest recorded difference. Every comparison uses the same check as the conformance test. The artifact retains model, trace and mapping digests, implementation revision, worktree status and claim limits.
Opening the App only reads that artifact. It does not rerun the harness or independently verify the producer's observations. The committed example records a modified development worktree. Its negative control demonstrates a detectable mismatch, not a product defect.
Design references
Hapsland and the supplied screenshots inspired the focused diagrams and common step cursor. Its flow projection separates events, requests and completed observations. Here, every state comes from retained trace data. The App does not infer an entire state machine or claim that the model and production code use the same reducer.
The Quint CLI exports ITF traces. Quint model-based testing describes how a separate driver can relate those traces to code. OpenSpec supplies the requirement and change workflow. These tools keep their own roles and evidence limits.