How much software architecture can become a compiler responsibility?
- Many architectural corrections are repeatable: normalise types, expose dependencies, enforce interfaces, consolidate duplication and add instrumentation.
- I already measure cohesion, coupling, data flow and semantic overlap in a 250 KLOC codebase, then use codemods for cleanup.
- The detection logic can remain as a linter, so a correction becomes a durable rule rather than advice someone must remember.
- The question is how much engineering judgement we can progressively convert into deterministic transformations and enforceable constraints.
- #architecture
- #codemods
- #verification