The "utility function" is the technical tool that summarizes the amnesiac's priorities, which we've estimated by observing real-world behavior. Don't be fooled by the name; we're not pretending to measure happiness or any other psychological state. We're just trying to summarize the choices people actually make, no more no less.