chadtmiller.com/group-host
atmosphere group host
A group defines labels of its own, for moderators to choose and apps to read
MergedThis adds putLabelDefinition and deleteLabelDefinition, which keep a group's label definitions in its labeler record. It also adds labels on getGroup, the label define and label delete commands with their tools, a Labels settings tab, and docs. The host logic is sound. The label is checked as lowercase letters and hyphens, so !hide and !takedown can't be redefined. The labeler is rewritten whole, so its other fields are kept. group.configure is required. The labeler record is created with the group, so Write::Update has a record to update. I read the host, lexicon, MCP and command changes. I did not read the web, e2e, test or docs files, or the screenshot files.
Two small points, neither blocking:
severity,blursanddefaultSettingareknownValues, so the lexicon doesn't reject other strings.put_label_definitioncopies whatever string arrives into the labeler record. A typo through the CLI or MCP would be stored and served as a definition other apps can't read. Consider refusing values outside the three lists inmoderation.rs.- The read-modify-write of the labeler isn't guarded against two concurrent calls. It's low risk for a settings action.
What changes
The host. Two new methods, each for one with
group.configure:fyi.opensocial.putLabelDefinitiondefines one of the group's own labels, or changes the one with that value. It's kept in the group's labeler, as atproto defines a label value:identifier, lowercase letters and hyphens, so atproto's own!hideand!takedowncan't be redefined;locales;severity,blurs,defaultSetting,adultOnly.It also adds the value to
policies.labelValues, and answers the definition.fyi.opensocial.deleteLabelDefinitionremoves both. Labels already applied stay.Each rewrites the labeler record as the group, keeping its other fields.
getGroupanswers the definitions aslabelsto whoever may read the meta space.The command and tools.
label define <group> <label> --name --description [--lang] [--severity] [--blurs] [--default-setting] [--adult-only]andlabel delete <group> <label>, withlabel_defineandlabel_delete. They're two tools, asrule_setandrule_deleteare, because the two take different arguments.The console.
The Moderating guide gains a section on creating the group's labels, with pictures, and its terminal list names the commands. The design page says what a label definition is and why. The
reportslook seed defines two.Why
A label is only a word to an app that doesn't know what it means. The labeler record already had a place for definitions (
labelValues,labelValueDefinitions), but nothing here wrote any. A group's labels were whatever a moderator typed, and an app reading them had no way to know what to show.Host methods rather than writing the record from each client: the record also holds the reports the group takes, so each client would have to read it whole and write it back. Mirroring it whole in
getGroupwould have meant answering its bare string list (subjectCollections) again, which the lexicon style refuses. The host already holds the record and changes it in place.How it was checked
label_defineandlabel_deleteplan the methods with their arguments in the lexicon's names.just lexandjust docspass.just shotsredrew the guides whose pictures show the settings tabs (only the new tab changed) and the Moderating guide.just look(the Labels page with labels and empty, its dialog, Review offering them). A fresh agent critiqued them. Fixed from it: "Define" became "Create" (the house verb for a new thing that is then listed); riddling field names became "How apps show it" and "What apps cover"; Review's colon line became a sentence; rows now have one quiet line, as Rules' do.The coverage gate is left to CI.
Shortcomings
fyi.opensocial.labelerare the audience.enunless--langis given. The console asks none.severityis alwaysinformfrom the console. The command takes it.🤖 Generated with Claude Code