fix: preserve deterministic decisions across saves

This commit is contained in:
Rijad Zuzo
2026-08-12 20:30:21 +02:00
parent ed7236257a
commit 6851e15f77
5 changed files with 38 additions and 10 deletions
@@ -89,6 +89,11 @@ static func from_dictionary(record_data: Dictionary) -> RelationshipStateRecord:
return null
if cause_event_id < NO_CAUSE_EVENT:
return null
normalized[String(dimension)] = value
normalized[_cause_key(dimension)] = cause_event_id
normalized["schema_version"] = SCHEMA_VERSION
normalized["observer_id"] = observer_id
normalized["subject_id"] = subject_id
return RelationshipStateRecord.new(normalized)