rule
Top-level builder function for defining a named architecture rule with metadata and assertions.
Return
Executable RuleDefinition.
Parameters
id
Unique stable identifier for the rule (e.g. domain.repositories.must-be-interfaces).
block
DSL configuration block scoped to RuleBuilder.