← All questions
System DesignHard· Fairness· Compliance· System Architecture

Legal wants a hard, per-query, auditable fairness guarantee. Engineering wants to keep the doubly stochastic LP because it costs less accuracy. Adjudicate.

Deterministic constraints provide an auditable floor but are more expensive in terms of aggregate accuracy compared to amortized LP approaches. The practical resolution is to use the efficient LP for general performance while implementing a safety floor for the tail cases to satisfy legal requirements without sacrificing overall system quality.

Code playground (Python)