Averta
Pythonscikit-learnXGBoostpolarsDuckDBParquetTyperMCPMatplotlibFeature EngineeringModel Calibrationpytest
A reproduce-and-extend study of a published 0.6B neural session monitor, replacing it with 33 engineered trajectory features and a calibrated logistic model. The 2.1 KB result scores a live session in 0.18 ms on one CPU core with no GPU, no API key and no network call, recovering roughly half the estimated token savings of the neural baseline.

Highlights
- 33 prefix-only trajectory features over the first N turns, built from 237,132 turn records and guarded by a leakage suite that shuffles, truncates and extends the unseen tail
- Repository-grouped cross-validation with confidence intervals resampling repositories rather than rows
- Calibrated logistic model at 2.1 KB scoring one session in 0.18 ms p50 on a single CPU core
- AUROC 0.677 [0.651, 0.697] against three trivial baselines at 0.500-0.521
- Estimated 8.4% token savings against the 14.6-20.4% reported for a 0.6B neural monitor; the corpus records no token counts, so savings are derived from content length
- Success criteria pre-registered in source control before training; the 0.25-recall gate was missed at 0.191