From 63dff99f119a74acf428f68db9d70041a26cb987 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 15 Nov 2026 23:22:18 +0100 Subject: [PATCH] grants: no seat can lose its holder when every account subscribes to every subject The list giving every account every subject was held at 23:20:32: the guard reads each seat's holders from the text of the subjects users subscribe to, and > names no seat, so it saw every seat lose its holder. --- modules/mesh-grants/internal/grants/part.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/mesh-grants/internal/grants/part.go b/modules/mesh-grants/internal/grants/part.go index 98c33414..1b94c900 100644 --- a/modules/mesh-grants/internal/grants/part.go +++ b/modules/mesh-grants/internal/grants/part.go @@ -470,7 +470,11 @@ func (p *Part) Compose() Result { var bus, lost []string if st.Compare.Unread == "" { bus = names(loaded) - lost = holdings.LastHolders(holdings.ByUsers(loaded), holdings.ByUsers(users)) + // With every account subscribing to every subject (buscompose.EveryAccountMayDoEverything) no seat can lose its holder + // by the list: the guard reads seat subjects by their text, and `>` names none of them. + if !buscompose.EveryAccountMayDoEverything { + lost = holdings.LastHolders(holdings.ByUsers(loaded), holdings.ByUsers(users)) + } } p.writeSealed(&res, list, n, leftOut, dropped, in, bus, lost, users, loaded) }