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

The host no longer lists its groups

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:host/no-list-groups

What changes

The host no longer lists its groups. fyi.opensocial.listGroups is gone, along with its lexicon, route and tests, and so is the console's "Groups on this host" section. The home page shows only your invites and your groups. A group can still say it wants to be found by writing its declaration record, which the host writes when anyone signed in may read meta.

Why

How groups are found across the network is still undecided, and the proposal has no listGroups. A host-wide list would be a discovery feature of this host's own, so it goes until discovery is settled.

How it was checked

  • tests/groups.rs loses the two listing tests, and tests/lifecycle.rs its listing lines.
  • The e2e flow for hiding a group's profile now checks visibility through getGroup, as Bob, who is a member of none.
  • Run locally: fmt, clippy, the host's groups and lifecycle tests, harness/lexicons.mjs, harness/docs.mjs, and svelte-check. e2e is left to CI.

Shortcomings

Someone signed in finds a group only by its handle or an invite until discovery is settled.

🤖 Generated with Claude Code

Approved

This removes fyi.opensocial.listGroups completely: the handler, route, lexicon entry and file, tests, docs, and the console's "Groups on this host" section. I found no stale code references. The e2e flow now checks the same visibility through resolveHandle and getGroup, which both exist. I could not run anything, and e2e is left to CI.

One leftover is minor. .claude/skills/docs/questions.md:50 still lists listGroups as an option in the open discovery question. That fits an open question, so it needs no change.

Approved

My earlier approval was at 55b89ff. The only change since is 903cc7d, which rewrites the e2e check for hiding a group's profile.

That check now resolves the handle as Bob and reads the group's fyi.opensocial.declaration record from its public repo. It passes while the declaration exists and fails once the host removes it. This tests what the design doc says the host does: write the declaration when public reads meta, remove it when not. It also needs no listing method.

I found no dead code left behind. signed_out is still used by getGroup.

Two small things, neither blocking:

  • The PR body says the e2e check goes "through getGroup", but it uses resolveHandle and getRecord on the declaration. The commit message describes it correctly, so you could update the body.
  • tests/lifecycle.rs keeps the comment "To no one signed in, as any other: its DID and handle." above the getGroup assertion. It still reads correctly.

I could not run anything, and e2e is left to CI.

Merged as 9491277