Implement AST-based rules to detect semantically duplicate headings, empty sections, and inconsistent heading jumps.