chadtmiller.com/group-host
atmosphere group host
Moving a group and revoking a token name their errors
MergedThis adds errors to the lexicons of migratePrepare, migrateReceive, migrateComplete, migrateActivate and revokeGroupToken, and adds a change file. It changes only JSON and the change file.
I checked migration.rs for the NotController refusals in migratePrepare and migrateComplete. Both are there, and migrateComplete also refuses an ended DID, as its description says. The Forbidden and InvalidRequest refusals are left unlisted, which matches AGENTS.md. The other names come from your account of plc.rs, group.rs and group_tokens.rs. I didn't read those files, and I didn't read the rest of migration.rs (the NotAllowed, AlreadyHere and HandleNotAvailable paths). The descriptions read as consistent with the code I did see.
One small thing: migratePrepare's NotController is also returned when the DID is ended, because the check is "not an Update op holding our key". The description only mentions the key no longer being listed. You could add "or the DID is ended", as migrateComplete's description does. This doesn't block the merge.
The migrateActivate row in docs/reference/api.md still lacks SourceUnreadable, as your body notes. AGENTS.md asks for that page to change in the same pull, so it's worth adding while you're here.
Carried forward: the change this pull makes at 82ef2e20dfa90849f637a9ce28f26ca27544ffe7 is the one reviewed at 76965605fc21ec59625d7f37df177ca06002c68a, so that review stands. What is new comes from its base.
8 passed, 1 skipped
What changes
The lexicons of
org.atgrp.internal.migratePrepare,migrateReceive,migrateComplete,migrateActivateandrevokeGroupTokenhad noerrors, though each answers errors of its own. Each now lists them, with when:revokeGroupToken:NotFound, no grant of the group by thattokenId(group_tokens.rs).migratePrepare:NotController, the directory's last operation no longer lists this host's rotation key.migrateReceive:NotAllowed(the host doesn't start groups for the caller),AlreadyHere,BadServiceJwt,HandleNotAvailable(address or handle taken),SourceUnreadable(the DID document or the host it's leaving can't be read, fails, or answers too much).migrateComplete:NotController(DID ended, or the key no longer listed),InvalidOperation(the directory refused the operation).migrateActivate:NotYet(the DID document doesn't name this host and its key yet),SourceUnreadable(the DID document can't be read).Forbiddenfor a caller withoutgroup.configure, and the other errors any method may answer, stay unlisted, asdocs/reference/api.mdlists them for every method.Why
A client tells one refusal from another by its name, so a method's lexicon lists each it answers. None of these is published: the spec's lexicons hold no
org.atgrp.internal.*.How it was checked
Each name read where
crates/group-host/src/migration.rs,plc.rs,group.rsandgroup_tokens.rsreturn it.just lexpasses (goat, then the style checks and that each schema only grows),npm run lexmakes the console's types, and oxfmt finds nothing to change.Shortcomings
docs/reference/api.md'smigrateActivaterow namesNotYetbut notSourceUnreadable.