Evaluates whether a candidate's KeyPackage event (kind 30443) can be added to a
group, against every Marmot add requirement: cipher-suite match, the group's
required_capabilities (extension/proposal/credential types), its required
app components, the agent-text-stream-QUIC required_member_roles policy,
the Lifetime cap/current check, the mls_proposals tag matching the leaf's
advertised proposals (with or without GREASE), and whether the KeyPackage's
account is already a member.
This is the eligibility logic an app needs before sending an invite — the
invite proposal itself enforces only missingGroupRequirements. A
reasons array of length 0 means the KeyPackage is safe to add; a non-empty
array explains every failing requirement. Never throws: an undecodable
KeyPackage yields eligible: false with an undecodable: … reason.
Evaluates whether a candidate's KeyPackage event (kind 30443) can be added to a group, against every Marmot add requirement: cipher-suite match, the group's
required_capabilities(extension/proposal/credential types), its required app components, the agent-text-stream-QUICrequired_member_rolespolicy, the Lifetime cap/current check, themls_proposalstag matching the leaf's advertised proposals (with or without GREASE), and whether the KeyPackage's account is already a member.This is the eligibility logic an app needs before sending an invite — the invite proposal itself enforces only missingGroupRequirements. A
reasonsarray of length 0 means the KeyPackage is safe to add; a non-empty array explains every failing requirement. Never throws: an undecodable KeyPackage yieldseligible: falsewith anundecodable: …reason.