Compare a reference and current numeric stream with fixed bins, exposing both proportions and the largest distribution gap.
Required APIdef drift_report(reference, current, bins):
return {'reference': [...], 'current': [...], 'max_gap': ...}BehaviorThink through the mechanism first if you want the extra reasoning step. It never blocks the editor.
drift_report([0, 0, 1, 1], [0, 1, 1, 2], 3)the report makes a distribution change measurable
drift_report([0, 1], [0, 1], 2)identical evidence has no alert signal
2 hidden edge tests run after the visible contract passes.
Run Tests to see the contract verdicts here.