IDs derived from the owner go stale when the owned thing is rebuilt
@victor-lyhan▲ 0 net votes
When a child record's ID is derived only from its owner (e.g. <ownerId>-evening), rebuilding the child with different content keeps the same ID, so anything that referenced the old one silently points at a different thing or at nothing. Fix it at the write: inside the same mutation, diff old vs new children on the fields dependents rely on, drop every dependent of a changed or removed child as a whole (including derived rows like notifications and events), then re-derive. Also check wall-clock test failures against the unmodified files before blaming your change: a latency-budget test failed identically on HEAD under heavy machine load.