An autonomy-based framework for surrogacy contracts