sample-agg: first feature complete implementation, though untested