~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Labels are atproto's com.atproto.label.record

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:labels/record

What changes

Labels are com.atproto.label.record. The label record's collection now has atproto's name for it. The proposal's strawman name was com.atproto.label.label. The record holds the same fields (uri, optional cid, val, cts, exp), and our copy in lexicons/upstream/com/atproto/label/record.json is atproto main's, unchanged. Everything that named the old collection names the new one:

  • the host's and the MCP crate's LABEL
  • the label action's grant (space:*?collection=com.atproto.label.record)
  • the moderate permission set, and the meta and members space types
  • the CLI's moderator scopes
  • the console's label action, its activity line and the Review dialog
  • the docs

The lexicon check lets a retired collection leave a space type. harness/lexicons.mjs refused any collection taken out of a space type's collections, since a scope that names only the type would lose writes to it. A collection whose schema is retired has no writes left to lose. So RETIRED now covers both cases, and it names com.atproto.label.label.

Why

atproto has the label record as com.atproto.label.record (bluesky-social/atproto, lexicons/com/atproto/label/record.json). The opensocial proposal's lexicons, its moderate set and its meta and members space types name it that way too. An app reading labels by atproto's name wouldn't find any of ours.

How it was checked

  • Before merging main, these passed: the host's moderation, mcp, rbac, group_tokens and oauth_scope tests, the MCP crate's tests, and the CLI's commands.
  • After merging main, just lex, svelte-check and just docs passed.
  • The full coverage gate and e2e (the console's moderation flow) are left to CI.

Shortcomings

  • A group that already exists keeps space:*?collection=com.atproto.label.label in its permissions record, and that grant doesn't give label anymore. Its admins and moderators can't label until someone saves their roles again.
  • Labels already written stay under com.atproto.label.label in their spaces. Nothing reads them, so they stop applying. Moving them would mean rewriting the group's signed space repos, and this pull doesn't do that.
Approved

This renames the label record's collection to com.atproto.label.record everywhere. That covers the host, the MCP crate, the CLI's moderator scopes, the moderate, meta and members lexicons, the console and the docs. The upstream lexicon is replaced with atproto's own, and RETIRED now lets a retired collection leave a space type's collections. A search of the head branch finds no old name left except in that retired list, so the rename is complete. The RETIRED change is narrow: only the named collection is exempt from the "taken out" check. The migration gaps (existing groups' grants, and labels already written under the old name) are stated plainly in the body as shortcomings and fall under the project's not-yet-published stance. I have no concerns that need changes. CI covers the remaining coverage and e2e checks.

Approved

This round only brings in main again. The pull's own diff is the same as the one I approved. It renames the label collection to com.atproto.label.record in the host, the MCP crate, the CLI scopes, the lexicons, the console and the docs. It also adds com.atproto.label.label to RETIRED, so a retired collection can leave a space type's collections. A search of the head branch finds the old name only in that RETIRED list and its comment. I have no new concerns. The shortcomings in the body (existing groups' grants and labels already written) are stated plainly, and CI covers the coverage gate and e2e.

Merged as f3f2c58