---
description: Show, toggle, or run the PRD Plugin drift check (tracking/docs/traceability drift on Stop)
---

Manage the PRD Plugin drift monitor's on-Stop check. Observation-only — it never
blocks; it surfaces a one-line drift summary at the end of a turn when enabled.

The argument is: `$ARGUMENTS` (one of `on`, `off`, `status`, `run`; default `status`).

Run the matching action from the repo root (use the downstream path if it exists,
else the hub path):

- **status** (default): show whether the on-Stop drift check is enabled and what
  the on-stop validator set is.
  `python .prd_plugin/scripts/prd_hooks.py drift status`
- **on**: enable it — sets `drift.monitoring.on_stop` true in
  `.prd_plugin/config.json`.
  `python .prd_plugin/scripts/prd_hooks.py drift on`
- **off**: disable it.
  `python .prd_plugin/scripts/prd_hooks.py drift off`
- **export on** / **export off**: also append each drift event to a committed,
  shared feed (`.prd_plugin/drift/events.jsonl`, tracked) so drift history
  travels with the repo. Default off.
  `python .prd_plugin/scripts/prd_hooks.py drift export on`
- **run**: run the full drift monitor now and print the findings (does not change
  config).
  `python .prd_plugin/scripts/drift_monitor.py --snapshot --format markdown`

The on-Stop check runs a cheap subset — `state_consistency_check`,
`staleness_audit`, `prd_self_audit`, `prd_graph` — covering tracking, docs, and
traceability drift. The heavy `gap_audit`/`release_check` scans stay in the full
`run` / session-close / CI. Default is off.

Report the resulting state in one plain line.
