Soma · Configuration & integration
Build recall and tolerance datasets
Recall tests sensitivity to historical introducing changes. Tolerance tests silence on independently known-good changes. Keep both datasets under <docs_dir>/concerns/; recall also supports the legacy tools/soma/concerns/recall.yaml fallback.
recall.yaml has this shape (replace placeholders with real history and entry confidence):
schemaVersion: 1
confirmedFloor: 0
entries:
- introducing: '<introducing-commit>'
fixed_by: '<fix-commit>'
expect_fire: [invoice-idempotency]
expect_reach: []
confidence: confirmed
note: 'Retry regression and its subsequent fix'
Optional structural reports are adjacent at recall/<introducing>.delta.json. The recall command checks expected fires and, in an all-concern run, the confirmed-entry floor (default 0). Do not read descriptive fields such as fixed_by or expect_reach as independently verified guarantees. --only selects entries naming the concern and skips the aggregate floor; inspect its reported count rather than assuming a nonempty test set.
confidence defaults to confirmed; only that exact spelling counts toward the floor. note defaults to empty. Recall requires the four introducing/fix/expectation fields but is less strict than tolerance about extra keys and list element types. It evaluates the current valid concern definitions against introducing commits, not the definition that existed when each incident happened. A selected entry still checks all its expect_fire IDs, not just the --only ID.
tolerance.yaml names concerns that must stay silent on known-good commits:
schemaVersion: 1
entries:
- commit: '<full-40-hex-known-good-commit>'
expect_silent: [invoice-idempotency]
note: 'Retry behavior covered by the project sealed tests'
Use distinct full lowercase 40-hex commit IDs, not movable or abbreviated refs. Each commit is evaluated against its first parent; a root commit cannot be evaluated. Unknown keys and invalid named concerns are refused with exit 2. Optional structural evidence lives in tolerance/<commit>.delta.json.
For each concern, tolerance is the fire rate over entries naming it. The check fails with exit 1 only when that rate is strictly greater than the concern's allowed tolerance. No tolerance file, or no applicable entry for --only, is exit 3. No recall file is also exit 3. Restore or author the missing evidence; neither result is a passing check.
The all-concern tolerance command can exit 0 with unnamed concerns marked not evaluated, even for an empty entries list. Use --only <id> for non-vacuous promotion evidence. Recall/tolerance adjacent deltas are opportunistic: unreadable or unparsable files are ignored and usable envelopes are not bound/trust-gated as strictly as concerns check --delta. Audit these fixtures separately; a tolerance pass cannot certify structural silence without correct complete evidence. Neither replay invokes the rubric or runs the tests named by gate.
Run the complete evidence loop after replacing the commit placeholders:
soma concerns validate invoice-idempotency
soma concerns recall --only invoice-idempotency
soma concerns tolerance --only invoice-idempotency
soma concerns promote invoice-idempotency
soma concerns index
soma docs reconfirm 'concerns/invoice-idempotency.md'
soma verify
Review and land the authored change through the normal repository process. Use --base main --head HEAD --check on later changes to exercise the certified base; there is no baseline, accept or suppression subcommand that converts a fire into approval.