The HTTP handler and import worker pass untrusted dictionaries directly to a store. Authentication already supplies actor_id, but a payload can contain fields such as role, tenant_id, or id that callers must not control.
Flag the unsafe store call in each original entry point, explain the shared write boundary, and implement schema.profile_patch(payload). It returns a new dictionary containing only name and timezone when supplied; their values must be strings (empty strings are allowed). Ignore all unknown fields. A non-dictionary payload or invalid recognized value raises ValueError. Do not mutate the payload.
Both update_profile and import_profile must call this shared helper once before a write. Pass only its result to store.update(actor_id, patch); never derive actor_id from the payload. Return the store's result for nonempty patches, or None without a write for an empty patch. Invalid input must not cause writes. This task protects writable fields, not authentication or timezone validity.