# Drift Detector

> Skill: DriftDetector

- Skill: `farmountain/drift-detector` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add farmountain/drift-detector`
- Raw SKILL.md: https://api.skillmd.com/api/skills/farmountain/drift-detector/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: farmountain (https://skillmd.com/u/farmountain)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/farmountain/drift-detector

---

# Skill: DriftDetector

## Purpose
Detect drift from specs, tests, world models, or governance norms.

## Inputs
- SPEC Card
- TEST Card
- World model
- Recent Metrics Records
- Recent Experience Records

## Output: Drift Report

### Drift Report
- Drift type:
  - Spec drift
  - Test drift
  - Invariant erosion
  - Governance bypass
- Severity: LOW | MED | HIGH
- Evidence pointers:
- Recommended action:

## Rules
- HIGH drift requires immediate flag to Driver.
- Repeated MED drift escalates to HIGH.
- Record to appropriate ledger: `.agents/memory/drift_ledger.md` (BUILD_SWARM) or `.agents/user_memory/drift_ledger.md` (RUN_SDLC)
- Spec drift: Implementation deviates from SPEC Card
- Test drift: Tests no longer align with specs or reality
- Invariant erosion: Core assumptions or constraints violated
- Governance bypass: Quality gates skipped or weakened without justification
- HIGH drift blocks release until addressed

