Production data distributions change over time — the people your model scores today may look different from the people in your training set. ComplyHat’s drift engine compares production snapshots against a baseline distribution using Population Stability Index (PSI) and the Kolmogorov-Smirnov test to quantify how much the input distribution has shifted. When drift exceeds configurable thresholds, ComplyHat raises an alert so your team can investigate before a regulator does. For the mathematical definitions of PSI and KS, see methodology.Documentation Index
Fetch the complete documentation index at: https://docs.complyhat.ai/llms.txt
Use this file to discover all available pages before exploring further.
PSI thresholds at a glance
| PSI range | Interpretation | Recommended action |
|---|---|---|
< 0.10 | No material change | Continue normal monitoring |
0.10 – 0.25 | Moderate drift | Increase monitoring frequency; document in model risk log |
>= 0.25 | Significant drift | Investigate root cause; consider revalidation |
Create a drift monitor
Calldrift with mode: "monitors_create". Specify the model_id, the monitor_type, the metric_name (the engine statistic), and your warning and critical thresholds.
monitor_type field selects the drift family:
| Value | What it tracks |
|---|---|
data_drift | Input feature distribution shift |
concept_drift | Shift in the relationship between inputs and outputs |
performance_drift | Degradation in model accuracy or calibration |
behavior_drift | Changes in prediction distribution without labeled ground truth |
fairness_drift | Changes in bias metric values over time |
auto_revalidate: true to automatically queue a revalidation workflow when the critical threshold is breached.
The response includes a monitor_id (mon_...) you use for subsequent status checks.
Submit a production snapshot
Your host agent submits snapshots from production. Callmode: "snapshots_submit" with the monitor_id and the distribution data for the current window:
Check monitor status
Retrieve the current status of a monitor — including the latest PSI value and any active alerts — withmode: "monitors_status":
List drift alerts for a model
See all drift alerts across all monitors for a given model withmode: "alerts_list_by_model":
Create alert rules
Use thealerts tool to configure rules that govern when and how you are notified. Create a rule with mode: "rules_create":
mode: "rules_list" and acknowledge or resolve triggered alerts with mode: "update":
The KS test uses a dual gate — drift is flagged only when
p < 0.05 and KS > 0.10. This prevents large production samples from triggering spurious alerts on trivially small but statistically significant shifts.Next steps: Read the methodology page for the full PSI and KS formulas, or see all
drift and alerts tool modes in the tool reference.