Soma · Configuration & integration
Interpret census and ledger evidence
Use census over a chosen recent range, then verify its ledger:
soma concerns census --last 20 --ref HEAD --format json
soma concerns ledger --verify
Census evaluates non-merge commits with parents and appends one row per parseable concern committed at the selected census head to <generated_dir>/concern-ledger.jsonl, including when output is JSON. It uses that head's own documentation layout and recall labels. Uncommitted concern/recall edits do not change the census. Root/unresolvable evaluations are omitted; inspect the actual evaluated range/count. Census uses textual triggers without adjacent recall/tolerance deltas or live rubric requests.
Census also reports blind spots, derived from the evaluated range and not written to the ledger. JSON coverage counts coveredCommits, noCodeHunksCommits and uncoveredCodeDiffCommits, with uncoveredSymbols and the top ten uncoveredModules and uncoveredFiles by the number of uncovered commits; Markdown prints the same as tables. A module that recurs there changed code that no concern guards. Census is textual, so a module only a touches_symbol concern guards still appears; confirm with concerns check --delta.
Rows record the range/hash, concern hash, state/severity, expected/unexpected fires, verdict dispositions and input hashes. An expected fire is on a recall introducing commit that names the concern in expect_fire; unexpected means not so labelled, not necessarily a false positive. never_fired means zero fires in that range, not an ineffective concern everywhere.
Verdicts join <generated_dir>/rubric-verdicts.jsonl on concern ID and the SHA-256 of the first-parent unified diff. Any failed question yields rubric_fail, even if a later evaluation passed; at least one pass and no failure yields rubric_pass; otherwise the fire is not_evaluated. Without a verdict log all fires are not evaluated. Malformed verdict rows cause refusal, not silent omission.
Ledger outcomes distinguish fired-and-overridden (a red fire whose commit nevertheless landed), fired-and-passed (rubric passed with nothing making it red), and fired otherwise. These use the concern's state and severity at the census head, not necessarily its policy at each introducing commit. Quarantine proposals require a verdict stream, at least one fire, and passing verdicts for every fire. Fire rate alone never justifies a proposal, and a proposal never edits state.
Rows form a hash chain (prev/row_sha256). ledger --verify checks it and re-derives every row from Git at its recorded rev_range.head: range/count/hash, concern blob/hash, recall blob/hash, derived counts and verdict dispositions. Missing heads/concerns, forged hashes, changed counts or stale dispositions fail with exit 1; there is no chain-only fallback. Current working-tree edits do not invalidate committed inputs. The recorded verdict-log prefix must still match byte-for-byte; dispositions rejoin verdicts dated at or before the row (undated included), while later-dated additions do not make it stale. Preserve that log too.
Census refuses to append to an invalid ledger. Verification cannot detect deletion of the whole ledger (ledger: absent, exit 0), tail truncation, or deleted/reordered rows when the chain is recomputed. A reproducible remaining row is not proof that the log is complete.
Preserve Git history and source inputs for reproduction. JSON reports and a valid hash chain are evidence about these instruments and inputs, not proof of application semantics or a replacement for sealed tests and review.