Soma · Configuration & integration

Review and pin source anchors

In Instrument, link enforcement points with [[sym:crate::module::Type::method]] or [[file:src/invoices/retry.ts]]. Any anchor cited elsewhere in a concern must also be cited in Instrument. File anchors support #L10, #L10-L20 and #L10-20: lines are one-based and bounds-checked. Anchors in fenced/inline code are examples, not live citations. Symbol resolution is language-sensitive and can refuse missing or ambiguous declarations. Prefer focused anchors when whole-file churn would cause irrelevant drift.

After editing a concern:

soma concerns validate invoice-idempotency
soma concerns lint --polarity
soma concerns index
soma docs reconfirm 'concerns/invoice-idempotency.md'
soma verify

Validation checks schema, section order, triggers and anchor resolution; an existing recall set can also be replayed. Indexing regenerates the registry and trigger blocks. Reconfirm records canonical hashes in <generated_dir>/anchors.lock.json; verify checks freshness, manifest shape and pins.

Reconfirm only after reviewing why the source and explanation still agree. --all (also the no-target default) replaces every expected pin. An ordinary authored page can be narrowed to #<section>, but a concern must be reconfirmed as a whole entry. Updating hashes acknowledges source changes; it does not establish that the prose is true.

Section targets use the exact H2 heading text, not its HTML slug: for example soma docs reconfirm 'architecture.md#Retry policy'. All-mode refuses anchor-scan/resolution problems; targeted mode replaces only successfully resolved pins in the requested selection and does not enforce that global problem list or require the section to exist. A successful targeted reconfirm is therefore not validation—always follow it with soma verify. Ordinary init/render creates a lock only if missing; it does not refresh an existing lock. concerns check inspects existing lock pins touched by changed source (or now unresolved), not missing citations/pins comprehensively; pair it with verify as in the guide.