# Check your change

Source: https://usecns.dev/soma-guide-check-your-change/

[Start here](https://usecns.dev/manual-soma/)
[CLI commands](https://usecns.dev/commands-soma/)
[Configuration & integration](https://usecns.dev/soma-topics/)

If your repository already uses Soma, run these commands from its root before merging. Replace `main` if your team reviews against another branch.

```
soma verify
soma concerns check --base main --check
```

The commands answer different questions:

* **`verify`:** do concern schemas/generated trigger blocks, the manifest and source-anchor pins pass their consistency checks? This does not re-render every map to prove it current.
* **`concerns check`:** which concerns does this change touch? With `--check`, applicable active concerns and invalidated source pins can fail the command.

Without `--base` or a configured `default_base`, local checks compare working-tree changes against `HEAD`, so active concerns already committed on your branch gate those changes. Add `--base main --head HEAD` to review the committed branch range instead; concerns added within that range remain shadow until adopted at its base.

Read the report as well as the exit code. A concern matching your change does not automatically mean the change is wrong. Inspect the concern, answer its questions, and fix the change or follow your team's review process.

Exit 0 is not a coverage certificate: unavailable symbol/reach evidence, truncated graphs and unevaluated text can remain in the report. A quiet check on source code says so: `fired: 0 (uncovered_code_diff: ...)` names the modules no concern guards, which `concerns census` ranks for curation. Use the [report boundaries](https://usecns.dev/soma-topic-read-check-reports-and-evidence-boundaries/) to decide whether the checks you need actually ran. A concern's `gate` names an external test; Soma does not execute it.

| Exit | What to do |
| --- | --- |
| `0` | The command passed its applicable checks. Confirm which checks ran. |
| `1` | Inspect the reported failure or gating concern. |
| `2` | Fix the arguments, configuration or prerequisites that prevented evaluation. |
| `3` | Restore the missing data or service needed for the requested evaluation. Do not count this as a pass. |

Keep `--check` in automated gates. Without it, `concerns check` can report matching concerns without returning a failure exit code.