Notarizing documentation
Upgrade notes
This guide describes Notarizing at revision 58d3f66610e4cce25ddd64d065c8f36f06abb229. Source: docs/upgrade.md. Source links require repository access. The App examples on the product page use reviewed revision 98455fe03bb7.
Contents
A workspace has a schema version. A new notarizing binary can add schema migrations.
A command that owns the workspace applies the pending migrations when it opens the
workspace: init, serve and the commands that write, for example change import.
Read-only commands and mcp refuse a workspace that needs a migration. Run init on
purpose after a backup, so that the migration happens at a time that you select.
Before you upgrade
Stop
notarizing serve. A migration needs the workspace owner lock.Make a backup with the old binary:
notarizing backup --output /backups/ws-before-upgrade notarizing backup verify /backups/ws-before-upgradeKeep the backup until you have checked the upgraded workspace.
A migration is not reversible. An old binary cannot open a workspace that a new binary migrated. To go back, restore the backup with the old binary (see the operator guide).
Upgrade
Install the new binary.
Apply the migrations:
notarizing --workspace /srv/notarizing/ws initCheck the workspace:
notarizing --workspace /srv/notarizing/ws doctorStart
serveagain.
If the workspace has a newer schema than the binary, the binary refuses it with
unsupported_schema (exit code 1) and changes nothing. Install the newer binary.
Schema versions
Each migration applies once, in order, in one transaction. The workspace records the SHA-256 of each applied migration. A released migration never changes.
| Version | Migration | What it adds |
|---|---|---|
| 1 | 0001_evidence | Reports and artifacts by digest, receipts, report IDs for retries. |
| 2 | 0002_sources | Registered repositories, source snapshots, effective targets, check bindings and the assessment policy. |
| 3 | 0003_review | The append-only review journal and its projections: assumptions, relationships, decisions, notes, wording drafts and saved views. |
| 4 | 0004_graph | Reserved. It applies no change. |
| 5 | 0005_search | The search index, the embedding provider configuration, retention purges and imported evidence bundles. |
| 6 | 0006_assessments | Immutable assessment records and an index for the evidence of one requirement. |
| 7 | 0007_corrections | Collector records of corrected results (evidence correct). |
| 8 | 0008_bundle_review | Review events and corrections of imported evidence bundles, as claims of the exporting workspace. |
| 9 | 0009_empirical_relations | Four empirical relation kinds of the review journal: observes, hypothesizes, regresses and fixes. |
| 10 | 0010_review_supersessions | The scope of reviewed supersessions: a later receipt supersedes a corrected failure for one requirement and dimension. |
| 11 | 0011_source_access | The source access changes of registered repositories (repo access revoke and repo access restore). |
| 12 | 0012_repository_locations | The path changes of registered repositories (repo set-path). |
| 13 | 0013_mcp_review_actors | Add MCP session actors while preserving historical review rows, projections and imported attribution. |
The current schema version is 13. A test checks that this table names every migration of the binary.
After the upgrade
- Search indexes stay valid when the extractor and chunker versions do not change. If
notarizing search statusshows a stale index, runnotarizing search index --target ID. - Check the CLI reference for new commands. This revision adds
notarizing graph whatif,notarizing repo access revokeandnotarizing repo access restore. - Migration 11 adds an empty table. Every registered repository keeps its source access.
MCP App interface migration
The standalone browser interface, browser flags and login secrets are removed. Build
with make web, connect a supporting host to notarizing --workspace DIR mcp, and call
open_workspace. For review writes, start headless serve, reopen the App session and
grant its displayed ID with the existing review session grant command. An old browser
session does not carry authority into the new process. Existing source, evidence, review
records and historical actor attribution remain in the workspace. Back up before upgrading.