The four states a matched-or-membership entity can occupy in a diff.
added / removed are expressed purely by array membership
(TCoreEntitySetDiff.added / .removed); they are never stored on a record.
The state field on a matched record carries only the modified-* pair:
modified-own — the entity's own comparator reported field changes (its
own checksum differs).
modified-within — own fields unchanged, but a containment child changed
or a referenced entity is modified-own (a claim/variable edit reaching it
through the reference edge).
The four states a matched-or-membership entity can occupy in a diff.
added/removedare expressed purely by array membership (TCoreEntitySetDiff.added/.removed); they are never stored on a record. Thestatefield on a matched record carries only themodified-*pair:modified-own— the entity's own comparator reported field changes (its ownchecksumdiffers).modified-within— own fields unchanged, but a containment child changed or a referenced entity ismodified-own(a claim/variable edit reaching it through the reference edge).