MetricsEngine

Computes architecture health metrics for a ModuleDependencyGraph.

This file defines the data contracts now so the JSON baseline format is stable before metrics are fully implemented.

Metrics computed per build:

  • Afferent/efferent coupling (Ca/Ce) per module

  • Instability index (Ce / (Ca + Ce))

  • Abstractness (not computable from the graph alone - needs KSP in v1.0)

  • Distance from the main sequence (|A + I - 1|)

  • Project-wide coupling factor

Functions

Link copied to clipboard

Computes per-module metrics for all modules in the graph.

Link copied to clipboard

Computes project-wide aggregate metrics.