gbenletoluwase/privacy-preserving-control-plane
A closed-loop control plane for cloud-native distributed systems: forecast-driven autoscaling, streaming-pipeline recalibration, governed ML model lifecycles, and detection paired with automated recovery. Includes zero-shot multilingual PII redaction at the point of processing.
What it solves
This project provides a unified control plane for managing the operational side of machine learning pipelines. It addresses common production failures that occur outside of the model logic itself, such as reactive autoscaling that lags behind traffic spikes, insecure handling of sensitive data, ad-hoc model deployment processes, and silent failures caused by input data drift.
How it works
The project implements four core mechanisms in Java 21 with zero runtime dependencies:
- Forecast-driven autoscaling: Uses triple exponential smoothing to predict future load and adjust capacity proactively, with built-in dampening and safety factors to prevent instability.
- Privacy-preserving redaction: Scans text for sensitive information (like PII or credit cards) and applies policies to mask or tokenize data. It uses a greedy approach to resolve overlapping detections and ensures consistent tokenization for data joinability.
- Governed model promotion: Acts as a programmatic gate that enforces strict requirements (e.g., F1 scores, provenance, ownership) before a model is promoted to production, recording all evidence in a tamper-detectable hash-chained log.
- Drift and anomaly detection: Monitors input data distributions using the Population Stability Index (PSI) and detects anomalies using the Median Absolute Deviation (MAD) to ensure outliers do not skew the monitoring statistics.
Who it’s for
This project is for platform engineers and MLOps practitioners who want to build robust, observable, and secure production ML pipelines using a lightweight, dependency-free Java framework.
Highlights
- Zero runtime dependencies: Built entirely on JDK 21+ built-ins for portability and minimal attack surface.
- Explainable decisions: Every component (scaler, gate, etc.) returns a rationale for its decisions, aiding debugging during production incidents.
- Extensible architecture: Uses interfaces for forecasters and entity recognizers, allowing users to swap in custom models or heavier implementations as needed.
- Auditability: Includes a hash-chained evidence log to track model promotion history and detect unauthorized changes.
Related
- Project
- Project