byzantine-tolerant aggregation primitives for federated learning, with deterministic and reputation-aware options.