Ported from validate_app_component_integrity_for_staged_commit: rejects a
commit whose resulting GroupContext strips or rewrites Marmot component
state outside the validated AppDataUpdate channel.
Enforced rules, in order (mirrors the MDK rustdoc numbering):
the app_data_dictionary extension itself may never be dropped if it was
present before;
structural nonremovable ids and every id in the RESULTING epoch's
required-component-id list may never be dropped;
every dictionary entry that changes relative to the current epoch —
added, rewritten, or removed — must match one of this commit's own
AppDataUpdate operations.
Additionally, per account-identity-proof-v2.md "Lifecycle, authorization, and
removal" ("It is not GroupContext state and MUST NOT be created, replaced, or
removed with AppDataUpdate"), this rejects any commit whose AppDataUpdate
ops target the leaf-only account identity proof component (0x8009), or
whose resulting GroupContext dictionary carries a 0x8009 entry at all —
mirroring MDK's CURRENT_PROFILE_LEAF_ONLY_APP_COMPONENTS.
The current required list, used only as a fallback for contexts without an
app_components entry. The complete resulting list controls removal,
permitting an atomic authorized unrequire-and-remove.
Ported from
validate_app_component_integrity_for_staged_commit: rejects a commit whose resulting GroupContext strips or rewrites Marmot component state outside the validatedAppDataUpdatechannel.Enforced rules, in order (mirrors the MDK rustdoc numbering):
app_data_dictionaryextension itself may never be dropped if it was present before;AppDataUpdateoperations.Additionally, per account-identity-proof-v2.md "Lifecycle, authorization, and removal" ("It is not GroupContext state and MUST NOT be created, replaced, or removed with
AppDataUpdate"), this rejects any commit whoseAppDataUpdateops target the leaf-only account identity proof component (0x8009), or whose resulting GroupContext dictionary carries a0x8009entry at all — mirroring MDK'sCURRENT_PROFILE_LEAF_ONLY_APP_COMPONENTS.