Soma · Guides

Check your change

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:

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 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.