AalekhMainSequenceTask
Computes each module's distance from the main sequence and writes it as a local artefact.
For every module it estimates abstractness (A) from a coarse Kotlin/Java source scan, reads instability (I) from the dependency graph, and reports the distance D = |A + I - 1| - how far the module sits from the ideal balance of the two. Two files are written next to the HTML report:
aalekh-main-sequence.md- a reviewable table, worst-distance first, with the zone-of-pain and zone-of-uselessness modules called out.aalekh-main-sequence.json- the same data, machine-readable.
Run: ./gradlew aalekhMainSequence
Caching
Caching is disabled: the abstractness estimate depends on source file contents, which are not declared task inputs (declaring every source file would make this - and the extract task - re-run on every code change). The task is still configuration-cache safe; every input is a plain value.
Properties
Reviewable Markdown, written to aalekh-main-sequence.md.