Soma · Configuration & integration

Configure repository discovery

Soma discovers the Git root first, then reads soma.toml, not soma.yaml. The recognized settings are name, docs_dir, generated_dir, default_base, curator, module_path_prefix, module_symbol_prefix, modules, features, manifest and contract_findings. A typical configuration is:

name = "example-service"
docs_dir = "docs/soma"
generated_dir = ".soma"
default_base = "main"
curator = "@maintainer"
module_path_prefix = "packages/"
modules = ["billing", "catalog"]

Without overrides, authored documentation lives in docs/soma, generated state in .soma, and the curator is @soma. Track authored concerns; generated maps, lock state and derived ledgers are git-excluded. Review the files and ignore rules written by initialization.

contract_findings (default true) makes structural concerns check red on Axon's contract findings; false still reports them, without gating.

manifest is a repository-relative selector for adapters such as composer.json, Cargo.toml, package.json and pyproject.toml. Without it, Soma uses discovery. A manifest in .soma/config is another input, but soma.toml wins. Composer PSR-4 information applies only to PHP symbol resolution; it does not turn Rust or JavaScript anchors into PHP anchors.

Module detection considers explicit configuration, modular application directories, Cargo packages/workspaces, JavaScript workspace directories, then source-root subdirectories. Authored pages can contribute documented module names. Set modules and module_path_prefix when discovery does not match your architecture; module_symbol_prefix is also recognized for symbol naming.

Optional <docs_dir>/clients.json describes client-to-feature membership. TOML features can supply a feature set without that roster. Client expansion adds context, not deployment tests or requests to clients. Keep private rosters out of public documentation.

For a minimal roster, use {"features":["billing"],"clients":{"example":["billing"]}}. Feature entries can also be objects with name, or a feature-name map with enabledBy client arrays. Client values can be arrays or objects with features; a client list can instead use slug (or client/name) and features. Invalid/unreadable roster JSON falls back to TOML features or absent context during discovery; explicit docs render --clients <file> instead refuses unreadable/invalid JSON. Check the report rather than assuming the roster loaded.

THALAMUS_URL is the sole Soma-specific runtime environment input read by the executable. It is consulted only for requested rubric evaluation; unset/blank is not evaluated, with no default service. Git, executable lookup and temporary-directory handling also inherit normal process environment; they are not extra Soma configuration keys. --root changes discovery. Relative render --clients, --axon-db and --ote paths use that selected working directory, not automatically the discovered Git root. A relative check --delta path is opened from the process working directory (--root does not change the process directory); prefer an absolute delta path when combining them.

Set default_base or pass --base explicitly in automation: the fallback sequence in concerns check can resolve successfully without selecting the branch you intended to review.