Skip to content

feat(relay): community moderator grant - #10062

Draft
ngoodger-block wants to merge 3 commits into
buildy/community-maintainersfrom
buildy/community-moderator-grant
Draft

ngoodger-block wants to merge 3 commits into
buildy/community-maintainersfrom
buildy/community-moderator-grant

Conversation

@ngoodger-block

Copy link
Copy Markdown
Contributor

Why?

When spam shows up, a community owner or admin should be able to hand someone moderation without full admin (BUZZ-854). Moderation enforcement needs a recorded moderator appointment to check against.

What?

Adds moderator to the kind:9034 community grants from #10048, independent of maintainer, and lists it in the kind:13534 roster. It grants nothing on its own yet; the moderation enforcement draft builds on it. The appoint test now also checks that a moderator grant is independent of a revoked maintainer grant.

@ngoodger-block
ngoodger-block force-pushed the buildy/community-maintainers branch from 7726d47 to f68ac1d Compare December 3, 2026 18:32
@ngoodger-block
ngoodger-block force-pushed the buildy/community-moderator-grant branch from ff49c09 to f3d690d Compare December 3, 2026 18:32
@ngoodger-block
ngoodger-block force-pushed the buildy/community-maintainers branch from f68ac1d to 5214d91 Compare December 3, 2026 19:23
@ngoodger-block
ngoodger-block force-pushed the buildy/community-moderator-grant branch from f3d690d to 082299d Compare December 3, 2026 19:23
@ngoodger-block
ngoodger-block force-pushed the buildy/community-maintainers branch from 5214d91 to f98a19b Compare December 3, 2026 19:38
@ngoodger-block
ngoodger-block force-pushed the buildy/community-moderator-grant branch 2 times, most recently from 6b22e00 to 9c41d3d Compare December 3, 2026 20:15
@ngoodger-block
ngoodger-block force-pushed the buildy/community-maintainers branch from f98a19b to fa01df8 Compare December 3, 2026 20:15
@ngoodger-block

Copy link
Copy Markdown
Contributor Author

🤖 The grant documentation now describes Moderator as reserved for community moderation.

@ngoodger-block
ngoodger-block force-pushed the buildy/community-maintainers branch from fa01df8 to a5b22cc Compare December 3, 2026 20:57
@ngoodger-block
ngoodger-block force-pushed the buildy/community-moderator-grant branch from 9c41d3d to 71df638 Compare December 3, 2026 20:57
@ngoodger-block
ngoodger-block force-pushed the buildy/community-maintainers branch from a5b22cc to a82824d Compare December 3, 2026 22:36
@ngoodger-block
ngoodger-block force-pushed the buildy/community-moderator-grant branch 2 times, most recently from 940e7c5 to a3ab6b0 Compare December 4, 2026 00:41
@ngoodger-block
ngoodger-block force-pushed the buildy/community-maintainers branch 2 times, most recently from 3575716 to ef3735e Compare December 4, 2026 02:07
@ngoodger-block
ngoodger-block force-pushed the buildy/community-moderator-grant branch from a3ab6b0 to 5294fb8 Compare December 4, 2026 02:07
ngoodger-block and others added 2 commits December 4, 2026 14:49
Adds moderator to the kind:9034 community grants, independent of
maintainer, so moderation enforcement can build on the appointment
and the kind:13534 roster tag.

Co-authored-by: Buildy <9c2fd8f72fad905d31cdf563c3920011399bd334523d6b3c84c0dc124bcfb380@sprout-oss.stage.blox.sqprod.co>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Nikolaj Goodger <ngoodger@squareup.com>
Co-authored-by: Buildy <9c2fd8f72fad905d31cdf563c3920011399bd334523d6b3c84c0dc124bcfb380@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Nikolaj Goodger <ngoodger@squareup.com>
@ngoodger-block
ngoodger-block force-pushed the buildy/community-maintainers branch from ef3735e to e7a5eaf Compare December 4, 2026 04:10
@ngoodger-block
ngoodger-block force-pushed the buildy/community-moderator-grant branch from 5294fb8 to 85647eb Compare December 4, 2026 04:10
Co-authored-by: Buildy <9c2fd8f72fad905d31cdf563c3920011399bd334523d6b3c84c0dc124bcfb380@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Nikolaj Goodger <ngoodger@squareup.com>
@ngoodger-block

Copy link
Copy Markdown
Contributor Author

🤖 Added a PostgreSQL assertion that the signed roster includes the moderator grant and drops the revoked maintainer grant. The test failed at the new assertion when the producer omitted the moderator tag and passed again after restoration.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant