Yes it's Computer Science but it's implementing normative-ethics.
Why not provide the AI descriptive-ethics instead and let it decide for itself?