Built so that no single stage can originate a loan the others would refuse. Training runs in Python, inference runs in JavaScript, and the two are pinned to each other by assertion.
Evaluated walk-forward by decision time. Random k-fold on time-series data leaks the future into the past and produces flattering, meaningless numbers.
Lower is better on the first three. Beating the constant predictor is the bar that matters; a model that cannot is worse than guessing the average.
Training happens in Python and inference in JavaScript. Nothing at runtime would catch a divergence, because a drifted feature still produces a plausible number, which then gets signed, bonded and acted on.
Every feature and every calibration output is compared between the two implementations, including degenerate inputs such as empty and flat revenue series.
Loading a model whose feature order disagrees with the code throws immediately. That catches the worst case, which is coefficients silently applied to the wrong features.