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

Atmosphere Groups: lexicons at org.atgrp, the command atgrp

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:atgrp/rename

The project is Atmosphere Groups now: its lexicons are org.atgrp.* (the host's own methods org.atgrp.internal.*), its command is atgrp, and the host's service in its DID document is #atgrp.

Claude Opus 5.5 · medium effort

What changes

Lexicons. lexicons/fyi/opensocial/ is lexicons/org/atgrp/; every NSID fyi.opensocial.* is org.atgrp.*, in ids, refs, permission sets, scopes, routes, at:// URIs, the console's generated types and the docs. rbac::NS is org.atgrp, INTERNAL org.atgrp.internal. harness/lexicons.mjs reads the base's files under the new namespace, so each schema is still compared with its own past.

Command. crates/opensocial is crates/atgrp: package, lib and binary atgrp, just atgrp, usage atgrp <group> <action>, variables ATGRP_AS, ATGRP_PASSWORD, ATGRP_HOST, ATGRP_HOST_DID, ATGRP_SEED_INVITE, ATGRP_IMPORT_PASSWORD. The Dockerfile, Justfile, workflows and knope follow.

Service. The host's DID document names its service #atgrp, type AtgrpGroupHost; apps proxy with atproto-proxy: <did>#atgrp.

Name. The console's header and titles, the docs, crate descriptions and LICENSE-MIT say Atmosphere Groups; the proposal is "the Atmosphere Groups proposal", same link. The header's brand is a message (site_header_brand, route_home_head). Infrastructure names (next.opensocial.fyi, opensocial.fyi) are unchanged. Change file atmosphere-groups.md (minor); the unreleased one before it names the new NSIDs.

How it was checked

  • clippy -D warnings, cargo fmt --check, cargo test --workspace (interop needs the alpha PDS: left to the test check and its coverage gate).
  • just lex, just docs, web npm run check, harness/strings|layers|dialogs.mjs, oxfmt.
  • just shots for every guide over the spaces alpha PDS: the pictures' text differs only in the header's link, opensocial → Atmosphere Groups.

Shortcomings

  • Nothing serves org.atgrp lexicons by DNS yet, as nothing served fyi.opensocial ones.
  • A client proxying to #opensocial must move to #atgrp.
Approved

This pull renames the project to Atmosphere Groups. Lexicons move from fyi.opensocial.* to org.atgrp.*, the crate and command become atgrp, the env variables become ATGRP_*, and the DID-document service becomes #atgrp.

The diff is 264 files, so I did not read all of it. I read the file list and the changeset. I searched the head branch for leftover opensocial and fyi.opensocial strings. I didn't read the diff of any Rust, web, lexicon or docs file, so I haven't confirmed the renames inside them. I also didn't read the screenshot PNGs. Those are mechanical, and the checks cover them: lexicons and docs pass, and check, test, web and e2e were still running when I looked.

What I found:

  • Leftovers: the only remaining opensocial strings are infrastructure names the body says stay (next.opensocial.fyi, the tangled proposal link) and the old CHANGELOG entries. The fyi.opensocial regex in harness/lexicons.mjs is deliberate: it maps the base's schemas onto the new names.
  • Stale changeset: .changeset/internal-methods-and-no-sites.md still says fyi.opensocial.site and opensocial site. The body says this file names the new NSIDs, so either update these two mentions or leave them as history on purpose.
  • Deployed hosts: the pull says nothing about data already stored under the old names, or about the running host at next.opensocial.fyi. I couldn't see whether stored records, space types, OAuth scopes or sessions still use fyi.opensocial.*. The code search finds no migration or alias for the old names. If a deployed host holds that data, it needs a migration or a reset. If it doesn't, say so in the changeset.

Nothing here needs changes before it merges.

Approved

Since my approval at 0cab274, the pull adds two changes. One is a strings.mjs formatting change, which is harmless. The other is a new cleanup step in test.yml. The earlier rename stands. I didn't re-read the rest of the rename, and my earlier note about stored data under the old NSIDs is unchanged.

The cleanup step looks wrong. Directories under target/llvm-cov-target/debug/build/ are named <package>-<hash>, such as serde-1a2b3c…. The loop compares each directory's whole basename with the bare package names from Cargo.lock. A directory name almost never equals a bare name, so I expect the loop to delete every build directory on every run. That would defeat the cache, and Cargo's fingerprints could point at build-script output that is gone. To remove only stale crates, strip the -<hash> suffix, for example ${b%-*}, before comparing. The test check will show whether this bites.

.knotless/workflows/test.ymlline 51
# names, such as a crate taken out of the workspace.
known=$(sed -n 's/^name = "\(.*\)"$/\1/p' Cargo.lock)
for dir in target/llvm-cov-target/debug/build/*/; do
echo "$known" | grep -qx "$(basename "$dir")" || rm -rf "$dir"
review.knotless.dev

basename "$dir" is <pkg>-<hash>, so it will not match a bare name in known. This rm probably runs on every directory. Strip the hash suffix first.

Merged as b560a81