I came across what seems like a very odd behavior today:
There is a legacy workflow rule in my org that hardcodes in the production org ID in order to only run in the production environment. (The Rule Criteria formula includes
$Organization.Id = '00DZ000000XXXXX')
When a new sandbox is created, the Rule Criteria formula changes, swapping out the production org ID for the sandbox one.
Is this intended behavior, and if so, is it documented anywhere? While hardcoding these IDs is clearly a bad practice, I feel that this could be very misleading.