Build Swift foundations with environment-bound Sessions created before login, explicit UI context ownership, isolated persistence, and whole-Session disposal/replacement.