The current-profile invariants of a commit's COMPLETE resulting state,
mirroring MDK validate_current_profile_invariants_for_staged_commit, which
every MDK seam (send, ingest, convergence replay) runs before a commit can
become canonical:
required_capabilities exists and requires app_data_dictionary and
app_data_update;
the dictionary exists, its app_components list decodes, it requires
admin-policy (0x8003) and the account proof (0x8009), and neither
requires nor carries the frozen encrypted-media v1 (0x8008);
every required component other than 0x8009 is a known group component
and has GroupContext state;
EVERY resulting leaf advertises each required non-default MLS extension,
proposal and credential type, and every required component id in its own
app_components support list.
ts-mls checks the MLS required_capabilities only for leaves a commit adds,
and knows nothing about Marmot app components. Without this check marmot-ts
applied commits MDK rejects (an Add of a KeyPackage that does not advertise
a required component, an AppDataUpdate that requires a component some
member lacks), and the group split.
The current-profile invariants of a commit's COMPLETE resulting state, mirroring MDK
validate_current_profile_invariants_for_staged_commit, which every MDK seam (send, ingest, convergence replay) runs before a commit can become canonical:required_capabilitiesexists and requiresapp_data_dictionaryandapp_data_update;app_componentslist decodes, it requires admin-policy (0x8003) and the account proof (0x8009), and neither requires nor carries the frozen encrypted-media v1 (0x8008);0x8009is a known group component and has GroupContext state;app_componentssupport list.ts-mls checks the MLS
required_capabilitiesonly for leaves a commit adds, and knows nothing about Marmot app components. Without this check marmot-ts applied commits MDK rejects (an Add of a KeyPackage that does not advertise a required component, an AppDataUpdate that requires a component some member lacks), and the group split.