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

A group takes a handle on its own domain from the console or command

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

A group can now take a handle on a domain of its own from the console, the opensocial command and MCP. Until now only raw calls to updateGroupHandle could. Its settings show the handle, warn when its domain no longer names it, and give it its address back.

Claude Opus 5.5

What changes

Console. The profile page of a group's settings has a Handle card (GroupHandle.svelte) after "Who sees it":

  • the handle;
  • while it is a domain of its own, whether the domain still names the group, read by checkGroupHandle as the page loads; if not, it says what the _atproto record should be.
  • "Use your own domain" opens a dialog: the TXT record to add (name _atproto.<the domain as typed>, value did=<the group's DID> with Copy), then the domain. It calls updateGroupHandle. Done, it goes to the settings at the new handle, as the old one names the group no more. A refusal it can act on is said in the reader's words (NotPointing, InvalidHandle, HandleNotAvailable); any other is the host's.
  • "Go back" asks first ("Go back to its address?"), then gives the group its address back.

The pill holding a value to copy is now one shared rule, .copyable, which "Connect an AI app" uses too. A DNS record's fields are .record.

Command and tool. One TOOLS entry, group_handle (updateGroupHandle), makes opensocial group handle <group> <handle>, with its usage line, and the MCP tool. A domain that names the group gives it that handle; its own address gives it that back.

Docs.

  • docs/design/groups.md says what the console, the command and the tool do, and that the site stays at the address.
  • docs/reference/cli.md and docs/reference/mcp.md gain their rows.
  • The guides' pictures of the profile page are drawn again.

Why

The third step of the order agreed for a group's site on its own domain (at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/group-host/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.issue/3mzysqoksvx7f): a site's domain is planned to come from the group's own-domain handle, and nobody could take one without calling the host by hand.

How it was checked

  • New gives_a_group_a_handle_only_on_a_domain_that_names_it (crates/opensocial/tests/commands.rs):
    • a member who doesn't configure the group is refused;
    • a domain that doesn't name it is refused with NotPointing and the did= its record should hold;
    • its own address is taken.
  • tests/protocol.rs lists group_handle.
  • New e2e flow, "asking for a handle on a domain that doesn't name the group yet":
    • the dialog shows did=<DID>, and _atproto.<domain> as typed, lower-cased;
    • refused, it says so in its own words and keeps what was typed.
  • just look: the card with the address, the dialog empty and typed, the refusal, a domain that no longer names the group, and the go-back confirm. The own-domain state was drawn by renaming Riders' handle in a throwaway world's database, as no world resolves a domain. Through that dialog, "Go back" gave Riders its address back and landed on its settings. A reviewer agent that hadn't written it critiqued the pictures against the ui skill's rules.
  • npm run check, just fmt, and the tests named, locally. CI does the rest.

Shortcomings

  • Nothing checks a real domain. No test takes one end to end, as no harness world resolves a domain to a group: the host's tests of updateGroupHandle already cover a domain that names the group. "Use it" is drawn but never seen succeeding in a browser.
  • The lexicons' errors. updateGroupHandle's and checkGroupHandle's errors still carry no descriptions, as before.

card-x-alice-desktop-light.png

refused-alice-desktop-light.png

dialog-alice-phone-dark.png

own-alice-desktop-light.png

Approved

This adds a Handle card to a group's profile settings. The card has a "Use your own domain" dialog and a "Go back" confirm. It also adds the group_handle entry in TOOLS, which gives the opensocial group handle command and the MCP tool. Docs, the e2e flow and the command test come with it. I found nothing that must change.

  • Command and tool: group_handle follows the TOOLS rules in AGENTS.md. It has the usage line, the cli.md and mcp.md rows, the protocol.rs listing and the lexicon registered.
  • Docs link: the #a-handle-on-its-own-domain anchor in cli.md resolves to the heading at groups.md:239.
  • Console: the dialog titles are fixed words. The act is sent through the page's form actions. NotPointing, InvalidHandle and HandleNotAvailable are mapped to messages the reader can act on.
  • Not checked: I didn't open the shot PNGs or GroupHandle.svelte's use of FormDialog and ConfirmDialog. CI's e2e and web checks cover those.
  • Untested (already in your shortcomings): the success path for a real domain has no test.
Merged as 88b5622