rai drift
Detect and report architectural drift — divergence between the declared module structure and the actual codebase. Use during development to catch layer violations before they accumulate.
rai drift check¶
Run drift checks against the current codebase. Reports violations by module and severity.
rai drift scan-corpus¶
Scan the full corpus of source files and build a drift inventory. Used to seed the baseline and identify drift hot spots.
rai drift baseline¶
Record the current drift state as the accepted baseline. Future check runs compare against this snapshot.
rai drift report¶
Generate a human-readable drift report for the current project.
rai drift dashboard¶
Launch an interactive terminal dashboard showing drift metrics and trends over time.
See also: rai gate, rai discover