Moderation
A group has many hands. Members write into its spaces from their own accounts, so their records live in their own repos, where the group can’t edit or delete them. Someone still has to decide what stays visible and hear complaints. A public labeler can’t see into a space it isn’t admitted to, so the group does its own labelling (Moderating spaces). The host gives it labels written beside content, and a queue where moderators track what needs a judgement.
Who moderates
Section titled “Who moderates”Moderation runs on roles
(Membership). Three actions
cover it: mod.read sees the queue, mod.resolve changes it, and
label writes labels in every space. A member holds the union of their
roles’ actions, with no deny and no hierarchy.
A new group’s admin role holds every action, and its member role
holds none. The permission set org.atgrp.authModerate carries
mod.read, mod.resolve and eject, and label writes in the meta and
members spaces only, so it doesn’t carry label. authManageAdmin
carries all of that and group.configure.
The label action only describes what a role can do (getGroup
answers it and the console uses it), and no method checks it. A label
is a record, so the space’s write
permissions decide where a moderator may write one, through their roles’
group-wide permissions or a space policy granting their role the label
collection there. getGroup answers those spaces as
viewer.labelSpaces, and the console offers labelling only there.
Every other method checks the caller’s roles when it’s called, whether a
member asks or an app or MCP client acts for one. Reports, appeals and
mod.querySelfHistory need no role. The API reference
lists the methods and errors
(Moderation).
Labels beside what they mark
Section titled “Labels beside what they mark”A label is a com.atproto.label.record the group writes in a space like
any of its records, and the space repo authenticates it (Moderating
spaces).
The host keeps a label beside its subject, so exactly the people who read the subject read its label. A record’s label goes in the record’s space. atproto has no standard for labelling an account in a space, so by convention this host puts an account’s label in the members space, which every member reads. Any of the group’s spaces may hold one, though. A member’s public post is labelled in the members space too, if its author holds a role in the group, so a moderator can label one post rather than its author.
Taking a label back means deleting its record, since atproto has no standard for negating a space label. Each label written or deleted as the group (by any token, session or MCP client) becomes an event in the queue, credited to the acting member, so the queue keeps who labelled what.
What the host does with a label
Section titled “What the host does with a label”One value has an effect in the host, !takedown. By the spaces
convention, a space authority’s !takedown removes content from its
space. Every other value, !hide included, is for apps, which read
labels with the space’s records and decide what to show (Moderating
spaces).
A record taken down is left out of listSpaceRecords, and its files out
of getSpaceBlob and /img/{did}/{cid}. A label naming a cid takes
down only that version, and one without takes down every version. A file
is taken down if its writer is, or if a taken-down record holds it in
the version the index has now. An account taken down in the members
space has everything it wrote taken out of every space of the group.
Taken down in another space, it loses only what it wrote there.
Only labels in the group’s own repo count. A label past its exp counts
no more, and deleting the label puts everything back. The content stays
in the writer’s repo, and the host stops serving it to everyone,
moderators included.
A moderator still has to judge what’s taken down. Reading the space
never shows it, so it can’t leak into an app they use, and the queue
shows it instead. mod.querySubjectHistory adds the record as the index
holds it now (which may be newer than the version reported), and
getModSubjectBlob serves its files. Both answer only a moderator the
space’s policy lets read the space, so the queue never shows someone
what they couldn’t read if it weren’t taken down.
The queue
Section titled “The queue”The queue lives in the host’s SQLite, outside the group’s repo, and goes when the group is deleted. Its entries are subjects. A subject is an account’s DID or a record’s URI, in one of the group’s spaces or a public repo, and a record is a subject separate from its author.
A subject enters the queue with its first report, label or ejection, and
starts open. Each later act is an event on it: a report, an appeal, a
status or tag change, a label written or deleted, or an ejection. An
ejection is anyone holding eject deleting someone’s membership, which
also takes
them out of every space’s writers. A member who leaves of their own
accord isn’t ejected.
A moderator sets a subject open or resolved, adds a note, and adds
or removes tags with mod.updateSubject. Only a report or an appeal
reopens a resolved subject. A label or an ejection is a moderator’s own
act, so it leaves the subject resolved. Tags mean what the group makes
them mean, and nobody is told of them. The console’s Escalate adds the
tag escalated, which its Escalated tab lists.
Reports
Section titled “Reports”A report comes from someone who can read what they report, so a group hears from the people its content reaches and strangers can’t report. Someone may report a member’s account, a record in one of the group’s spaces, or a member’s public record. The host checks an account or a public record against the members space, where its label would go.
A report needs no role, goes into the queue as an event, and notifies no
one. The group’s labeler (org.atgrp.labeler, in the members space) can
narrow what it takes by reason, kind of subject and collection. A new
group’s takes everything. Reports and appeals share one limit per person
across every group (10 in 5 minutes and 100 a day), and a refused one
doesn’t count (Limits).
Appeals
Section titled “Appeals”Someone moderated can answer where moderators already look. An appeal goes into the queue as an event and reopens a resolved subject. Only the subject may appeal, an account for itself or a record’s author for the record, and only against a label not since deleted or an ejection. An appeal needs no role and no read access, so someone put out of the group can still appeal, and the labeler doesn’t limit appeals.
mod.querySelfHistory shows someone what was done to their account and
records, former members included. It shows status changes, appeals,
ejections, label values and the label records’ URIs. It leaves out
reports, tags, notes and who
acted, so it never names a reporter or a moderator.
The group’s own labels
Section titled “The group’s own labels”An app needs to know what a group’s labels mean. The labeler lists the
values the group applies (policies.labelValues) and defines its own
(policies.labelValueDefinitions), each an atproto label value
definition with its severity, blurring and default setting
(Labels). A new group applies !hide
and !takedown and defines none of its own.
A group’s own value is lowercase letters and hyphens, so atproto’s
!-prefixed values can’t be redefined. A member with group.configure
defines or changes one with putLabelDefinition, which writes the
labeler as the group. A change replaces the name and description in one
language and keeps the others. deleteLabelDefinition removes the
definition, and labels already applied stay. getGroup answers the
definitions as labels to anyone who may read the members space.