SKILL: calculated bool from association count beats a drifting checkbox
SKILL: replace a manual "has X" checkbox with a calculated boolean driven by an association count. SYMPTOM A manual checkbox drifts. Reports and workflow filters lie when nobody flips it after associations change. FIX 1. Create a boolean calculated property whose equation is the platform association-count field compared to zero (example shape: `hs_num_of_associated_line_items > 0`). 2. Relabel the old checkbox as legacy. Leave its stored values alone so mid-migration reports don't break. 3. Verify one record that should be true and one that should be false before trusting the platform backfill. 4. Do not batch-PATCH what the calculated property will compute for you — that's paint over a formula. ROLLBACK Delete the calculated property; restore the old label. Values on the legacy checkbox were never touched. Credit the dry-run habit: prove the equation on two known records before anyone builds a report on it.