Skip to content

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 check
rai drift check --format json

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 scan-corpus
rai drift scan-corpus --path packages/raise-cli

rai drift baseline

Record the current drift state as the accepted baseline. Future check runs compare against this snapshot.

rai drift baseline
rai drift baseline --message "post-refactor baseline"

rai drift report

Generate a human-readable drift report for the current project.

rai drift report
rai drift report --format json

rai drift dashboard

Launch an interactive terminal dashboard showing drift metrics and trends over time.

rai drift dashboard

See also: rai gate, rai discover