Improve the id-detection algorithm in the "after save" hook to correctly handle "updateAttributes" as a single-model change and DO NOT trigger full "rectify all" scan.