# Verify

After the approved steps have run, `verify` compares what ran with what you approved. It reads the receipts the gate wrote, not the chat.

```text
/mycelium-extra:verify 84bb5fce
```

## What you get

A report that ends in one of three statuses. This one is from the [walkthrough](walkthrough.md):

```text
# Verify plan 84bb5fce: CONFORMS

Ran as planned  yes: 3 of 3 steps ran, 3 run(s), all completed
Numbers match   yes: 8 of 8 claimed cells match
…
```

"Claimed cells" are the numbers your analysis doc states in its `<!-- claims -->` block; verify checks each against the output file it names.

| Status | Means |
|---|---|
| `CONFORMS` | Every planned step ran as approved, and nothing is missing from the record. |
| `CONFORMS_WITH_GAPS` | Nothing contradicts the plan, but something could not be checked. |
| `DOES_NOT_CONFORM` | Something contradicts the plan, for example a failed run, a changed input, a script edited after it ran, or a number that differs from its output file. |

## Gaps

A gap is a point nobody could check. Verify lists each one instead of passing it, and any gap turns the status into `CONFORMS_WITH_GAPS`. For example, when R is missing the R script's lint cannot run:

```text
scilintr (R) not checked: `Rscript` not found. …
```

Verify also lists what it did not check, such as `3 Validation cell(s) are prose`: a Validation cell written as a sentence, not a check a tool can run.

A gap is not a failure. It tells you which claim rests on nothing checked. Close it, or say in your write-up that the point was not checked.

## Saving the record

Verify asks before it writes. When you confirm, it saves `<analysis>/provenance/`: the frozen plan, the receipts, each output with its checksum and the step that made it, and a short index. Commit that folder with the analysis.

## What it does not do

`CONFORMS` means the record agrees with the plan. It does not mean the science is right: a run can follow a flawed plan exactly. A run the gate never saw has no receipt, so verify shows that step as a gap, never as done.

Next: [Hand off](handoff.md). Statuses, checks and options are in the [verification reference](https://github.com/mdmanurung/mycelium-extra/blob/main/docs/verification.md).
