pub fn detect_drift(home: &Path) -> Vec<DriftReport>Expand description
Compare each detected agent’s on-disk <!-- lean-ctx-rules --> block against
the canonical rule source (rules_canonical via
rules_inject::rules_shared_content / rules_dedicated_markdown).
Drift is measured purely against the canonical single-source-of-truth — it
deliberately does not read .lean-ctx/rules.toml. rules.toml is a
rules lint input and a user-facing export from rules init; it never
overrides the canonical rule body (see super::config::RulesConfig). This
is also why rules diff works without running rules init first (#548).