notariz.ing · local-first spec review

Review a change with its evidence in view.

Notarizing connects requirements in OpenSpec to imported check reports and review notes. Compare exact revisions, inspect coverage and see what remains unknown. Your workspace is stored locally. Its interface opens as a Model Context Protocol (MCP) App inside your chosen host. You can also lint committed specifications without a workspace.

A specification page under a loupe. A seal marks the checked requirements, and a small graph shows the premises.

Five questions

What a reviewer needs to know about a change

Start with requirements and assumptions. Add check reports when they are available. Notarizing imports the reports for review. It does not run external check tools or edit your source repository.

  1. 1

    What does this change promise?

    The effective requirements of the change: added, modified and removed, with their scenarios and their exact source lines.

  2. 2

    Which premises does it rely on?

    Read the declared assumptions. An all of group needs every member. An any of group needs one.

  3. 3

    What changed between two revisions?

    Wording, assumptions, relationships and evidence applicability, side by side at two exact commits.

  4. 4

    What was checked, and under which scope?

    Each report states its claim, environment, limits and exclusions. The evaluated status also depends on the workspace policy and the evidence available.

  5. 5

    What remains unknown?

    Missing bindings, stale evidence and open questions stay visible. The workspace never shows an overall pass badge.

Standalone specification linting

Lint committed specifications

Check accepted OpenSpec specifications or the effective requirements of one change, directly from a local Git repository. No workspace or repository registration is needed.

Lint reports parser errors, missing normative wording and repeated scenario labels within a requirement. Findings include rule codes, source locations, file digests and manual repair guidance.

terminalCommand example · no recorded output
notarizing spec lint --path . --at main --strict --output json
Listing 1 Run from your OpenSpec repository after committing edits to main. Add --change NAME to check accepted requirements with the named change applied.

Lint reads committed Git objects and excludes uncommitted edits. Errors fail the command. With --strict, warnings also fail it. JSON results retain the findings when lint fails. Lint checks structure and wording. It does not prove correctness.

Follow the standalone lint guide for revision 58d3f66610e4. The CLI reference lists exact flags and input bounds.

MCP Apps

One workspace inside your MCP host

Your MCP host is the application that launches the local server and displays its App. Call open_workspace for Review, Explore, Compare, search and exports.

These are screenshots of the real App and Go server, captured with Playwright in a local host using the official MCP Apps SDK. They show synthetic examples, not a live workspace on this website.

Open your own workspace

  1. Create a workspace and import a change with the user guide, or run the synthetic demo.
  2. Configure an MCP Apps host to launch notarizing --workspace DIR mcp. Use your workspace path for DIR. See the configuration example.
  3. Call open_workspace from that host. You can read the workspace immediately. To add review notes, follow the optional grant steps.
Notarizing Workspace MCP App with Review, Explore and Compare navigation, requirement rows, reported and evaluated evidence, search and an inspector.
Figure 1 Synthetic demo data. The Workspace App reviews a fictional receipt change. Captured in the official local SDK host, not a third-party client. Requirements keep their evidence, gaps and source context.

Review the exact change

Read requirements beside assumptions, evidence and open questions. A grant from the command line lets one App session add review notes and decisions.

Explore and compare

Follow declared relationships in a graph or table. Compare two exact revisions to see changed wording, assumptions and which evidence still applies.

Keep the context

Search IDs and text, save views, and export Markdown, Mermaid or JSON. Each export identifies the revision and review checkpoint it describes.

Evidence coverage in the Change Report MCP App. Rows compare requirements with implementation checks, model exploration and trace correspondence. Missing bindings and unknown conclusions remain visible.
Figure 2 Synthetic demo data. Coverage separates reported claims from evaluated conclusions. Captured in the official local SDK host, not a third-party client. An empty cell means missing coverage.

Clients without Apps support keep the text and JSON read results. Read the MCP setup guide. Source access is required.

OpenSpec · Quint · implementation replay

Use OpenSpec and Quint with your review

OpenSpec holds requirements and changes. Quint is a language for executable models. Notarizing imports their exact revisions and check reports. A retained trace is a saved sequence of model states.

Import completed checks

Run Quint in your existing workflow. The optional producer converts its completed output into a report with the model and trace for import.

Step through a trace

get_model_trace opens retained Quint states. Step controls show recorded actions and variable changes without running the model.

Find the first divergence

get_implementation_replay compares saved model expectations with observations from real code. Its step control keeps the two states together.

Implementation Replay MCP App at step 15. Expected model status is unknown while the observed Go status is fail. Source digests, scope and the first divergence remain visible.
Figure 3 Synthetic demo data. A deliberate broken-model control diverges from actual Go and SQLite observations. Captured in the official local SDK host, not a third-party client. The App reads the retained result and runs no check.

A model run explores the model. An implementation test exercises code. Replay compares selected traces between them. Agreement does not prove all implementation behavior. Follow the OpenSpec and Quint workflow.

How it works

From a Git commit to a review in five steps

  1. Register

    repo add names a local Git repository. Notarizing reads objects by full commit ID and never writes to it.

  2. Import a change

    change import reads one OpenSpec change at one exact commit and indexes it for search.

  3. Add evidence when available

    Review can start without reports. binding import links checks to requirements. evidence import records the report bytes.

  4. Review

    Connect notarizing mcp to your host and call open_workspace. An expiring CLI grant enables scoped review writes.

  5. Export

    Reviews, graphs and draft patches export as Markdown, Mermaid or JSON at a pinned review checkpoint.

Examples

A fictional change, reviewed end to end

Run make web, then make demo-refund-limits, in the Notarizing repository. The first command builds the MCP App and needs Node at build time only. The demo creates a fictional payments workspace with synthetic reports. It needs no broker or model service.

The recorded CLI output below comes from an earlier revision with schema 12. It preserves those exact results. Current installations use schema 13. The MCP setup examples describe the current revision and show commands without recorded output.

OpenSpec · spec.md

A requirement with its links

Requirements stay in your repository, in plain Markdown. Link lines under the ID declare what the requirement depends on, which premises it assumes and which checks evaluate it.

  • A declared link is a claim for review, not a proof.
  • Only a reviewed binding file makes a check count as coverage.
openspec/changes/add-refund-limits/specs/refunds/spec.mdSynthetic
### Requirement: Daily refund limit

Requirement-ID: PAY-R-101
Depends-On: PAY-R-001
Assumes: GRP-LIMIT-PREMISES
Evaluated-By: CHK-LIMIT-UNIT, CHK-LIMIT-PROPERTY

The service SHALL reject a refund that would raise the refunded total of the merchant for the current UTC day above the daily limit of the merchant. Refunds that wait for an override SHALL count toward the total.

#### Scenario: Refund under the limit
- **GIVEN** a merchant with a daily limit of 1000.00 EUR and 900.00 EUR refunded today
- **WHEN** a clerk refunds 80.00 EUR
- **THEN** the refund succeeds

#### Scenario: Refund over the limit
- **GIVEN** a merchant with a daily limit of 1000.00 EUR and 950.00 EUR refunded today
- **WHEN** a clerk refunds 80.00 EUR
- **THEN** the service rejects the refund with the reason limit_exceeded and writes no ledger entry

#### Scenario: Pending override counts
- **GIVEN** a merchant with a daily limit of 1000.00 EUR, 900.00 EUR refunded today and a 150.00 EUR refund that waits for an override
- **WHEN** a clerk refunds 80.00 EUR
- **THEN** the service rejects the refund with the reason limit_exceeded
Listing 2 The requirement PAY-R-101 at revision 2, with its link lines.

OpenSpec · declarations.md

Assumptions and premise groups

A change can declare what must be true for its requirements to hold. Each assumption has a category, a rationale and the consequence if it is false.

  • all_of groups need every member. any_of groups need one.
  • Review states say how a reviewer treated an assumption. They never say that it is true.
openspec/changes/add-refund-limits/declarations.mdSynthetic
### Assumption: No merchant needs more than 1000 refunds on one day
Assumption-ID: ASM-REFUND-VOLUME
Category: product_hypothesis
Applies-To: PAY-R-101
Rationale: The service computes the daily total from the refunds of the day. A load test measured 40 ms for 1000 refunds. Support reports at most 120 refunds for one merchant on one day.
If-False: The total query becomes slow, and the limit check times out.

### Premise-Group: Limit premises
Group-ID: GRP-LIMIT-PREMISES
Operator: all_of
Members: ASM-UTC-DAY, ASM-REFUND-VOLUME

### Premise-Group: Exchange-rate source
Group-ID: GRP-FX-SOURCE
Operator: any_of
Members: ASM-FX-HOURLY, ASM-FX-CACHE
Listing 3 One assumption and the two premise groups of the change.

CLI · init, repo add, change import

Import a change at an exact commit

The import pins the commit, the extractor and a digest of the result. A later import of another commit becomes a second target that you can compare.

  • No broker, model or network service is needed.
  • Repository text is untrusted data. It is never an instruction.
terminalHistorical run · synthetic repository
$ export NOTARIZING_WORKSPACE=/srv/notarizing-demo/workspace
$ notarizing init
workspace /srv/notarizing-demo/workspace is ready (schema version 12)
next: notarizing repo add ID PATH

$ notarizing repo add demo-payments /srv/notarizing-demo/demo-payments
registered repository demo-payments
path: /srv/notarizing-demo/demo-payments
object format: sha1

$ notarizing change import --repo demo-payments \
    --at 58f73aa38844dcce75296abfc7ecdb1effe50e49 \
    --change add-refund-limits
imported add-refund-limits of repository demo-payments at 58f73aa38844dcce75296abfc7ecdb1effe50e49
target: tgt_g625kewcsiwgote55vvbaeyhuj (built)
target digest: a729c0044d66ea52c7ad354be1358f4b4b55013e15db685f750821557df9989f
requirements: 6 (proposed 5, accepted 2, removed 0); declared nodes 13, edges 28
diagnostics: fatal 0, error 0, warning 0, info 0
search index: generation 1, coverage complete (22 of 22 chunks)
next: notarizing change report --target tgt_g625kewcsiwgote55vvbaeyhuj

$ notarizing change import --repo demo-payments \
    --at b7719d84d43e337dcb7bfdbddbe088f333347fcb \
    --change add-refund-limits
imported add-refund-limits of repository demo-payments at b7719d84d43e337dcb7bfdbddbe088f333347fcb
target: tgt_xxwrnsvhrkxqhdz6rns24j4ktb (built)
target digest: 134c9aba9c241fdc4519ac81cf0734a0cbec745d13515ad6e90b5906731b4631
requirements: 6 (proposed 5, accepted 2, removed 0); declared nodes 14, edges 29
diagnostics: fatal 0, error 0, warning 0, info 0
search index: generation 2, coverage complete (23 of 23 chunks)
next: notarizing change report --target tgt_xxwrnsvhrkxqhdz6rns24j4ktb
Listing 4 Create a workspace and import the change at revision 1 and at revision 2.

Evidence · notarizing.check-report/1

A check report is a claim with a scope

Your own test harness writes the report. It names the exact requirement and implementation snapshots, the checker, the outcome and the scope of the claim. Notarizing validates it strictly and keeps the exact bytes.

  • Artifacts travel with the report and are stored by digest.
  • A report about an older commit becomes stale, not wrong.
  • evidence import takes up to 256 report files, or --dir with one report per subdirectory. Each report gets its own transaction and receipt.
evidence/limit-property-1.jsonSynthetic
{
  "schema_version": "notarizing.check-report/1",
  "report_id": "9a2d7e41-5c3b-4f8a-b1e6-2d9c4a7f3e22",
  "check_id": "CHK-LIMIT-PROPERTY",
  "requirement": {
    "snapshot": {
      "repository_id": "demo-payments",
      "revision": "58f73aa38844dcce75296abfc7ecdb1effe50e49",
      "path": "openspec/changes/add-refund-limits/specs/refunds/spec.md",
      "sha256": "eb519c724985abb1e3b343b5566ca2c631f88378f4ca591c138dbb2ee44170f5"
    },
    "requirement_id": "PAY-R-103",
    "classification": "proposed"
  },
  "target": {
    "kind": "implementation",
    "snapshots": [
      {
        "repository_id": "demo-payments",
        "revision": "58f73aa38844dcce75296abfc7ecdb1effe50e49",
        "path": "src/refunds/limits.go",
        "sha256": "6ab858e651d96056c16c74cd6c9f7da436944af55e8ab82005726dbea464caa6"
      }
    ]
  },
  "method": "implementation_test",
  "checker": {
    "name": "demo-go-test",
    "version": "go1.27.0",
    "executable_sha256": "5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e",
    "toolchain_manifest_sha256": "7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a"
  },
  "started_at": "2026-09-28T09:20:11Z",
  "finished_at": "2026-09-28T09:21:40Z",
  "completion": "complete",
  "reported_outcome": "fail",
  "finding_type": "test_failure",
  "scope": {
    "claim": "Converted refunds never raise the daily total above the limit.",
    "environment": "linux-amd64, go1.27.0, 10000 random histories",
    "assumptions": [
      "Exchange rates from the fixture feed"
    ],
    "exclusions": [
      "Rates older than 24 hours"
    ],
    "bounds": {
      "histories": "10000",
      "seed": "1848"
    }
  },
  "coverage": {
    "requested": [
      "random-histories"
    ],
    "completed": [
      "random-histories"
    ],
    "note": "Synthetic demonstration data."
  },
  "artifacts": [
    {
      "path": "limit-property-counterexample.txt",
      "sha256": "fb7b406b118011424a8ae99aaeb30cf31323a8667010c0af3d31e028d3eef508",
      "byte_length": 360,
      "media_type": "text/plain"
    }
  ],
  "summary": "SYNTHETIC: rounding lets small JPY refunds pass the limit by one minor unit."
}
Listing 5 A check report of a failed property test, with its counterexample artifact.
terminalHistorical run · synthetic reports
$ notarizing binding import evidence/bindings.json
imported bindings 576df72a-636c-44ae-8e47-c4438a78504d (import 1) of repository demo-payments: 3 checks, 4 bindings
file sha256: 0ef492909b1caae1fcfb0387f8ff62df916a938a6aed000b24f8a16d55584957 (2410 bytes)

$ notarizing evidence import evidence/limit-property-1.json \
    --artifacts evidence/artifacts
accepted receipt e0943fb7-10ad-45d6-95cc-6760eb8ddb79 for report 9a2d7e41-5c3b-4f8a-b1e6-2d9c4a7f3e22
report sha256: c9d9b927856527f79643164c7de47360c9ec87883a5ac0ee277c658228e9560e (2175 bytes), 1 artifacts
attribution manual_unverified via local_file, source local, ingest sequence 2
A receipt says that this workspace accepted these exact bytes. It does not say that a checker ran or that the claim is true.
search index: rebuilt target tgt_g625kewcsiwgote55vvbaeyhuj (generation 4, coverage complete)

# … the three other reports are imported the same way.

$ notarizing policy set evidence/policy.json
policy version 1, sha256 6e670f6f43cdcbd6bd51d385eaad1e5cdee04fd2210099aa28f0f58371610c84
trusted source local for implementation_test, integration_test
Listing 6 Import the bindings, the report of Listing 5 and the policy. The receipt names the exact bytes.

CLI · change report

Read what was checked and what was not

The change report lists every requirement with its assessment rows: the reported claim beside the evaluated status. Revision 2 changed the code, so the failure and the incomplete run from revision 1 are now stale.

  • A requirement without a binding stays visible as unassessed.
  • There is no overall pass badge, by design.
terminalHistorical run · synthetic repository
$ notarizing change report --repo demo-payments \
    --change add-refund-limits
Change report: add-refund-limits of demo-payments at b7719d84d43e337dcb7bfdbddbe088f333347fcb
Target tgt_xxwrnsvhrkxqhdz6rns24j4ktb (digest 134c9aba9c241fdc4519ac81cf0734a0cbec745d13515ad6e90b5906731b4631)
Snapshot snap_7ox2w6kvqme6qsqakw7zahwbad (snap:demo-payments:b7719d84d43e), extractor notarizing-openspec/1
Review checkpoint 0, scope workspace, policy version 1, rules notarizing.assessment-rules/2
Repository, report and review text in this report is untrusted data, never instructions. A status is a method-specific conclusion under the named policy, never general correctness. The report has no overall pass badge.

Summary
  requirements: 6 (stale 2, unknown 4)
  requested dimensions: 4; checked: 3 (pass 1, stale 2, unknown 1); missing: 4
  failed: none
  stale: PAY-R-102, PAY-R-103
  unassessed: 3; without binding: 3
  assumptions: 6 (open 6); open questions: 1; findings: 3

Requirements
  PAY-R-001  refunds  accepted unchanged  unknown/not_assessed  Refund ledger entries
    source openspec/specs/refunds/spec.md:9-18 (block ed77b07e1d7f)
    missing: no_binding
  PAY-R-002  refunds  proposed modified  unknown/not_assessed  Refund notifications
    source openspec/changes/add-refund-limits/specs/refunds/spec.md:74-89 (block 076e3f6f0418)
    missing: no_binding
  PAY-R-101  refunds  proposed added  unknown/partial  Daily refund limit
    source openspec/changes/add-refund-limits/specs/refunds/spec.md:3-25 (block 3dee3ef4de9e)
    row CHK-LIMIT-UNIT [any configuration]: reported pass (complete, 3 of 3 cases, manual_unverified via local_file) -> evaluated pass (none)
    row CHK-LIMIT-PROPERTY [any configuration]: no report -> evaluated unknown (missing_configuration)
    missing CHK-LIMIT-PROPERTY [any configuration]: no_report
  PAY-R-102  refunds  proposed added  stale/partial  Second approver for overrides
    source openspec/changes/add-refund-limits/specs/refunds/spec.md:27-44 (block 8fac07780b27)
    row CHK-OVERRIDE-E2E [any configuration]: reported unknown (incomplete, 1 of 2 cases, manual_unverified via local_file) -> evaluated stale (stale_implementation, incomplete)
  PAY-R-103  refunds  proposed added  stale/complete  Limits in the settlement currency
    source openspec/changes/add-refund-limits/specs/refunds/spec.md:46-58 (block c9065d394346)
    row CHK-LIMIT-PROPERTY [any configuration]: reported fail (complete, 1 of 1 cases, manual_unverified via local_file) -> evaluated stale (stale_implementation)
  PAY-R-104  refunds  proposed added  unknown/not_assessed  Limit audit log
    source openspec/changes/add-refund-limits/specs/refunds/spec.md:60-70 (block 4ea1620d6a3f)
    missing: no_binding

…

Premise groups
  GRP-FX-SOURCE  ANY OF: ASM-FX-HOURLY (open), ASM-FX-CACHE (open)
  GRP-LIMIT-PREMISES  ALL OF: ASM-UTC-DAY (open), ASM-REFUND-VOLUME (open)

Open questions
  Q-WEEKEND-LIMIT  Do refunds on weekend days share one limit?

Findings
  missing_check_binding: PAY-R-001 has no approved check binding.
  missing_check_binding: PAY-R-002 has no approved check binding.
  missing_check_binding: PAY-R-104 has no approved check binding.

…
Listing 7 The change report at revision 2. An ellipsis (…) marks the cut lists of assumptions and limitations.

CLI · compare

See what changed between two revisions

compare matches objects by stable ID across two imported targets, each at a pinned review checkpoint. It lists only the declared claims that changed, by ID and title.

  • A link that only moved to other source lines is not a change. The JSON output lists it apart.
  • Review decisions stay apart from source changes.
terminalHistorical run · synthetic repository
$ notarizing compare --left tgt_g625kewcsiwgote55vvbaeyhuj \
    --right tgt_xxwrnsvhrkxqhdz6rns24j4ktb
left:  tgt_g625kewcsiwgote55vvbaeyhuj (add-refund-limits at 58f73aa38844), checkpoint 0
right: tgt_xxwrnsvhrkxqhdz6rns24j4ktb (add-refund-limits at b7719d84d43e), checkpoint 0

Requirements: 6 (wording: 1 changed, 5 unchanged)
  changed requirement PAY-R-101: Daily refund limit [wording]

Assumptions: 6 (1 added, 1 changed, 4 unchanged)
  added assumption ASM-OVERRIDE-EXPIRY: An override that nobody confirms expires after 24 hours
  changed assumption ASM-REFUND-VOLUME: No merchant needs more than 1000 refunds on one day [wording, label]

Premise groups: 2 (2 unchanged)

Other declared objects: 6 (6 unchanged)

Relationships: 28 (1 added, 27 unchanged)
  added assumes PAY-R-102 -> ASM-OVERRIDE-EXPIRY (Second approver for overrides -> An override that nobody confirms expires after 24 hours)
  20 unchanged relationships differ only in provenance, for example their source lines. The JSON output lists them.

Review decisions that differ: 0
limitation: Access-scoped: each side holds only objects that the caller is authorized to see on that side.
limitation: Stable IDs preserve identity. Provisional identities are listed for review and are never matched automatically. Only reviewed one-to-one mappings link different identities.
limitation: Review decisions are listed apart from source changes. A review change is not a wording change.
limitation: Declared inputs describe recorded graph inputs only. Evidence applicability comes from the protected policy. Model evidence and implementation correspondence stay separate.
limitation: Evidence applicability is not part of this comparison. Run change report on each target.
Listing 8 Compare revision 1 with revision 2 of the change.

Export · Mermaid, Markdown, JSON

Export a graph that you can put in a review

The same target, checkpoint, filters and exporter always give the same bytes. The export says what it is and what it is not: a presentation, not proof.

  • Labels are escaped. Hostile text cannot become markup.
  • The graph is bounded: at most 500 nodes and 1000 edges.
terminalHistorical run · synthetic repository
$ notarizing graph export --target tgt_xxwrnsvhrkxqhdz6rns24j4ktb \
    --object PAY-R-101 --view dependencies --depth 2 --format mermaid
%% notarizing graph view as a Mermaid flowchart. Presentation only; not an evidence ledger.
%% Mermaid is a presentation, not proof. Graph reachability does not establish correctness.
%% Review states describe review treatment, not truth. Accepted for scope only is not a proof, a test binding or an approval.
%% schema notarizing.graph/1; exporter notarizing-graph-export/1.0.0
%% review checkpoint 0; query dependencies; depth 2; suggestions excluded
%% roots obj_yxkswyxw3tjhvnffg4sq32m5hs
%% source src_cs4iizuaicipkwppdq5iktt4zf repository demo-payments revision b7719d84d43e337dcb7bfdbddbe088f333347fcb sha256 266ee81e39d0117c42d8e1cc3eca98024f80008fb96d1eda959e9dc7faa35823
%% source src_onb4febxxlsqbj2h7bwq2uohi4 repository demo-payments revision b7719d84d43e337dcb7bfdbddbe088f333347fcb sha256 a644c2edd673abbee2857188ced1c1e9971b0c4fcdfbbf5bd0b0d0b2dc5939ef
%% source src_wbltsfisddryz6jpz555bx6xoz repository demo-payments revision b7719d84d43e337dcb7bfdbddbe088f333347fcb sha256 37f50fc36570075cb157be92ee8778ff111676707d2269d95b3a0991d13619bc
%% coverage authorized_retained_graph (access-scoped); complete; not truncated; depth limit not reached; authorized omissions 0; unresolved relationships 0
%% shapes: rectangle requirement, component, decision, result; stadium assumption; hexagon premise group; subroutine check, model; rhombus question
flowchart LR
  n1{{"ALL OF: Limit premises: not fully reviewed, 0 of 2 members accepted for scope only"}}
  n2(["All services use UTC day boundaries: open"])
  n3(["No merchant needs more than 1000 refunds on one day: open"])
  n4["Refund ledger entries: unassessed"]
  n5["Daily refund limit: assessment unknown"]
  n1 -->|member| n2
  n1 -->|member| n3
  n5 -->|depends on| n4
  n5 -->|assumes| n1
  n5 -->|assumes| n2
  n5 -->|assumes| n3
Listing 10 Export the dependencies of PAY-R-101 as a Mermaid flowchart.
The dependency graph of PAY-R-101: it depends on PAY-R-001 and assumes the premise group Limit premises, which needs both the UTC day assumption and the refund volume assumption. depends on assumes member member PAY-R-101 (root) Daily refund limit assessment unknown PAY-R-001 Refund ledger entries ALL OF Limit premises UTC day boundaries 1000 refunds a day
Figure 4 The same graph, drawn for this page. The drawing leaves out the direct assumption links that the Mermaid text also lists.

CLI · graph suggestions

Similar wording is a suggestion, never a link

The generator notarizing.suggest/1 compares the wording of the requirements of one target in the stored search index. A pair above the threshold becomes a may_relate suggestion with its scores and its generator identity.

  • A suggestion is never a dependency, a binding, coverage or a review state. A reviewer must propose and review the link before it counts.
  • The lexical method always runs. The embedding method uses only stored vectors of a local provider and never calls it.
  • The six requirements of the demo change share no wording above the threshold, so the list is empty. The header still names the generation and the embedding state.
terminalHistorical run · synthetic repository
$ notarizing graph suggestions --target tgt_xxwrnsvhrkxqhdz6rns24j4ktb
notarizing.suggest/1 suggestions of target tgt_xxwrnsvhrkxqhdz6rns24j4ktb: available
lexical generation 6, embedding provider_disabled, requirements 6, truncated false
Suggestions add no dependency, binding or coverage.
Listing 11 The suggestions of revision 2 of the change. There are none.

Agents · Model Context Protocol

Read with tools, review through the Workspace App

notarizing mcp exposes eleven agent-facing read tools over standard input and output. open_workspace opens the full App.

  • Ordinary agent responses are at most 512 KiB.
  • App-only operations append review records after a scoped CLI grant.
  • The App cannot import evidence, purge records, change policy or grant itself authority.
  • Repository and report text remain untrusted data.
MCP client configurationJSON example
{
  "mcpServers": {
    "notarizing": {
      "command": "notarizing",
      "args": ["--workspace", "/srv/notarizing-demo/workspace", "mcp"]
    }
  }
}
Listing 12 Use your executable and workspace paths. Configure an Apps-capable MCP host, then call open_workspace.
App entry pointsTool examples
open_workspace             # Review, Explore, Compare, search and exports
get_change_report          # Evidence coverage and declared relationships
get_model_trace            # Retained Quint states and variable changes
get_implementation_replay  # Expected and observed states, first divergence
Listing 13 Four embedded views use the same production App bundle. Read the setup guide for their arguments and limits.

Review mode · explicit CLI grants

Optional: allow one App session to add review notes

The App starts as a viewer. Reads work without a running owner. Review writes need a headless owner and an explicit CLI grant.

  1. Start serve in a terminal.
  2. Reopen the Workspace App session.
  3. In a second terminal, grant the session ID shown in the App.

The grant limits which items the session can change and when that permission expires. It permits review notes, assumption decisions, link reviews and draft wording.

terminalCommand examples · no recorded output
# Keep the headless owner running in this terminal.
notarizing --workspace /srv/notarizing-demo/workspace serve

# Reopen the App, then use a second terminal.
# Replace SESSION_ID with the ID displayed in the App.
notarizing --workspace /srv/notarizing-demo/workspace \
  review session grant --session SESSION_ID --ttl 30m --scope workspace

# Revoke the same grant when the review is complete.
notarizing --workspace /srv/notarizing-demo/workspace \
  review session revoke --session SESSION_ID
Listing 14 Start the owner and grant one App session review authority. The owner has no browser listener or login page.

Transport · evidence-over-ka2a/1

Receive evidence over ka2a, optionally

A CI system can send a check report to Notarizing through ka2a. The verified ka2a principal selects the source namespace. The payload cannot choose it. The receipt is sent only after the local transaction commits.

  • Local use needs no broker. The adapter is off unless you configure it.
  • A report is at most 256 KiB; the whole package at most 512 KiB.
A2A SendMessage messageSynthetic
{
  "messageId": "0f6a3c1e-5b2d-4e8f-9a71-3c2b1d0e9f84",
  "role": "ROLE_USER",
  "parts": [
    {
      "data": {
        "profile": "notarizing.evidence-over-ka2a/1",
        "operation": "evidence.submit",
        "body": {
          "report_base64": "ewogICJzY2hlbWFfdmVyc2lvbiI6ICJub3Rhcml6aW5nLmNoZWNr…",
          "artifacts": [
            {
              "path": "limit-unit-log.txt",
              "bytes_base64": "U1lOVEhFVElDIERFTU9OU1RSQVRJT04gQVJUSUZBQ1QuIE5v…"
            }
          ]
        }
      },
      "mediaType": "application/json"
    }
  ]
}
Listing 15 An ellipsis (…) marks the shortened base64 values. The JSON is what the Go client of the adapter builds.

CLI · doctor

Check the workspace and the adapter health

When notarizing serve runs, doctor also reads the health of its ka2a adapter. It reports the adapter state, the reason, a broker denial with its scope and count, and the validity of the client certificate.

  • The adapter can use broker mutual TLS. Its key file must be private, and an expired certificate keeps the adapter unavailable.
  • A missing broker ACL degrades only the adapter, with the reason authorization_failed. Local imports and the MCP Workspace App keep working.
  • After a credential reload, doctor also reports the result of the last reload and whether the catalog on disk differs from the running catalog.
  • With broker revocation lists (tls.crl_file), doctor warns 24 hours before the next update of the lists, and when they are stale. The adapter gives the same time to the ka2a node, so its status and metric agree with the adapter health.
  • The adapter is optional, so these checks are never errors. In this demo the owner runs without an adapter.
terminalCommand example · no recorded output
# The headless owner runs in another terminal.
notarizing --workspace /srv/notarizing-demo/workspace doctor
Listing 16 Inspect the workspace and optional adapter health. The local MCP App remains available when the broker is unavailable.

Evidence

A reported pass is not an established pass.

A receipt says that the workspace accepted exact bytes. The reported claim is what the producer asserts. The evaluated status is what the claim establishes under a named policy. The three stay apart.

StatusWhen
passAn eligible, applicable and complete report supports the requirement under the selected policy, and no report shows a failure.
failAn eligible, applicable report shows a concrete failure, such as a failed test or a reachable counterexample.
staleThe report checked another revision of the specification or the implementation.
unknownThe report is missing, incomplete, from an untrusted source, or from an evaluator that the binding does not approve.
not_applicableThe policy excludes this requirement and check, with a reviewed reason.

Trust is explicit. A local file import stays manual_unverified. Its outcome counts only when the workspace policy trusts its source for that method. The demonstration trusts the local source so that its outcomes can count.

Security

Local by default, strict by design

Specifications, reports and review text can come from anyone. Notarizing treats all of them as data.

A local MCP connection

The MCP server uses standard input and output. The headless owner exposes a private control service. It serves no standalone website.

Server-owned sessions

A connection capability identifies each App session. A supplied session ID or host label cannot grant review authority.

Expiring review grants

Review authority comes from the CLI, for one session, one scope and a limited time. The App cannot change policy or import evidence.

Imported content stays data

Notarizing never executes imported content, fetches URLs from reports or edits a source repository. Patches are proposals that you apply yourself.

Separate authorities

Agent reads, App review commands, CLI administration and ka2a principals have separate permissions. The MCP host belongs to the trust boundary.

Local models only

Semantic search is off by default. When you turn it on, it uses a local Ollama endpoint on a loopback address, and nothing else.

Read one change only

A reader can narrow search and the graph to the selected change. Search leaves hidden objects out before limits, ranking and excerpts, so they change no result. The narrowing never widens a read or a grant.

Mutual TLS for the adapter

The optional ka2a adapter can authenticate to the broker with a client certificate. The key file must be private. notarizing ka2a reload or SIGHUP to serve reads the certificate, key, CA, password and revocation list files again without a restart. A refused reload keeps the previous material.

Denials in the adapter health

A missing broker ACL shows as authorization_failed with its scope in the adapter health. Only the adapter degrades. A producer whose request record is denied gets an error that names the scope.

Built from its own specification

Notarizing reviews the change that builds it

The R2 reimplementation is itself an OpenSpec change with requirement IDs, declared assumptions and an acceptance ledger. The workspace can import that change and review it like any other.

core MCP App cases passed in the migration run
13
shared component tests passed
284
committed receipt traces replayed on Go
30
steps in those receipt traces
442

Real App, real server

Playwright drives Chromium through the official SDK bridge, a real MCP connection and the headless Go owner. Tests cover review grants, retries, conflicts and exports.

Inspect a mismatch

The receipt replay uses the real service and SQLite store. A deliberate broken-model control confirms that the comparison detects a divergence.

Preserve review history

Schema 13 keeps historical review rows and adds MCP actors. Migration tests check rollback, foreign keys and portable bundles.

Test useful workspace sizes

Review, graph and table views passed render measurements with 100 and 1,000 requirements. Those timings describe the shared test host.

Exercise the MCP connection

The migration run exercises the local SDK host in Chromium. This is the host and browser used for the recorded App results.

Read the evidence

The migration record lists commands, outcomes and provenance. Repository access is required.

Workflow guides

Connect a change to its evidence

Use the guides to lint specifications, set up a workspace, import reports and review a change.

Lint or review specifications

Use standalone linting to check committed specifications. Follow the workspace guide to import a change and connect your MCP host.

Connect checks to requirements

Write reports with the evidence producer guide. The binding workflow explains how to inspect and export a proposal before importing it.

Operate and share a workspace

The operator guide covers backups and workspace ownership. Use the collaboration guide for portable review bundles.

Read the complete documentation index for command references, model replay, privacy and security assumptions.

Also in this family

ka2a: agent messages that survive the restart

A Go SDK and command-line tool for durable agent-to-agent messages over Apache Kafka. Notarizing can use ka2a to receive evidence. Local review also works without ka2a.