feat(subgroup): the picker chooses the subgroup's wallet policy, and the join gate says it (Phase 3)

SelectSubgroupAdminsScreen gains a wallet section under the quorum
stepper: guarded (the default) or unguarded, carried to proposeRitual.
Under a guarded parent the unguarded row is shown disabled with its
reason, setWalletPolicy will not move off guarded, a retry is pulled back
to guarded, and refusal() refuses it -- D4. A parent whose guardian keys
do not read cannot make a guarded subgroup, which is now refused before a
ceremony rather than after.

SubgroupManager.walletPolicyOf is the one reader of a group's own policy,
reached through ChatRepository with guardiansOf. DkgJoinApprovalScreen
tells an admin what the subgroup's wallet will be before they join.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-10-23 21:58:10 +02:00
1 parent 58751692c6
commit 6599b5b116
9 files changed
+425 -8

No files matched your search

@@ -644,4 +644,16 @@
<string name="sent_again">Sent again</string>
<string name="couldn_t_bump_the_fee">Couldn't bump the fee: there isn't enough left over to pay it.</string>
<string name="while_the_wallet_is_new_at_most_s_sats">While the wallet is new, a spend on mainnet can send at most %1$s sats.</string>
<!-- A subgroup's wallet policy, chosen by its parent at birth: docs/subgroup-wallet-policy.md -->
<string name="the_subgroup_s_wallet">The subgroup's wallet</string>
<string name="guarded_wallet">Guarded wallet</string>
<string name="unguarded_wallet">Unguarded wallet</string>
<string name="this_group_can_spend_its_coins_once">This group can spend any coin in it once it has %1$d confirmations.</string>
<string name="this_group_and_the_d_above_it_can_spend">This group and the %1$d above it can spend any coin in it once it has %2$d confirmations.</string>
<string name="only_the_subgroup_can_spend_from_its_wallet">Only the subgroup can spend from its wallet. Groups above it can't reach it or anything beneath it.</string>
<string name="this_group_is_guarded_so_its_subgroups_are_too">This group is guarded, so its subgroups are too.</string>
<string name="this_group_s_guardian_keys_can_t_be_read">This group's own guardian keys can't be read, so it can't guard a subgroup.</string>
<string name="the_subgroup_s_wallet_will_be_guarded">The subgroup's wallet will be guarded: this group, and every group above it, can spend any coin in it once it has %1$d confirmations.</string>
<string name="the_subgroup_s_wallet_will_not_be_guarded">The subgroup's wallet will not be guarded: only the subgroup can spend from it.</string>
</resources>