node scripts/check-version-sync.js
npx lint-staged
# Story #1395 / Epic #1386: catch MI/CRAP drift at git-commit time so the
# agent refactors before the diff is closed. quality:preview wraps both gates
# with --staged so only index paths are scored (not unstaged working-tree
# edits). Exits non-zero on any threshold violation.
node .agents/scripts/quality-preview.js --staged
