NarrativeContext

constructor(graph: ModuleDependencyGraph, metrics: GraphMetricSet, summary: GraphSummary, violations: List<Violation> = emptyList(), layers: List<LayerSpec> = emptyList(), teams: Map<String, List<String>> = emptyMap(), churn: List<ModuleChurn> = emptyList(), hiddenCoupling: List<CoChange> = emptyList(), inventory: BuildInventory = BuildInventory.EMPTY, extensions: ExtensionResult = ExtensionResult.EMPTY)(source)

Parameters

graph

The module dependency graph.

metrics

Structural metrics, computed once by GraphMetrics.compute.

summary

Whole-graph summary (cycles, coupling, god modules).

violations

Rule violations from the current run, if rules are configured.

layers

Declared layers, in declaration order. Empty when none are declared.

teams

Declared team → module glob patterns. Empty when none are declared.

churn

Per-module commit counts from aalekhTemporal. Empty when it has not run.

hiddenCoupling

Strongly co-changing pairs with no declared dependency, from aalekhTemporal.

inventory

How the project is built: plugins, catalogs, toolchains, targets, CODEOWNERS, and declared module metadata. BuildInventory.EMPTY for a graph extracted before this existed.

extensions

Contributions from third-party FindingProviders and ModuleClassifiers. ExtensionResult.EMPTY when no extension jar is on the classpath.