enolaDocsChange control

Documentation

Change control

Compare the architecture before and after a change, then choose which findings should fail the check.

01 · Workflow

Pin, change, compare

Manual loopshell
enola baseline pin
# make the change
enola check

baseline pin creates the “before” snapshot. check builds the current snapshot, verifies that the two snapshots are comparable, and reports findings introduced by the change.

Snapshots are not comparable when the Enola version, repository, or ignore configuration differs.

If only the producer set differs, Enola grades facts from extractors and providers present in both snapshots. The result is marked PASS (partial verdict) or FAIL (partial verdict) and names every excluded producer and ungraded fact.

02 · Impact

Ask what breaks before you change it

Blast radiusshell
enola impact SessionStore
enola impact --list --max-depth 2 SessionStore
enola impact path/to/changed_file.go --list
enola impact 'file:internal/auth SessionStore'

enola impact lists everything that depends on a symbol, type or module, grouped by hop depth. With no flags it prints a summary: the exact dependent count, the breakdown by kind and depth, and the modules holding the most dependents. Hand it a file straight from a diff and it starts from every symbol the file declares.

The target matches as a substring of a fact name. Narrow it with a kind:, file: or repo: prefix. A target matching too many nodes is not guessed at: the candidates are printed, nothing is traversed, and the command exits 2. Use enola endpoint when what you have is a URL.

It runs in a plain shell, so pre-commit hooks, CI steps and review bots can use it too.

Where change keeps landing

Most-changed functionsshell
enola touched --since 3.months --exclude '^ci'
enola touched --since 2024-06-01 --subject '(?i)^fix\b'
enola touched --subject '(?i)^fix\b' --max-symbols 15

enola touched reads a run of commits and ranks the functions they changed, most often changed first, following a file through renames. Merges are skipped. It extracts only the files each commit changed, writes nothing to the repository and takes no snapshot. --max-symbols leaves out sweeping commits. Agents get the same answer through the touched MCP tool.

03 · Policy

Exit codes

CodeMeaningAction
0No configured regression was introduced.Continue.
1The change introduced a finding covered by --fail-on.Block the commit or job.
2The check could not run, for example because no baseline exists or a --fail-on name was not recognised.Fix the invocation or repository state.
3The snapshots are not comparable: for example, the Enola version, repository identity, or ignore configuration differs.Review the receipts, then re-pin with the intended configuration.
Default: Enola reports findings but exits 0. A check fails only for categories selected with --fail-on.
Policy controlsshell
enola check --fail-on=layers
enola check --fail-on=layers,cycles,intent
enola check --fail-on=god-class --min-confidence=0.8
enola check --fail-on=layers --warn-only
enola check --json
enola check --detail
enola check --focus=internal/auth
enola check --target=internal/auth --max-spillover=0

--fail-on accepts a comma-separated list of exact category names, including layers, cycles, intent, god-class, and hotspots. An unknown name returns exit code 2. Use enola check --json to inspect the applied policy.

Pattern matches and cluster-config overrides appear under Descriptive (never graded). They cannot fail a check.

--min-confidence sets the confidence floor before policy is evaluated. The default is 1.0; lower it to include inferred findings.

--warn-only prevents findings and spillover breaches from returning exit code 1. Invocation errors and incomparable snapshots still return codes 2 and 3.

--focus narrows the reported delta. --target defines the intended change area and reports touched packages outside its predicted dependency radius as spillover. Spillover fails only when it exceeds --max-spillover; set the limit to 0 to reject any spillover.

04 · Automation

Automate the loop

Run enola baseline pin and enola check from local scripts, hooks, or CI.

CI

Use CI setup for the maintained GitHub Actions workflow, merge queue trigger, confidence input, provider-native annotations, and SARIF output. Other CI systems can run enola check --fail-on=… directly and use its exit code.

Agent hooks: enola install --hooks adds hooks that pin a baseline at session start and check the result at session end. Codex requires one-time approval through /hooks. Run enola doctor to verify the installation.

05 · Findings

Deterministic and heuristic checks

Cycle detection uses Tarjan’s strongly connected components algorithm. Findings such as god classes, hotspots, dependency depth, and complexity outliers use documented thresholds.

The result is bounded by extractor coverage. Dynamic imports, generated code, runtime registration, and unsupported framework behavior can leave edges unresolved. Treat the receipt and coverage report as part of the result.

Read the full explainer guide for all twenty-four explainers, their evidence, confidence, and default gate behavior. Snapshot comparability and provenance are described by the receipt returned through snapshot_receipt.