The cockatrice contract