Abstract
Software architecture erosion hinders program comprehension as systems evolve and drift from their intended design. Existing conformance checking approaches often depend on explicit architectural models or outdated documentation, which are rarely available in practice. This short paper introduces a lightweight program comprehension approach centered on the reference class concept—a class that captures a module’s architectural intent through its dependency structure. By automatically identifying reference classes and deriving conformance rules, our approach detects architectural violations without requiring prior architectural descriptions. We evaluate the approach on a real-world system, where it recovers 21 out of 39 manually defined constraints and identifies additional previously undocumented ones. These results suggest that reference classes effectively approximate architectural intent while reducing reliance on explicit documentation, acting as living architectural anchors synchronized with the source code.