Soma · Manage concerns

soma concerns check

Part of soma concerns. See that entry for shared arguments and usage.

soma concerns check [--base <ref>] [--head <revision>] [--format <markdown|json>]
  [--clients] [--check] [--delta <file> | --axon <binary>]
  [--systemone [--rubric-threshold <probability>] [--systemone-timeout-ms <milliseconds>]]

Defaults: format markdown, no client expansion, no exit-code gate, no structural-delta producer, no rubric call. --base overrides configured default_base. Without either, local working-tree checks use HEAD: concerns already committed as active on the current branch gate local changes, even ahead of a remote branch. With --head, a committed range is evaluated and the default base is the first resolvable origin/develop, origin/main, develop, main, HEAD, preserving PR concern-rollout shadow protection. Checks use the computed merge base. --clients adds available roster context.

JSON (--format json) reports the selected ref in base, the comparison commit in lifecycle.base, and each fired concern's state, stateReason, and gating. Uncommitted added/modified concerns remain shadow locally; their active base versions, if any, still gate. To review an entire branch including committed changes, use --base <target> --head HEAD; to enforce only local changes regardless of a configured branch base, use --base HEAD.

--delta and --axon are mutually exclusive. The former reads a saved DeltaReportV1; the latter runs the supplied Axon binary for the checkout. A non-checkout explicit head requires a saved delta, not --axon. Structural envelopes must bind to the exact changeset. Malformed/refusal envelopes, symlink concerns, unevaluable registries, a concern with any trigger that does not compile (it would otherwise be evaluated with that trigger dropped), and binding errors are refused with 2. A trust-floor mismatch instead withholds structural trigger evaluation and is reported under notCertified; it does not itself force exit 3.

--check exits 1 for gating active critical/warning fires, anchor invalidation, Axon contract findings in a structural delta (an unresolved column the change introduced, or a prop/payload contract mismatch; see contracts below), and applicable base-concern failures. Without it, a report containing fires need not fail. Lifecycle gates certified active base versions, not a concern newly authored/changed in this changeset.

--systemone enables outbound Thalamus rubric evaluation using required THALAMUS_URL, discovered healthy System 1 model, and no built-in host. Default threshold 0.50; accepted threshold values must be finite in (0, 1], but the flag is described as reserved for future calibration. Timeout default 45,000 ms, positive integer only, measured from command start through the oracle answer. Threshold/timeout flags without --systemone are refused. The rubric can only add red; with --check, failed questions can make question-severity concerns red too. No gating fired concerns means vacuous, no call. Requested but unavailable/unreadable/incomplete oracle evaluation exits 3 even without --check; never turn 3 into pass. Evaluated verdicts append .soma/rubric-verdicts.jsonl (configured generated root applies). Output explicitly labels which oracles ran.

See CLI conventions for shared configuration and exit behavior, or browse all commands.