ADR 0052: Group approval rules add approvers, and the reveal is never split into groups
- Status: Accepted
- Date: 2026-10-25
- Decision issue: #187
- Parent story: #152
- Parent epic: #143
- Builds on: ADR 0018, ADR 0020, ADR 0021, ADR 0022, ADR 0051
Context#
The issue asks for all-participant, named-participant and role-based readiness and approval rules,
with a clear policy snapshot and deterministic invalidation. The approval set already held a policy
(allAuthors or contributingAuthors, and a scope) that was bound into every approval, but
nothing could change it (ADR 0022). ADR 0018 fixed that a publication has one author set and that
voluntary reveal visibility is derived from the active, ready participants and never split into
stored groups.
Decision#
- Unanimous rule changes (amendment). A site owner or coordinator now proposes a rule rather than changing it directly. Every active, bound participant independently agrees to that exact proposal, including coordinators and readers without draft access; agreement to the rule is separate from approval of the piece. The proposer does not implicitly consent. Until the last agreement is recorded, the existing rule and piece approvals remain in force. On unanimity, the server revalidates the rule and clears all piece approvals in the same compare-and-swap write. Participants may withdraw their own agreement while the proposal is pending. A proposal records a monotonically increasing ID, the base policy revision, both membership and authorization revisions, and the active participant IDs. A membership or access change stales it, even if a former member is later restored; replacing a proposal requires the previously observed proposal ID. Existing authority and rule-meetability checks still apply. Published reflections cannot change their rule. Older releases cannot read an approval set containing a proposal or proposal sequence; rolling back requires handling these private files. Active participants are those whose bound Admin account and contributor identity are current and authorized to view the publication. Reader-only participants see the rule and proposal, and draft revisions explicitly released to them, but not the piece's approval status. Existing pending proposals with a different voter set become stale and must be replaced. New reflections require whole-piece scope under every policy. A previously saved section-only rule on such a reflection blocks approval, scheduling and publication until the participants unanimously replace it with a whole-piece rule; the replacement clears standing approvals. Legacy reflections without this initial-scope marker retain their existing scope. The policy now supports the fixed numeric quorum described below.
- Numeric quorum (amendment). A fixed number of current contributors must approve the whole piece, including every section writer and attributed author. A missing writer is never replaced by another person's approval. The threshold remains fixed when membership changes; proposals with fewer eligible authors than the threshold are refused, and coordinators cannot propose weakening a quorum. Every active bound participant must consent before a proposal applies. Quorum approvals bind membership and authorization revisions, so restoring prior access cannot resurrect them even if reconciliation failed. All other whole-piece approvals now bind those revisions as well: membership or authorization changes invalidate them even if cleanup failed. Existing non-quorum whole-piece approvals must be reviewed again; legacy section-only bindings remain unchanged. Numeric rules cannot be read by older releases.
- Participant approval (amendment).
allParticipantsrequires every current participant;participantQuorumrequires a fixed number of participants, including every writer and attributed author. Readers and coordinators approve only after their combined preview shows every current revision, its sealed moments, and the conversation explicitly shared with them. The server recomputes that visibility when recording consent. Changes to content, membership, authorization, or the eligible participant set invalidate the approval. ExistingallAuthorsand author-quorum rules keep their prior meaning; new participant rules require unanimous rule consent. Older releases cannot read an approval set using the new rules. - Initial rule (amendment). A new reflection starts with all participants or a fixed participant quorum chosen at creation, always for the whole piece. A threshold may exceed the current group while people are invited; it never decreases automatically. Subsequent changes require unanimous agreement. Records without the initial-requirement marker keep the former author-only initial rule, and a stored approval set always takes precedence. Older releases cannot read records containing the marker.
- Approval rules.
ApprovalRequirementgainsnamedAuthors(participant ids) andauthorsWithRoles(publication roles), next toallAuthors(all participants, the default) andcontributingAuthors. Under every rule, each author who owns a section and each author named on a synthesis item must approve: nobody's words publish without their own consent. A rule only adds approvers on top of that floor. So a quorum can never stand in for a writer, and a named or role rule cannot leave anyone out. - No fabricated approvals. Each required person counts only through their own standing approval, recomputed against the content (ADR 0020). Numeric quorum counts only standing approvals of currently eligible authors. A rule change never records, keeps or moves an approval. Under non-numeric rules, someone the rule does not require remains optional; under a numeric rule their own approval may count toward the threshold.
- Fail closed on churn. A named participant who is no longer an author (removed, or lost the
draft grant), and a listed role that no current author holds (for example, the only coordinator
left), keep the piece blocked.
Readiness::Blockedcarries these asgaps, and the gate refuses withAssemblyError::RuleUnmet. Losing a person never lowers the bar. Role pairs reach the approval subject only throughassembly::with_subject, read from the bindings of the active authors. - Canonical snapshot. A policy has one canonical form: named ids sorted, roles in declaration order, no empty or repeated list. A stored set whose policy is not canonical fails to load. The policy and its revision are bound into every approval, so a real change makes every standing approval stale and also clears them. Changing back cannot revive them, because the revision moved on. Existing sets load unchanged and their approvals stay valid: the old variants' binding input is identical.
- Changing a rule (superseded by the unanimous-change amendment above). A new action,
SetApprovalPolicy, targets the publication and is held by site owners and coordinators (a coordinator only within the limit below).GET/PUT /admin/api/collaboration/approval-policygo throughSharedPublication::authorize, and every refusal to someone without the grant is the same 404. A change needs the policy revision the requester read (409 if it moved) and an explicitconfirmed(422 without it), because it clears every approval. Resubmitting the current rule in any order is a no-op that writes nothing. A rule the authors as they are now could never meet is refused: a named person, or an author a role rule adds, who cannot approve, or a listed role no author holds. The write is a compare-and-swap on the approvals file, so a concurrent approval or rule change is a conflict, never an overwrite. The response re-evaluates the piece under the new rule (who must approve, who still has to, what cannot be met). A published reflection's rule no longer changes. A scheduled publication meets the new rule when it falls due, like any other change (ADR 0022). - Coordinators only keep or add required approvers (amends ADR 0020). ADR 0020 gave the
policy to the site owner. Coordinators now hold
SetApprovalPolicytoo, but without a limit a coordinator could drop a site owner who wrote nothing from the people whose consent publication waits on. So a rule change carries the requester's authority (RuleAuthority, read from the binding the grant came from). The required sets before and after are computed against the piece and the authors as they are now, and a coordinator's change must keep everyone required before. Adding people, changing the scope, or expressing the same people under another rule is allowed. A change that drops anyone, including a named participant who has since left (losing a person never lowers the bar), is refused with 403 and the names of the people it would drop, and only a site owner may make it. The read response says whether the requester may drop approvers (mayDropApprovers), so Admin can say so before they try. - Shown with the piece (amended by the unanimous-change amendment above). The combined preview carries the rule (policy, revision, a plain sentence, and anything that cannot be met), in its summary and in the document, like everything else that binds. The Admin "Approval rule" block, inside the sharing section, is shown only to people who may change the rule. It uses labelled radio and checkbox controls and a confirmation checkbox, and moves focus to the heading after a save or to the alert after a failure.
- Withdrawn contributors. A participant who withdrew or never wrote has no section. Under
allAuthorsthey still block, and the explicit ways out are: they approve the piece without a section, a coordinator changes the rule (for example tocontributingAuthors, or names the people who must approve), or the maintainer changes their role. A named approver who is removed blocks until a site owner takes them off the rule or their access is restored; a coordinator cannot drop them, because losing a named person never lowers the bar on a coordinator's say-so. An unmet role blocks until a coordinator changes the rule or an author is given that role. Both are shown in the preview, the rule block and the gate's refusal, as display names only, and each names who can resolve it. The rule read lists such named people (formerApprovers), and Admin shows each as a chosen row marked "can no longer approve" that can be cleared, so a rule is never saved with someone kept in it unseen. - The reveal stays one group (reconciling the issue with ADR 0018). A named or role-based
reveal rule would either show prose to a sub-group while the others see nothing, or wait on
people and then reveal to members who never offered. Both split the one author set. So reveal
policies stay
independent,voluntaryandallReady.allReadyis already the all-participant rule, and its membership is already role-derived: everyone who holds the draft grant. Named and role rules apply only to approval, which decides who must consent before publication and never changes who reads what. UnderallReady, a writer who cannot or will not offer is resolved by switching tovoluntaryor changing that person's role, and the Admin help text says so. Changing the reveal policy now must name the policy the coordinator read (expectedPolicy; 422 without it, 409 if it moved), so two coordinators cannot overwrite each other unseen. Like an approval rule change, a real reveal policy change clears every standing offer, so it also needs an explicitconfirmed(422 without it), and resubmitting the current policy is a no-op that writes nothing.
Consequences#
- A non-writing author can approve only once they can read the whole piece (ADR 0021). Under today's reveal rules that needs a section of their own, so named or role rules mostly protect key writers ("the piece must not publish without Grace, even if Grace is removed") and require site owners or coordinators who also write.
- Editors cannot approve (ADR 0022), so a role rule on
editoris refused while an editor-only author would be required. Readers are never authors and are not offered. - No numeric quorum, voting, reputation or "winner" exists, as the issue's out-of-scope list asks.