Ensure that an invalid record become valid only when all its embedded are also valid
Ensure committing a transaction does not remove its clean records
Merge branch 'feature_invalid_records_fix' into prod