# Prover Manual

**Current release: v0.1.0**

## Scope

Prover verifies static artifact bytes and claims. It may read a GitHub Release and download its assets. It never installs those assets, launches a GUI, executes a user journey, drives CI, publishes, pushes, or dispatches.

## Install

From a Prover checkout with Python 3, choose one or more harnesses:

```powershell
python install.py --app codex
python install.py --app claude
python install.py --app antigravity
```

With no `--app`, installed harnesses are detected. Use `--list` for a no-write preview. A copied install contains the skill, engine, CivicNewspaper manifest, F-8 replay fixture, and locked production dependencies. Start a fresh agent session after installation.

The installer refuses to overwrite or uninstall a destination containing `.git`, `.hg`, or `.svn`. This protects cloned skill installations and unpushed history.

## Natural-language use

Invoke `$prover` and ask “verify the release,” “what's really in this release,” or “check what actually shipped.” The skill locates the exact manifest and calls:

```text
node scripts/cli.mjs check --release <owner/repo> --tag <tag> [--run <dir>]
```

Deliver the resulting `acceptance-packet.html` with the exact verdict sentence. Failed and unproven packets are delivered identically to proven packets.

## Commands

| Command | Purpose |
|---|---|
| `check --release <owner/repo> --tag <tag> [--run <dir>]` | Reconcile, download, admit, verify, and compile a packet. |
| `verify --run <dir>` | Perform static verification against objects admitted by intake. |
| `packet --run <dir>` | Compile the manifest acceptance criteria into JSON and self-contained HTML. |
| `replay --fixture <fixture.json>` | Replay a recorded binding set through the static claim-set verifier. |
| `lock`, `build`, `finalize`, `ingest` | Existing locked build/finalization pipeline; no workflow dispatch. |

Exit code `0` means PROVEN or a successful replay expectation. Exit code `2` means FAILED or invalid operation. Exit code `3` means UNPROVEN.

## Release verification

For `build.kind: external-release`, the manifest is completeness authority. Prover requires the published asset names to match it exactly, downloads the release read-only, rejects unsafe downloaded trees, compares GitHub size/digest observations, hashes independently, and stores bytes under `objects/sha256/<prefix>/<digest>`.

Static verification then re-hashes admitted objects, refuses N-1 or extra sets, enforces digest bindings, checks declared Ed25519 ccpack or Authenticode evidence where applicable, and cross-checks `SHA256SUMS`. A checksum disagreement is `FAILED`; the checksum file never supplies the expected set.

## Reading the packet

The JSON and HTML contain one row per acceptance criterion, evidence digests, freshness against the authority root, proof boundary, and assurance level. Artifact-specific limitations such as the CivicNewspaper DMG's `digest-only-on-windows` boundary are listed explicitly.

- `PROVEN`: all criteria passed.
- `FAILED`: at least one named check failed.
- `UNPROVEN`: no failure exists, but at least one criterion is not proven.

Installed and journey requirements always state `requires installed verification - outside this skill's scope.` They compile but do not run.

## Uninstall

```powershell
python install.py --uninstall --app codex
python install.py --uninstall --app claude
python install.py --uninstall --app antigravity
```

Use `--list` to preview. `runs/` and `objects/` are preserved in a unique `prover.uninstall-backup*` directory beside the skills root. The uninstaller refuses unknown directories and version-controlled working copies.

## Verification of the skill itself

```powershell
npm test
npm run check
python tests/test_install.py
```

These tests are local. They do not operate Sandbox, GUIs, CI, releases, or remote repositories.
